Here is a screensshot of my program
As you understand,I was basically trying to make a motion detection system with an alarm which I will add later on.
As I am very new to to this,I am unable to understand what’s the cause for this error.
I was following a YouTube tutorial from a channel named programming hero.
I was not able to do much on my own to rectify my error.
The program works fine(Means my every smallest motion was contoured with the given color) when I write till line 12 and the last three lines included which is obviously needed.
But just after I write from line 13-17(REASON-So,that only bigger motions would be detected and surrounded with a rectangle), and then I run the program but now,only my webcam opens,no rectangles are visible.
And also no suggestions were being displayed while writing the rectangle functions..
Your help would be greatly appreciated friend..
Tutai Koley is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.