
- 81 -
Creating 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 imager. There are several choices when creating a custom template for your
application. You can create a template for a single format, you can string together several formats, and you
can create a template for a user-defined variable. These choices are described in detail below.
Creating an OCR Template
A single template allows you to program the imager to read any combination of characters in the order you
specify. Refer to examples that follow the Template Characters table below.
Template Characters
a represents any alphanumeric character (digit or letter)
c represents a check character position
d represents any digit
e represents any available OCR character
g represents character from user-defined variable “g”
h represents character from user-defined variable “h”
l represents any uppercase letter
t marks the start of a new template
r multi row indicator
All other characters represent themselves. Spaces can be used.
To Add an OCR Template
1. Begin building the template. Scan the Enter OCR Template symbol.
2. Scan the characters for the string. Use the Template Characters chart above to determine what
characters you need to create your format. Use the OCR Programming Chart (after the Sample
Codes in Appendix D) to scan the characters for your template.
Example A: You need to read any combination of 8 digits. The template would be:
dddddddd
To create this template, you would scan the Enter OCR Template symbol, then scan the d from the
OCR Programming Chart after the Sample Codes (in Appendix D) 8 times. Scan Save OCR Template.
This would let you read any string of 8 digits, for example:
37680981
3. Character Match Sequences On the ASCII Conversion Chart (Appendix B), find the Hex value that
represents the character(s) you want to match. Use the Programming Chart (Appendix D) to scan the
numbers that represent these characters.
Example B: You need to read 3 digits, 3 specific characters (ABC), 3 digits. The template would be:
ddd414243ddd
Commenti su questo manuale