mirror of
https://github.com/blakeblackshear/frigate.git
synced 2026-05-05 04:57:42 +03:00
Improve typing
This commit is contained in:
parent
7b851cca48
commit
955b483cf5
@ -4,7 +4,7 @@ from typing import List
|
|||||||
|
|
||||||
import numpy as np
|
import numpy as np
|
||||||
|
|
||||||
from frigate.detectors.detector_config import ModelTypeEnum
|
from frigate.detectors.detector_config import BaseDetectorConfig, ModelTypeEnum
|
||||||
|
|
||||||
logger = logging.getLogger(__name__)
|
logger = logging.getLogger(__name__)
|
||||||
|
|
||||||
@ -14,7 +14,7 @@ class DetectionApi(ABC):
|
|||||||
supported_models: List[ModelTypeEnum]
|
supported_models: List[ModelTypeEnum]
|
||||||
|
|
||||||
@abstractmethod
|
@abstractmethod
|
||||||
def __init__(self, detector_config):
|
def __init__(self, detector_config: BaseDetectorConfig):
|
||||||
self.detector_config = detector_config
|
self.detector_config = detector_config
|
||||||
self.thresh = 0.5
|
self.thresh = 0.5
|
||||||
self.height = detector_config.model.height
|
self.height = detector_config.model.height
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user