Page 1 of 1

Defect detection

Posted: Sun Aug 30, 2020 5:51 am
by Amey18
Hello everyone,
I am building one application for defect detection in some plastic molded parts. There is a circular part where generally defect occurs. Can anyone please tell me how to catch the defect? Attaching some good as well as defected images. Thanks in advance.

Re: Defect detection

Posted: Sun Aug 30, 2020 11:28 pm
by stereomaton
Your problem does not look related to the stereopi, so you should probably ask the question on another forum.

What I personally could say is that you better have to work in a controlled light environment. In particular, you can use the light to illuminate the zone to inspect only. With similar angle as in your samples, you can for example try to detect the shape of the reflection on the top. Not sure, but the simple blob detector of opencv may help. Again specialized vision forums would give more pertinent answers with possibly more robust ways to deal with the problem.

Re: Defect detection

Posted: Fri Sep 04, 2020 8:04 am
by Realizator
Amey18, one of my friends is developing a similar system now. They need to check the quality of the plastic components (size and form). For this approach, they are using OpenCV to build a point cloud from the depth map (using a stereoscopic photo from the StereoPi). And using this point cloud, they are doing all measurements.
But this method has one specific. It is difficult to build a good depth map, if your surface is either glossy or not textured.

They are using a couple of HQ cameras with the 1920x1080 resolution for the depth map building.
As Stereomaton says, for your case you can try to use a single-camera solution and another set of techniques to detect defects (like NN, or OpenCV algorithms).