Browse
(440) 299-7778
Menu
(440) 299-7778
One-year parts and labor warranty30-day money-back guaranteeEnglishEspañolContact

The text of a manual · part 13 of 24

IMAGETEAM 4410/4710 2D Series Hand Held Imager User's Guide: OCR Programming

Pages 113 to 124 of 216, from IMAGETEAM 4410/4710 2D Series Hand Held Imager User's Guide

The original document is the PDF (2.6 MB). This is its text as extracted, unedited; tables and drawings read best in the PDF, and each page heading opens it at that page.

For the HHP IT4410 and HHP IT4710

Page 113

4 OCR Programming Introduction Use this section to program the hand-held Imager to read machine readable fonts used in optical character recognition (OCR). The IT4410 reads 6 to 60 point OCR typeface.

The IT4410/4710 will read the following fonts: • OCR-A 0123456789ABCDEFGHIJKLMNOPQRSTUVWXYZ ()<>/\+-*$ • OCR-B

• U.S. Currency Serial Number (Money) * You can either select an OCR default, or create your own custom template for the type of OCR format you intend to read. See "OCR" on page 4-2 for programming codes that will enable your scanner to read OCR-A, OCR-B or U.S. Currency fonts. See "Creating OCR Templates" on page 4-4 if you want to create a custom “template,” or character string that defines the length and content of OCR strings that will be read with your scanner.

4-1

Page 114

OCR Default All OCR Settings turns off all OCR capability in the scanner, so the scanner will be able to scan linear, stacked, matrix, and composite bar codes, but not OCR fonts. In addition, any OCR templates you have created are erased. The 8 digit default templates are reinstated for any future use of the OCR On codes listed below.

< Default All OCR Settings >

OCR OCR-A On allows you to scan characters in the OCR-A font. The default setting allows you to scan any 8 digit combination. If you have created an OCR template, character combinations that fit the template can be scanned (see "Creating an OCR Template" on page 4-5).

OCR-A On

OCR-B On allows you to scan characters in the OCR-B font. The default setting allows you to scan any 8 digit combination. If you have created an OCR template, character combinations that fit the template can be scanned (see "Creating an OCR Template" on page 4-5).

OCR-B On

U.S. Currency On allows you to scan characters in the font used on U.S. currency. The default setting allows you to scan any 8 digit combination. If you have created an OCR template, character combinations that fit the template can be scanned (see "Creating an OCR Template" on page 4-5).

U.S. Currency On

4-2

Page 115

All OCR Off turns off all OCR capability in the scanner, so the scanner will be able to scan linear, stacked, matrix, and composite bar codes, but not OCR fonts. However, any OCR templates you have created will be retained in memory.

* All OCR Off

4-3

Page 116

OCR Direction This setting can be used to prevent misreads of character strings that could be interpreted differently in different orientations when you know the orientation of the characters that are being read in relation to the scanner (e.g., 80086996 could read as 80086996 or 96698008) This feature is generally used with a fixed mount scanner. Scan the appropriate bar code to set the direction. Default = Left-to-Right.

* Left-to-Right

Top-to-Bottom

Right-to-Left

Bottom-to-Top

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 scanner. 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.

4-4

Page 117

Creating an OCR Template A single template allows you to program the scanner 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 (page 4-10). 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 the back of this manual) 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 (page 4-10), then scan the d from the OCR Programming Chart after the Sample Codes in the back of this manual 8 times. Scan Save OCR Template (page 4-11). This would let you read any string of 8 digits, for example:

37680981

4-5

Page 118

3. Character Match Sequences On the "Decimal to Hex to ASCII Conversion Chart" on page 2-36, find the Hex value that represents the character(s) you want to match. Use the Programming Chart (inside the back cover) 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 hex codes for letters A, B, and C To create this template, you would scan the Enter OCR Template symbol (page 4-10), scan the d from the OCR Programming Chart after the Sample Codes in the back of this manual 3 times, scan 414243 from the Programming Chart inside back cover (the hex characters for “A,” “B,” and “C”), then scan the d from the inside back cover 3 more times. Scan Save OCR Template (page 4-11). This would let you read any string of 3 digits, “ABC,” then any string of 3 digits, for example:

551ABC983 4. Adding Spaces You may also need to put spaces in your template.

Example C: You need to read 3 digits, space, 3 specific characters (ABC), space, 3 digits. The template would be: ddd2041424320ddd hex code for a space To create this template, you would scan the Enter OCR Template symbol (page 4-10), scan the d from the OCR Programming Chart after the Sample Codes in the back of this manual 3 times, scan 2041424320 from the Programming Chart inside back cover (the hex characters for “space,” “A,” “B,” “C,” “space”), then scan the d from the inside back cover 3 more times. Scan Save OCR Template (page 4-11). This would let you read any string of 3 digits, space, “ABC,” space, then any string of 3 digits, for example:

551 ABC 983 Note: If using Quick*View to program, use the space bar to designate a space and not the hex value of 20. 5. Exit OCR Template Editor Scan Save OCR Template to save your entries. Discard OCR Template exits without saving any OCR Template changes.

4-6

Page 119

Stringing Together Multiple Formats (Creating “Or” Statements) You may want to program the scanner to accept many OCR formats. To do this, you would string together each format with a “t.” This tells the scanner to read optical characters that match any one of the formats in the template.

Example D: You need to read any combination of 8 digits, or a combination of 4 digits, 2 uppercase letters, and 2 digits. The template would be: ddddddddtddddlldd To create this template, you would scan the Enter OCR Template symbol (page 4-10), scan the d from the OCR Programming Chart after the Sample Codes in the back of this manual 8 times, then scan the t to create the “or” statement. Then you would scan the characters for the 2nd template. Scan the d 4 times, scan l 2 times, then scan d 2 more times. Scan Save OCR Template (page 4-11). This would let you read either type of format, for example:

99028650 or

9902XZ50 You can string together as many templates as you need.

Creating a User-Defined Variable You can create up to two of your own user variables for an OCR template. These variables will represent any OCR readable characters. The user-defined variables are stored under the letters “g” and “h.” Creating a user variable follows the same steps as creating a template, but instead of scanning the Enter OCR Template symbol, you scan the Enter User-Defined Variable symbol (page 410). The letters g and h can then be used in an OCR template to define the variable you specified.

Example E: You need a variable to represent the letters “A,” “B,” or “C.” The template for this variable would be: 414243 To create this template, you would scan the Enter User-Defined Variable g symbol (page 4-10). Scan 414243 from the inside back cover (the hex characters for “A,” “B,” and “C”). Scan Save OCR Template (page 4-11). This will let you read either A or B or C in any position where you place the g. For example, you could create the following template: ddddddggg

4-7

Page 120

This template would then let you read data that began with 6 digits, and had an A, B, or C trailing. So you would be able to read:

654321ABC or

654321BAC or

654321CCC

Adding an OCR Check Character You may want to program the scanner to read OCR strings that have a check character. The IT4410/4710 reads and strips out the OCR check character created using a modulo 10 or modulo 36 table. (Modulo 10 being digits 0-9, modulo 36 being digits 0-9 and characters A-Z.) Scan the Modulo 10 or Modulo 36 Check Character bar code to specify the type of check character used in the OCR strings you’re scanning. The scanner will then only read OCR character strings with a valid check character. The IT4410/4710 transmits the OCR data without the check character data. You must specify the location of the check character in the template with a c.

Example F: You need to read any combination of 6 digits, with a modulo 10 check character in the 7th position. The template would be: ddddddc To create this template, you would scan the Modulo 10 Check Character symbol (page 4-10). Then scan the Enter OCR Template symbol, scan the d from the inside back cover 6 times, and scan the c once. Scan Save OCR Template (page 4-11). This template will let you read any combination of 6 digits with a correct check character after. (If the check character is invalid, the scanner will issue an error beep.) For example, the following string could be scanned: 0123455 and the output would be:012345

Reading Multi-Row OCR The IT4410/4710 is capable of decoding multi-row OCR text. Consider the following example. This example shows serial commands as would be entered using Quick*View.

Example G: You need to read multiple rows of OCR data as shown below:

12345678 ABCDEFGH

4-8

Page 121

To read the first row of OCR data, you would menu the following template: OCRTMP"dddddddd". This template is the default OCR template. If you wanted to read the second line of data, you would use the following template: OCRTMP"llllllll". To read both lines of OCR at one time, use the variable r to indicate the start of a new row. All of the other templating variables for the individual rows work the same as previously described. For instance, in the above example, you would use the following template to read both rows: OCRTMP"ddddddddrllllllll". To read the three rows below, you would use the template command "OCRTMP"ddddddddrllllllllrlllldddd".

12345678 ABCDEFGH ABCD1234 Note: Reading more than three rows of OCR is not recommended. Contact the factory if you have an application that requires reading 4 or more rows of OCR.

4-9

Page 122

OCR Template Codes

Enter OCR Template †

Enter UserDefined Variable “g”†

OCR Modulo 10 Check Character

Enter UserDefined Variable “h”†

OCR Modulo 36 Check Character

† One or more two-digit numbers and Save are required after reading this programming symbol. Refer to the Programming Chart (inside back cover).

4 - 10

Page 123 read from a scan by OCR; it may hold reading errors

Exit Selections erin

Save OCR Template ec

Discard OCR Template

Page 124

4 - 12