Feedback

Adds a layout template of the current page to the Fingerprint database.

Important: These actions are technology preview code. Preview code is not intended for use in production; you use this code as is and without IBM support. If you use any preview code in your application, you might need to make updates to your application in later Datacap releases. Report any issues with the ClassifyLayout preview code on the Datacap developerWorks forum.

Member of namespace

ClassifyLayout

Syntax

bool Feedback()

Returns

True if the action completes without errors. Otherwise, if the action is called for an object other than a page object or if an internal error occurs, the action returns False.

Level

Page level.

Details

Use this action in the following ways to train the application to identify page types from layout templates:
  • To initially provide a base set of templates
  • To incrementally add new templates to improve accuracy

After you train the application, you can use the Identify action to identify a new page by finding the most closely matching template.

Call this action in the following circumstances:
  • After you confirm that the page type as specified by the Page type field is correct
  • After you call the Identify action

Typically, you call this action at export time.

This action compares the values of the Page type field and the acidType variable (which is set by the Identify action). If the values are not the same, a layout template of the current page is added to the database.

Example
// Mandatory prerequisites
Recognize()
Identify()

// Give feedback
Feedback()