mirror of
https://github.com/blakeblackshear/frigate.git
synced 2026-02-03 09:45:22 +03:00
Fixes after rebasing to 0.11
This commit is contained in:
parent
81e07a785f
commit
4a1efcfa06
@ -23,7 +23,7 @@ Examples of available modules are:
|
|||||||
|
|
||||||
- `frigate.app`
|
- `frigate.app`
|
||||||
- `frigate.mqtt`
|
- `frigate.mqtt`
|
||||||
- `frigate.edgetpu`
|
- `frigate.object_detection`
|
||||||
- `frigate.zeroconf`
|
- `frigate.zeroconf`
|
||||||
- `detector.<detector_name>`
|
- `detector.<detector_name>`
|
||||||
- `watchdog.<camera_name>`
|
- `watchdog.<camera_name>`
|
||||||
|
|||||||
@ -9,6 +9,7 @@ from abc import ABC, abstractmethod
|
|||||||
|
|
||||||
import numpy as np
|
import numpy as np
|
||||||
from setproctitle import setproctitle
|
from setproctitle import setproctitle
|
||||||
|
|
||||||
from frigate.config import DetectorTypeEnum
|
from frigate.config import DetectorTypeEnum
|
||||||
from frigate.detectors.edgetpu_tfl import EdgeTpuTfl
|
from frigate.detectors.edgetpu_tfl import EdgeTpuTfl
|
||||||
from frigate.detectors.cpu_tfl import CpuTfl
|
from frigate.detectors.cpu_tfl import CpuTfl
|
||||||
|
|||||||
@ -14,7 +14,7 @@ from frigate.config import FrigateConfig
|
|||||||
from frigate.const import RECORD_DIR, CLIPS_DIR, CACHE_DIR
|
from frigate.const import RECORD_DIR, CLIPS_DIR, CACHE_DIR
|
||||||
from frigate.types import StatsTrackingTypes, CameraMetricsTypes
|
from frigate.types import StatsTrackingTypes, CameraMetricsTypes
|
||||||
from frigate.version import VERSION
|
from frigate.version import VERSION
|
||||||
from frigate.edgetpu import EdgeTPUProcess
|
from frigate.object_detection import ObjectDetectProcess
|
||||||
|
|
||||||
logger = logging.getLogger(__name__)
|
logger = logging.getLogger(__name__)
|
||||||
|
|
||||||
@ -37,7 +37,8 @@ def get_latest_version() -> str:
|
|||||||
|
|
||||||
|
|
||||||
def stats_init(
|
def stats_init(
|
||||||
camera_metrics: dict[str, CameraMetricsTypes], detectors: dict[str, EdgeTPUProcess]
|
camera_metrics: dict[str, CameraMetricsTypes],
|
||||||
|
detectors: dict[str, ObjectDetectProcess],
|
||||||
) -> StatsTrackingTypes:
|
) -> StatsTrackingTypes:
|
||||||
stats_tracking: StatsTrackingTypes = {
|
stats_tracking: StatsTrackingTypes = {
|
||||||
"camera_metrics": camera_metrics,
|
"camera_metrics": camera_metrics,
|
||||||
|
|||||||
@ -3,7 +3,7 @@ from multiprocessing.queues import Queue
|
|||||||
from multiprocessing.sharedctypes import Synchronized
|
from multiprocessing.sharedctypes import Synchronized
|
||||||
from multiprocessing.context import Process
|
from multiprocessing.context import Process
|
||||||
|
|
||||||
from frigate.edgetpu import EdgeTPUProcess
|
from frigate.object_detection import ObjectDetectProcess
|
||||||
|
|
||||||
|
|
||||||
class CameraMetricsTypes(TypedDict):
|
class CameraMetricsTypes(TypedDict):
|
||||||
@ -26,6 +26,6 @@ class CameraMetricsTypes(TypedDict):
|
|||||||
|
|
||||||
class StatsTrackingTypes(TypedDict):
|
class StatsTrackingTypes(TypedDict):
|
||||||
camera_metrics: dict[str, CameraMetricsTypes]
|
camera_metrics: dict[str, CameraMetricsTypes]
|
||||||
detectors: dict[str, EdgeTPUProcess]
|
detectors: dict[str, ObjectDetectProcess]
|
||||||
started: int
|
started: int
|
||||||
latest_frigate_version: str
|
latest_frigate_version: str
|
||||||
|
|||||||
@ -12,8 +12,6 @@ from collections import defaultdict
|
|||||||
|
|
||||||
import numpy as np
|
import numpy as np
|
||||||
import cv2
|
import cv2
|
||||||
|
|
||||||
# from cv2 import cv2, reduce
|
|
||||||
from setproctitle import setproctitle
|
from setproctitle import setproctitle
|
||||||
|
|
||||||
from frigate.config import CameraConfig, DetectConfig
|
from frigate.config import CameraConfig, DetectConfig
|
||||||
|
|||||||
@ -5,7 +5,7 @@ import time
|
|||||||
import os
|
import os
|
||||||
import signal
|
import signal
|
||||||
|
|
||||||
from frigate.edgetpu import EdgeTPUProcess
|
from frigate.object_detection import ObjectDetectProcess
|
||||||
from frigate.util import restart_frigate
|
from frigate.util import restart_frigate
|
||||||
from multiprocessing.synchronize import Event
|
from multiprocessing.synchronize import Event
|
||||||
|
|
||||||
@ -13,7 +13,7 @@ logger = logging.getLogger(__name__)
|
|||||||
|
|
||||||
|
|
||||||
class FrigateWatchdog(threading.Thread):
|
class FrigateWatchdog(threading.Thread):
|
||||||
def __init__(self, detectors: dict[str, EdgeTPUProcess], stop_event: Event):
|
def __init__(self, detectors: dict[str, ObjectDetectProcess], stop_event: Event):
|
||||||
threading.Thread.__init__(self)
|
threading.Thread.__init__(self)
|
||||||
self.name = "frigate_watchdog"
|
self.name = "frigate_watchdog"
|
||||||
self.detectors = detectors
|
self.detectors = detectors
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user