mirror of
https://github.com/blakeblackshear/frigate.git
synced 2025-01-07 00:06:57 +01:00
pass processed tracked objects
This commit is contained in:
parent
ef214fb80a
commit
56a2d4e64d
@ -176,6 +176,7 @@ class TrackedObject:
|
|||||||
"box": self.obj_data["box"],
|
"box": self.obj_data["box"],
|
||||||
"area": self.obj_data["area"],
|
"area": self.obj_data["area"],
|
||||||
"region": self.obj_data["region"],
|
"region": self.obj_data["region"],
|
||||||
|
"motionless_count": self.obj_data["motionless_count"],
|
||||||
"current_zones": self.current_zones.copy(),
|
"current_zones": self.current_zones.copy(),
|
||||||
"entered_zones": list(self.entered_zones).copy(),
|
"entered_zones": list(self.entered_zones).copy(),
|
||||||
"has_clip": self.has_clip,
|
"has_clip": self.has_clip,
|
||||||
@ -815,11 +816,15 @@ class TrackedObjectProcessor(threading.Thread):
|
|||||||
frame_time, current_tracked_objects, motion_boxes, regions
|
frame_time, current_tracked_objects, motion_boxes, regions
|
||||||
)
|
)
|
||||||
|
|
||||||
|
tracked_objects = [
|
||||||
|
o.to_dict() for o in camera_state.tracked_objects.values()
|
||||||
|
]
|
||||||
|
|
||||||
self.video_output_queue.put(
|
self.video_output_queue.put(
|
||||||
(
|
(
|
||||||
camera,
|
camera,
|
||||||
frame_time,
|
frame_time,
|
||||||
current_tracked_objects,
|
tracked_objects,
|
||||||
motion_boxes,
|
motion_boxes,
|
||||||
regions,
|
regions,
|
||||||
)
|
)
|
||||||
@ -830,7 +835,7 @@ class TrackedObjectProcessor(threading.Thread):
|
|||||||
(
|
(
|
||||||
camera,
|
camera,
|
||||||
frame_time,
|
frame_time,
|
||||||
current_tracked_objects,
|
tracked_objects,
|
||||||
motion_boxes,
|
motion_boxes,
|
||||||
regions,
|
regions,
|
||||||
)
|
)
|
||||||
|
Loading…
Reference in New Issue
Block a user