From b626c5ecdc50e488b15ba335deef354c8cda5ba0 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Ra=C3=BAl=20Del=20Valle?= <74815153+R-dVL@users.noreply.github.com> Date: Fri, 11 Aug 2023 17:10:40 +0200 Subject: [PATCH] Delete rectangle and text from pictures --- app/motion.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/app/motion.py b/app/motion.py index a1321be..cd72d8d 100644 --- a/app/motion.py +++ b/app/motion.py @@ -24,11 +24,11 @@ def start(): continue # Draw motion rectangle - cv2.rectangle(frame1, (x, y), (x+w, y+h), (0, 255, 0), 2) + # cv2.rectangle(frame1, (x, y), (x+w, y+h), (0, 255, 0), 2) # Text in image when something is detected - cv2.putText(frame1, "Status: {}".format('Gati detectado!'), (10, 20), cv2.FONT_HERSHEY_COMPLEX_SMALL, - 1, (255, 0, 0), 3) + # cv2.putText(frame1, "Status: {}".format('Gati detectado!'), (10, 20), cv2.FONT_HERSHEY_COMPLEX_SMALL, + # 1, (255, 0, 0), 3) # To discard fake motion detection, it waits 100 iterations before taking a picture if counter == 100: