Skip to content

Commit 521be5d

Browse files
Update fastmrz.py
1 parent 0767ec0 commit 521be5d

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

fastmrz/fastmrz.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -63,7 +63,7 @@ def _get_roi(self, output_data, image_path):
6363

6464
kernel = np.ones((1,1), np.uint8)
6565
roi_dilate = cv2.dilate(roi_gray, kernel, iterations=1)
66-
roi_gaussianblur = cv2.GaussianBlur(roi_dilate, (3,3), 0)
66+
roi_gaussianblur = cv2.GaussianBlur(roi_dilate, (5,5), 0)
6767
roi_threshold = cv2.threshold(roi_gaussianblur, 0, 255, cv2.THRESH_BINARY + cv2.THRESH_OTSU)[1]
6868

6969
# Configure pytesseract parameters for better MRZ recognition

0 commit comments

Comments
 (0)