Components | All | New | MacOS | Windows | Linux | iOS | ||||
Examples | Mac & Win | Server | Client | Guides | Statistic | FMM | Blog | Deprecated | Old |
WindowsOCR.Recognize
Scans the specified image for text.
Component | Version | macOS | Windows | Linux | Server | iOS SDK |
WindowsOCR | 13.1 | ❌ No | ✅ Yes | ❌ No | ✅ Yes, on Windows | ❌ No |
MBS( "WindowsOCR.Recognize"; OCR; Image ) More
Parameters
Parameter | Description | Example |
---|---|---|
OCR | The reference number of the ocr engine. | $ocr |
Image | The image container to use. Can be JPEG, PNG, BMP, PDF and other data types. |
MyTable::Image |
Result
Returns OK or error.
Description
Scans the specified image for text.We will ask Windows to load the image from the image container and then run OCR.
Seems to work fine for JPEG and PNG files, but other formats may be supported by Windows, too.
We built-in support for PDF files to recognize text from first page.
See also Vision.RecognizeText function.
Examples
Recognize some text from image:
Set Variable [ $ocr ; Value: MBS( "WindowsOCR.New"; Windows OCR::Language) ]
If [ MBS("IsError") ]
Show Custom Dialog [ "Windows OCR" ; "Failed to intiialize: " & $ocr ]
Else
Set Variable [ $r ; Value: MBS( "WindowsOCR.Recognize"; $ocr; Windows OCR::InputImage) ]
If [ MBS("IsError") ]
Show Custom Dialog [ "Windows OCR" ; "Failed to recognize: " & $r ]
Else
Set Field [ Windows OCR::Text ; MBS( "WindowsOCR.Text"; $ocr ) ]
End If
#
Set Variable [ $r ; Value: MBS( "WindowsOCR.Release"; $ocr) ]
End If
See also
- IsError
- OCR.Recognize
- Vision.RecognizeText
- WindowsOCR.New
- WindowsOCR.RecognizeFile
- WindowsOCR.Release
- WindowsOCR.Text
Example Databases
Blog Entries
FileMaker Magazin
This function checks for a license.
Created 22nd January 2023, last changed 31st January 2023