Creating Your First Recipe
  • 15 Nov 2024
  • PDF

Creating Your First Recipe

  • PDF

Article summary

Once you’ve mounted the camera and connected to the OV20i software, follow the steps below to create your first recipe.

  1. From the All Recipes page, click + New Recipe in the top-right corner.

  2. The Add A New Recipe modal will appear.

    1. Enter a Name for the Recipe (required). This name will appear on the All Recipes page.

    2. 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.

    3. Enter a Description for the Recipe (optional). This will appear on the All Recipes page and at the top of the Recipe Editor page.

  3. Click OK to create the new Recipe.

  4. 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.

  1. Select Actions > Activate to the right-hand side of the Recipe. Then click Activate to confirm.

  2. Click Edit to open the Recipe Editor. Then click Open Editor to confirm.

    Edit button

  3. 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.

  1. To configure the Imaging Setup, click Configure Imaging at the lower left-hand side of the page.

    18_90 Recipe Editor - Test with Imaging Setup annotated

  2. Place the object being inspected in the camera’s field of vision, using the live preview to verify it’s in shot.

  3. 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.

  4. 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.

  1. 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.

  2. 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.

  3. 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.

  4. Under Template Regions, select + Rectangle or + Circle (whichever matches the shape of the object being inspected).

  5. Reposition and resize the yellow box on screen to fit the entire flat surface that the object being inspected is positioned on.

    Template Image and Alignment - keychain

  6. 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.

  7. If required, adjust the Sensitivity and Confidence Threshold.

  8. 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.

  1. From the Template Image and Alignment page, use the breadcrumb menu to select Inspection Setup. Alternatively, select Inspection Setup from the Recipe Editor.

    Recipe Editor Breadcrumb Menu

    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.

  2. Under Inspection Types, “Inspection Type 1” will appear by default. Click Edit to rename it.

  3. Under Inspection Regions, click + Add Inspection Region.

  4. Reposition and resize the yellow box on screen to fit the specific area of the object you want to inspect.

    Inspection Setup - keychain Classification

    Note

    By default, the Inspection Region will be named “New ROI”. Click Edit to change the name.

  5. Add as many Inspection Types and Inspection regions as required for this Recipe.

  6. 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.


Was this article helpful?

ESC

Eddy AI, facilitating knowledge discovery through conversational intelligence