Working on an OCR. I can import pytesseract and use image_to_string but I want to work on this:
api = tesseract.TessBaseAPI()
api.SetVariable("tessedit_char_whitelist", "0123456789")
api.Init('.','eng',tesseract.OEM_DEFAULT)
api.SetPageSegMode(tesseract.PSM_AUTO)
This is to set tesseract to detect only numbers or alphabets. When I run my code I get this error:
ImportError: No module named tesseract
I have tesseract-ocr installed, and pytesseract as well. Yet I keep getting this error.