Edge detection on image using Opencv python

preview_player
Показать описание
This code reads an image, converts it to grayscale, applies a Gaussian blur to reduce noise, and then uses the Canny function to detect edges in the image. The Canny function takes in the grayscale image and two threshold values as parameters. The edges in the image that are below the lower threshold value are discarded and edges above the higher threshold value are kept as strong edges. Edges between the two threshold values are kept as weak edges.

This program does not require any pre-trained model and uses the built-in functionality of OpenCV to detect edges.
Рекомендации по теме