TIEVisionSearchablePDFGenerator.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.
Note: All OSD options require the file "osd.traineddata" for all languages (located in the language path passed with
createSearchablePDFGenerator). If "osd.traineddata" is not available then orientation detection is not possible (e.g. upside-down pages will process incorrectly).
Parameter | Description |
value | Segmentation mode to set |
pdfGen.setSegmentationMode( ievOCRAuto );