ocrmypdf / OCRmyPDF-EasyOCR

OCRmyPDF EasyOCR plugin
MIT License
45 stars 9 forks source link

Non multiprocessing mode #7

Closed deajan closed 6 months ago

deajan commented 6 months ago

Hello,

Trying to make OCRmyPDF-EasyOCR work in paperless-ngx, I realize that I cannot open a multiprocess pool in another multiprocess pool.

I've tried running your easyOCR plugin git master and back to commit e4a010d in hope to get rid of the multiprocessing, but I'm always stuck with error message AssertionError: daemonic processes are not allowed to have children since I run OCRMyPDF in a multiprocess pool.

Any chance for you to dive into that issue, so that the easyOCR plugin becomes the de-facto standard for paperless-ngx ?

Best regards.

deajan commented 6 months ago

Actually found a way, replacing multiprocessing module with billiard from celery, which allows recursive daemonic processes. I'll make a PR shortly.

deajan commented 6 months ago

Done in #9