# Model Match Score

The 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. match score is called Score in the View Inspector. This metric is unique to Blue Locate and Blue Read tools that are trained using a model. The Score is a combination of the following metrics:

- The average score of the features in the model
- The geometry score

Note: The layout model score of the Blue Locate tool is the average score of the features in the model, it does not include a geometry score.

# Geometry Score

The geometry score measures the geometrical arrangement of the features in the model.

- For node models, the geometry score is a measure of how much the relative positions of the features differ from the relative positions of the nodes in the model.

- For regex and string models, the geometry score is based on the following factors:

  - How close the 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). positions are to lying on a single line.

  - How equally the characters are spaced.

As the geometrical arrangement is included in the calculation of the overall model match score, the model score can be lower than 100% even when all the features have a score of 100% if the geometry score is lower than 100%.

Examples:

- A node model with 3 nodes, given each feature of score 100%, the overall model match score will be slightly less than 100% because its geometry score will be less than 100% unless the spatial layout of the features exactly matches that of the model.

- A regex model, given 3 features of score 100%, the overall match score will be slightly less than 100% as the geometry score of this model is less than 100%. The geometry score will always be less than 100% unless all the features are exactly collinear and exactly equally spaced.

- A string model, given 3 features of score 100%, the overall match score will be slightly less than 100% as the geometry score of this model is less than 100%. The geometry score will always be less than 100% unless all the features are exactly collinear and exactly equally spaced.