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:
9.3
9.4
9.5
10.0
10.1
10.2
10.3
10.4
10.5
10.6
Statistic
FMM
Blog
OCR.SetPageSegMode
Sets page segmentation mode.
| Component | Version | macOS | Windows | Linux | Server | FileMaker 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:
| OSDOnly | Orientation and script detection only. |
| AutoOSD | Automatic page segmentation with orientation and script detection. (OSD) |
| AutoOnly | Automatic page segmentation, but no OSD, or OCR. |
| Auto | Fully automatic page segmentation, but no OSD. |
| SingleColumn | Assume a single column of text of variable sizes. |
| SingleBlockVertText | Assume a single uniform block of vertically. |
| SingleBlock | Assume a single uniform block of text. (Default) |
| SingleLine | Treat the image as a single text line. |
| SingleWord | Treat the image as a single word. |
| CircleWord | Treat the image as a single word in a circle. |
| SingleChar | Treat 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
Created 18th August 2014, last changed 18th August 2014
OCR.SetImage - OCR.SetRectangle
Feedback: Report problem or ask question.
Links
MBS Xojo Plugins