User manual

V002450_25_CR1200-CR2-CR3-CR2500-CR3500_Interface_Configuration_Document_CLIENT.docx
2011-04-27 Page 57 of 65
© 2011 The Code Corporation
14870 S. Pony Express Rd., Suite 200, Bluffdale, UT 84065
(801) 495-2200
FAX (801) 495-0280
Notice the multiple use of the New Template control code (1) to separate the two individual templates
along with the Font ID of 1 for the first OCR-A string and the 2 for the OCR-B string. In addition, the
decimal values of 65 and 66 are the ASCII codes of the upper case letters A and B, respectively, and
indicate that those character positions will always have those values.
12.5 OCR Internal Templates
The OCR decoder currently supports three internal templates: Passport, ISBN, and Price Field.
12.5.1 Passport Internal Template
This template may be used to read Passports based on the ICAO standard. There are two rows of 44
OCRB characters that make up the machine readable portion of a Passport. Each row is read separately
and only one row may be issued if there is a problem decoding one of the rows. If there are multiple
Passports in the image, The OCR decoder will attempt to read all of the Passports, but consecutive reads
are not necessarily associated with the same Passport. Note that when the Passport Internal Template is
enabled, all other templates MUST be disabled. The OCR decoder verifies all the various checksums
that are built within the lower machine readable line. The output string provided by The OCR decoder is
exactly as it is printed on the Passport page. Parsing the data to extract the various fields within it is the
responsibility of the user.
The following is an example of OCR-B text of a valid Passport:
P<UTOERIKSSON<<ANNA<MARIA<<<<<<<<<<<<<<<<<<<
L898902C<3UTO6908061F9406236ZE184226B<<<<<14
One factor complicating the reading of Passport data is the varied backgrounds that exist behind the
OCR data. For example, at the time this document was issued, the United States Passport has a variety
of colored background patterns that can interfere with OCR decoding when the passport is illuminated
with visible light. However, if the US Passport is illuminated with Infra-Red (IR) illumination, the
background patterns are reduced and contrast with the OCR text is enhanced. In the absence of IR
illumination, over exposure of the target such that the background is saturated while keeping the text
black can help.
12.5.2 ISBN Internal Template
This template is used to read the International Standard Book Number (ISBN) number in machine
readable form. It will read the ISBN in either OCR-A or OCR-B fonts. The current ISBN format is as
follows:
ISBN 0-8436-1072-7
It consists of the 4 letters ISBN followed by 13 characters that are made up of hyphen separated fields.
The hyphen placement varies depending on the numerical value of the encoded data. The last digit is a
Mod 11 checksum which can be any of the 10 numerical digits or an ‘X’. All ISBN issued results are
checked for a valid checksum. The space between the N in the ISBN string may not be present. The