Get Started
OCR (Text Recognition)
On this page
  1. Commands
  2. Settings
  3. Output Variables
  4. JSON Output

OCR (Text Recognition)

Detects and reads text in real time from the camera video. The recognition language is chosen in the analyzer setting OCR Language: English (default), Korean, Japanese, Chinese (Simplified), German, French, Spanish, Portuguese, Hindi, Arabic, or Russian. One analyzer recognizes one language.

  • Temporal stabilization suppresses results that flicker from frame to frame.
  • Detected text is sorted into reading order (top to bottom, left to right).

Commands

CommandDescription
ScanMerges the text items at or above Min Confidence in reading order and writes the result; multiple lines are separated by the newline character \n. When a Recognized Text variable is bound, results from several frames are compared and the variable is updated only when a stable text is established or changes, and it is cleared when the text has been absent for a while.
Scan AllWrites every detected text item as a JSON array.
Has Text?Checks whether text is detected.
Count TextsWrites the number of detected text items.

Settings

SettingDescription
Min Confidence (%)Only text with confidence at or above this value is included. 0 to 100, default 50.

Output Variables

FieldTypeValue
DetectedDigitalTrue when text is detected.
Recognized TextTextThe merged string in reading order; lines separated by \n.
Confidence (%)NumberAverage confidence of the included text. Unlike other analysis types, this is written as a fraction between 0 and 1.
CountNumberNumber of detected text items.
Output (JSON Text)TextArray of every detected text item.

JSON Output

An array with, per item, text, confidence (a fraction 0 to 1), the center x and y, width, and height.

[
  { "text": "Hello", "confidence": 0.95, "x": 100, "y": 50, "width": 80, "height": 25 },
  { "text": "World", "confidence": 0.88, "x": 190, "y": 50, "width": 70, "height": 25 }
]