Components All New MacOS Windows Linux iOS
Examples Mac & Win Server Client Guides Statistic FMM Blog Deprecated Old

WindowsOCR.Text

Gets the recognized text.

Component Version macOS Windows Linux Server iOS SDK
WindowsOCR 13.1 ❌ No ✅ Yes ❌ No ✅ Yes, on Windows ❌ No
MBS( "WindowsOCR.Text"; OCR )   More

Parameters

Parameter Description Example
OCR The reference number of the ocr engine. $ocr

Result

Returns text or error.

Description

Gets the recognized text.

Examples

Query text after running OCR:

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

Example Databases

Blog Entries

This function checks for a license.

Created 22nd January 2023, last changed 7th May 2023


WindowsOCR.Result - WindowsOCR.TextAngle