Reputation: 11
I am working on a college project where I have to use image processing using opencv to detect manufacturing defects in cookies. The program must be able to detect oversized, undersized, distorted cookies, cookies with cracks, etc.
I am new to opencv. I tried using Houghcircles to check for some of the above defects, but it does not work since the perfect cookie itself is elliptical.
Or, if I take the pics of a perfect cookie and any other cookie, how do I compare them?
Can you please mention a few functions / codes which might be helpful for my project.
Thank You.
Upvotes: 1
Views: 2370
Reputation: 1927
You can look into ellipse detection. It does involve more coding compared to hough circles, but I've tried it in the past and it works quite well. Take a look at these papers:
Also read through this article on matrix representations of conic sections. This will help you find the lengths of the major and minor axes of the ellipses, which in turn will aid with quality control.
Upvotes: 1