"""
Brand detection processors for identifying logos and brands in video frames.

Available providers:
- huggingface: Uses Falconsai/brand_identification model
"""

# pylint: disable=import-outside-toplevel,undefined-all-variable
# Lazy loading pattern: Imports deferred to avoid loading transformers/torch at module import time


def __getattr__(name):
    """Lazy load processor classes to avoid importing heavy ML dependencies."""
    if name == "BaseBrandDetectionProcessor":
        from .base import BaseBrandDetectionProcessor

        return BaseBrandDetectionProcessor
    if name == "HFBrandDetectionProcessor":
        from .hf_brand_detection import HFBrandDetectionProcessor

        return HFBrandDetectionProcessor
    raise AttributeError(f"module {__name__!r} has no attribute {name!r}")


__all__ = [
    "BaseBrandDetectionProcessor",
    "HFBrandDetectionProcessor",
]
