8.18.32016-03-14

Barcode Scan

The Barcode Scanner task is used to convert barcode data from multiple image formats into text-readable information. This information is placed in the metadata and can be used by the rest of the process.

Input

Image formats supported by the Barcode Scan task are:

Processing

The task reads the image and detects the presence of the selected supported barcode types. When a barcode is detected, the data it contains is read and added to the Data Page level of the metadata.

This task does not recognize more than one level of the metadata Document. This means that if you are intending to define separate documents, you should use the Metadata Level Creation task after the Barcode Scan.

Output

This task outputs the original data file but with modified (or created) metadata. The format should be the same as the input.

Supported Barcode Types

The following types of barcodes are supported:

Barcode types

Description

EAN13

EAN13 symbology. Used with consumer products internationally, 13 characters.

EAN8

EAN8 symbology. Short version of EAN-13, 8 characters.

UPCA

UPCA symbology. Used with consumer products in U.S., 12 characters.

UPCE

UPCE symbology. Short version of UPC symbol, 6 characters.

Code11

Code 11 symbology. Used to identify telecommunications equipment

Code39

Code 39 symbology. U.S. Government and military use, required for DoD applications

Code93

Code 93 symbology. Compressed form of Code 39.

Code128

Code128 symbology. Very dense code, used extensively worldwide.

Codabar

Codabar symbology. Used in libraries and blood banks.

Inter2of5

Interleaved 2 of 5 symbology. Used in warehouse, industrial applications.

Add2

2 additional digits code for UPC-based symbologies. Used to indicate magazines and newspaper issue numbers.

Add5

5 additional digits code for UPC-based symbologies. Used to mark suggested retail price of books.

PDF417

Portable Data File is a 2-dimensional barcode (also known as matrix code) used in a variety of applications, including Transport, Identification cards, and Inventory management. It is best suited for cases where information needs to move with an item or document.

DataMatrix

DataMatrix is a two-dimensional barcode which can store from 1 to about 2,000 characters. DataMatrix is being used to encode product and serial number information on electrical rating plates; to mark of surgical instruments in Japan; to identify lenses, circuit boards, and other items during manufacturing.

QRCode

The QR Code (Quick Response Code) is a 2-dimensional matrix code. It can encode up to 2509 numeric or 1520 alphanumeric characters.

PostNet

PostNet symbology. Used by the United States Postal Service to assist in directing mail.

RM4SCC

RM4SCC symbology. Used by the Royal Mail.

The fewer barcode types are selected, the faster the plug-in performs. Selecting only the expected barcodes is therefore a good practice.

Barcode Orientations

Barcode orientations represent a barcode orientation on an image. For example, when the left-to-right option is checked, the task will try to read the barcode value assuming that the barcode data should be read in a left-to-right fashion.

The fewer orientations are selected, the faster the task performs.

Settings

On Error Tab

By default, any action task, branch, splitter or condition that generates an error will simply be ignored, and the task just under it (not within a branch) will be given control of the job file without any modification. Any initial input task that generates an error will stop the process from running as a whole, and output tasks will not generate output. The On Error tab can be used to overwrite the default behaviors.

If storing the message or ID, if they are store in a jobinfo they will be available in any error handling process where errors are being forwarded. In all cases, if your process continues after the error, the contents of the variables selected in this window will be available for the rest of your process, or whenever they are overwritten.

Common Errors

Though some error messages are specific to a task in particular, others may apply to any and all tasks because they are related more to the system than to PlanetPress itself. Some examples would be W3813, W3830, W3991, W4005. These correspond to issues such as not having any space to write files, permission errors on folders or files, etc.

Comments Tab

The Comments tab, added in PlanetPress Suite 7.5, is common to all tasks. It contains a single text area (Task comments) that lets you write comments about the task. These comments are saved when the dialog is closed with the OK button, and are displayed in The Task Comments Pane.

Metadata Implementation

The Barcode Scan task reads each scanned file and outputs the values read from barcode(s) on the page(s) into metadata depending of the selected Process by option:

Note: If metadata was created previously in the process, the task only adds new fields to the existing metadata at the datapage level.

 

Metadata Fields

The barcode values are stored at the datapage level of the metadata. In the following defintions, the first 2 metadata fields are for standard use, while the next 8 fields contain '_1_' in their name. This number represents the barcode index on the page. If there is more than one barcode on the same page, these metadata fields will be defined as many times as there are barcodes on the page, except that the middle number (..._X_...) will increment according to the barcode index (e.g. Barcode_2_Value, Barcode_3_Value, etc.).

 

Accessing Barcode Value From a Workflow Tool

One method is to use a VBScript with the Open Script task, using the Watch.ExpandString command with a metadata command as its input parameter, in between double quotes. For example, the following script line gives the value of the first BarcodeValue metadata field of the first datapage:

watch.expandstring("GetMeta(BarcodeValue[0],0,Job.Group[0].Document[0].Datapage[0])")

Another method is to use a Set Job Info and Variables task to copy a metadata field into a Workflow variable.

 

Limitations