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
Provide an image for Tesseract to recognize.
Component | Version | macOS | Windows | Linux | Server | iOS SDK |
OCR | 2.9 | ✅ Yes | ✅ Yes | ✅ Yes | ✅ Yes | ✅ Yes |
Parameter | Description | Example |
---|---|---|
imageRef | The image reference. Use functions like GMImage.NewFromContainer to get an image reference. | $img |
Returns OK on success.
Set image reference:
MBS( "OCR.SetImage"; $img )
Load image, apply effect and pass with rectangle:
Set Variable [ $img ; Value: MBS("GMImage.NewFromContainer"; OCR::Image) ]
// apply some effects here like increase contrast
Set Variable [ $r ; Value: MBS( "OCR.SetImage"; $img) ]
Set Variable [ $r ; Value: MBS( "OCR.SetRectangle"; 0; 0; 1000; 400) ]
Set Variable [ $r ; Value: MBS( "GMImage.Release"; $img) ]
This function is free to use.
Created 18th August 2014, last changed 1st April 2023