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.SetImage
Provide an image for Tesseract to recognize.
| Component | Version | macOS | Windows | Linux | Server | FileMaker iOS SDK |
| OCR | 2.9 | Yes | Yes | Yes | Yes | Yes |
MBS( "OCR.SetImage"; imageRef ) More
Parameters
| Parameter | Description | Example |
|---|---|---|
| imageRef | The image reference. Use functions like GMImage.NewFromContainer to get an image reference. | $img |
Result
Returns OK on success.
Description
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.
Examples
Set image reference:
MBS( "OCR.SetImage"; $img )
See also
- AVRecorder.CaptureStillPhoto
- AVRecorder.StartQRCodeDetection
- DynaPDF.ExtractPageRectText
- DynaPDF.ExtractPageText
- DynaPDF.ExtractText
- OCR.GetText
- OCR.GetTextWithCoordinates
- PDFKit.GetPDFPageImage
- PDFKit.GetPDFPageText
- PDFKit.GetPDFText
Example Databases
Blog Entries
Created 18th August 2014, last changed 9th September 2016
OCR.Recognize - OCR.SetPageSegMode
Feedback: Report problem or ask question.
Links
MBS Xojo PDF Plugins