'GCVAgent' object has no attribute '_client'
See original GitHub issueHi, when I was running the tutorial of “OCR tables and parse the output”, when I was trying to obtain the result:
res = ocr_agent.detect(image, return_response=True)
The response was
Traceback (most recent call last): File "<stdin>", line 1, in <module> File "/Library/Frameworks/Python.framework/Versions/3.9/lib/python3.9/site-packages/layoutparser/ocr/gcv_agent.py", line 168, in detect res = self._detect(img_content) File "/Library/Frameworks/Python.framework/Versions/3.9/lib/python3.9/site-packages/layoutparser/ocr/gcv_agent.py", line 134, in _detect response = self._client.document_text_detection( AttributeError: 'GCVAgent' object has no attribute '_client'
I googled and some sites said The Client() class was removed in the Client Library v0.25.1 and replaced with ImageAnnotatorClient().
Was this a problem? Thank you.
Issue Analytics
- State:
- Created 2 years ago
- Comments:8

Top Related StackOverflow Question
same here
Same here…