Jump to content

detect surface defects


Recommended Posts

Hi all!

First of all, Merry Christmas! by the way, the work never ends. I am wondering about a solution, without any success. Could you help me?

My problem is the following. I have a surface, and I have to detect all of defects on it. I don't have any good idea how to find them. In the attachment, you can see a small surface defect. My project is: find and localize all of these defects automatically, and measure them. What kind of image processing tools can be used to find and measure (area) them?

Measuring them is not as important as than finding, and localizing them.

First of all, using a morphological procedures could be a good start, but I don't know to detect these defect automatically...

Please see the attachment:

post-16152-126181609257_thumb.jpg

Link to comment

Wow - that's a tricky one due to the very very low contrast. My first instinct is to suggest a different setup - if the item that you're interested in is the tan/pink thing that takes up te lower part of the image and the gray/white part at the top is just a background, then I'd change your lighting - you're using lighting that's on the camera side of the object you're looking at, but I'd go for a back light - remove all the lighting (or, at least, limit it) from the camera side, and out the item on a backlight (something like one of these from NERlite) - that will give you a high-contrast image that you can then binarize with an appropriate threshold - that will make the defect really stand out - then you can maybe determine the angle of the edge, and then try a parallel rake that's perpendicular to the edge.

cool.gif Shameless plug: You can find more infomation about all of these techniques, and more, in Image Acquisition and Processing with LabVIEW.

<rant>

You could try to solve the issue in software, but, if you can do it in hardware, you definately should! I've seen far too many setups where engineers have tried to apply countless software image transforms on top of other transforms to, essentially, get an image that the right camera/lense/lighting combination would have gotten much more consistantly. If you had a thermocouple on the end of 200 meters of noisy cable, you wouldn't try to filter out the noise in software - you'd fix the hardware setup. Image acquisition and processing is the same. As my old DAQ professor used to say: garbage in, garbage out :)

</rant>

  • Like 2
Link to comment

 Thank you very much! 

In the middle of January I will start to develop any solution for this problem. Yes, you are totally right about lightening. Changing it  will be the first thing what's need to be replaced... 

If I have any problems, I gonna tell you. BTW, i will share my solution too :)

Best Regards!

Edited by durnek60
Link to comment

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...

Important Information

By using this site, you agree to our Terms of Use.