Hi all, I have a screen scraping flow that is pulling several numbers off a VNC window. I have been able to capture all of the data reliably except one item, whose value tends to be between 100-105.
The OCR likes to return 1 r-14" for "104". If it sees "100", the value will just be blank.
It was originally not reading at all because the text is red, but I am using ImageMagick to desaturate the screenshots I am taking, blow out the brightness and contrast and replace that specific color in the screenshot with black (#000000). I also find that it can't process decimal points, and when it sees 0, it likes to return blanks. The VNC image uses pixel fonts, and I also suspect that Tesseract works better with antialiased text.
I have played with these settings and all of the ones in PAD but still cannot get a reliable result with this one piece of data.
Is there any way at all to see exactly what the Tesseract engine is seeing when it tries to interpret my image so that I can tune it better? I have found I have to use image scaling >=5 to get it to read the rest, but as I said, these are pixel fonts, so I don't know if it's smart enough to realize it can't use an image scaling technique like bicubic, which would give a blurry result. I wonder if I fuzzed the screenshot in ImageMagick if it would work better...
Edit: Sorry for the edits. I also wonder if ImageMagick would be a better solution to resize the whole image rather than relying on Tesseract scaling, then redrawing the OCR detection boxes on the scaled screenshot... I will report back!

Report
All responses (
Answers (