Machine Vision

cancel
Showing results for 
Search instead for 
Did you mean: 

Need help to improve straight edge detection algorithm

Solved!
Go to solution

Capture.JPGOn the left edge, some yellow dots got ignored.  The red line is the BEST fit for yellow dots.

This doesn't work for me.  I need a "rightmost fit".

If I could get the those yellow dots, I would use 25% rightmost dots to fit a straight line.

The edge is damaged. Therefore not well focused / illuminated.

It's hard to fine tune edge search parameters since we are doing thousands of edge detection in one scan.

 

George Zou
0 Kudos
Message 1 of 3
(2,440 Views)
Solution
Accepted by topic author zou

Which algorithm you are using to find the edge? If it is Find Straight Edge Detection you can modify the original vi and use the searchline info as output from dll instead of used edges. 

-Same applies for Clamp also, Clamp uses Rake which can output the edges detected and then you can modify the straight edge algorithm as per your requirements.

Thanks
uday
Message 2 of 3
(2,413 Views)

100%100%

top 20%top 20%

 

George Zou
0 Kudos
Message 3 of 3
(2,379 Views)