ocrmypdf / OCRmyPDF-EasyOCR

OCRmyPDF EasyOCR plugin
MIT License
45 stars 9 forks source link

Need to know : how to use this script #11

Open HarshPrajapati2309 opened 4 months ago

HarshPrajapati2309 commented 4 months ago

I am trying to use this script but couldnt find the way

jbarlow83 commented 4 months ago

Did you follow the instructions in the README? If that succeeds, ocrmypdf and this plugin will be installed.

sliedes commented 3 months ago

I think the question may be about how to use this with OCRmyPDF; i.e. yes, it's installable, but how to run OCRmyPDF with it without running into NotImplementedError: EasyOCR does not support hOCR output.

And I suspect the answer may be to use the OCRmyPDF option --pdf-renderer sandwich?

jbarlow83 commented 3 months ago

Yes, you need to use --pdf-renderer sandwich.

sliedes commented 3 months ago

BTW, I made a PR to EasyOCR that adds hOCR output (though didn't test it with this plugin): https://github.com/JaidedAI/EasyOCR/pull/1275

jbarlow83 commented 1 month ago

@sliedes Can you contribute your hOCR change here since EasyOCR doesn't seem to merge many PRs?

sliedes commented 1 month ago

@sliedes Can you contribute your hOCR change here since EasyOCR doesn't seem to merge many PRs?

Certainly! Do you need me to open the PR here, or can you just pick it from the EasyOCR repository?

jbarlow83 commented 1 month ago

Please open a PR here - that would be great, thank you!