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.5   8.0   8.1   8.2   8.3   8.4   8.5   9.0   9.1   9.2    Statistic  


Provide an image for Tesseract to recognize.

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


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

Example Databases

Blog Entries

Created 18th August 2014, last changed 9th September 2016

OCR.Recognize   -   OCR.SetPageSegMode

Feedback: Report problem or ask question.

MBS Xojo Chart Plugins