Machine Vision

cancel
Showing results for 
Search instead for 
Did you mean: 

circle profile instead of a line profile

Hello,

I am trying to inspect stamped rings for defects.

ring with defectring without defectring with defectring withoug defect

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!

 

 

0 Kudos
Message 1 of 2
(3,165 Views)

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

0 Kudos
Message 2 of 2
(3,141 Views)