Low-level functions for separating handwritten and machine printed texts
Separating handwritten and machine-printed text improves the OCR accuracy, and the high-level kRecLocateZonesEx function automatically takes care of the separation. If you use low-level functions for handwritten text detection, you need to handle this on your own. Use the following functions to separate handwritten and machine-printed text:
-
Use the kRecLocateHandwriting function to remove handwritten scribbles from invoices before processing. You can also use this function to detect whether the document contains a signature or handwritten information.
-
Use the kRecCreateHandwritingPage function to create a new HPAGE with the handwritten text and zones. Depending on the mode parameter, it retains the handwriting with the zones or removes all. RM_RER or RM_HNR or another handwritten text recognizer can recognize the zones.
For more information, see the Processing handwritten text section of the RecAPI Online Help.