Sunday, February 12, 2012

Filtering text field vertical lines with IBM Datacap Taskmaster Capture

Filtering text field vertical lines


with Datacap Taskmaster Capture


Abstract


I have text fields on a form that have half boxes for each character in the field. How do I filter out the vertical lines so that the text can be read?

Cause


Some forms use half boxes for text fields, in which each box holds one character. Normal line removal can leave the vertical parts of the boxes, causing the field to be misread. Taskmaster Capture 8.0.1 Fix Pack 3 added a new image enhancement function called Comb Removal.

Answer


To add comb removal to image enhancement:

  1. Navigate to the \Datacap\(application)\dco_(workflow) folder and make a copy of ImageFix.ini.

  2. Edit ImageFix.ini and add the following:
    [CombRemoval]
    ON=True
    CombHeight=50
    CombSpacing=50
    HorizontalLineThick=4
    MinimumCombLength=50
    MinimumConfidence=50
    VerticalLineThick=4

  3. Save the file and test.

  4. Modify the values as needed to get the best results. All values are in pixels.


Note: Fix Pack 3 or newer is required.

2 comments:

  1. Hi,

    I upgraded to fix pack 3 and tried comb removal for removing the vertical lines but its not working.

    If you provide your email id i can send the sample image which has the issue with removing vertical lines.

    Thanks,
    Suhas

    ReplyDelete
  2. Hi suhas...you can send the sample image to the following mail id
    trinath.mits@gmail.com

    ReplyDelete