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
| Command | Description |
| Scan | Merges 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 All | Writes every detected text item as a JSON array. |
| Has Text? | Checks whether text is detected. |
| Count Texts | Writes the number of detected text items. |
Settings
| Setting | Description |
| Min Confidence (%) | Only text with confidence at or above this value is included. 0 to 100, default 50. |
Output Variables
| Field | Type | Value |
| Detected | Digital | True when text is detected. |
| Recognized Text | Text | The merged string in reading order; lines separated by \n. |
| Confidence (%) | Number | Average confidence of the included text. Unlike other analysis types, this is written as a fraction between 0 and 1. |
| Count | Number | Number of detected text items. |
| Output (JSON Text) | Text | Array 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 }
]