OCR Programming User’s Guide ™
Disclaimer Honeywell International Inc. (“HII”) reserves the right to make changes in specifications and other information contained in this document without prior notice, and the reader should in all cases consult HII to determine whether any such changes have been made. The information in this publication does not represent a commitment on the part of HII.
Table of Contents OCR Programming OCR Defaults ................................................................. 1 Enabling OCR Reading .................................................. 2 Working Orientation ....................................................... 2 Pre-Defined OCR Templates ......................................... 3 Passport Template ....................................................3 ISBN Template ..........................................................4 Price Field Template ........
ii
OCR Programming The following instructions are for programming your scanner for optical character recognition (OCR). We recommend that you select and/or enter OCR Templates using serial commands. Honeywell supplies a free software tool for entering programming commands serially. Go to www.honeywellaidc.com and download the EZConfigScanning software tool. The scanner will read OCR-A, OCR-B, MICR E-13B, and SEMI Font, in a 6 to 60 point OCR typeface.
Enabling OCR Reading Scan one of the following bar codes to program your scanner to read OCR in either Normal Video (black characters on a white background), Reverse Video (white characters on a black background), or Both Normal and Reverse Video. Scan the OCR Off bar code to disable OCR reading. Note: Once OCR reading is enabled, you must select a Pre-Defined Template, page -3, or create a Custom OCR Template, page -8, in order to read OCR characters.
Default = Upright. * Upright Vertical, Bottom to Top Upside Down Vertical, Top to Bottom Pre-Defined OCR Templates Passport Template The Passport Template may be used to read passports, visas and official travel documents based on the ICAO standard. This template reads both OCR-A and OCR-B fonts. Passports and Format-A visas each consist of two rows of 44 OCR-B characters.
STEVENSON<
$€£¥ Following the currency character, a numeric grouping of 3, 4, 5, or 6 digits is followed by a terminating letter 'E.' The template reads both OCR-A and OCR-B fonts. The following examples can also be read when the Price Field Template is enabled: C6712 $801E C0217 €4399E C0823 ¥31559E C0331 £706213E Scan the following bar code to enable the Price Field Template. Enable Price Field Template You can enable multiple Pre-Defined OCR templates along with the Price Field template.
that produce MICR output, so you should check for partial reads of MICR text where only part of the targeted MICR string is actually in the image presented to the scanner. The following examples can be read when the MICR E-13B Template is enabled: 123456789 01235 123456789 193412454 98765 568123977 67891788 70 Note that in the third example, there will be 2 separate output results because of the 4 space gap between the first and second fields.
Multiple Pre-Defined OCR Templates You can enable combinations of Pre-Defined OCR Templates by scanning one the following bar codes.
Custom OCR Templates You can create a custom template, or character string that defines the length and content of OCR strings that will be read with your scanner. The templates define the OCR font as well as the layout of the text in a row and column format. Each row can have up to 50 characters, with up to 18 rows in a template, with a maximum of 320 characters.
Creating a Custom OCR Template Custom OCR Templates are strings made up of various control codes, along with standard ASCII values.
Example: You need to read 8 numeric digits in either OCR-A or OCR-B: 12345678 The string would be: 1 3 5 5 5 5 5 5 5 5 0 The breakdown: Control Code Description 1 New Template Code 3 Both OCR-A and OCR-B font 5 Wildcard: Numeric - 8 times 5 5 5 5 5 5 5 0 End of Template A template may contain multiple distinct templates all within the same string. Begin each template with a New Template control code.
The breakdown: Control Code Description 1 New Template Code 1 OCR-A font 5 Wildcard: Numeric - 4 times 5 5 5 2 New Line 8 Wildcard: Any (including space) - 8 times 8 8 8 8 8 8 8 0 End of Template Repeating Characters To simplify the creation of user templates, the Fixed Character Repeat control code may be used to repeat a character a specified number of times. Any specific ASCII value, wildcard, or group can be repeated.
The breakdown: Control Code Description 1 New Template Code 3 Both OCR-A and OCR-B font 5 Wildcard: Numeric E Fixed Character Repeat - 8 times 0 8 0 End of Template Variable Character Repeat The Variable Character Repeat control code may be used to repeat a count for a character a variable number of times. Any specific ASCII value, wildcard, or group can be repeated.
The breakdown: Control Code Description 1 New Template Code 2 OCR-B font 5 Wildcard: Numeric F Variable Character Repeat - 5 min, 7 max 05 07 0 End of Template Groups In a given character position, you must specify which values a text character may take. To reduce the overall size of templates, you may define common groups of ASCII characters and then use the defined group control character rather than repeating the same sequence over and over.
The breakdown (dark box indicates group definition): Control Code Description 1 New Template Code 2 Both OCR-A and OCR-B font 3 Defined Group 001 Group ID x41 ASCII hex value for A x42 ASCII hex value for B x43 ASCII hex value for C 5 Numeric Digit 4 Define Group End 5 3 Numeric Digits 5 5 A001 Defined Group, ID 001 0 End of Template See the ASCII Conversion Chart on page 21 for character to hex conversions.
The byte immediately following the Checksum control code (D) defines the type of checksum that will be used: Checksum Table Bit Position(s) Meaning 7,6: Weight Scheme 00: Weight Scheme: 1 01: Weight Scheme: 12 10: Weight Scheme: 13 11: Weight Scheme: 137 5: Checksum Type 0: Row 1: Block 4-0: Modulo Value Checksum Modulo - 5 Row Checksums (0) perform a checksum calculation on all characters preceding them up to the first character on the same row.
its position. The other weight schemes multiply the character value by a repetitive weight value that helps in identifying characters that have had their column locations switched. The 4 weight schemes are: Weight Scheme Table Weight Scheme Multiplier Values 1 1 1 1 1 1 ... 12 1 2 1 2 1 2 ... 13 1 3 1 3 1 3 ... 137 1 3 7 1 3 7 1 3 7 ... The checksum character always starts with a weight of 1. As you move to the left of the checksum, the weight value is updated to the next member of the sequence.
The breakdown of the row checksum: D85 Description 1 Weight Scheme: 13 (see Checksum Table‚ page 15) 0 0 Checksum Type: Row (see Checksum Table‚ page 15) 0 Translation of the sum to binary code 0 1 0 0 The breakdown of the block checksum: DFF Description 1 Weight Scheme: 137 (see Checksum Table‚ page 15) 1 1 Checksum Type: Block (see Checksum Table‚ page 15) 1 Translation of the sum to binary code 1 1 1 1 The top line checksum is the 6 at the end of the line.
5 G F E (1x5) + (3x16) + (1x15) + (3x14) = 110 Again, a value is obtained that is a multiple of 10, validating this row checksum. The X at the end of the line is a mod 36 block checksum with 137 weighting. It protects all the characters in the template, including the first line.
OCR Programming Codes We recommend that you enter OCR Templates using serial commands. However, you can also enter them by scanning the Enter OCR Template bar code, followed by the OCR Programming Codes, followed by a Menu Save code. To discard your template, scan Discard OCR Template.
A Defined Group B In Line Group Start C In Line Group End D Checksum E Fixed Character Repeat F Variable Character Repeat x ASCII Hex Value Save OCR Template Discard OCR Template 20
ASCII Conversion Chart Dec Hex Char Dec Hex 0 00 NUL 32 20 1 01 SOH 33 21 2 02 STX 34 3 03 ETX 35 4 04 EOT 5 05 ENQ 6 06 7 8 Char Dec Hex Char Dec Hex Char 64 40 @ 96 60 ‘ ! 65 41 A 97 61 a 22 “ 66 42 B 98 62 b 23 # 67 43 C 99 63 c 36 24 $ 68 44 D 100 64 d 37 25 % 69 45 E 101 65 e ACK 38 26 & 70 46 F 102 66 f 07 BEL 39 27 ‘ 71 47 G 103 67 g 08 BS 40 28 ( 72 48 H 104 68 h 9 09 HT 41 29 ) 73
Dec Hex Char €€ Dec Hex Char Dec Hex 160 A0 161 A1 ¡ Char Dec Hex Char 192 C0 À 224 E0 à 193 C1 Á 225 E1 á 128 80 129 81 130 82 ‚ 162 A2 ¢ 194 C2 Â 226 E2 â 131 83 ƒ 163 A3 £ 195 C3 Ã 227 E3 ã 132 84 „ 164 A4 ¤ 196 C4 Ä 228 E4 ä 133 85 … 165 A5 ¥ 197 C5 Å 229 E5 å 134 86 † 166 A6 ¦ 198 C6 Æ 230 E6 æ 135 87 ‡ 167 A7 § 199 C7 Ç 231 E7 ç 136 88 ˆ 168 A8 ¨ 200 C8 È 232 E8 è 137 89 ‰ 169 A9 ©
Technical Assistance If you need assistance installing or troubleshooting your device, please call your distributor or the nearest technical support office: North America/Canada Telephone: (800) 782-4263 E-mail: hsmnasupport@honeywell.com Latin America Telephone: (803) 835-8000 Telephone: (800) 782-4263 E-mail: hsmlasupport@honeywell.com Brazil Telephone: +55 (11) 5185-8222 Fax: +55 (11) 5185-8225 E-mail: brsuporte@honeywell.com Mexico Telephone: 01-800-HONEYWELL (01-800-466-3993) E-mail: soporte.
Online Technical Assistance You can also access technical assistance online at www.honeywellaidc.com.
Honeywell Scanning & Mobility 9680 Old Bailes Road Fort Mill, SC 29707 www.honeywellaidc.