Closed ayush2709 closed 2 years ago
Could you try with the following?
pip install -U layoutparser[ocr]
(adding -U
for upgrading)lp.TesseractAgent(languages='eng')
(removing .ocr
) Hey @lolipopshock , Thank you for your reply.
The second option worked for me.
Hi Team, I have been trying to use layout-parser for my project. But I constantly get this issue -
AttributeError: module layoutparser has no attribute ocr
I have installed the OCR module via command
pip install layoutparser[ocr]
The code that throws this error is -
ocr_agent = lp.ocr.TesseractAgent(languages='eng')
Need help here. Thanks!