Dear all,

I am processing bounding boxes containing one single letter each one. The 
bounding box is found with other techniques, and a pre-processing step 
directly creates a binary mask quite well segmented for the Tesseract-OCR. 
The method works, but sometimes it happens that the OCR is detecting fake 
characters due to reflexes or small eroded/dilated region. In particular, 
in these cases, it happens that Tesseract seems to "revert" background and 
foreground, since printing the symbol bounding box it is evident that, from 
the whole region, Tesseract has evaluated a symbol just switching 
background and foreground. Is there any way by using the API to explicitly 
specify which color in the binary mask represents the background, and which 
one the foreground? I deduce that with this artefact I would minimize the 
error of getting incorrect detection. I can also do it as a post-processing 
step (like filling the connected region and check the value of the central 
pixel and so on), but whatever I do would be less efficient then 
"suggesting" to the OCR background and foreground.

Thank you

-- 
You received this message because you are subscribed to the Google Groups 
"tesseract-ocr" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To post to this group, send email to [email protected].
Visit this group at https://groups.google.com/group/tesseract-ocr.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/tesseract-ocr/e6d522b8-3ad4-454d-91d0-6e1ad9104b00%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to