blakeblackshear.frigate/frigate/motion/__init__.py
Nicolas Mowen dba21b606d
Convert config updating and video/audio queues to use zmq (#9893)
* Add config pub / sub pattern

* remove recording from feature metrics

* remove audio and feature metrics

* Check for updates from all cameras

* remove birdseye from camera metrics

* remove motion and detection camera metrics

* Ensure that all processes are stopped

* Stop communicators

* Detections

* Cleanup video output queue

* Use select for time sensitive polls

* Use ipc instead of tcp
2024-02-19 07:26:59 -06:00

31 lines
542 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
@abstractmethod
def is_calibrating(self):
pass
@abstractmethod
def stop(self):
pass