renard314 / textfairy

Android OCR App

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

How can I copy text-fairy pre-processing?

SahSantoshh opened this issue · comments

I have some custom algorithm for Devanagari script for tesseract 3.05 and i want to implement it on my OCR project, for that I need to get some suggestions for how can i get text-fairy pre-processing techniques as my pre-processing is toooo bad.

You can use the Xcode project to compile a command line executable, check app/libs/image_processing/image_processing/src/desktop/main.cpp
You would need to parse a source file or directory from the arguments and pass it to one of the utility functions
for example
applyToFolder("path to your images folder", {prepareForOcr}, writeLastPix);
would take every image in the folder, preprocess it and write a binary version to the same folder