Components | All | New | MacOS | Windows | Linux | iOS | ||||
Examples | Mac & Win | Server | Client | Guides | Statistic | FMM | Blog | Deprecated | Old |
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