OCR Configuration

Table F-7. Template Characters

Character

Hex

Description

 

 

 

\A or \a

0x01

Represents any letter or number (A-Z, 0-9)

 

 

 

\C or \c

0x03

Represents a check digit

 

 

 

\D or \d

0x04

Represents any digit (0-9)

 

 

 

\E or \e

0x05

Represents any font character (A-Z, 0-9)

 

 

 

\G or \g

0x06

Custom character class 1 variable

 

 

 

CTL-H

0x07

Custom character class 2 variable

 

 

 

\R or \r

0x0A

Represents start of new template

 

 

 

\L or \l

0x0C

Represents any upper case character (A-Z)

 

 

 

\N or \n

0x0D

Represents the start of a new row

 

 

 

SP to ‘7E’

0x20 to 0x7E

These characters represent themselves

 

 

 

Template examples can be found in Table F-8. Template characters are shown in hexadecimal format with spaces used as character delineators. The sample column shows an example of an OCR string that matches the template for- mat.

Table F-8. Single Template Examples
Template (HEX)Sample

Description

 

 

 

04 04 04 04 04 04 04 04

 

A string of any 8 digits.

 

 

 

04 04 04 41 42 43 04 04 04

 

A string starting with any 3 digits, followed by

 

“ABC”, ending with any 3 digits

 

 

 

 

 

 

 

A string starting with any 3 digits, followed by a

05 05 05 20 05 04 04 04

 

space, followed by any character, and ending

 

 

with any 3 digits.

 

 

 

04 04 04 04 04 04 04 04 03

 

A string of any 8 digits with check digit.

 

 

 

Product Reference Guide

F-39