Compare commits

...

2 Commits

Author SHA1 Message Date
Nicolas Mowen
955b483cf5 Improve typing 2025-04-17 11:18:44 -06:00
Nicolas Mowen
7b851cca48 Update docs 2025-04-17 09:36:20 -06:00
2 changed files with 3 additions and 3 deletions

View File

@ -882,7 +882,7 @@ output_name: "{input_basename}"
config: config:
mean_values: [[0, 0, 0]] mean_values: [[0, 0, 0]]
std_values: [[255, 255, 255]] std_values: [[255, 255, 255]]
quant_img_rgb2bgr: true quant_img_RGB2BGR: true
``` ```
Explanation of the paramters: Explanation of the paramters:

View File

@ -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