TIEVisionOCR.setSegmentationMode
Declaration
procedure setSegmentationMode(value: TIEVisionOCRPageSegmentationMode); safecall;
Description
Specify the segmentation mode, which describes how text is laid out on the page.
Generally the best option for recognition is
ievOCRAuto, which supports a page of text even if incorrectly orientated or with multiple columns of text.
Parameter | Description |
value | Segmentation mode to set |
Note:
◼All OSD options require the file "osd.traineddata" for all languages (located in the language path passed with
createOCR). If "osd.traineddata" is not available then orientation detection is not possible (e.g. upside-down pages will process incorrectly).
◼For
Orientation detection ievOCRAuto_OSD should be used
◼For
Region detection ievOCRAuto_OnlySegmenting or ievOCRAuto should be used
Default: ievOCRAuto
OCR.setSegmentationMode( ievOCRAuto );