Ignore Stationary Object
This commit is contained in:
+8
-1
@@ -33,7 +33,7 @@ class FrigateCounterService:
|
|||||||
# Telenan Batch Label
|
# Telenan Batch Label
|
||||||
self.ignore_batch_label = False
|
self.ignore_batch_label = False
|
||||||
self.ignore_batch_label_timer = None
|
self.ignore_batch_label_timer = None
|
||||||
self.sleep_after_batch_label_detected = 10
|
self.sleep_after_batch_label_detected = 15 # 20260525 21:33
|
||||||
# ------------------------------------------------------------------ #
|
# ------------------------------------------------------------------ #
|
||||||
# Setup & Config
|
# Setup & Config
|
||||||
# ------------------------------------------------------------------ #
|
# ------------------------------------------------------------------ #
|
||||||
@@ -442,6 +442,13 @@ class FrigateCounterService:
|
|||||||
payload = json.loads(msg.payload.decode("utf-8"))
|
payload = json.loads(msg.payload.decode("utf-8"))
|
||||||
after = payload.get("after", {})
|
after = payload.get("after", {})
|
||||||
|
|
||||||
|
|
||||||
|
""" Start - 20260530 for ignore stationary object """
|
||||||
|
stationary = after.get("stationary")
|
||||||
|
if stationary:
|
||||||
|
return
|
||||||
|
""" End - 20260530 for ignore stationary object """
|
||||||
|
|
||||||
""" 20260514 For Telenan """
|
""" 20260514 For Telenan """
|
||||||
label = after.get("label")
|
label = after.get("label")
|
||||||
camera = after.get("camera")
|
camera = after.get("camera")
|
||||||
|
|||||||
Binary file not shown.
Reference in New Issue
Block a user