mirror of
https://github.com/blakeblackshear/frigate.git
synced 2024-11-30 19:09:13 +01:00
23 lines
424 B
Python
23 lines
424 B
Python
|
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
|