SICK CVS4 OCR Vision Sensor Software Version 1.0 Operating instructions

Type
Operating instructions
CVS4
OCR Vision Sensor
Software Version 1.0
OPERATING INSTRUCTIONS
Operating Instruction
CVS4
2 ©SICK AG • 2011-04 • Advanced Industrial Sensors • www.sick.com
All rights reserved • Subject to change without notice
Contents
1 Safety ........................................................................... 3
2 Product Specication ................................................. 3
2.1 Function ....................................................................................3
2.2 Special Features .......................................................................3
3 Installation & Quick Start .......................................... 4
3.1 Mounting ................................................................................... 4
3.2 Wiring ........................................................................................ 4
3.3 Basic Setup ............................................................................... 4
4 Keypad and Display ..................................................... 5
4.1 Keypad ......................................................................................5
4.2 Views .........................................................................................5
4.3 Display .......................................................................................6
4.4 Main Menu ................................................................................ 7
4.5 Setting Parameters .................................................................7
5 Set-up and Operation .................................................. 8
5.1 Overview....................................................................................8
5.2 Auto-teach (
AUTO TCH) ...............................................................10
5.3 Semi-auto Teach (
SEMIAUTO) ....................................................12
5.4 Date Teach (
DATE TCH) ..............................................................13
5.5 String Editor (
STRING) ...............................................................14
5.6 Parameters Set by Auto-, Semi- and Date Teach .................14
6 Adjusting Parameters Manually .............................. 15
6.1 Image Capturing .....................................................................15
6.2 Transforming Images .............................................................16
6.3 Recognizing Text .....................................................................17
6.4 Interpreting and Judging Text ................................................18
6.5 Using I/O .................................................................................29
6.6 Other Functions ......................................................................32
6.7 Connect to PC .........................................................................34
7. Maintenance ............................................................ 37
Tables
A, B .................................................................................................19
C .....................................................................................................20
D, E, F.............................................................................................38
G, H ................................................................................................39
I ......................................................................................................40
K, L .................................................................................................41
M ....................................................................................................42
Operating Instruction Chapter 1
CVS4
©SICK AG • 2011-04 • Advanced Industrial Sensors • www.sick.com • 3
All rights reserved • Subject to change without notice
1 Safety
b Read this operating instructions before using the device.
b Connection, assembly, and settings must be performed by
competent technicians.
b Protect the device from moisture and dirt during operation.
b This is not a safety component, according to
EU machine guidelines.
b Do not use the device in areas with risk for explosion.
2 Product Specication
The CVS4 is an optical electronic sensor with integrated light, used for
verifying character strings of different formats, such as dates, times
or batch codes.
2.1 Function
The CVS4 learns the character strings to verify by analyzing a captured
image of the object. The character strings can be any of 12 pre-
dened date and time formats or one freely dened text format.
The
CVS4 can automatically detect and learn dates, while some
manual settings must be made for other text formats.
When running, the
CVS4 reads texts on objects and judges them OK
or not
OK according to what is specied as valid strings, or ranges
of dates and times. Valid dates and times are always relative to the
built-in calendar.
2.2 Special Features
b Memory capabilities of 16 teach congurations.
b Simultaneous veries of up to 4 different formats of character
strings on an object.
b Read out recognized characters on serial interface, to be logged in
an Excel le.
b Recognizes 12 predened date and time formats.
b Recognizes arbitrary character strings.
b Batch number checking.
b Up- and download parameter settings to a
PC.
b Set parameters and dene custom characters with a
PC.
b Synchronize the
CVS4 with external trigger and encoder.
Chapter 3 Operating Instruction
CVS4
4 ©SICK AG • 2011-04 • Advanced Industrial Sensors • www.sick.com
All rights reserved • Subject to change without notice
3 Installation & Quick Start
3.1 Mounting
b Mount the CVS4 at an angle of -45° – +45° degrees from the object
to avoid disturbing reections from the internal lighting (see
E
).
b The distance between any object and the
CVS4 should be as short
as possible, but within the scanning distance (see
M
“Technical
Data”).
b The longer the distance between the object and
CVS4, the more
ambient light will inuence the sensor. If necessary, use additional
lighting to get rid of ambient light inuence.
b Avoid direct sun light or ambient light on the object.
0°– +45°
-45°– 0°
Object
3.2 Wiring
b Connect the wires according to
B
“Electrical Connections”.
3.3 Basic Setup
For a detailed description of the parameters, see the parameter list
C
in the center of this manual.
b Place an object with the text to verify in front of the mounted
CVS4. If
necessary, press
VIEW until you see the live image on the display.
b Select
SETUP FLOW in the main menu and press SET.
b Select the bank in which to save the text and parameter values by
setting the
BANK parameter.
b If necessary, change the direction that the text should be read by
setting the
ORIENTTN parameter.
b Set the maximum exposure time by setting the
SHTRLIMT parameter.
b Specify the angle from the object at which the
CVS4 is mounted, by
setting the
TRAPEZID parameter (see
E
).
b Specify the order of the year, month and day in dates by setting the
DATEFRMT parameter.
b Teach the text to be recognized by selecting
AUTO TCH and pressing
SET.
The
CVS4 will now automatically make all necessary settings, and if
the text to verify consists of dates the device should be ready for use.
If the
CVS4 did not successfully complete the auto-teach, please refer
to chapter 5 “Set-up and Operation” for more information.
Operating Instruction Chapter 4
CVS4
©SICK AG • 2011-04 • Advanced Industrial Sensors • www.sick.com • 5
All rights reserved • Subject to change without notice
4 Keypad and Display
4.1 Keypad
F
1
UP
Scroll up in menu, or
increase parameter
value when editing.
2
DOWN
Scroll down in
menu, or decrease
parameter value
when editing.
3
SET
Show submenu, edit
parameter value,
or save changed
parameter value.
4
TEACH/EXIT
Go up one menu,
cancel editing
parameters (without
saving), or go back
from monitor mode
to normal views.
If pressed > 3
seconds, teach the
text currently in view
using
AUTO TCH.
5
VIEW
Switch what is displayed on the LCD display. (see 4.2
“Views”).
If pressed > 3 seconds, switch to monitor mode, where
you can monitor how the characters are cut out by the
device. Press
TEACH/EXIT to go back to normal view.
4.2 Views
G
Press VIEW to select what is displayed in the image area on the LCD
display:
a
Live image.
b
Thresholded image. Detected characters and other shapes are
displayed in white.
c
Image with the characters cut out. Recognized characters are
enclosed in black rectangles, and the color of the background
depends on the judgement result:
GREEN if the object is accepted,
RED if the object is faulty.
d
Combined view of live image and image with characters cut out.
UP
SET
VIEW
EXIT
DOWN
5
4
1
2
3
Chapter 4 Operating Instruction
CVS4
6 ©SICK AG • 2011-04 • Advanced Industrial Sensors • www.sick.com
All rights reserved • Subject to change without notice
4.3 Display
H
1
Image area (see 4.2 “Views”)
2
Main menu (see 4.4 “Main Menu”)
3
Monitor mode. Each blue rectangle contains the image of what
the CVS4 considers one character, and that is compared to the
character library.
4
Currently displayed format:
1D First date format 2T Second time format
2D Second date format CH String
1T First time format
Switch between the text formats by pressing
UP/DOWN in monitor
mode.
5
Current bank number.
6
Result of judgement: OK if the object is accepted,
NG if the object is faulty.
7
Judged text. What is shown here depends on which format is
displayed:
a
Date and time (1D, 2D, 1T or 2T):
TOP LEFT Response time (blue).
BOTTOM LEFT Interpreted date or time, or date or time
format if no text is recognized (green).
TOP RIGHT Upper limit for date or time (pink).
BOTTOM RIGHT Lower limit for date or time (blue)
b
Character string (CH):
TOP Number of characters recognized followed
by the text. The color of each characters
indicates how well it corresponds to the
characters in the reference library in the
CVS4.
BOTTOM RIGHT Indicates whether to recognize numbers only,
characters only or both.
8
Horizontal ruler. Each tick mark corresponds to approximately
50 pixels in the image. Use for example when setting character
width.
Operating Instruction Chapter 4
CVS4
©SICK AG • 2011-04 • Advanced Industrial Sensors • www.sick.com • 7
All rights reserved • Subject to change without notice
4.4 Main Menu
A
SETUP FLOW Submenu with parameters and functions used when
teaching the texts to verify.
ADJUSTMENT Submenu with parameters used for adjusting how the
object is judged.
OTHERS Submenu with parameters used for example for setting
up input and output signals.
VIEW NG LOG Shows the images of the last objects where the judge-
ment changed from
OK to not OK (NG). Up to 30 images
can be stored in the log.
CALENDAR Submenu for setting the device’s internal calendar and
clock.
b Select a submenu (for example
OTHERS) by pressing UP or DOWN.
b Show a submenu by pressing
SET. This will show a list of param-
eters and functions.
The colors used in the submenus have different meanings:
YELLOW Parameter value affects all banks.
VIOLET Parameter value only affects the current bank.
ORANGE Function.
BLUE Parameter is locked and cannot be changed.
RED A parameter value displayed in red is currently being
changed.
4.5 Setting Parameters
b Press UP and DOWN to select the parameter in the submenu.
b Press
SET.
– The device displays
EDIT PARAM?
b Press
UP to edit the parameter.
– The parameter value is now displayed in red.
b Change the value by pressing
UP or DOWN.
b Press
SET to save the new value.
– The device displays
WRITE DATA?
b Press UP to save the new value.
– The parameter value is now displayed in yellow or violet again.
By pressing
SET for > 3 seconds, the parameter value is edited or
saved without having to conrm by pressing
UP.
To cancel editing a parameter value and revert to the previously
saved value, press
EXIT.
Chapter 5 Operating Instruction
CVS4
8 ©SICK AG • 2011-04 • Advanced Industrial Sensors • www.sick.com
All rights reserved • Subject to change without notice
5 Set-up and Operation
5.1 Overview
The CVS4 performs the following steps when verifying the text on an
object:
b Capture an image and adjust it, to get an image of good quality for
character recognition.
b Transform the image – for example rotate or slant it – to be able to
recognize characters in it.
b Recognize the characters in the image, by using a dictionary of
character images and knowledge of the characteristics of the text.
b Interpret the recognized text, and judge whether the text is
OK or not.
Capture
Transform
Recognize Interpret & Judge
Today - 3 days
≤ March 31, 2006
≤ Today + 1 day ?
The text to be veried may consist of up to four different parts, where
each part is either a:
b date
b time
b character string
The
CVS4 can recognize 12 pre-dened formats for dates and times
(such as 4 digit year and English name for month), and one format
for character string. Which text formats to expect on the objects are
set by the parameters
FORMAT 1FORMAT 4 (see the parameter list).
Operating Instruction Chapter 5
CVS4
©SICK AG • 2011-04 • Advanced Industrial Sensors • www.sick.com • 9
All rights reserved • Subject to change without notice
2006-03-31 18:13
2007-MAY
156354A8
Date 1
(
FORMAT 1)
Time 1
(
FORMAT 2)
Date 2
(
FORMAT 3)
String
(
FORMAT 4)
The dates and times are interpreted and compared to the device’s
internal calendar. Accepted dates and times are dened as ranges,
which are relative to the current date or time in the internal calendar.
The accepted character strings are dened when setting up the
device, but can be incremented by using an external signal, useful for
example when verifying batch codes.
The
CVS4 can verify up to four different text formats simultaneously,
but not more than 2 dates, 2 times at the same time. On the
LCD dis-
play, the judged text is shown for one text format at a time – switch
between the formats by pressing
UP and DOWN when in monitor mode
(press
VIEW > 3 seconds).
Currently displayed
format (1D = Date 1)
Upper/Lower limit
for date 1
Date that is read and
judged
A number of parameters in the CVS4 affect how the images are
captured, transformed, recognized and interpreted/judged. These
parameters need to be set before using the device.
All settings related to the texts to be recognized are saved in a
bank. Settings for up to 16 different teach congurations can be
saved, using banks 0-15.
Chapter 5 Operating Instruction
CVS4
10 ©SICK AG • 2011-04 • Advanced Industrial Sensors • www.sick.com
All rights reserved • Subject to change without notice
The CVS4 is usually set up by going through the following setup ow.
All parameters and functions used in the ow are found in the
SETUP
FLOW
menu. The number of steps required depends on the objects
and environment, but also on the text formats to recognize:
b Set a number of basic parameters.
b Use
AUTO TCH (see chapter 5.2).
– If the text consists of dates and the result is
OK, then the CVS4
should be ready for use.
b Set which text formats to recognize in the text if not dates.
If necessary, adjust how images are captured to improve the image
quality. If the text contains dates or times, you can also make some
adjustments for how to interpret the text.
b Use
SEMIAUTO (see chapter 5.3).
– If the result is
OK, then the CVS4 should be ready for use.
b Adjust character characteristics and/or setting for transformation,
to make the
CVS4 recognize the characters properly.
b Use
DATE TCH (see chapter 5.4).
– If the result is
OK, then the CVS4 should be ready for use.
b Change the string to recognize (see chapter 5.5), or adjust the date
or time ranges.
If you plan to use the inputs and outputs of the
CVS4, you will need to
set up the
CVS4 to use them manually. See chapter 6.5 “Using I/O”.
5.2 Auto-teach (AUTO TCH)
The AUTO TCH function is used for making the CVS4 ready for use by
analyzing an object with the text to recognize.
AUTO TCH can automati-
cally recognize the following date formats:
Example:
b 4-digit year, month and day 2006-03-31
b 4-digit year and month 2006-03
b 2-digit year, month and day 06-03-31
b 4-digit year, day and name of month
in English
2006MAR31
b 4-digit year and name of month in
English
2006MAR
b 2-digit year, day and name of month
in English
06MAR31
b 2-digit year and name of month in
English
06MAR
Note that the order of the year, month and day in the dates are set by
the
DATEFRMT parameter, and that separators are not required.
Operating Instruction Chapter 5
CVS4
©SICK AG • 2011-04 • Advanced Industrial Sensors • www.sick.com • 11
All rights reserved • Subject to change without notice
You can use the AUTO TCH even if the text contains parts that are not
dates, for automatically setting how images are captured. After using
AUTO TCH you would have to manually set the formats to recognize and
then use the
SEMIAUTO function.
Before using
AUTO TCH, there are a few parameters that need to be set
manually. These parameters are found in the
SETUP FLOW menu:
BANK Select in which bank to save the text formats and
parameter settings.
ORIENTTN Specify in which direction to read the text.
SHTRLIMT Specify the longest allowed exposure time, to avoid
blurred images if the objects are moving.
TRAPEZID Specify the angle from the text to read at which the CVS4
is mounted (see
E
).
DATEFRMT Specify in which order the year, month and day appears
in date strings.
You should also check that the internal calendar in the
CVS4 is cor-
rectly set. The clock is set by selecting
CALENDAR in the main menu.
When executing
AUTO TCH, the CVS4 will capture images of the object
and analyze them in order to nd suitable settings. When done, one
of the following results will be displayed:
b
COMPLETED Detected characters and set the necessary
parameters. If the text consists of dates, the
device should be ready for use.
b
STRING NOT FOUND Unable to detect characters on the object.
b
FORMAT NOT FOUND Detected characters but did not recognize text
as date.
b
DATE OVERFLOW Recognized date but the date is more than
5 000 days in the future, according to the
internal calendar.
b
DATE UNDERFLOW Recognized date but the date is more than
999 days in the past, according to the internal
calendar
The
AUTO TCH function can also be executed by pressing the TEACH
button > 3 seconds.
After using
AUTO TCH, you should verify that the CVS4 recognized
the right formats by checking the parameters
FORMAT 1FORMAT 4. If
not (which would be the case if the text contains parts that are not
dates), or if the auto teach function did not complete the set-up,
you should continue with the
SEMIAUTO function. If the result is DATE
OVERFLOW
or DATE UNDERFLOW, also check the DATEFRMT parameter and
the internal calendar.
Chapter 5 Operating Instruction
CVS4
12 ©SICK AG • 2011-04 • Advanced Industrial Sensors • www.sick.com
All rights reserved • Subject to change without notice
5.3 Semi-auto Teach (SEMIAUTO)
The SEMIAUTO function is useful if the AUTO TCH function was unable to
recognize text in the image, for example if the text to verify consists of
parts other than dates automatically recognized by the
CVS4.
Before using
SEMIAUTO, there are a few parameters that may need to
be adjusted. These parameters are usually set by the
AUTO TCH func-
tion, but their values may have to be adjusted to properly recognize
the text:
FORMAT1–4 Manually set which text formats that the CVS4 should
recognize. If set to
- - -, the CVS4 will try to recognize the
text as dates.
LIGHTPWR Set the brightness of the built-in lighting, to get a better
image.
SHUTTER Set the exposure time, to get a better or sharper image.
LUSTER Set how much the image should be compensated for
reections.
THRESHLD Set the threshold level that is used for separating the
characters from the background in the image.
DOTCHECK Specify whether or not dates should include separators,
for example dots (“.”) or hyphens (“-”).
ZEROCHCK Species whether or not the numbers for year, month,
day, hour and minute in dates and times should have
trailing zeros (06-03-31 or 6-3-31).
If
AUTO TCH has not been used, you must also set the parameters
listed in chapter 5.2 “Auto-teach”.
The
SEMIAUTO function gives the same types of results as AUTO TCH.
After using
SEMIAUTO, you should check the date ranges, time ranges,
and the string to judge as
OK, by checking the parameters 1/2-DAYOFS,
1/2-DA, 1/2-TIMOFS, 1/2-TIME±, and the STRING editor respectively.
If
SEMIAUTO could not complete the set-up, you should continue with
the
DATE TCH function, and especially check the parameters BOLD
and
CHARWDTH. Use the character cut-out view (
G
c
) to see what the
device recognizes as being characters in the image, and the monitor
mode (
H
3
) to see which characters the device tries to recognize.
Operating Instruction Chapter 5
CVS4
©SICK AG • 2011-04 • Advanced Industrial Sensors • www.sick.com • 13
All rights reserved • Subject to change without notice
5.4 Date Teach (DATE TCH)
The DATE TCH function is used for setting the dates, times or strings
that should be judged as
OK. This function can be useful if the
SEMIAUTO was unable to recognize the text.
Before using
DATE TCH, the CVS4 must properly cut out and recognize
the characters. This can be achieved by manually adjusting the
following parameters. Use the monitor mode to see exactly how the
characters are cut out.
BOLD Set compensation for character line thickness. Increase
if the characters appears too thin in the image, decrease
if too thick.
ROTATE Set the maximum angle for rotating the image. Increase
if the characters cannot be cut out because the image is
still rotated.
SLANTOFS Set the normal slant angle of characters.
SLANT Set the maximum angle for the variation in character
slanting. Adjust
SLANT and SLANTOFS to better straighten
up slanted text.
CHARWDTH Set the normal width of a character. Increase if charac-
ters are divided into two, decrease if several characters
are considered to be one.
CHARHGHT Set the minimum height of a character. Characters lower
than this setting will be ignored.
CHARNARW Set the minimum width of a character. Characters
narrower than this setting will be ignored.
Depending on which text formats the device should recognize (set by
FORMAT1–4), the DATE TCH function will set the following parameters:
b Dates Sets the
1-DAYOFS and 2-DAYOFS parameters to the number
of days between the current date and the read date. The
parameters
1-DA and 2-DA are set only if the format is
a date without days and the parameter’s previous value
was 0.
b Times Sets the
1-TIMOFS and 2-TIMOFS parameters to the number
of minutes between the current time and the read time.
The parameters
1-TIME± and 2-TIME± are not affected.
b Strings Sets the
STRING in the string editor to the read characters.
Chapter 5 Operating Instruction
CVS4
14 ©SICK AG • 2011-04 • Advanced Industrial Sensors • www.sick.com
All rights reserved • Subject to change without notice
5.5 String Editor (STRING)
When recognizing strings (one or more FORMAT parameter is set to
STRG), you can see which string the CVS4 will recognize by selecting
STRING on the SETUP FLOW menu and pressing SET. Here you can also
manually change the string.
b Questions marks (“?”) are used as “wild cards” in the strings – that
is, any character in that position in the string is accepted.
b Underscores (“_”) are used for separating several string formats.
For example:
FORMAT 1: STRG
FORMAT 2: STRG
STRING
MAY???_156354A8
will accept the following texts:
MAY-01
156354A8
MAYHEM 156354A8
Note that if using the String + input for incrementing the string to
accept, it is the last character of the last string format that will be
incremented.
5.6 Parameters Set by Auto-, Semi- and Date Teach
When using any of the auto-, semi- and date teach functions, any
previously set parameter values will be overwritten as shown in the
following table:
Parameter Auto-teach Semi-auto Date Teach
1-DAYOFS, 2-DAYOFS x x x
1-DAY±, 2-DA x x x
1-TIMOFS, 2TIMOFS x x x
BOLD x x
CHARHGHT x x
CHARNARW x x
CHARWDTH x x
DOTCHECK x
FORMAT 1–4 x Only if set to - - -
LIGHTPWR
x
LUSTER x
ROTATE x x
SHUTTER x
SLANT x x
SLANTOFS x x
STRING Only if any FORMAT is STRG
SURFACE
x
THRESHLD x
Operating Instruction Chapter 6
CVS4
©SICK AG • 2011-04 • Advanced Industrial Sensors • www.sick.com • 15
All rights reserved • Subject to change without notice
6 Adjusting Parameters Manually
6.1 Image Capturing
b To manually set the exposure time, set the SHUTTER parameter in the
SETUP FLOW menu.
A longer exposure time will result in brighter images, but may
become blurred if the object is moving. A recommended exposure
time can be calculated with the following formula:
10 x required line width (mm)
Object speed (m/s)
SHUTTER
=
When using the
AUTO-TEACH function for setting up the CVS4, the
SHTRLIMT parameter is used for specifying the longest allowed
exposure time, which can be calculated with the same formula as
for calculating shutter time.
b To manually set the contrast between characters and background,
set the
THRESHLD parameter in the SETUP FLOW menu. A high value of
the threshold level will reduce the impact of noise in the image, but
may make the characters thin and difcult to recognize.
Threshold too low.
Background is part
of the text.
Threshold too high.
Characters are thin
and unstable.
Threshold OK.
b To reduce the impact of reections or shadings in the images,
adjust the values of the following parameters:
Reections
LUSTER SETUP FLOW
Shades SHADING ADJUSTMENT
Setting a parameter to 0 means no compensation.
Chapter 6 Operating Instruction
CVS4
16 ©SICK AG • 2011-04 • Advanced Industrial Sensors • www.sick.com
All rights reserved • Subject to change without notice
b The WIDE parameter can be used for increasing the height of the
eld-of-view of the device, or to reduce the response time:
ON Doubles the height of the eld-of-view, but uses the same
number of pixels, resulting in half the resolution in height.
FAST Reduces the response time by capturing images of the
normal eld-of-view, but using half the amount of pixels.
The resulting images has half the height resolution, but
are captured in approximately half the time.
FST2 Same as FAST, but captures and judges two images with
approximately 13.3 milliseconds between them. If any of
these two images are judged
OK, the object is considered
OK as well.
Normal (OFF) WIDE FAST / FST2
6.2 Transforming Images
The captured images may need to be transformed – to straighten up
the text making it easier to recognize – due to the angle at which it is
mounted, the objects may be rotated and the text may be slanted.
TRAPEZID
SLANTOFS
SLANT
b Set the angle at which the CVS4 is mounted from
the printed surface by setting the
TRAPEZID parameter in the SETUP
FLOW
menu.
The
CVS4 uses this setting to remove the perspective on the text.
b To set a limit for how much the
CVS4 can rotate an image, set the
ROTATE parameter in the SETUP FLOW menu to the maximum allowed
rotation.
b For slanted text, set the angle that the text is normally slanted by
the
SLANTOFS parameter in the SETUP FLOW menu.
Set the interval of the text slant by setting the
SLANT parameter
in the
SETUP FLOW menu to the maximum angle that the text slant
Operating Instruction Chapter 6
CVS4
©SICK AG • 2011-04 • Advanced Industrial Sensors • www.sick.com • 17
All rights reserved • Subject to change without notice
differs from the angle set by SLANTOFS.
b If the image is judged as
NG, the CVS4 can slant the image some
more and then retry recognizing text. The
RE-SLANT parameter in the
ADJUSTMENT menu species whether or not to re-slant the image,
and the maximum angle to slant the text when re-slanting.
b To rotate the image 180° or to mirror the image, set the
ORIENTTN
parameter in the
SETUP FLOW menu.
b To mask out parts of the images – for example in which text should
not be recognized, or that contains objects that should not be
confused for text – set the parameters
MSK LEFT, MSK RIGHT, MSK UP
and
MSK DOWN in the ADJUSTMENT menu.
Note that characters that are inside the masked-out area is not
recognized at all, since the mask reduces the eld of view of the
device.
A mask can also be used when teaching to easier detect relevant
text. After teaching, remove the mask to make the
CVS4 search for
the text in the entire eld of view.
6.3 Recognizing Text
In order to properly recognize the characters in the image, certain
text characteristics must be specied in the
CVS4, such as line thick-
ness and character metric.
CHARHGHT
CHARWDTH CHARNARW CHRSPACE
b To adjust for the thickness of the character lines, set the BOLD
parameter in the
SETUP FLOW menu. A high value is recommended
for thin or dot characters, and a low value for bold text.
b To set the typical width of a character, set the
CHARWDTH parameter
in the
SETUP FLOW menu to the width in pixels. Characters that are
more than twice this wide will be divided into two. You can see
exactly how the characters are cut out in monitor mode.
b To set the minimum width of the characters, set the
CHARNARW
parameter in the
SETUP FLOW menu to the width in pixels. Characters
with a width smaller than this setting will not be recognized as
individual characters. This setting can be useful for avoiding noise
to be detected as characters, but a too high value can make it
difcult to recognize small characters such as “.” and “1”.
b To set the minimum height of the characters, set the
CHARHGHT
parameter in the
SETUP FLOW menu to the height in pixels. Charac-
ters smaller than this height will not be recognized.
Chapter 6 Operating Instruction
CVS4
18 ©SICK AG • 2011-04 • Advanced Industrial Sensors • www.sick.com
All rights reserved • Subject to change without notice
b If the text consists of several text formats on the same row, the
CHRSPACE parameter in the ADJUSTMENT menu species the smallest
distance between the text formats as a multiple of the value of the
CHARWDTH parameter.
b If the text is brighter than the surface (white text on black background),
set the
SURFACE parameter in the ADJUSTMENT menu to WHIT.
b If you are using an extended dictionary containing custom
characters to be recognized, the
EXPDCTNR parameter in the
ADJUSTMENT menu species the number of extra characters to use
for recognition. The extended dictionary can be built up from a
PC
and loaded into the
CVS4.
b To adjust the required likeness of a character in the image
compared with the reference characters, set the
CHARMRGN
parameter in the
ADJUSTMENT menu. The likeness is a value between
0–255, where 0 means a perfect match. When running, characters
whose likeness value is above
CHARMRGN are displayed as “?” in the
recognized string.
6.4 Interpreting and Judging Text
You can see how the CVS4 recognizes and judges the text currently
in view, by looking at the judgement results on the display (see
H
).
Switch between which format is being shown by pressing
UP and
DOWN in monitor mode.
b To specify in which order the year, month and date appears in the
dates, set the
DATEFRMT parameter in the SETUP FLOW menu. If this
parameter is not properly set, the
CVS4 may give unpredictable
judgement results when judging dates.
b To specify the text formats that the
CVS4 should recognize, set the
parameters
FORMAT1 to FORMAT4 in the SETUP FLOW menu.
b To set an range of dates that should be judged
OK, set the param-
eters
1-DAYOFS, 1-DA, 2-DAYOFS, and 2-DA in the ADJUSTMENT menu.
1-DAYOFS and 2-DAYOFS sets the target date as a number of days from
the current calendar date, and
1-DA and 2-DA species the range
around the target date.
The parameters
1-DAYOFS and 1-DA corresponds to the rst date
format that is set with the
FORMAT parameters, and 2-DAYOFS and
2-DA corresponds to the second date format.
b Similarly, to set a time interval that should be judged
OK, set the
parameters
1-TIMOFS, 1-TIME±, 2-TIMOFS, and 2-TIME± in the ADJUSTMENT
menu.
SETUP FLOW
INITIAL
BANK
ORIENTTN
SHTRLIMT
TRAPEZID
DATEFRMT
AUTO TCH
FORMAT1
FORMAT2
FORMAT3
FORMAT4
LIGHTPWR
SHUTTER
LUSTER
THRESHLD
DOTCHECK
ZEROCHCK
SEMIAUTO
STRING
BOLD
ROTATE
SLANTOFS
SLANT
CHARWDTH
CHARHGHT
CHARNARW
DATE TCH
ADJUSTMENT 1-DAYOFS
2-DAYOFS
1-DA
2-DA
1-TIMOFS
2-TIMOFS
1-TIME±
2-TIME±
CHARMRGN
CHRSPACE
EXPDCTNR
MSK LEFT
MSKRIGHT
MSK UP
MSK DOWN
MONTHCHR
RE-SLANT
SHADING
SURFACE
OTHERS
BANKCOPY
COMMUNIC
EXTLGTPW
LCD VIEW
LIGHT
OFFDELAY
ON DELAY
ONESHOT
OUTSYNDL
STRING +
SYNCDELY
SYNCHRO
SYNCPULS
WIDE
VIEW NG LOG
CALENDAR
brn
blu
ora/
blk
pnk
vio
blk
yel/
blk
red/
blk
L+
Bank switch 0/
Encoder input
M
Bank switch 1/
String +
Bank switch 2/
External teach
Bank switch 3/
External synchronization
Q
Auxiliary Q
B
YELLOW Affects all banks
VIOLET Affects current bank
ORANGE Function
BLUE Locked parameter
RED Value being edited
A
1 2
1
Parameter
(Aects bank)
Values Default Description
1-DAYOFS
2-DAYOFS
(current bank)
-999 –
5000
0 Sets the date offset – that is, the number of days between
the current date (as set by
CALENDAR) and the target date.
1-DAYOFS corresponds to the rst FORMAT parameter that has
a date format, and
2-DAYOFS corresponds to the second.
Use together with the
1-DA and 2-DA to set a range of
dates that are
OK.
1-DA
2-DA
(current bank)
0 – 1000 0 Sets the number of days before and after the target date (set
by
1-DAYOFS and 2-DAYOFS) that are considered OK.
1-TIMOFS
2-TIMOFS
(current bank)
0 – 1439 0 Sets the time offset – that is, the number of minutes after
the current time that is the target time.
Use together with the
1-TIME± and 2-TIME± to set a time
interval that is
OK.
To set the target time to before the current time, set
TIMOFS to 1440 - (minutes before current time).
1-TIME±
2-TIME±
(current bank)
0 – 720 30 Sets the number of minutes before and after the target time
(set by
1-TIMOFS and 2-TIMOFS) that are considered OK.
BANK 0 – 15,
TCH,
BKIN
BKIN
Sets which bank that should be used for recognition or for
saving new pattern.
0 – 15 The number of the bank to use.
TCH Bank is selected externally. The Bank switch 2
input (pink) is used for activating external teaching,
therefore the banks 4 – 7 and 12 – 15 cannot be
selected. (See
K )
BKIN Bank is selected externally. External teaching is
disabled, therefore the Bank switch 2 input can be
used for selecting banks. (See
K )
BANKCOPY 0 – 15 0 Used for copying the settings in the current bank to another
bank.
To copy the current bank, set this parameter to the bank
number to which to copy and press
SET.
BOLD
(current bank)
-2 – +8 0 Use to adjust the thickness of the lines in the characters, in
order to improve recognition. Increase the value for thin or
dot characters, decrease for bold characters.
CHARHGHT
(current bank)
0 – 200 50 Sets the minimum height of a character in pixels. Characters
with a height equal to or lower than this value will be ignored.
C
  • Page 1 1
  • Page 2 2
  • Page 3 3
  • Page 4 4
  • Page 5 5
  • Page 6 6
  • Page 7 7
  • Page 8 8
  • Page 9 9
  • Page 10 10
  • Page 11 11
  • Page 12 12
  • Page 13 13
  • Page 14 14
  • Page 15 15
  • Page 16 16
  • Page 17 17
  • Page 18 18
  • Page 19 19
  • Page 20 20
  • Page 21 21
  • Page 22 22
  • Page 23 23
  • Page 24 24
  • Page 25 25
  • Page 26 26
  • Page 27 27
  • Page 28 28
  • Page 29 29
  • Page 30 30
  • Page 31 31
  • Page 32 32
  • Page 33 33
  • Page 34 34
  • Page 35 35
  • Page 36 36
  • Page 37 37
  • Page 38 38
  • Page 39 39
  • Page 40 40
  • Page 41 41
  • Page 42 42
  • Page 43 43
  • Page 44 44

SICK CVS4 OCR Vision Sensor Software Version 1.0 Operating instructions

Type
Operating instructions

Ask a question and I''ll find the answer in the document

Finding information in a document is now easier with AI