A new product up to object recognition¶
In this Mikado tutorial, you will learn how to set up a new product using the Mikado interface. All you need is a suitable CAD model in STL file format. You can find out how to optimally prepare your CAD model in a separate tutorial.
Note
This tutorial refers to the search algorithm Ensenso Partfinder.
Set up new product / product list¶
Switch to the “Edit” → “Products” page
Product page: Empty view if no products have been created yet¶
The “New product” button adds a new product with the name “Product1” to the product list
Product page: View when a new product has been created¶
The product name is entered in the “Name” field
The CAD model in STL format can be specified under “STL file”. To do this, press the corresponding selection button labeled “…”. The loaded product model is now displayed in the visualization.
Product page: View when a CAD model has been selected¶
Adjust the parameters that are relevant for object detection:
Min. detection score: Initially select a very low value (approx. 10-25%). A suitable value will be determined in a later step using the object detection tool.
Minimum distance: Robustness and performance improve with a suitable minimum distance. Set the largest possible value at which adjacent parts can still be detected.
Details on all product parameters are described in the Product management chapter.
Save
First save the product (floppy disk symbol in the product list) and select a suitable file name
Now you can also save the product list (upper diskette symbol directly below the main navigation bar)
Optimize object recognition¶
Set active product
Switch to the “Edit” → “Products” page
Select the desired product from the product list
Click on the “Use as active product” button
In the Status bar you can check whether the correct product is now active
Switch to the “Tune” → “Detection” page
Mikado offers buttons for selecting presets for the object recognition parameters. A distinction is made here between ‘Model generation’ and ‘Search parameters’, whereby the default settings ‘Fast’, ‘Medium’ and ‘Accurate’ are available. We recommend setting both parameter sets to ‘Fast’ to start with.
Restrict perspectives. During model generation, the product is viewed from different perspectives. For each perspective, the product is converted into a corresponding point cloud, which is compared with the actual point cloud in the search process. If a product has rotational symmetries or is only visible from a certain direction, it makes sense to restrict the views accordingly. This both reduces the computing time and avoids false matches.
Apply ROI → Select the desired ROI so that background data is pre-filtered.
Hint
An ROI is not absolutely necessary, but can have a strong influence on search duration and reliability. If an ROI has not yet been set up: Further information in chapter Region of Interest (ROI).
“Record point cloud” → “Apply and find objects”
All detections above the set minimum detection score are visualized. The detection score is always higher than a detected object instance.
Object recognition: Found parts are drawn in gray/transparent¶
You can now evaluate which scores can be achieved and at which values inaccuracies or false positives occur. In our example with the “worm gears”, the scores for parts without concealment are over 75%. This is therefore a suitable minimum score here.
If situations arise in your application where no part is detected, the score can also be set lower in this example. However, it is important to ensure that the value is not set too low.
The parameters can also be adjusted based on the default settings. If the quality of the findings is too inaccurate with ‘Fast’, first select ‘Medium’ and then ‘Accurate’.
You can also adjust the parameters individually. Behind each parameter in the Mikado interface is an info button that links to the corresponding documentation. At the top right is the ‘Advanced options’ button, which activates additional parameters.
Now carry out further tests to test your new minimum score and parameters. Use different fill levels and different arrangements of the parts to test the robustness of the settings.
Increase the minimum score as soon as you receive a false find. The new minimum score should be higher than the score of a false find.