mirror of
https://github.com/blakeblackshear/frigate.git
synced 2026-02-17 16:44:29 +03:00
pixel velocity in debug
This commit is contained in:
parent
446f5dc9bb
commit
29c979f6f1
@ -193,7 +193,9 @@ class TrackedObject:
|
|||||||
else 0
|
else 0
|
||||||
)
|
)
|
||||||
logger.debug(
|
logger.debug(
|
||||||
f"Camera: {self.camera_config.name}, zone: {name}, tracked object ID: {self.obj_data['id']}, estimated speed: {self.estimated_speed:.1f}"
|
f"Camera: {self.camera_config.name}, zone: {name}, tracked object ID: {self.obj_data['id']}, \
|
||||||
|
pixel velocity: {str(tuple(np.round(self.obj_data["estimate_velocity"]).flatten().astype(int)))} \
|
||||||
|
estimated speed: {self.estimated_speed:.1f}"
|
||||||
)
|
)
|
||||||
|
|
||||||
if self.estimated_speed > self.max_estimated_speed:
|
if self.estimated_speed > self.max_estimated_speed:
|
||||||
@ -280,11 +282,6 @@ class TrackedObject:
|
|||||||
"current_attributes": self.obj_data["attributes"],
|
"current_attributes": self.obj_data["attributes"],
|
||||||
"pending_loitering": self.pending_loitering,
|
"pending_loitering": self.pending_loitering,
|
||||||
"max_severity": self.max_severity,
|
"max_severity": self.max_severity,
|
||||||
"pixel_velocity": str(
|
|
||||||
tuple(
|
|
||||||
np.round(self.obj_data["estimate_velocity"]).flatten().astype(int)
|
|
||||||
)
|
|
||||||
),
|
|
||||||
"estimated_speed": self.estimated_speed,
|
"estimated_speed": self.estimated_speed,
|
||||||
"max_estimated_speed": self.max_estimated_speed,
|
"max_estimated_speed": self.max_estimated_speed,
|
||||||
"velocity_angle": self.velocity_angle,
|
"velocity_angle": self.velocity_angle,
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user