TECHNICAL NOTES. of FileNET Corporation

TECHNICAL NOTES FileNET Panagon Capture Bar Code Usage and Tips August 2002 FileNET Cor poration FileNET, ValueNET, Visual WorkFlo, and OSAR are r...
Author: Lucas Freeman
1 downloads 2 Views 156KB Size
TECHNICAL NOTES

FileNET

Panagon Capture Bar Code Usage and Tips August 2002

FileNET Cor poration

FileNET, ValueNET, Visual WorkFlo, and OSAR are registered trademarks of FileNET Corporation.

3565 Harbor Boulevard

Panagon, Document Warehouse, UserNET, and The Substance Behind eBusiness, are trademarks of FileNET Corporation.

Costa Mesa, California 92626

All other product and brand names are trademarks or registered trademarks of their respective companies.

800.FILENET (345.3638) Outside the U.S., call: 1.714.327.3400 http://www.filenet.com

Due to continuing product development, product specifications and capabilities are subject to change without notice. Copyright © 1998, 2002 FileNET Corporation. All Rights Reserved.

Notices This document contains information proprietary to FileNET Corporation (FileNET). You may not disclose or use any proprietary information or reproduce any part of this document without written permission from FileNET. Even though FileNET has tested the hardware and software and reviewed the documentation, FileNET makes no warranty or representation, either express or implied, with respect to the hardware, software, or documentation, their quality, performance, merchantability, or fitness for a particular purpose. FileNET has made every effort to keep the information in this manual current and accurate as of the date of publication or revision. However, FileNET does not guarantee or imply that this document is error free or accurate with regard to any particular specification. As a result, this product is sold as is, and you the purchaser are assuming the entire risk as to its quality and performance. In no event will FileNET be liable for direct, indirect, special, incidental, or consequential damages resulting from any defect in the hardware, software, or documentation, even if advised of the possibility of such damages. In particular, FileNET shall have no liability for any programs or data stored in or used with FileNET products, including the costs of recovering such programs or data. Some states do not allow the exclusion or limitations of liability for incidental or consequential damages, so the above limitation or exclusion may not apply to your installation. You may also have other rights that vary from state to state. No FileNET agent, dealer, or employee is authorized to make any modification, extension, or addition to the above statements.

Contents Preface

5 Who Should Read This Document? Supported Bar Code Types

Bar Code Usage and Tips

5

5

7

General Considerations

7

Bar Code Quality Adjustments

8

Improving Bar Code Reading Accuracy

9

Bar Code Height Setting 9 Bar Code Length Setting 10 Bar Codes with Thin Bars 11 Width Setting 11 Ratio 11 Maximum bar codes per line 12 Maximum bar codes per page 12 Search Direction 13 Bar Code Types 13 Quality 13 Edge Noise 14 Quiet Zones 14 Speckling 15 Skew 15 Paper Feed 15 Using Bar Codes with Faxes

15

Using Bar Codes In Capture

16

Bar Code Dates

16

Appendix A Supported Bar Codes

18

Standard (One-Dimensional) Bar Codes August 2002

18 Panagon Capture Technical Notes

3

Contents

Codabar 18 Code 3 of 9 (39) 18 Code 93 19 Code 128 20 EAN 20 Interleaved 2 of 5 21 Postnet 21 UPC-A 22 UPC-E 22 Two-Dimensional Bar Codes

23

PDF417 23 Data Matrix 23 MaxiCode 24 QR 24 Aztec 24

Index

August 2002

26

Panagon Capture Technical Notes

4

Preface Who Should Read This Document? Panagon Capture Technical Notes are intended for advanced users and system administrators. Capture application developers may also benefit by seeing how bar codes are used. This document is a guide to optimizing the use of bar codes during the scan and post scan processes. This document provides only the information needed to achieve that result. For a full discussion of bar codes and scanning options and features, please see the other documents and online help provided with Capture. This document assumes a basic understanding of Capture, including a knowledge of Capture terminology and concepts, the ability to navigate the user interface, and to create settings collections and templates.

Supported Bar Code Types This document describes specific bar code types supported by Capture. When designing a Capture system that employs special bar code features, ensure that all parts of the system — from the scanner to the storage repository — can support the features adequately. Consider the following to ensure adequate support by Capture: •

August 2002

Your scanner, scanner interface card, or doc processing software might support bar code types that are not listed in this document. Conversely, your scanner might not support some of the bar code types supported by Capture.

Panagon Capture Technical Notes

5

Preface Supported Bar Code Types

Note

August 2002



Some bar code types supported by Capture might provide features (support for control characters, for example) that are not supported in other Capture components.



Some bar code types might contain more characters than Capture features (such as index fields) can accommodate. For example, some two-dimensional bar code symbols support up to 2000 characters in a single bar code. However, your index fields, configured on the server, might not be able to accept that number of characters and truncate the data.

FileNET added support for two-dimensional bar codes in Capture release 4.0. If you are using an earlier release, you must upgrade to Capture 4.0 to use the two-dimensional bar codes.

Panagon Capture Technical Notes

6

Bar Code Usage and Tips General Considerations Using bar codes for quality assurance, batch separation, and automatic indexing can reduce cost, increase system throughput, and reduce errors. A bar code contains information - account numbers, part numbers, customer addresses, etc. - that usually corresponds to properties that are associated with the documents you are scanning. When using bar codes, you need to determine if you are using hardware or software bar code processing. If your scanner or scanner interface board supports doc processing, you use hardware bar code processing. Hardware bar code detection takes place as you scan your documents. The scanner passes the image to the processor on the board that interprets the bar code based on configuration settings in the Scan component. The interpreted information is stored as properties of the image. If you have optional Doc Processing (Kofax Adrenaline) software installed you use software bar code processing. This processing is performed by the DocProcessing component. Software bar code processing takes place as a separate step, after you have scanned or imported your document. Software bar code processing locates the bar code in the image and extracts the embedded information. You configure the bar code settings for post-scan software bar code detection through the DocProcessing component. Specific characteristics of bar codes include height, width, ratio, bar code length (minimum chars per bar code setting), max bar codes per line, max bar codes per page, search direction, bar code type, quality,

August 2002

Panagon Capture Technical Notes

7

Bar Code Usage and Tips Bar Code Quality Adjustments

edge noise, quiet zone, speckling, and skew. All of these characteristics can be adjusted to maximize bar code detection. The section titled “Improving Bar Code Reading Accuracy,” on page 9 provides information on how you can adjust these characteristics to maximize bar code detection during scanning. There are a number of symbologies, or bar code alphabets, available. Each symbology varies in the number of characters contained in its alphabet. For example, Code 3 of 9 includes 43 characters including letters, digits and some punctuation. The section titled “Appendix A Supported Bar Codes” on page 18 briefly describes some of the most commonly used bar codes.

Bar Code Quality Adjustments The quality of the bar code on the page to be scanned (or imported) will affect whether or not the bar code can be read and decoded accurately. Both hardware and software bar code detection methods may fail if the bar codes on the original images are distorted or poorly reproduced. The following suggestions apply to the bar codes on the source documents that you are scanning or importing:

August 2002



The density of the lines of the bar code can be made darker or lighter to improve detection. Increase the resolution used to print the bar code to increase crispness of the bar code and hence the reading accuracy rate. A slight adjustment in dpi can make a significant difference. Please note that increasing the dpi resolution may also create noise. You must determine the best procedure for your unique conditions.



Print the bar code directly onto a page. Panagon Capture Technical Notes

8

Bar Code Usage and Tips Improving Bar Code Reading Accuracy



Never affix bar codes to a page using tape. Tape interferes with the scanner’s ability to detect the bar code.



Larger bar codes are read more accurately and tolerate skew better. (See “Bar Code Height Setting,” on page 9 and “Width Setting,” on page 11.)



Photocopies can show speckles that can interfere with bar code detection. Use a bar code that is printed with a laser printer to ensure a crisp copy.

Improving Bar Code Reading Accuracy Adjusting your scanner can improve the success and accuracy of bar code detection. Check your scanner manual for tips to improve quality. The following conditions contribute to the accuracy reading rate and speed of detection of bar codes. By adjusting these parameters, you may control the accuracy and detection speed of bar codes. Bar Code Height Setting The Height setting is the distance between the top of the bar code and the bottom of the bar code. The minimum bar code height (of the entire bar code) is approximately 0.15 inch, and the maximum is 1.25 inch. However, a taller bar code has a better chance of being successfully read. By increasing the search height, the speed increases while reading accuracy decreases. By decreasing the search height, the speed decreases while the reading accuracy increases.

August 2002

Panagon Capture Technical Notes

9

Bar Code Usage and Tips Improving Bar Code Reading Accuracy

Bar Code Length Setting The Bar Code Length is the minimum number of bar code characters that must be found before the bar code is processed. You specify the bar code length in the Min. Chars per bar code field. Bar Code Length applies to the following bar code types: - Codabar - Code 128 - Code 93 - Interleaved 2 of 5 - Code 39 (Code 3 of 9) - Linear 2 of 5 A bar code is read more accurately and quickly if it has fewer characters. As the number of characters increases, there is a higher chance for error. For example, a 3-character Code 3 of 9 bar code contains 50 elements, while a 10-character Code 3 of 9 bar code contains 120 elements. The 3-character Code 3 of 9 bar code has a higher probability of being read successfully and quickly. The following bar codes are fixed-length bar codes. Any value in the Min. chars per bar code field is ignored. -

August 2002

UPC-A UPC-E EAN Postnet Maxi code

Panagon Capture Technical Notes

10

Bar Code Usage and Tips Improving Bar Code Reading Accuracy

Bar Codes with Thin Bars When the width of the smallest element is composed of 3 or less pixels, the detail may not be distinguished. Width Setting The Width is the physical width of the smallest element within the bar code. You may alter width settings slightly to work with other bar code settings. Adjust the width setting from a minimum of 0.010 inch to a maximum of 0.050 inch. Most bar code widths fall within the following ranges: at 200 dpi:

0.010-0.013 inch

at 300 dpi:

0.014-0.018 inch

Because the larger elements of the bar code are calculated from the smallest using the ratio value (See “Ratio,” on page 11), it may be necessary to adjust the ratio value as well. Note that when the width of the smallest element is composed of 3 pixels or less, the detail may not be distinguishable. For the best accuracy rates, set the width of the barcode as close as possible to the actual width. Ratio Ratio is the ratio of the sizes of the large elements to the small elements of the bar code. When the ratio is large, the bar code is easiest to read. The ideal ratio is 3:1, indicating that the width of the largest element is three times larger than the narrowest element. Because the bars in a bar code can lose pixels during the scan process, smaller ra-

August 2002

Panagon Capture Technical Notes

11

Bar Code Usage and Tips Improving Bar Code Reading Accuracy

tio bar codes, such as 2:1, are harder to detect. When using the ratio setting, you must also consider the Width parameter. For example, if the width of the narrowest bar is 0.020 inch, the width of the largest bars would be 0.040 for a 2:1 ratio or 0.060 for a 3:1 ratio. You must decide which ratio and bar code width would give you the desired result based on all your operating conditions. By default, many bar code types use a ratio of 3:1. The option to select a ratio of 2:1 is available for some bar code types. The following bar code types can make use of the ratio setting: -

Codabar Code 39 Code 93 Linear 2 of 5 Interleaved 2 of 5

Maximum bar codes per line The Maximum bar codes per line controls the maximum number of bar codes that appears along the same axis (row or column). The search continues along the same axis until the edge of the image is detected or the specified number of bar codes is encountered. The best performance is obtained when you use only one bar code per line, thus minimizing the duration of the search performed. Maximum bar codes per page The Maximum bar codes per page should always be set to the number of bar codes that may actually appear on your documents. Be-

August 2002

Panagon Capture Technical Notes

12

Bar Code Usage and Tips Improving Bar Code Reading Accuracy

cause the scanner or software searches the entire page, the system slows down if you specify a large number of barcodes. You may use a maximum of 64 bar codes per page. Search Direction The Search Direction determines which directions are used to search for bar codes. Select only the orientation directions that are required. With the minimum number of directions set, a faster search occurs because there are fewer directions to search. If you choose to search all four directions for bar codes, there is a large performance degradation. Bar Code Types The Bar Code Type determines what type of bar code to search for. You can select more than one bar code type, but you should select only the bar code types that you actually use. The more bar code types you select, the longer it takes to process each page. Some bar code types are mutually incompatible, and you cannot select their types together. The incompatible combinations are: -

Interleaved 2 of 5 and Linear 2 of 5 UPC-A and EAN UPC-A and UPC-E Postnet and any other type

Quality If you are processing bar codes that are smooth and free of noise, set the Quality to Good. Bar codes that are of lesser quality require the Normal or Poor setting.

August 2002

Panagon Capture Technical Notes

13

Bar Code Usage and Tips Improving Bar Code Reading Accuracy

The Quality setting and the Height setting determine the number of searches for bar codes that are made within an area or page. For instance, increasing the bar code height and a lower quality setting causes the bar code driver to perform more searches for bar codes. The following conditions also contribute to increasing the accuracy reading rate and speed of detection of bar codes: Edge Noise Edge noise describes bar codes containing bars that have rough edges. This occurs when the bars acquire or drop pixels, causing a blurred bar. If the ratio setting is small, and the elements gain or lose a pixel during scanning, the ratio setting may decrease further making the bar code difficult to read. It is best to minimize Edge Noise by improving the quality of the bar code image you are using, for instance by increasing print resolution (dpi) when you print bar codes. See also “Quality” on page 13. Quiet Zones A quiet zone is the area immediately preceding the start character and following the stop character, which should contain no marking. A bar code must be surrounded by a noise-free quiet zone of at least 1/10 inch; a 1/4 inch area is best. A quiet zone provides a period in which no light-to-dark or dark-to-light transitions occur, making it easy to differentiate a bar code from other information. Position bar codes away from the edge of an image, making sure there are no extraneous marks within the quiet zone. Clean quiet zones, also called margins, improve the readability of the bar code image.

August 2002

Panagon Capture Technical Notes

14

Bar Code Usage and Tips Using Bar Codes with Faxes

Speckling Speckling refers to small pixels around the bar code region. This problem becomes serious when the pixels near a bar code interfere with the detection of quiet zones. Use the Despeckle function, if available, before you start searching for barcodes to eliminate extraneous pixels in the bar code area. You can also reduce the interference that is caused by debris on the scanner glass by cleaning it prior to scanning the bar code. Skew Even though scanners are capable of reading skewed bar codes, there are more detection problems with heavily skewed bar codes. It is best to apply the bar code to the page correctly. However, you may also apply the Deskew function, if available, before you start searching for bar codes. Paper Feed Ensure that the page is feeding correctly into the scanner to minimize skewing. Also keep in mind that it takes longer to search along the longer side of a piece of paper for bar codes than to search the shorter side.

Using Bar Codes with Faxes It is possible to process bar codes on inbound fax images using Capture. Note that the resolution and overall quality of the fax image must be very good. The originating and receiving fax machines must be configured carefully. Additionally, you must install DocProcessing on the receiving Capture workstation. You will need to try different settings when configuring your fax machine and Capture to ensure best results.

August 2002

Panagon Capture Technical Notes

15

Bar Code Usage and Tips Using Bar Codes In Capture

Fax Machine Settings Ensure that the sensitivity of the sending fax machine is set on the most sensitive setting. For some fax machines, this may be called Details. For others, the designation may be Fine or Superfine. Capture Bar Code Settings Because the faxed bar code is entered into Capture as a TIFF image, the DocProcessing component is responsible for processing the bar code information. As a result, you must configure the bar code parameters in the Bar Code tab of the Doc Processing Properties dialog box. Set the Quality setting to Poor and make sure that the remaining settings for the bar code you are using are correct.

Using Bar Codes In Capture In Capture, bar codes can be used to optically acquire such information as account numbers, invoice numbers, and dates. Bar codes can also be used to trigger events, in much the same way as patch codes are used.

Bar Code Dates Data fields obtained from bar codes are stored as strings. You can use string selection in the Index component of Capture to change a string date collected from a bar code into a date field against which computations can be performed. When bar codes are used for autoindexing, the date mask format of the bar code must be the same as the format in the date field. When preparing bar codes for autoindexing, use bar code date formats that are supported by Capture, and consider using one of Capture’s four-digit year formats.

August 2002

Panagon Capture Technical Notes 16

Bar Code Usage and Tips Using Bar Codes In Capture

If a two-digit year format is used in a bar code, the century selected for the date field applies to the date. This is true whether the century is the default current century or the stated century. Capture cannot obtain the century from the scanned date since the scanned date is stored as a string, not a true date. To create bar codes from which dates can be read:

August 2002



Match the date formats of the bar codes to the formats supported in Capture.



Use a four-digit year format in the bar code. This action will make sure that the Capture uses the correct century.

Panagon Capture Technical Notes 17

Bar Code Usage and Tips Appendix A Supported Bar Codes

Appendix A Supported Bar Codes The following examples of bar codes are for definition and clarification only. Note that these example bar codes are not to scale and are unsuitable to use as test samples.

Standard (One-Dimensional) Bar Codes The following bar codes are supported in all Capture releases. Codabar Codabar is a self-checking, variable-length bar code that can encode sixteen data characters (0 through 9, plus six special characters). Each character is represented by seven elements within the bar code (four bars and three intervening spaces). An intercharacter gap separates each character within the bar code. Codabar symbols can vary in length. Codabar is useful for encoding dollar quantities and mathematical figures.

Code 3 of 9 (39) Code 3 of 9 is an alphanumeric, self-checking, variable-length bar code that uses five black bars and four white bars to define a character. Three bars are wide and six are narrow. A character is represented by

August 2002

Panagon Capture Technical Notes

18

Bar Code Usage and Tips Appendix A Supported Bar Codes

nine elements. An intercharacter gap separates each character. Start and stop characters are depicted as asterisks (*) and are used to delineate the bar code. The bar code is preceded and followed by quiet zones. A check character is optional. Code 3 of 9 supports 26 uppercase letters, 10 digits, and 7 special characters which include: - . $ / + % (space)

Code 93 Code 93 is a variable-length bar code that encodes 47 characters. Each character is composed of nine elements arranged into three bars with their adjacent spaces. Code 93 is a compressed version of Code 3 of 9.

-78/43

August 2002

Panagon Capture Technical Notes

19

Bar Code Usage and Tips Appendix A Supported Bar Codes

Code 128 Code 128 is an alphanumeric, high-density, compact, variable-length bar code that can encode the full 128-ASCII character set. Each data character is represented by six elements. There must be an even number of black elements and an odd number of white elements.

AA7777

EAN EAN is used for products that are required to be identified by their country of origin. It is a fixed-length bar code that can encode 13 characters. The first two characters identify the country of origin, the next 10 are data characters, and the last character is the checksum. It is a superset of the UPC-A character set. EAN is incompatible with UPC-A.

August 2002

Panagon Capture Technical Notes

20

Bar Code Usage and Tips Appendix A Supported Bar Codes

Interleaved 2 of 5 Interleaved 2 of 5 is a high-density, self-checking numeric bar code that uses five black bars and five white bars to define a character. Two digits are encoded in every character—one in the black bars and one in the white bars. Two of the black bars and two of the white bars are wide. The other bars are narrow. Each Interleaved 2 of 5 bar code must contain an even number of encoded digits and must be of a fixed length. A check character is optional.

01234

Postnet Postnet is the Zip+4 postal bar code that is placed on envelopes or postcards to expedite delivery. Each code may consist of five, six, nine, or twelve digits plus a correction code. Note that the Postnet bar code is not compatible with other bar code types and there may be only one per page.

August 2002

Panagon Capture Technical Notes

21

Bar Code Usage and Tips Appendix A Supported Bar Codes

92626-1420

UPC-A UPC-A is a bar code that encodes a twelve-digit number. The first digit is the number system character. The next ten digits are data characters. The last digit is the checksum. This is the standard bar code used on merchandise to identify the product and manufacturer. UPC-A is incompatible with EAN.

2

23456

22345

8

UPC-E UPC-E is a bar code that is a zero-suppressed version of UPC-A. The data characters and checksum are compressed into six characters. The original ten data characters must have at least four zeros and the number system must be zero.

August 2002

Panagon Capture Technical Notes

22

Bar Code Usage and Tips Appendix A Supported Bar Codes

0

704050

6

Two-Dimensional Bar Codes The following bar codes are supported in Capture as of the Capture 4.0 release. Note

Some two-dimensional bar code types are only available if you have purchased an advanced bar code support option. If you are using software bar code detection, support for these advanced bar codes is available through the optional Advanced Doc Processing package.

PDF417 PDF417 encodes up to approximately 1850 ASCII characters, depending on the error checking used. PDF417 bar codes are used to encode relatively large blocks of data, and can often be read despite some damage to the original. Note that PDF417 allows embedded control characters, such as line feeds, which cannot be displayed within Capture attributes. Data Matrix Data Matrix bar codes may contain as many as 3000 characters from the entire ASCII character set. Data Matrix bar codes are character-

August 2002

Panagon Capture Technical Notes

23

Bar Code Usage and Tips Appendix A Supported Bar Codes

ized by a unique perimeter pattern and sophisticated encoding and decoding algorithms. Note that Data Matrix bar codes can contain extended characters, unicode characters and photos, which may not be compatible with other components of a Capture system. MaxiCode MaxiCode bar code symbols are of a fixed size and are square in shape. They are characterized by a circular target in the center. MaxiCode symbols can contain approximately 93 alphanumeric characters or 138 numeric characters. Note that MaxiCodes allow some characters, including Kanji and Kana characters, which may not be compatible with other components of a Capture system. QR QR (Quick Response) Code bar codes are rectangular, two-dimensional symbols, optimized for rapid detection and decoding. A QR Code can contain approximately 2509 alphanumeric characters. Note that QR Codes allow some characters, including Kanji and Kana characters, which may not be compatible with other components of a Capture system. Aztec Aztec bar codes may contain up to 3750 ASCII characters. Aztec bar codes are square and are characterized by a square target pattern in

August 2002

Panagon Capture Technical Notes

24

Bar Code Usage and Tips Appendix A Supported Bar Codes

the center of the symbol. Aztec symbols can vary in size depending on the amount of data contained within the symbol. Note that Aztec bar codes allow some characters that cannot be displayed within Capture attributes.

August 2002

Panagon Capture Technical Notes

25

Index A accuracy 9 accuracy of bar code reading, improve 9 Aztec 24 B bar code 13, 16 Bar Code Types 13 dates 16 detection 16 edge noise 14 fax machines 15, 16 improving reading accuracy 9 Maximum bar codes per line 12 Maximum bar codes per page 12 paper feed 15 quality 13 quality adjustments 8 quiet zones 14 ratio 11 skew 15 speckling 15 thin bars 11 width setting 11 Y2K 16 bar code height 9 bar code length 10 Bar Code Types 13 bar codes and fax machines 15

August 2002

C Codabar 18 Code 128 20 Code 3 of 9 18 Code 39 18 Code 93 19 control characters 6 D Data Matrix 23 date Y2K 16 date formats 17 dates in bar codes 16 detection of barcodes 16 Doc Processing software 7 E EAN bar code type 20 edge noise 14 F Fax Machines using bar codes 15, 16 configuring Capture 16 H hardware bar code processing 7 I improve bar code reading accuracy 9 Panagon Technical Notes 26

Index

Interleaved 2 of 5 21

UPC-E 22

M MaxiCode 24 Maximum bar codes per line 12 Maximum bar codes per page 12 Min Chars per bar code 10

W width 11 Y Y2K 16

P Paper feed 15 PDF417 23 Postnet 21 post-scan bar code detection 7 printing bar codes 8 Q QR (Quick Response) 24 quality 13 quality adjustments in reading bar codes 8 quiet zone 14 R ratio 11 reading bar codes, quality adjustments 8 S Search Direction 13 Skew 15 software bar code processing 7 Speckling 15 supported bar codes 5 T two-dimensional bar codes 6, 23 U UPC-A 22 August 2002

Panagon Capture Technical Notes 27