The Zone OCR designer is used for definition of zonal parameter for particular workflows.


OptimiDoc allows two basic parameters text and barcode. Each type has a specific settings and functions.


New zonal parameters


Complete work with Zonal OCR desinger will be explained on example.


1. Document template upload

To upload the document template which will be used as a background image for definition of zones Click on and select the tiff image. In the definition of parameters you can use different templates.

2. New parameter definition


To add new parameter Click on . After then new zone appears up to document template at upper left corner.


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), title has be different from system parameters
  • Type - OptimiDoc support two types of parameter. 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 not fits 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 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


String parameter:


Barcode parameter:



5. Save the parameters


After the definition of all zones save the parameters by Click on .