Formatting

This commit is contained in:
Nicolas Mowen 2025-08-15 15:00:10 -06:00
parent 45c83289c4
commit 1f47b28806
3 changed files with 9 additions and 5 deletions

View File

@ -11,6 +11,9 @@ class ObjectTracker(ABC):
@abstractmethod
def match_and_update(
self, frame_name: str, frame_time: float, detections: list[tuple[Any, Any, Any, Any, Any, Any]]
self,
frame_name: str,
frame_time: float,
detections: list[tuple[Any, Any, Any, Any, Any, Any]],
) -> None:
pass

View File

@ -138,7 +138,10 @@ class CentroidTracker(ObjectTracker):
self.deregister(id)
def match_and_update(
self, frame_name: str, frame_time: float, detections: list[tuple[Any, Any, Any, Any, Any, Any]]
self,
frame_name: str,
frame_time: float,
detections: list[tuple[Any, Any, Any, Any, Any, Any]],
) -> None:
# group by name
detection_groups = defaultdict(lambda: [])

View File

@ -706,9 +706,7 @@ class TrackedObjectProcessor(threading.Thread):
# check for sub label updates
while True:
update = self.sub_label_subscriber.check_for_update(
timeout=0
)
update = self.sub_label_subscriber.check_for_update(timeout=0)
if not update:
break