ocrmypdf / OCRmyPDF-EasyOCR

OCRmyPDF EasyOCR plugin
MIT License
45 stars 9 forks source link

Error: Plugin already registered #12

Closed shivams closed 3 months ago

shivams commented 3 months ago

After installing the plugin, I tried running it using this command:

ocrmypdf -l eng --plugin ocrmypdf_easyocr input.pdf output.pdf

But it throws error: ValueError: Plugin already registered under a different name: ocrmypdf_easyocr=<module 'ocrmypdf_easyocr'

shivams commented 3 months ago

Okay, the plugin actually works using the option --pdf-renderer sandwich and there is no need to include plugin (since it's included by default). Hence the error. Hence the correct command to use is this:

ocrmypdf -l eng --pdf-renderer sandwich input.pdf output.pdf