Ask Your Question

remove line after canny detection

asked 2018-05-05 11:58:35 -0500

malloc123 gravatar image

In this example take from (site) with python in this guide the undesired line are delete easly. I'm trying to do the same thing in c++ but I can't seem to find the rigth function to do this. Do you know how I can do this?

image description

edit retag flag offensive close merge delete



In OpenCV functions are duplicated for Python and C++. Which exactly do you need? Otherwise specify the place in that guide which you are interested in.

ya_ocv_user gravatar imageya_ocv_user ( 2018-05-07 05:48:50 -0500 )edit

1 answer

Sort by ยป oldest newest most voted

answered 2018-05-07 09:58:43 -0500

In that guide the author demonstrated that the order of operations matters. He just cropped the image after Canny rather than before. Looks like all the necessary functions are present. Go to online documentation. Input a Python function into the Search field at the left, and you will see available variants including for C++. cv2.fillPoly(), cv2.bitwise_and(), cv2.cvtColor(), cv2.Canny() - all are perfectly present.

edit flag offensive delete link more

Question Tools

1 follower


Asked: 2018-05-05 11:58:35 -0500

Seen: 552 times

Last updated: May 07 '18