* Fix handling of non existing cameras in groups

* Update docs

* Improve typing
This commit is contained in:
Nicolas Mowen
2025-04-17 13:48:09 -06:00
committed by GitHub
parent 1abd3c68ec
commit 8270967cdc
4 changed files with 26 additions and 3 deletions

View File

@@ -4,7 +4,7 @@ from typing import List
import numpy as np
from frigate.detectors.detector_config import ModelTypeEnum
from frigate.detectors.detector_config import BaseDetectorConfig, ModelTypeEnum
logger = logging.getLogger(__name__)
@@ -14,7 +14,7 @@ class DetectionApi(ABC):
supported_models: List[ModelTypeEnum]
@abstractmethod
def __init__(self, detector_config):
def __init__(self, detector_config: BaseDetectorConfig):
self.detector_config = detector_config
self.thresh = 0.5
self.height = detector_config.model.height