Fix indentation on last commit
This commit is contained in:
parent
5534ae317f
commit
edc1bc28a2
@ -56,7 +56,7 @@ class Video:
|
|||||||
if not self.use_fullframe:
|
if not self.use_fullframe:
|
||||||
# only use bottom half of the frame by default
|
# only use bottom half of the frame by default
|
||||||
img = img[self.height // 2:, :]
|
img = img[self.height // 2:, :]
|
||||||
img = cv2.bitwise_not(cv2.bitwise_and(img, img, mask=cv2.inRange(img, (190, 190, 190), (255, 255, 255))))
|
img = cv2.bitwise_not(cv2.bitwise_and(img, img, mask=cv2.inRange(img, (190, 190, 190), (255, 255, 255))))
|
||||||
config = '--tessdata-dir "{}"'.format(constants.TESSDATA_DIR)
|
config = '--tessdata-dir "{}"'.format(constants.TESSDATA_DIR)
|
||||||
try:
|
try:
|
||||||
return pytesseract.image_to_data(img, lang=self.lang, config=config)
|
return pytesseract.image_to_data(img, lang=self.lang, config=config)
|
||||||
|
Loading…
Reference in New Issue
Block a user