Omit Leptonica Library from Tesseract

327 Views Asked by At

Working on an OCR project, I am trying to figure out if there is any way or possibility to omit Leptonica Library from Tesseract and maybe replace it with OpenCV. Already have OpenCV on the C layer and planning to combine that with Tesseract.

1

There are 1 best solutions below

1
user898678 On BEST ANSWER

No, it is not possible (unless you rewrite tesseract).

But you can compile leptonica with the minimal dependencies (zlib + png).

Also I would suggest to check your OpenCV package as it includes support for tesseract OCR.