mirror of
https://github.com/blakeblackshear/frigate.git
synced 2026-02-07 11:45:24 +03:00
Formatting
This commit is contained in:
parent
ae650a1128
commit
b995896056
@ -97,7 +97,12 @@ class NorfairTracker(ObjectTracker):
|
|||||||
obj["start_time"] = obj["frame_time"]
|
obj["start_time"] = obj["frame_time"]
|
||||||
obj["motionless_count"] = 0
|
obj["motionless_count"] = 0
|
||||||
obj["position_changes"] = 0
|
obj["position_changes"] = 0
|
||||||
obj["score_history"] = [p.data['score'] for p in next((o for o in self.tracker.tracked_objects if o.global_id == track_id)).past_detections]
|
obj["score_history"] = [
|
||||||
|
p.data["score"]
|
||||||
|
for p in next(
|
||||||
|
(o for o in self.tracker.tracked_objects if o.global_id == track_id)
|
||||||
|
).past_detections
|
||||||
|
]
|
||||||
self.tracked_objects[id] = obj
|
self.tracked_objects[id] = obj
|
||||||
self.disappeared[id] = 0
|
self.disappeared[id] = 0
|
||||||
self.positions[id] = {
|
self.positions[id] = {
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user