1
0
mirror of https://github.com/blakeblackshear/frigate.git synced 2025-03-09 00:16:54 +01:00
blakeblackshear.frigate/frigate/motion/__init__.py

31 lines
542 B
Python
Raw Normal View History

from abc import ABC, abstractmethod
from typing import Tuple
from frigate.config import MotionConfig
class MotionDetector(ABC):
@abstractmethod
def __init__(
self,
frame_shape: Tuple[int, int, int],
config: MotionConfig,
fps: int,
improve_contrast,
threshold,
contour_area,
):
pass
@abstractmethod
def detect(self, frame):
pass
@abstractmethod
def is_calibrating(self):
pass
@abstractmethod
def stop(self):
pass