mirror of
https://github.com/blakeblackshear/frigate.git
synced 2024-11-30 19:09:13 +01:00
18 lines
309 B
Python
18 lines
309 B
Python
|
import logging
|
||
|
|
||
|
from abc import ABC, abstractmethod
|
||
|
from typing import Dict
|
||
|
|
||
|
|
||
|
logger = logging.getLogger(__name__)
|
||
|
|
||
|
|
||
|
class DetectionApi(ABC):
|
||
|
@abstractmethod
|
||
|
def __init__(self, det_device=None, model_config=None):
|
||
|
pass
|
||
|
|
||
|
@abstractmethod
|
||
|
def detect_raw(self, tensor_input):
|
||
|
pass
|