- 15 Nov 2024
- Print
- PDF
Creating Your First Recipe
- Updated on 15 Nov 2024
- Print
- PDF
Once you’ve mounted the camera and connected to the OV20i software, follow the steps below to create your first recipe.
From the All Recipes page, click + New Recipe in the top-right corner.
The Add A New Recipe modal will appear.
Enter a Name for the Recipe (required). This name will appear on the All Recipes page.
Select the Recipe Type from the drop-down menu (required). See below for help selecting the Recipe Type.
Should I Select Classification or Segmentation?
Create a Classification Recipe to train a deep-learning model to categorize an image into different classes based on its visual characteristics.
Create a Segmentation Recipe to train a deep-learning model to take an image and segment classes at a pixel level based on labeled defects. By operating at a pixel level, this tool is useful for inspections that need finer-grained control over labels.
Enter a Description for the Recipe (optional). This will appear on the All Recipes page and at the top of the Recipe Editor page.
Click OK to create the new Recipe.
The new Recipe will be listed on the All Recipes page (Inactive).
Open the Recipe Editor
To edit the Recipe, the Recipe needs to be active.
Select Actions > Activate to the right-hand side of the Recipe. Then click Activate to confirm.
Click Edit to open the Recipe Editor. Then click Open Editor to confirm.
Continue to Imaging Setup below.
Note
For more information about the Recipe Editor, see Recipe Editor.
Imaging Setup
In this section, you’ll set up the camera to achieve a clear image of the object being inspected.
Note
Imaging Setup is the same for Classification and Segmentation Recipes.
To configure the Imaging Setup, click Configure Imaging at the lower left-hand side of the page.
Place the object being inspected in the camera’s field of vision, using the live preview to verify it’s in shot.
Adjust the Camera Settings on the right-hand side as required to achieve a clear image of the object.
Note
For more information about Imaging Setup options, see Imaging Setup.
Click Save Imaging Settings at the bottom-right of the page and continue to Template Image and Alignment.
Template Image and Alignment
In this section, you’ll capture a Template Image and have the option to configure an aligner.
Note
Template Image and Alignment is the same for Classification and Segmentation Recipes.
From the Imaging Setup page, use the breadcrumb menu to select Template Image and Alignment. Alternatively, select Template Image and Alignment from the Recipe Editor.
Select Capture Template Image.
Note
Once the Template Image has been captured, the preview pane (on the left-hand side) will display the Template Image, not a live preview of the camera’s field of vision. To view a live preview from the camera, scroll down the page and select Live Preview Mode. To retake the Template Image, ensure the live preview is not enabled and click Re-Capture Template Image.
If the object being inspected will not always be in exactly the same position or orientation within the field of view, follow the steps below to configure an Aligner. If your application doesn’t require an aligner, toggle the Skip Aligner option, click Save at the bottom of the page, and continue to Inspection Setup.
Under Template Regions, select + Rectangle or + Circle (whichever matches the shape of the object being inspected).
Reposition and resize the yellow box on screen to fit the entire flat surface that the object being inspected is positioned on.
Under Settings, set the Rotation Range to 20 degrees. This will allow the aligner to locate the object if it is rotated up to 20 degrees compared to this Template Image.
If required, adjust the Sensitivity and Confidence Threshold.
Click Save and continue to Inspection Setup.
Note
For more information about the Template Image and Alignment page, see Template Image and Alignment.
Inspection Setup
In this section, you’ll configure what you want the camera to inspect (Inspection Types) and where on the object you want it to perform the inspection (Inspection Regions).
Note
Inspectoin Setup is the same for Classification and Segmentation Recipes.
From the Template Image and Alignment page, use the breadcrumb menu to select Inspection Setup. Alternatively, select Inspection Setup from the Recipe Editor.
Note
The preview pane (on the left-hand side) displays the Template Image, not a live preview of the camera’s field of vision. To view a live preview from the camera, scroll down the page and select Live Preview Mode. To add or edit Inspection Types and Inspection Regions, ensure the live preview is not enabled.
Under Inspection Types, “Inspection Type 1” will appear by default. Click Edit to rename it.
Under Inspection Regions, click + Add Inspection Region.
Reposition and resize the yellow box on screen to fit the specific area of the object you want to inspect.
Note
By default, the Inspection Region will be named “New ROI”. Click Edit to change the name.
Add as many Inspection Types and Inspection regions as required for this Recipe.
Click Save at the bottom of the page and continue to Next Steps.
Note
For more information about the Inspection Setup page, see Inspection Setup.
Next Steps
If you selected a Classification Recipe type, continue to Creating Your First Classification Recipe.
If you selected a Segmentation Recipe type, continue to Creating Your First Segmentation Recipe.