Components | All | New | MacOS | Windows | Linux | iOS | ||||
Examples | Mac & Win | Server | Client | Guides | Statistic | FMM | Blog | Deprecated | Old |
Scans the specified image for text.
Component | Version | macOS | Windows | Linux | Server | iOS SDK |
WindowsOCR | 13.1 | ❌ No | ✅ Yes | ❌ No | ✅ Yes, on Windows | ❌ No |
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 |
Returns OK or error.
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
This function checks for a license.
Created 22nd January 2023, last changed 31st January 2023