Topics   All   Mac OS X (Only)   Windows (Only)   Linux (Only, Not)   iOS (Only, Not)  
Components   Crossplatform Mac & Win   Server   Client   Old   Guides   Examples
New in version: 7.3   7.4   7.5   8.0   8.1   8.2   8.3   8.4   8.5   9.0    Statistic  


Sets page segmentation mode.

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


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


Returns OK on success.


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.


Set auto detection mode:

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

Set single block mode:

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

See also

Example Databases

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

OCR.SetImage   -   OCR.SetRectangle

Feedback: Report problem or ask question.

MBS Xojo blog