I want to use AForge.net to recognize patterns like in the picture below.
I used filters to extract yellow-orange-red colors so I can now find the colored blobs but :
I want to find blobs that are surrounded with a big blue circle ( as shown in the picture )
I want to filter objects that have an oval shape
I don't want the exact code , just show me the basic outline and functions that I should use.
I used [IPLab] (http://code.google.com/p/iplab/) to quickly find some parameter to extract the red and blue features of your image. Here are the steps I found:
Step 1 will give you the red circles and step 2 will give you the blue circles. You can apply some morphology operators to clean up the results. Now you can compute the blobs from both output images and identify if the center of a red blob is inside a blue blob.
As for verifying if a blob is oval I think AForge doesn't have such statistics in its blob class. You might have to verify the moment of the blobs using another image processing library like EmguCV.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With