mirror of
https://github.com/blakeblackshear/frigate.git
synced 2026-04-27 17:17:40 +03:00
26 lines
675 B
Python
26 lines
675 B
Python
"""Post processor for review items to get descriptions."""
|
|
|
|
import logging
|
|
from typing import Any
|
|
|
|
from frigate.data_processing.types import PostProcessDataEnum
|
|
|
|
from ..post.api import PostProcessorApi
|
|
|
|
logger = logging.getLogger(__name__)
|
|
|
|
|
|
class ReviewDescriptionProcessor(PostProcessorApi):
|
|
def __init__(self, config, metrics):
|
|
super().__init__(config, metrics, None)
|
|
self.tracked_review_items: dict[str, list[Any]] = {}
|
|
|
|
def process_data(self, data, data_type):
|
|
if data_type != PostProcessDataEnum.review:
|
|
return
|
|
|
|
logger.info(f"processor is looking at {data}")
|
|
|
|
def handle_request(self, request_data):
|
|
pass
|