コミュニティ

How to initiate recognize

Hi,

 i have flexicapture project with unattended workflow. One of fields region is created in script on event handler "on document state changed":

Document.Field("Section\\Field").AddRegion( Document.Pages[0], "[0,0,100,100]" );

Question is how to initiate recognition event is script on this created region?

I checked - manually it's possible select region and in context menu select "Recognize".

 

この記事は役に立ちましたか?

0人中0人がこの記事が役に立ったと言っています

コメント

3件のコメント

  • Avatar
    Permanently deleted user

    Hello,

    You may perform the the region placement when the document has Analyzed state (not yet Recognized). Then on the Recognition the added region will be recognized automatically. 

    If for some reasons you cannot use this approach, you may create an additional recognition stage in the advanced workflow after the new region is added.

    0
  • Avatar
    Permanently deleted user

    OK, i understand select region after Analyzed state. In script this is checked like example below

    if (ChangedStates.Has(1)){Document.Field("Section\\Field").AddRegion( Document.Pages[0], "[0,0,100,100]" );}

    But field not recognized unfortunately. Do must used another event handler?

      

    0
  • Avatar
    Permanently deleted user

    Hello,

    We have reproduced your issue and performed deeper investigation in ABBYY internal resources. We've found that, unfortunately, the regions added by AddRegion() method cannot be recognized automatically and you will have to press Crtl+R or manually move region's borders to initiate the recognition. 

    Sorry for previous misleading answer.

    0

サインインしてコメントを残してください。