# Train Counter

This app counts the number of similar-size objects in an image.

## Procedure

1. Mark all the objects in the ROI.

2. Click Train.

3. Review the objects the app counts.

4. Click Label Image to make corrections.

5. Mark objects and click Train to continue training the tool.

   Note: You can click View to switch between the full image and the ROI.

6. Set the Counter Pass Range to define how many counted objects is a Pass. The Pass Range can be a single value or any range between 0 and 100.

7. Continue to label images until the counter is trained and you are satisfied with the results.

8. Click Proceed.

Best Practices

- Label every instance of the object in the ROI.

- If the parts are long and thin, set a distinct feature as the object.

- Label objects in different rotations since the Object Size area does not rotate.

- Make sure that your objects are completely visible. Do not label objects that are cut off at the edge of the image.

Troubleshooting

- Click Untrain Counter to reset the training.

- Make sure that the physical size of the objects is uniform since one Object Size area is applied to all markings.

## After Training

Use the Monitoring View to check how well the vision sensor performs in practice. You are ready with the training when the vision sensor consistently and correctly labels new parts with two or three bars.

You can come back to the Train tab any time later to improve the training with more parts.