10-30-2008 07:21 AM
Hello,
I am trying to inspect stamped rings for defects.
Shown are four typical images aquired though a firewire camera. Images 1 and 3 show rings with defects, and images 2 and 4 show rings without.
I have already tried pattern matching, but could not work out a proper solution.
Playing around with the Vision Builder AI I found the "line profile" feature. Is there a way to use a circle instead of a line? The intensity profile around the bright areas of the rings would be a good indicator for defects, because defects produce shaded areas in the ring profile.
Thanks!
10-31-2008 10:49 AM
Hi Michel,
I tried it out in VBAI 3.5 and it worked for your attached pictures.
The steps I used were the following:
1. Simulate acquisition: Load a pic file
2. Vision Assistant -> Extract RGB plane to get a grayscale image
3. Threshold image to show only the bright pixels that make up the ring
4. Create region of interest around the circle (ROI type: annulus)
5. Find circular edge (this function even finds edges when the ring is distorted..)
6. Match pattern (grayscale): define a master pattern from an intact circle
Step no.6 was quite successful. When the ring is not ok, the function does not find
a matching pattern.
I will attach the inspection for VBAI 3.5. If you are using a different version, then
let me know so I can create it again for you.
Best regards,
David