Professional Documents
Culture Documents
June 2007
The software described in this document is furnished under license, and may be used or copied only in accordance with the terms of such license and with the inclusion of the copyright notice shown on this page. Neither the software, this document, nor any copies thereof may be provided to or otherwise made available to anyone other than the licensee. Title to and ownership of this software remains with Cognex Corporation or its licensor. Cognex Corporation assumes no responsibility for the use or reliability of its software on equipment that is not supplied by Cognex Corporation. Cognex Corporation makes no warranties, either express or implied, regarding the described software, its merchantability or its fitness for any particular purpose. The information in this document is subject to change without notice and should not be construed as a commitment by Cognex Corporation. Cognex Corporation is not responsible for any errors that may be present in either this document or the associated software. Copyright 2007 Cognex Corporation All Rights Reserved Printed in U.S.A. This document may not be copied in whole or in part, nor transferred to any other media or language, without the written permission of Cognex Corporation. The hardware and portions of the software described in this document may be covered by one or more of the U.S. patents listed on the Cognex web site http://www.cognex.com/patents.asp. Other U.S. and foreign patents are pending. The following are registered trademarks of Cognex Corporation: acuCoder acuFinder acuReader acuWin BGAII Checkpoint Cognex Cognex, Vision for Industry CVC-1000 CVL DisplayInspect ID Expert PasteInspect PatFind PatInspect PatMax PatQuick PixelProbe SMD4 Virtual Checksum VisionLinx VisionPro VisionX Other Cognex products, tools, or other trade names may be considered common law trademarks of Cognex Corporation. These trademarks may be marked with a "". Other product and company names mentioned herein may be the trademarks of their respective owners.
OCVMax Application Guide ........................................................................................................................ 5 OCVMax Image Guide ............................................................................................................................ 6 Good Character String Candidates .................................................................................................. 6 Poor Character String Candidates ................................................................................................... 8 Insufficient Contrast .................................................................................................................. 8 Unpredictable Surface Area ..................................................................................................... 9 Poor Image Quality ................................................................................................................... 9 Poor Font Quality ..................................................................................................................... 10 Possible Character String Candidates ........................................................................................... 11 Verifying Character Strings on a Curved Surface ................................................................... 11 Using Advanced Tuning Parameters ...................................................................................... 12 Opening Font Render Parameters .......................................................................................... 13 Creating a Font File ................................................................................................................. 14 Getting the Right Font ............................................................................................................. 16 Included Font Files ................................................................................................................................ Domino: 1LS-OCR-B-10 / 1ls_ocr_b_10bt.cst ................................................................................ Domino: 1LS-Arial / 1LS-Arial.cst ................................................................................................... Domino: 1LS-Arial-Fast / 1LS-Arial-fast.cst ................................................................................... Domino: 1LS-Arial-Kap / 1LS-Arial-Kap.cst .................................................................................... Domino: 1LS-OCR-A / 1LS-OCR-A.cst .......................................................................................... Domino: 1LS-Rom / 1LS-Rom.cst . ................................................................................................. Markem: 5 x 5 / char_5_5.ffn .......................................................................................................... Videojet: 10 x 16 / FNT10X16.XCL ................................................................................................. Markem: 5 x 7 / hi_res7.ffn ............................................................................................................. Markem: 10 x 16 / hi_res16.ffn ....................................................................................................... Xymark: Simplex / Simplex.vf ......................................................................................................... Xymark: Simplex - A / SimplexA.vf ................................................................................................. Xymark: Simplex Roman / SimplexRoman.vf ................................................................................. Videojet: 5 x 7 / US5A7V7.XCL ...................................................................................................... Videojet: 5 x 7 / us5a7v7_alt3.xcl ................................................................................................... Videojet: 7 x 9 / US7A9V7.XCL ...................................................................................................... Videojet: 10 x 16 / US1016V7.XCL ................................................................................................ 17 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35
Good Surface
The following image contains all the characteristics that make it a good candidate for analysis with an OCVMax tool:
Be aware that Microsoft Windows prevents you from directly opening font files in the \WINDOWS\Fonts directory. If you need to use a font from \WINDOWS\Fonts, first copy it to any other local directory. Next, character strings that appear in a consistent location from image to image allow the OCVMax tool to locate the strings quickly, as shown in the following series of images:
Insufficient Contrast
For example, the characters in the following image do not show enough contrast for an OCVMax tool:
10
Even after tuning, an OCVMax tool can still fail to verify a couple of characters in the string:
11
See the VisionPro .NET documentation for the OCVMax tool for a description of confusion threshold and accept thresholds.
In addition, the characters appear with a high degree of vertical shift with respect to each other. In such an image, the tuning feature an OCVMax tool supports might fail to generate a good set of search parameters because the default ranges for various degrees of freedom are set too low. By choosing the correct polarity setting and opening the range for
12
See the OCVMax tool documentation for a description of the tuning feature and how to enable advanced tuning parameters.
13
14
15
16
In addition, the OCVMax tool can use any font file that uses the same format as the font files listed in the previous table. For example, VisionPro can use any Xymark font file with a .vf extension, or any Markem font file with a .ffm extension.
17
18
19
20
21
22
23
24
Markem: 5 x 5 / char_5_5.ffn
25
Videojet: 10 x 16 / FNT10X16.XCL
26
Markem: 5 x 7 / hi_res7.ffn
27
Markem: 10 x 16 / hi_res16.ffn
28
29
30
31
Videojet: 5 x 7 / US5A7V7.XCL
32
Videojet: 5 x 7 / us5a7v7_alt3.xcl
33
Videojet: 7 x 9 / US7A9V7.XCL
34
Videojet: 10 x 16 / US1016V7.XCL
35
36