11-04-2016 08:51 AM - edited 11-04-2016 08:52 AM
hi billko
sorry i was talking about differentiate between crack and blemish .
you are right about edge detection.
now i am trying to find edge for detection of crack, i put egg in black background , but boundries of egg still confusing me how to deal with boundries of egg because bountries show alot of edges .
how i can distinguish that edge is due to boundries or crack ?
( i ahve also converted image into threshold and i analysis that there are alot of dots at boundries)
11-04-2016 01:22 PM
LOL now you know why some things still take a human eye. 😄
11-04-2016 05:42 PM
I would say, first detect an egg itself - binarization, bright object on dark background.
Use IMAQ particle filter to leave only correct size particle, fill holes. This will be your mask for edge detection.
Use edge detection on original image
Erode mask (Morphology VI) to reduce its size. Apply a new mask to the image with edges, then binarization and particle report will give you crack(s) with location.
11-11-2016 01:28 PM
hi ALexander
sorry for late reply .
can you please elaborate your idea of crack detection by mentioning step number .
i will be very thankful to you
11-14-2016 09:41 AM
Hammad,
What are you asking for with the step number? Can you give me a little more detail about what you need clarified?
Thanks,
-Ty
11-14-2016 01:25 PM
hi tytanic
i have done some work on your idea of edge detection for finding crack on egg and also thanks to all other member who give good quality ideas which help me to got good results ,
following is attachment of VI and image of crack egg,. you can see it (ignor the patteren macthing part in VI ) ..
now which problem i am facing is setting the fixed threshold range whcih can be efficent range for any egg come under camra during run time . threshold should be one that will not remove hair level crack information
second problem is how i get good quality of image to detect hair level crack ? what should be the camera resoluton for hair level crack? and what type of unit should design which help camera to capture image in uniform light effect?
11-15-2016 10:22 AM
Hammad,
The image you attached was very blurry. Can you post a few different, focused images with the sorts of cracks that you're looking for?