SimpleOCR:SDK Functions – OCRSetOutputCharHandler
OCROutputCharHandler OCRSetOutputCharHandler(OCROutputCharHandler handler)
When the output mode is O
M_TEXT or OM_RICHTEXT, a user defined function of type OCROutputCharHandler will be called by the ocr engine for each “real character” (i.e.: not for EOLs and Spaces). This function is called immediately after OCROutputHandler is called with the event OT_TEXT.
Return Value
Previously selected output handler.
An OCROutputCharHandler has the following form:
void AnOCRCharHandler(int ch, int conf, int left, int top, int width, int height);
ch
ASCII code of recognized character.
conf
Confidence level of the recognized character. Values can be 0-100. The higher the confidence – the engine is more sure about the recognized character.
left, top
coordinates (in pixels) of character in original image.
width, height
width and height in pixels of recognized character.