|
|
@ -2,8 +2,7 @@
|
|
|
|
import cv2
|
|
|
|
import cv2
|
|
|
|
import numpy as np
|
|
|
|
import numpy as np
|
|
|
|
|
|
|
|
|
|
|
|
from skimage.filters import (threshold_otsu, threshold_niblack,
|
|
|
|
|
|
|
|
threshold_sauvola)
|
|
|
|
|
|
|
|
import niblack_thresholding as nt
|
|
|
|
import niblack_thresholding as nt
|
|
|
|
|
|
|
|
|
|
|
|
import deskew
|
|
|
|
import deskew
|
|
|
@ -128,4 +127,4 @@ def findContoursAndDrawBoundingBox2(image_rgb):
|
|
|
|
image,M= deskew.fastDeskew(image)
|
|
|
|
image,M= deskew.fastDeskew(image)
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
return image
|
|
|
|
return image
|
|
|
|