Topics   All   Mac OS X (Only)   Windows (Only)   Linux (Only, Not)   iOS (Only, Not)  
Components   Crossplatform Mac & Win   Server (Not)   Client   Old   Guides
New in version: 5.4   6.0   6.1   6.2   6.3   6.4   6.5   7.0   7.1   7.2    Statistic  


Provide an image for Tesseract to recognize.

Component: OCR
Version: 2.9
Mac OS X: Yes
Windows: Yes
Server: Yes
FileMaker Cloud: Yes

MBS( "OCR.SetImage"; imageRef )


Parameter Description Example value
imageRef The image reference. Use functions like GMImage.NewFromContainer to get an image reference. $img


Returns OK on success.


Provide an image for Tesseract to recognize.
The plugin makes a copy of the image.

Please do not pass PDF files. For PDF you either need to extract image (for scans) or raster PDF pages as images. Our functions PDFKit.GetPDFPageImage or DynaPDF.RenderPage can help here.
If the PDF file contains real text, please use PDFKit.GetPDFText, PDFKit.GetPDFPageText, DynaPDF.ExtractText, DynaPDF.ExtractPageText or DynaPDF.ExtractPageRectText. This will not do OCR, but extract the text directly.


Set image reference:

MBS( "OCR.SetImage"; $img )

See also

OCR.Recognize   -   OCR.SetPageSegMode

Feedback: Report problem or ask question.

MBS Real Studio Plugins - Nachhilfe Nickenich