Topics   All   MacOS (Only)   Windows (Only)   Linux (Only, Not)   iOS (Only, Not)  
Components   Crossplatform Mac & Win   Server   Client   Old   Deprecated   Guides   Examples   Videos
New in version: 12.1   12.2   12.3   12.4   12.5   13.0   13.1   13.2   13.3   13.4    Statistic    FMM    Blog  

OCR.SetPageSegMode

Sets page segmentation mode.

Component Version macOS Windows Linux Server iOS SDK
OCR 2.9 ✅ Yes ✅ Yes ✅ Yes ✅ Yes ✅ Yes
MBS( "OCR.SetPageSegMode"; mode )   More

Parameters

Parameter Description Example
mode The new page segmentation mode. "auto"

Result

Returns OK on success.

Description

Sets page segmentation mode.

Possible values:
OSDOnlyOrientation and script detection only.
AutoOSDAutomatic page segmentation with orientation and script detection. (OSD)
AutoOnlyAutomatic page segmentation, but no OSD, or OCR.
AutoFully automatic page segmentation, but no OSD.
SingleColumnAssume a single column of text of variable sizes.
SingleBlockVertTextAssume a single uniform block of vertically.
SingleBlockAssume a single uniform block of text. (Default)
SingleLineTreat the image as a single text line.
SingleWordTreat the image as a single word.
CircleWordTreat the image as a single word in a circle.
SingleCharTreat the image as a single character.

Examples

Set auto detection mode:

MBS( "OCR.SetPageSegMode"; "AutoOSD" )

Set single block mode:

MBS( "OCR.SetPageSegMode"; "SingleBlock" )

See also

Example Databases

This function is free to use.

Created 18th August 2014, last changed 18th August 2014


OCR.SetImageFile - OCR.SetRectangle

💬 Ask a question or report a problem