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.
Previously selected output handler.
An OCROutputCharHandler has the following form:
void AnOCRCharHandler(int ch, int conf, int left, int top, int width, int height);
ASCII code of recognized character.
Confidence level of the recognized character. Values can be 0-100. The higher the confidence – the engine is more sure about the recognized character.
coordinates (in pixels) of character in original image.
width and height in pixels of recognized character.