(1): https://towardsdatascience.com/pre-processing-in-ocr-fc231c6... (2): https://github.com/chriswolfvision/local_adaptive_binarizati...
(1): https://towardsdatascience.com/pre-processing-in-ocr-fc231c6... (2): https://github.com/chriswolfvision/local_adaptive_binarizati...
Otherwise, the C++ code on Github requires converting images to PGM format.
---
The page is in French, so I will mention that the Python script is here: https://www.vvpix.com/gmp_Telecharger_script.php?sFichier_a_...
To install it, copy the file to: `C:\Program Files\GIMP 2\lib\gimp\2.0\plug-ins`
Then call the script via the `Python-fu > Color > Binarize` tab in Gimp.
The algorithm is quite slow for large images. Aim for 1440p at most.
That being said, the results on my quick experiments look great, so it saves my time compared to other more manual methods in the end!
Sadly I can't find any open-source vectorizer & OCR for repair scanned technical drawings, and Tesseract has a lot of issues with rotated text labels specific to CAD.[1]
I once wrote a bookscanner app in Java (https://boofcv.org), where everything was done automatically (preprocessing, object detection / book extraction, skin detection / finger removal, deskewing, line-slope-correction and so on). It was very difficult to adjust the parameters, that at least most of the books looked good.