I am trying to do OCR using pytesser downloaded from HERE .
Here is the pytesser.py code
try: import cv2.cv as cv OPENCV_AVAILABLE = True except ImportError: OPENCV_AVAILABLE = False from subprocess import Popen, PIPE import os PROG_NAME = 'tesseract' TEMP_IMAGE = 'tmp.bmp' TEMP_FILE = 'tmp'
The problem is that when I try to execute the sample fragment indicated in the link above, I get the `Tesseract error
>>> import pytesser >>> txt = pytesser.image_to_string('C:/output.png') Traceback (most recent call last): File "<pyshell#1>", line 1, in <module> txt = pytesser.image_to_string('C:/output.png') File "C:\Python27\lib\site-packages\pytesser.py", line 71, in image_to_string check_path()
my Tesseract-OCR installation is located in C:\Tesseract-OCR
I set TESSDATA_PREFIX=C:\Tesseract-OCR\ also Path=C:\Tesseract-OCR
I want to know why I get TessractnotFound even though the correct environment variables are set?
Thanks.
md1hunox
source share