From 09f5098e1930a36c620aa68f3c031aae2f687e50 Mon Sep 17 00:00:00 2001 From: Pradana AUMARS Date: Tue, 13 Jul 2021 16:36:35 +0200 Subject: [PATCH] Fix missing parenthesis --- videocr/video.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/videocr/video.py b/videocr/video.py index e4b7565..ec368cd 100644 --- a/videocr/video.py +++ b/videocr/video.py @@ -69,7 +69,7 @@ class Video: color_mask = cv2.inRange(hsv, (0, 0, 190), (179, 20, 255)) # apply mask, inverse image so it's black text on white background, add borders to top and bottom - img = cv2.copyMakeBorder(cv2.bitwise_not(cv2.bitwise_and(img, img, mask=color_mask)), 10, 10, 0, 0, cv2.BORDER_CONSTANT, None, (255,255,255) + img = cv2.copyMakeBorder(cv2.bitwise_not(cv2.bitwise_and(img, img, mask=color_mask)), 10, 10, 0, 0, cv2.BORDER_CONSTANT, None, (255,255,255)) config = '--tessdata-dir "{}" --psm 7 -c preserve_interword_spaces=1'.format(constants.TESSDATA_DIR) try: return pytesseract.image_to_data(img, lang=self.lang, config=config)