phase 2
This commit is contained in:
108
detect/profiles/stubs.py
Normal file
108
detect/profiles/stubs.py
Normal file
@@ -0,0 +1,108 @@
|
||||
"""Stub profiles — interfaces defined, not yet implemented."""
|
||||
|
||||
from __future__ import annotations
|
||||
|
||||
from detect.models import BrandDetection, DetectionReport
|
||||
|
||||
from .base import (
|
||||
BrandDictionary,
|
||||
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 brand_dictionary(self) -> BrandDictionary:
|
||||
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 brand_dictionary(self) -> BrandDictionary:
|
||||
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 brand_dictionary(self) -> BrandDictionary:
|
||||
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
|
||||
Reference in New Issue
Block a user