mirror of
https://github.com/blakeblackshear/frigate.git
synced 2026-04-27 09:07:41 +03:00
Formatting
This commit is contained in:
parent
45c83289c4
commit
1f47b28806
@ -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
|
||||
|
||||
@ -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: [])
|
||||
|
||||
@ -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
|
||||
|
||||
Loading…
Reference in New Issue
Block a user