Skip to content

Commit 3f93c5e

Browse files
mypy
1 parent 68f5bf3 commit 3f93c5e

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

doctr/models/_utils.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -60,7 +60,7 @@ def estimate_orientation(
6060
if img.shape[-1] == 3:
6161
gray_img = cv2.cvtColor(img, cv2.COLOR_BGR2GRAY)
6262
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]
63+
thresh = cv2.threshold(gray_img, thresh=0, maxval=255, type=cv2.THRESH_BINARY_INV + cv2.THRESH_OTSU)[1]
6464
else:
6565
thresh = img.astype(np.uint8)
6666

0 commit comments

Comments
 (0)