Ask Your Question
0

Possibility on defect detection.

asked 2015-07-01 08:32:13 -0600

updated 2015-07-01 23:23:50 -0600

Hello, I'm working on a project where I need to find minor defects and report if it is defected.

Here are pictures of good and bad samples. Please note that these images are a result of post thresolding stage. Ie, noice removal and all pre-processing has been done. Gray outline that you see is convexHull curve for the contour (object).

Good sample

image description

Bad sample (defect at top left corner)

image description

Things I've tried till now.

  1. Histogram matching of thresolded images.
  2. Contour area and minAreaRect area comparing.

However, each of this method works on a particular defect but not all.

Any suggestions / tips for better results ?

edit retag flag offensive close merge delete

Comments

if the defects that you have to detect is always something like what appears in the second image you can check about the convexity defects functionality provided by the opencv library.

theodore gravatar imagetheodore ( 2015-07-01 11:33:33 -0600 )edit

@theodore Not necessarily. Sometimes, defects are so minor / major that convexity defects can not be used to measure it. I will try to add some more images just to give you more hints on defect types.

dastaan90 gravatar imagedastaan90 ( 2015-07-01 23:26:00 -0600 )edit

1 answer

Sort by ยป oldest newest most voted
1

answered 2015-07-20 06:04:09 -0600

I ended up using histogram comparison for thresolded image for my defected pieces. System has to be calibrated earlier for "good" pieces and any defect will result in less histogram values. If it's below a certain thresold, it is declared as a rejected piece.

Angle of camera and piece position are very significant in this use case as certain variation will lead to totally different data.

Hope it helps.

edit flag offensive delete link more

Question Tools

1 follower

Stats

Asked: 2015-07-01 08:32:13 -0600

Seen: 534 times

Last updated: Jul 20 '15