Ask Your Question
0

What is the best edge detection method in opencv?

asked 2018-06-01 00:06:48 -0600

For detecting edges I am using canny it will get good edges, but edges are not stable all time edges fluctuate. So how to reduce this instability? Lighting conditions are fixed.

edit retag flag offensive close merge delete

Comments

You can use HSV color scale to remove lighting sensetivity

Shivanshu gravatar imageShivanshu ( 2018-06-01 01:44:56 -0600 )edit

1 answer

Sort by ยป oldest newest most voted
0

answered 2018-06-01 01:07:48 -0600

Canny is definitely the best. Others will be only worse. To cope with fluctuations, use neural nets (though, not in OpenCV yet).

edit flag offensive delete link more

Comments

@ya_ocv_user, There is one network called HED (holistically-nested edge detection network) which represented in the turorial https://docs.opencv.org/master/dc/db1... (a sample script is https://github.com/opencv/opencv/blob...).

dkurt gravatar imagedkurt ( 2018-06-01 01:57:58 -0600 )edit

Deep learning again ... You are really zombied. So what should user do? Spend a week and read how to add a layer to DNN and how to use various DL products, or just write a dozen lines of code and implement this layer alone? What you recommended is a scientific publication and you perfectly know that 90% of these publications are practically useless.

ya_ocv_user gravatar imageya_ocv_user ( 2018-06-01 02:49:40 -0600 )edit

I just tried to refer a sample with a neural network is used for edge detection problem because you wrote that there is no one at OpenCV yet.

dkurt gravatar imagedkurt ( 2018-06-01 07:00:50 -0600 )edit

I don't think that it is a good idea to present all neural nets under the brand "Deep learning". NN are a completely different computing style (in comparison to traditional programming). Yes, they may be trained, may be used for concept formation, but there are solutions which don't require learning. By the way, this is true for human vision too. Everything is defined by synaptic connections. In humans, they depend on 2 factors - individual experience and inborn, genetically predetermined features. What is known as convolution, that is the most useful short-distance links, belong mainly to 2 category.

ya_ocv_user gravatar imageya_ocv_user ( 2018-06-06 06:01:42 -0600 )edit

Question Tools

1 follower

Stats

Asked: 2018-06-01 00:06:48 -0600

Seen: 1,728 times

Last updated: Jun 01 '18