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

WindowsOCR.Result

Queries a JSON with result of the OCR.

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

Parameters

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

Result

Returns JSON or error.

Description

Queries a JSON with result of the OCR.
This includes entries like Text, TextAngle, LineCount, TextLines and Lines. Lines contains an array with objects with Text, WordCount and Words. Each word object has Text, X, Y, Width and Height.

See also OCR.GetTextAsJSON for cross platform OCR functions and Vision.RecognizeTextJSON for macOS/iOS text recognition.

Examples

Query JSON:

Set Variable [$result; Value: MBS( "WindowsOCR.Result"; $OCR ) ]

Example result:
{ "Text": "MBS Plugin for Claris FileMaker Over 6,900 functions to extend FileMaker", "TextAngle": 0, "LineCount": 2, "Lines": [ { "Text": "MBS Plugin for Claris FileMaker", "WordCount": 5, "X": 101, "Y": 54, "Width": 559, "Height": 32, "Words": [ { "Text": "MBS", "X": 101, "Y": 55, "Width": 74, "Height": 25 }, { "Text": "Plugin", "X": 190, "Y": 54, "Width": 109, "Height": 32 }, { "Text": "for", "X": 312, "Y": 54, "Width": 51, "Height": 26 }, { "Text": "Claris", "X": 375, "Y": 54, "Width": 99, "Height": 26 }, { "Text": "FileMaker", "X": 488, "Y": 54, "Width": 172, "Height": 26 } ] }, { "Text": "Over 6,900 functions to extend FileMaker", "WordCount": 6, "X": 110, "Y": 122, "Width": 541, "Height": 26, "Words": [ { "Text": "Over", "X": 110, "Y": 123, "Width": 62, "Height": 21 }, { "Text": "6,900", "X": 182, "Y": 123, "Width": 73, "Height": 25 }, { "Text": "functions", "X": 265, "Y": 122, "Width": 118, "Height": 22 }, { "Text": "to", "X": 393, "Y": 124, "Width": 25, "Height": 20 }, { "Text": "extend", "X": 429, "Y": 123, "Width": 86, "Height": 21 }, { "Text": "FileMaker", "X": 529, "Y": 123, "Width": 122, "Height": 21 } ] } ], "TextLines": "MBS Plugin for Claris FileMaker\rOver 6,900 functions to extend FileMaker\r" }

See also

Blog Entries

This function checks for a license.

Created 2nd February 2023, last changed 6th September 2023


WindowsOCR.ReleaseAll - WindowsOCR.Text