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 @abstractmethod
def match_and_update( 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: ) -> None:
pass pass

View File

@ -138,7 +138,10 @@ class CentroidTracker(ObjectTracker):
self.deregister(id) self.deregister(id)
def match_and_update( 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: ) -> None:
# group by name # group by name
detection_groups = defaultdict(lambda: []) detection_groups = defaultdict(lambda: [])

View File

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