Machine Vision

cancel
Showing results for 
Search instead for 
Did you mean: 

detect scratches on a camera lens

Canny though will take some time. You can replace canny with any good edge detection. But I suppose the above method should work Post back if you are stuck.
0 Kudos
Message 11 of 22
(2,152 Views)
solved?
0 Kudos
Message 12 of 22
(2,146 Views)

Unable to open the sub vi. One of the functions in subvi mask from ROI is missing.

I am unable to find it in the labview 9.0. ALso I had a question of rotating

the image. I always had this problem when pattern matching, or geometric

matching when I move my camera the pattern matching algorithm doesnt

work. I also really appreciate your help and time.

0 Kudos
Message 13 of 22
(2,142 Views)

Pattern matching not working with rotated images means you wouldve most likely selected "maintain image size" in the rotation. Uncheck that it will work.

 

Coming to this particular issue. I have not used any patternmatching here. All i have done is edge detection-->threshold-->dilation-->fill holes--> particle analysis(Area). The idea is fill hole fills a large area if the grid is distorted and after particle analysis if you find any area larger than 100000 then it means there is some distortion. I am having some difficulty in posting the screen shot. Lemme get back.

Message 14 of 22
(2,141 Views)
This was created from vision assistant so the steps should basically help.subvi.JPG
Message 15 of 22
(2,104 Views)

I now have an idea of what u are talking about.

I will trying to wrap this up by weekend. I wil keep

you posted. Muks thanx for u r time, I really appreciate

 u r help.

0 Kudos
Message 16 of 22
(2,089 Views)

Arjun

Are you working on a similar project as I am. Have you got

any result. plz let me know. 

0 Kudos
Message 17 of 22
(2,080 Views)

Yesh,

 

Got an idea?

0 Kudos
Message 18 of 22
(2,069 Views)
Any update?
0 Kudos
Message 19 of 22
(2,027 Views)

Muks

I hardly got time to work on this project, just began working on it. The code you wrote

confused me. Why did you rotate the image, how does it help. WHat I did was

I converted image to grey scale because canny edge wouldnot work for color images.

I donot see any image in the output. Infact I donot see anything after I threshold the image.

What did you see on your image output window. Just let me know.

 

0 Kudos
Message 20 of 22
(2,003 Views)