Rockwell Automation 5370-OCR2 PAK User Manual

Page 13

Advertising
background image

Chapter 2

Introduction to OCR2-PAK

2–5

Character and String Spacing

When characters are taught, you use a Character Spacing box to set the
distance between the centers of characters, both horizontally and vertically.
No spacing between characters is required, however, characters should not
overlap.

A B C D
E F G H

Character Spacing Box sets both
average distance between strings
and average distance between
characters.

The size of spaces between characters is defined by the Space Dimension
box. This is used to detect spaces between characters.

A C D
E F G H

Space Dimension box sets the
size of a space between adjacent
characters.

Character Alignment

Vertical Alignment
Characters within a string are considered part of the same string if the
vertical distance between adjacent correlation boxes is less than 1/2 the
height of the Character Spacing Box. If the distance is greater than 1/2 the
Character Spacing Box, the character is part of another string. For optimum
reliability, all of the characters in the string should be aligned vertically so
that at least 50% or more of the characters overlap.

Character

Spacing Box

Spacing is greater than 1/2 the height of
the character size box. This is seen as
2 separate strings: ABC F / DE.

Advertising