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:
11.4
11.5
12.0
12.1
12.2
12.3
12.4
12.5
13.0
13.1
Statistic
FMM
Blog
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 |
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
This function checks for a paid license.
Created 22nd January 2023, last changed 31st January 2023
