Command property:


Synchronous command.



Command action:


Perform a OCR recognition operation.


Syntax:


<command name="ocr" OCRName="[String]" Rotation="[Integer]" NewSnap="[Boolean]" DataType="[String]" />


Parameters:

Name

Mandatory

Description

Format

PatternName

Yes

OCR Pattern name, set during pattern creation

String

Rotation

No

Rotate the snap of selected degrees for reading the text

Integer

NewSnap

No (Yes for DT)

Perform a new snap or use the latest one for the reading

Boolean

DataType

No

Set the output data type format. C is char N is number N.B. Rotation is mandatory if use this parameter

String



Reply:


<command valid="true" OCR="[String]" />


OCR fail:


If the OCR recognition fails, the system reply with:


<command valid="false" error="OCR failed" />



Command purpose:


This command is used during standard issuing, to read a string engraved or pre-printed in a card.


Example:


<command name="ocr" OCRName="OCR" Rotation="0" DataType="CNNNNNNNN"/>


In this example the reply will be: 1 char and 8 numbers.

If the string red have different length, the reply will be an error.


Note:


Check the homographic settings in the config file.