We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 68f5bf3 commit 3f93c5eCopy full SHA for 3f93c5e
doctr/models/_utils.py
@@ -60,7 +60,7 @@ def estimate_orientation(
60
if img.shape[-1] == 3:
61
gray_img = cv2.cvtColor(img, cv2.COLOR_BGR2GRAY)
62
gray_img = cv2.medianBlur(gray_img, 5)
63
- thresh = cv2.threshold(gray_img, thresh=0, maxval=255, type=cv2.THRESH_BINARY_INV + cv2.THRESH_OTSU)[1] # type: ignore[assignment]
+ thresh = cv2.threshold(gray_img, thresh=0, maxval=255, type=cv2.THRESH_BINARY_INV + cv2.THRESH_OTSU)[1]
64
else:
65
thresh = img.astype(np.uint8)
66
0 commit comments