layout-parser
layout-parser copied to clipboard
Module layoutparser has no GCVAgent
Hi,
I am trying to OCR a simple table using a code inspired in the tutorial. I am getting an error on this line:
ocr_agent = lp.GCVAgent.with_credential(key.json, languages = ['es'])
The Traceback is the following:
File
Some additional details:
-
The code works on a Windows machine. I could not make it work in either Linux or MacOS. I need it to work in Linux.
-
Neither using the same key that worked in Windows, or downloading a new one make it work.
-
I tried replicate the error in my Windows machine by directing the code to non-existent key. The resulting error was different.
-
Following this answer, I tried to install layoutparser[ocr] again. But the issue remained.
Any idea on how to deal with this? Thank you.