docling icon indicating copy to clipboard operation
docling copied to clipboard

Make easyocr optional

Open anmol-aidora opened this issue 7 months ago • 2 comments

Requested feature

Easyocr has a dependency with a restrictive license (python-bidi : LGPL). In my organization, we have a strict policy to only use packages which have permissive licenses (like MIT, Apache, etc).

I am thinking we can probably add it as an optional dependency and not install it by default.

Please guide me on how to make it optional to use EasyOCR, or switch it off by default.

anmol-aidora avatar Apr 25 '25 13:04 anmol-aidora

Just download it as usual and do not use easyocr as the OCR engine. Delete its traces too. You will have not used it: the problem is solved.

Manamama avatar Apr 26 '25 09:04 Manamama

The Github repo for EasyOCR has an Apache 2.0 license. Where did you find LGPL?

buckeye17 avatar May 05 '25 04:05 buckeye17