If the user will load an image that contains dummy data, then FlexiCapture will assign the default class. This article will show how to avoid this assignation. Please note, that you should apply these changes can be applied to default Project Properties or to any Batch Type.
- First of all, add a Classification batch. You can train the classifier within Project Setup Station itself. Alternatively, create a classifier in the FlexiLayout studio and export it. Then load it to the batch.
- Go to the Recognition and select Classification->Use script. Add a previously created batch and click Edit Script.
Paste the next code and save.
IClassificationResult result = Classifiers.ClassifyPage( Page);
- Now in the event Before Matching, use the following script:
- If you need to assign a custom DocumentDefinition, then use the next code: