User manual

V002450_25_CR1200-CR2-CR3-CR2500-CR3500_Interface_Configuration_Document_CLIENT.docx
2011-04-27 Page 51 of 65
© 2011 The Code Corporation
14870 S. Pony Express Rd., Suite 200, Bluffdale, UT 84065
(801) 495-2200
FAX (801) 495-0280
characters from the checksum to the first character of a single row in a template. A block checksum
provides a checksum from its character position all the way to the first character of the overall template.
For additional checksum protection, four different weighting schemes are supported: 1, 12, 13, and 137.
Finally, the checksum calculation is based on modulo arithmetic. The modulo factor may vary from 6 to
36.
The OCR decoder is designed to read OCR text that is within a certain sampled range in pixels. The
ideal height of an OCR character after sampling is about 20 pixels. The OCR decoder will read
characters that are up to 50 pixels in height. If OCR characters are consistently above 40 pixels in
height, down sampling the image by a factor of 2 before submitting it to OCR decoder will achieve
better results in both speed and decode rates.
12.3 OCR Output String Values
There is no 7 bit ASCII representation for the Euro, Pound, or Yen currency characters. The 8 bit values
that are returned in the result string for these characters are based on the typical code page values used in
Windows. The 8 bit codes used are as follows:
Character Value
- Euro 128
£ - Pound 163
¥ - Yen 165
12.4 OCR User Templates
User Templates are NULL terminated strings made up of various control codes along with standard
ASCII values. The control codes are assigned to ASCII values below the value of 32. The currently
defined control codes are:
Control Code Definition
Value
Argument
End of Template
0
New Template
1
Font [1-3]
New Line
2
Define Group Start
3
ID [1-255]
Define Group End
4
Wildcard: Numeric (0-9)
5
Wildcard: Alpha (A-Z)
6
Wildcard: Alphanumeric
7
Wildcard: Any (including space)
8
Defined Group
10
ID [1-255]
In Line Group Start
11
In Line Group End
12
Checksum
13
Weights, Type,
MOD