FlexiLayout training considerations
- FlexiLayout Studio uses images from the training set. You can add images to the training set at any point before you generate a FlexiLayout. The training set must contain at least 3 pages.
- You can only edit the static elements of a layout alternative. All alternatives of a FlexiLayout have the same fields.
- If the page contains unmarked fields or static elements when you edit a layout alternative, the FlexiLayout is automatically applied to the page. Any new field blocks detected this way are added to the FlexiLayout, while existing field regions are not changed.
- If you add blocks to an existing FlexiLayout, these blocks do not appear in the training mode. You can create these blocks using the Initialize Fields By Blocks command on the shortcut menu of the FlexiLayout.
Create a FlexiLayout in the training mode
1
Create or open a project
Create a new project, or open an existing project that already contains a FlexiLayout.
2
Switch to the training mode
Click the
button, or select Training Mode from the Training menu.
3
Pre-recognize the images in the Batch pane
Select all images, right-click them, and click Pre-Recognize on the shortcut menu. Alternatively, open the Batch menu and click Pre-Recognize.
4
Open and study an image
Double-click any image to open it. Study the recognition results, and then specify the fields and static elements that you want to use for training the FlexiLayout.
5
Select a reference alternative in the Training window
Select a layout alternative from the Reference Alternative drop-down list, or create a new one.
6
Set the Auto references option
To generate reference elements automatically, leave the Auto references option enabled. If this option is disabled, you must specify reference elements manually.
- If the Auto references option is disabled, automatically generated reference elements are added to the Static elements list, and their positions are marked on pages. You can remove unnecessary elements or add new ones. If the Auto references option is enabled, manually added elements are deleted.
- The contents of the Training window depend on whether the Auto references option is enabled or disabled. If it is disabled, the Training window contains two areas: the Fields area with a list of fields and the Static elements area with a list of static elements. If the Auto references option is enabled, only the Fields area is present in the Training window.
7
Mark fields and static elements in the Image window
Use the following tools to mark the areas:You can also use commands on the shortcut menu to mark fields and static elements. Use the Draw Location
tool to mark a field or element, right-click the marked area, and then click the command on the shortcut menu.
- Use the Create Block
tool to mark areas of blocks on the image. The names of the blocks you have marked appear in the Fields list. - Use the Create Element
tool to mark areas of static elements. The names of marked elements appear in the Static elements list.
- FlexiLayout Studio uses recognized text near marked fields and elements to generate their names. These names appear in bold font when the area of the field or element is detected on the page.
- The Create Block and Create Element tools can be used when viewing a Reference Layout or Difference Layout, but the Create Element tool is only available when creating reference elements manually.
8
Add the pages to the training set
Select the pages in the Used For Training column of the Batch window.
9
Predict the draft layout
Click Predict Draft Layout on the shortcut menu of images.
10
Check detection and correct the markup
Check whether fields and elements were detected correctly on all images in the batch, and correct the markup where necessary. Add all pages where FlexiLayout Studio failed to detect fields or elements to the training set.To mark an element that is not present on the page, click Not Present on the shortcut menu of the element, click the
button, or click the middle mouse button on the area of the element. The names of elements marked as not present are displayed in strike-through font.The status of pages is indicated by icons in the Training Layout State column:
No elements marked – No fields or reference elements have been marked on the page.
Has unmarked elements – Some fields or reference elements have not been marked on the page, or not all unmarked elements have been marked as not present.
Has unmarked required element – A required element has not been marked on the page.
All elements marked – All elements have been marked on the page or marked as not present.
No reference class set – The reference class of the training page has not been specified.
11
Generate the layout alternative
Click the
button. If the project uses more than one reference alternative, specify which layout alternatives you want to update.
Train FlexiLayouts during debugging
ABBYY FlexiCapture 12 lets you train FlexiLayouts while debugging them. To do so, use the Train Alternative command on the context menu of a layout alternative. The reference layout is used to generate the new layout alternative, and reference elements are created automatically. The Train and Test Alternative command trains a new layout alternative and applies it to all pages of its class.Training mode options
The Training tab of the Options… dialog box contains training settings. Settings in the Navigation group determine how the program navigates pages when you click the- any unmarked element – Cycles pages that contain any unmarked element. This is the default setting.
- unmarked selected element – Cycles pages that contain the currently selected unmarked element.
- Predict layout automatically on navigation (
button) – Automatically applies the draft layout when you switch to a different page. - Replace existing regions of fields on batch prediction – Replaces existing blocks of fields and elements with blocks detected when the layout alternative is applied.
- Create Identifiers on Generation – Automatically creates identifiers for the layout alternative being trained. For more information, see the Identifiers section.
