Ask Your Question

Revision history [back]

click to hide/show revision 1
initial version

How to I make a simple response to motion detected?

Hello everyone,

I want to monitor a webcam for motion detection. I want to add the text, "MOTION DETECTED" on the live video stream when motion is detected: image description

I know how to use cv2.createBackgroundSubtractorMOG2(), adding text to live video, and using OpenCV drawing functions:

image description

I'd greatly appreciate any help that I can recieve.