OCR Zone
OCR Zone is used for definition of zonal parameter for particular workflows.
OptimiDoc allows two basic parameters text and barcode. Each type has specific settings and functions.
New zonal parameters
The complete steps with the Zonal OCR designer are explained in the example below.
1. Document background image
To upload the document template which will be used as a background image for definition of zones, click on

or drag-and-drop the image file to this field.

2. New parameter definition
To add a new zone, click on Zones - Add zone.

3. Parameter position and size definition
To change the position of zone, you can use the drag and drop functionality.
To change the size of zone, move the mouse to bottom right corner, press the left button, change the size and release left button.

4. Definition of parameter
To define the parameter settings, double click up to the zone.
- Title - name of parameter (can be used for definition of document name or location), the title has to be different from system parameters
- Type - OptimiDoc supports two types of parameter; the first parameter is text and second is a barcode.
- Use as a document separator - if in the zone will be found the barcode the OptimiDoc use the page as a first one of new document (valid only for barcode type)
- Text filter - use the filter to match string to the predefined value based on regular expression (valid only for text type)
Please refer to Character Classes in Regular Expressions or Wikipedia for more information about Regular Expressions.
Examples of regular expression:
- Select number with length 5-10:
- [0-9]{5,10}
Example:
- Input Value:
456487
- Result:
456487
- Input Value:
123
- Result:
nothing because the number does not fit to length
- Search text "Date:" and take the date after the text
- Date: ([0-9]{1,2}.[0-9]{1,2}.[0-9]{4})
Example:
- Input Value:
Date: 12.5.2013
- Result:
12.5.2013
- Input Value:
Date: 12.5.2013
- Result:
nothing because of white spaces; to solve the problem with white spaces use parameter \s+ as in the last example
- Select the number without length limitation:
- [0-9]+
Example:
- Input Value:
54798746546546
- Result:
54798746546546
- Search the "TAX ID:" and take the next string with first two letters and 10 numbers:
- TAX ID:\s+([A-Z]{2}[0-9]{10})
Example:
- Input value:
TAX ID: CZ1234567890
- Result:
CZ1234567890
To select specific part of searched text use (). Text out of the bracket is automatically removed.
- Apply on page - definition of page where the zone will be search



5. Save the parameters
After the definition of all zones, save the parameters by clicking on the
button at the bottom.