HOW TO USE CANNY DETECTION METHOD IN OPENCV USING WEBCAM.
The modern world needs edge detection over the image which is an important image processing technique.
One such method introduced was the canny detection method, which is available in the OpenCV library, which is one of the most popular libraries for computer visioning and can be coded around languages java,c++, python.
The images are converted into binary images, and that's what thresholding does over a Grayscale image( which you can convert using the Cv2.cvtColor() method), the method works over the binary image so, you have to mandatorily code in this way.
The purpose of this blog is to teach you to apply canny's edge detection directly using a webcam, rather than using cv2.imread() which, first save the image and then to apply which is lengthy and sometimes you may need to apply it live ( and not on saved image's).
So, now I am going to write the code and explain to you how it works :
so, follow the code and you will get the output, to understand the canny edge detection theory refer
https://docs.opencv.org/master/da/d22/tutorial_py_canny.html
and if you get any doubts still, you can mail me at kaman2528@gmail.com anytime.
my GitHub:https://github.com/amanem1 to refer to this
and result output for me was an image looking like this.
Superb
ReplyDelete