Part Identification Pipeline
Part identification is the most difficult pipeline to tune because different parts will need special consideration. Even just for the normal components used in the FTP, you need to be sure that the picked components are distinguishable from the tip of your nozzle. Depending on how well you set your camera exposure and other settings, you may need to go back and adjust them, which, of course, would require that you re-tune your nozzle tip pipeline to account for the changes.
If you receive an error after picking a component about No Results Found
, you need to tune your vision pipeline.
Setup Nozzle
-
Install a nozzle tip on your first toolhead. In this example we'll work with the N045 nozzle tip.
-
Click on the "Expand" checkbox to open all of the features about your machine.
-
Click on
Heads > ReferenceHead H1 > Nozzles > ReferenceNozzle N1
-
Click on
Nozzle Tips > ReferenceNozzleTip N045
(or whichever nozzle you're working with). -
Check that the correct toolhead is selected in the
Machine Controls Tab
.
Pickup Component
To tune a part identification pipeline, you'll need to pick up the component you want to tune. You can setup a feeder and use the "pick" button.
Alternatively, you can manually take a component and place it on your nozzle tip. To activate the nozzle's suction, use the Actuators Tab > H1:VAC1 > Set Boolean Value > On
.
Open the Pipeline
-
Select the package for the component you'll be tuning. For example, the
R_0603_1608Metric
package used in the Test Placement. -
Check that your nozzle tip is compatible with the package you'll be working with.
Note
You can also go to Vision Tab > Type:Bottom Vision > The correct pipeline
and click on Pipeline: Edit
to edit the pipeline.
Check the debug results
-
The main view will show a rectangle around the silhouette of your component.
- If the rectangle is not precise around your component, then we need to more clearly distinguish the real component from the toolhead.
- If there is no rectangle, we need to loosen the threshold to make the component easier to identify.
- If the image looks like the good one above, your pipeline is properly tuned. If you've still been getting failures when homing, you may need to slightly loosen the filtering.
Threshold Tuning
The Threshold
stage is the most commonly edited stage. It turns the camera image into black and white, which starkly defines the tip of your nozzle. This is especially important for detecting parts, as they should catch all of the light from the upward facing camera LEDs and turn totally white in the image. We need to detect both the position and rotation of the picked component, so a tight, precise rectangle identifying its body is very important. Raise or lower the threshold
parameter as necessary until the picked component is outlined precisely.
- If the image is too dark, lower the
threshold
setting. - If the image is too bright, raise the
threshold
setting.
Test Part Identification
-
Select the package for the component you'll be tuning. For example, the
R_0603_1608Metric
package used in the Test Placement.