Update improved_motion.py

This commit is contained in:
mrfreaky123 2024-09-14 20:43:11 +10:00 committed by GitHub
parent f6ad149b19
commit f5dbb2810d
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -132,6 +132,7 @@ class ImprovedMotionDetector(MotionDetector):
for c in cnts:
# if the contour is big enough, count it as motion
contour_area = cv2.contourArea(c)
logger.warning("IContour Area: " + contour_area);
total_contour_area += contour_area
if contour_area > self.config.contour_area:
x, y, w, h = cv2.boundingRect(c)