mirror of
https://github.com/blakeblackshear/frigate.git
synced 2026-02-14 23:25:25 +03:00
Update improved_motion.py
This commit is contained in:
parent
f6ad149b19
commit
f5dbb2810d
@ -132,6 +132,7 @@ class ImprovedMotionDetector(MotionDetector):
|
|||||||
for c in cnts:
|
for c in cnts:
|
||||||
# if the contour is big enough, count it as motion
|
# if the contour is big enough, count it as motion
|
||||||
contour_area = cv2.contourArea(c)
|
contour_area = cv2.contourArea(c)
|
||||||
|
logger.warning("IContour Area: " + contour_area);
|
||||||
total_contour_area += contour_area
|
total_contour_area += contour_area
|
||||||
if contour_area > self.config.contour_area:
|
if contour_area > self.config.contour_area:
|
||||||
x, y, w, h = cv2.boundingRect(c)
|
x, y, w, h = cv2.boundingRect(c)
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user