pixel velocity in debug

This commit is contained in:
Josh Hawkins 2024-12-08 17:31:07 -06:00
parent 446f5dc9bb
commit 29c979f6f1

View File

@ -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,