img2table icon indicating copy to clipboard operation
img2table copied to clipboard

VisionOCR class missing in module after installing [gcp]

Open ranjitpad opened this issue 1 year ago • 1 comments

After running pip install img2table[gcp], I could not find the VisionOCR class and from img2table.ocr import VisionOCR failed.

I checked the module with inspect and only saw TesseractOCR present:

>>> 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.

>>> inspect.getmembers(img2table.ocr)
[('TesseractOCR', <class 'img2table.ocr.tesseract.TesseractOCR'>), ('TextractOCR', <class 'img2table.ocr.aws_textract.TextractOCR'>), ('VisionOCR', <class 'img2table.ocr.google_vision.VisionOCR'>)...

ranjitpad avatar Feb 07 '24 19:02 ranjitpad

Hello, That should not be happening. What version of the library have you installed ?

xavctn avatar Feb 11 '24 20:02 xavctn