07-30-2012 07:09 AM
Hello,
I've been working on a project to inspect caps and I have been trying to work out a way to pick out the numbers printed on them. My first attempt was to use the Read/Verify Test inspection but the region of interest is static while the caps will spin.
At the moment I’m attempting to use Classify Objects as a way of dynamically inspecting the numbers inside the cap. I’ve managed to threshold the numbers on a cap but have found when I want to add a sample of a number to the class the thumbnail sketch is blurred and the classifier will not pick up the number. I’m thinking this is because I’m using a small ROI.
I’m wondering if someone can point me in the right direction to help solve my problem.
I am using Vision Builder AI and have no access to LabVIEW. I have attached photos of some samples of the cap's I'm using. I have managed to threashold the white cap using the following settings under Preprocessing:
Method: Inter Variance
Look For: Bright Objects
Reject Objects Touching ROI
Remove Small Objects: 2
Lower Limit 132
Upper Limit 149
Thank you
07-30-2012 11:17 AM
I have an image of a cap that has been threshold. The problem is I’m not sure how to pick out the numbers from the image. They can be seen clearly in this image but the classify object picks out the region in the center and labels it as other.
07-30-2012 11:41 AM
Oh I found my mistake on that last one. I had the classify only largest object ticked.It can extract the numbers but only in a very small area. I believe this is because the specifications I’ve set for the numbers are found in all the other areas of the cap.