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
|
@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
|
||||||
|
|||||||
@ -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: [])
|
||||||
|
|||||||
@ -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
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user