Files
mediaproc/detect/profiles/stubs.py
2026-03-26 04:40:00 -03:00

99 lines
2.7 KiB
Python

"""Stub profiles — interfaces defined, not yet implemented."""
from __future__ import annotations
from detect.models import BrandDetection, DetectionReport
from .base import (
CropContext,
DetectionConfig,
FrameExtractionConfig,
OCRConfig,
ResolverConfig,
SceneFilterConfig,
)
class NewsBroadcastProfile:
name = "news_broadcast"
def frame_extraction_config(self) -> FrameExtractionConfig:
raise NotImplementedError
def scene_filter_config(self) -> SceneFilterConfig:
raise NotImplementedError
def detection_config(self) -> DetectionConfig:
raise NotImplementedError
def ocr_config(self) -> OCRConfig:
raise NotImplementedError
def resolver_config(self) -> ResolverConfig:
raise NotImplementedError
def vlm_prompt(self, crop_context: CropContext) -> str:
raise NotImplementedError
def aggregate(self, detections: list[BrandDetection]) -> DetectionReport:
raise NotImplementedError
def auxiliary_detections(self, source: str) -> list[BrandDetection]:
raise NotImplementedError
class AdvertisingProfile:
name = "advertising"
def frame_extraction_config(self) -> FrameExtractionConfig:
raise NotImplementedError
def scene_filter_config(self) -> SceneFilterConfig:
raise NotImplementedError
def detection_config(self) -> DetectionConfig:
raise NotImplementedError
def ocr_config(self) -> OCRConfig:
raise NotImplementedError
def resolver_config(self) -> ResolverConfig:
raise NotImplementedError
def vlm_prompt(self, crop_context: CropContext) -> str:
raise NotImplementedError
def aggregate(self, detections: list[BrandDetection]) -> DetectionReport:
raise NotImplementedError
def auxiliary_detections(self, source: str) -> list[BrandDetection]:
raise NotImplementedError
class TranscriptProfile:
name = "transcript"
def frame_extraction_config(self) -> FrameExtractionConfig:
raise NotImplementedError
def scene_filter_config(self) -> SceneFilterConfig:
raise NotImplementedError
def detection_config(self) -> DetectionConfig:
raise NotImplementedError
def ocr_config(self) -> OCRConfig:
raise NotImplementedError
def resolver_config(self) -> ResolverConfig:
raise NotImplementedError
def vlm_prompt(self, crop_context: CropContext) -> str:
raise NotImplementedError
def aggregate(self, detections: list[BrandDetection]) -> DetectionReport:
raise NotImplementedError
def auxiliary_detections(self, source: str) -> list[BrandDetection]:
raise NotImplementedError