Community

Searching for single-line fields of known or unknown format on documents of...

Hi,

Abbyy Flexicapture 11 help file contains a section under "tips and tricks" entitled "Searching for single line fields of known or unknown format on documents of varying OCR quality". In the included sample project, "StrString" an object collection element is used to capture the invoice number when it cannot be captured with either a regular expression or a fixed alphabet. My question is; can this same method be used within a repeating group? I have a few instances in a current project where the repeating quantity field is recognized as "raw text" as opposed to standard text so those are missed during matching.

Was this article helpful?

0 out of 0 found this helpful

Comments

3 comments

  • Avatar
    Permanently deleted user
    I tried simply using Object Collection exclusively instead of a group containing both a character string element as well as an object collection element. Seems to be working well but I would appreciate knowing if the above question is possible and if so, what needs to change in order for the tip to apply to a repeating group element.
    0
  • Avatar
    Permanently deleted user
    Hi Mike,

    For a repeating group to be captured using Object collection you might want to draw regions for each instance exclusively (would be easier if you have separators or some statics).
    This can be done using the following code (please remember this is only an example given for 6 instances of 100dt x 100dt rects):

    if (repgrp.InstancesCount==0) then
    {
    RSA(rect(pagerect.Left,pagerect.Top,pagerect.Left+100dt,pagerect.Top+100dt));
    }
    else if (repgrp.InstancesCount>0 and repgrp.InstancesCount<6)>6)>
    {
    let Static= repgrp.Lastfound.rgnTest.Rect;
    leftof(Static.Right);
    above(Static.Bottom+Static.Height);
    rightof(Static.Left);
    below(Static.Bottom);
    }
    else dontfind;
    in your repeating region advanced pre-search relations and then

    RSA(rgnTest.Rects);

    in your Object collection element advanced pre-search relations as well.

    Hope that helps,
    Vladislav
    0
  • Avatar
    Permanently deleted user
    Excellent, that will give me something to play around with. Thank you Vladislav.
    0

Post is closed for comments.