"""Base class for person detection processors."""

from abc import ABC
from mini_videorag.core.processor import BaseVideoProcessor


class BasePersonDetectionProcessor(BaseVideoProcessor, ABC):
    """
    Abstract base class for person detection processors.

    All person detection implementations should inherit from this class.
    This provides a common interface while allowing different providers
    (YOLO, MediaPipe, OpenCV Haar Cascades, AWS Rekognition, etc.).

    Attributes:
        name: Should be "person_detection" for all implementations
        is_frame_based: True (person detection analyzes per frame)
    """

    is_frame_based = True  # Person detection produces one result per frame

    @property
    def name(self) -> str:
        """All person detection processors use the same identifier."""
        return "person_detection"

    @property
    def requires_audio(self) -> bool:
        """Person detection doesn't require audio."""
        return False

    @property
    def requires_video(self) -> bool:
        """Person detection requires video frames."""
        return True
