Skip to content

Commit 821a6e1

Browse files
committed
Remove hardcoded location of tesseract
1 parent 06dc52c commit 821a6e1

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

cv/image.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,7 @@
3434
}
3535

3636
try:
37-
ocr = cv2.text.OCRTesseract_create("/usr/share/tesseract-ocr/", "eng", tesseract_whitelists['unspec'], 0, cv2.text.OCR_LEVEL_TEXTLINE)
37+
ocr = cv2.text.OCRTesseract_create(Null, "eng", tesseract_whitelists['unspec'], 0, cv2.text.OCR_LEVEL_TEXTLINE)
3838
except:
3939
logging.info("tesseract not availabe")
4040

0 commit comments

Comments
 (0)