Edge Detection In Pyhton | Python Detect Edges |

Published: 11 June 2022
on channel: CodeLoop - By Ritik
814
18

#python
#pythonshorts
#shorts
#pythonprogramming
#pythontutorial
#pythonprojects
#python3
Detect edges in python in five lines of code.

Code :
------------------------------------------------------------------------------------------------------------------
import cv2

img = cv2.imread("iron_man.jpg")
to_grey = cv2.cvtColor(img,cv2.COLOR_BGR2GRAY)
edge = cv2.Canny(to_grey, 30, 100)
cv2.imwrite("iron_man_edge.jpg", edge)

------------------------------------------------------------------------------------------------------------------


On this page of the site you can watch the video online Edge Detection In Pyhton | Python Detect Edges | with a duration of hours minute second in good quality, which was uploaded by the user CodeLoop - By Ritik 11 June 2022, share the link with friends and acquaintances, this video has already been watched 814 times on youtube and it was liked by 18 viewers. Enjoy your viewing!