How to increase width of a line, which is an output of Canny edge detector in OpenCV

asked 2020-04-04 14:30:06 -0500

The output of the Canny edge detector has lines of width only 1 pixel. How can I increase that width to 2-3 pixels by changing the parameters fed to cv2.Canny(), or changing some setting of cv2.Canny().

I don't prefer to use any post-processing method.

edit retag flag offensive close merge delete

Comments

1

Good thing that OpenCV is open source. Check out the function for yourself to see if that kind of functionality is built-in.

Otherwise, check out dilation:

https://docs.opencv.org/trunk/d9/d61/...

sjhalayka gravatar imagesjhalayka ( 2020-04-04 17:09:24 -0500 )edit