# Create a Layout Model in Blue Locate

Once features have been labeled, a layout model A specific spatial arrangement of a set of features (Blue Locate and Blue Read tools only.) During a post-processing step, the Blue Locate and Blue Read tools can fit all of the features detected in an image to the models defined for the tool. The overall pose and identity of the model is then returned. can be created. There are two different methods to create a layout model:

- The right-click menu, Create Model option
- The Tool menu, Edit Models option

Note:

One limitation of the layout model interface is that a given region may specify which feature A feature is a visually distinguishable area in an image. Features typically represent something of interest for the application (a defect, an object, a particular component of an object). types are valid as well as the total number of features (Feature Count) that are required for the region to be valid. More complex types of validation Validation refers to a process during the training of a tool that helps to evaluate performance. Validation is like a mock exam that the tool takes during the training phase, separate from the final test. For example, validation helps you to recognize overfitting and avoid wasting time when training a tool. If you recognize that the tool is overfitting, you can stop the training early. expressions are not supported (for example, a single region that requires one instance of FeatureA, three instances of FeatureB and two instances of FeatureC).

To implement more complex validation expressions, you can "stack" regions by creating multiple regions with the same location and dimensions, but different validation criteria for each region. For example, Region1 would have FeatureA selected, and one instance of FeatureA; Region2 would have FeatureB selected, and three instances of FeatureB; and Region3 would have FeatureC selected, and two instances of FeatureC.

In order for the model to pass, all of the regions must pass.

### Create a Layout Model – Right-click Menu Option

1. Select the features that you want included in your layout model, right-click above one of the features and select Create Layout Model.

2. The tool will automatically generate a layout model.

3. Each feature will have a corresponding layout region (the name corresponds to the feature), with the feature automatically selected for the region. Modify the regions and selected features as desired.

4. Press the Process icon of the tool to apply the model to all of the images.

### Create a Layout Model – Edit Models Option

1. Label the desired features that should be in your layout model.

2. From the Tool menu, select Edit Models.

3. In the Model Editor dialog, select Layout Model.

4. This will launch the layout model editor, where you can press the Add button to configure a region of interest that will define where to search for one or more features.

5. Configure the region of interest over the desired area of the image.

6. Select the region, and then select the feature(s) in the Feature Matching selector menu, and in the Feature Count field, set the number of instances for all of the features (in other words, the sum) within the region.

7. You can repeat steps 3 through 5 for each of the regions that should compose the model.

8. After closing the layout model (press the X button in the upper-right corner of the dialog), you will get feedback by the tool in the image/view A view of an image is a region of pixels in an image. Tool processing is limited to the pixels within the view. You can manually specify a view, or you can use the results of an upstream tool to generate a view..

   The check marks in the lower-left corner indicate if the region passed. If the features were not found, there will be an X instead of a check mark.

9. Press the Process icon of the tool to apply the model to all of the images.