Open ranjitpad opened 7 months ago
After running pip install img2table[gcp], I could not find the VisionOCR class and from img2table.ocr import VisionOCR failed.
pip install img2table[gcp]
from img2table.ocr import VisionOCR
I checked the module with inspect and only saw TesseractOCR present:
inspect
>>> inspect.getmembers(img2table.ocr) [('TesseractOCR', <class 'img2table.ocr.tesseract.TesseractOCR'>)...
I then tried running pip install img2table[aws], and saw both the TextractOCR and VisionOCR classes in the module, in addition to TesseractOCR.
pip install img2table[aws]
>>> inspect.getmembers(img2table.ocr) [('TesseractOCR', <class 'img2table.ocr.tesseract.TesseractOCR'>), ('TextractOCR', <class 'img2table.ocr.aws_textract.TextractOCR'>), ('VisionOCR', <class 'img2table.ocr.google_vision.VisionOCR'>)...
Hello, That should not be happening. What version of the library have you installed ?
After running
pip install img2table[gcp]
, I could not find the VisionOCR class andfrom img2table.ocr import VisionOCR
failed.I checked the module with
inspect
and only saw TesseractOCR present:I then tried running
pip install img2table[aws]
, and saw both the TextractOCR and VisionOCR classes in the module, in addition to TesseractOCR.