#!/usr/bin/env python3
"""
Scene Detection Models
场景检测数据模型
"""

from dataclasses import dataclass
from typing import List, Optional
from .enums import DetectorType


@dataclass
class SceneInfo:
    """场景信息"""
    index: int
    start_time: float
    end_time: float
    duration: float
    start_frame: int = 0
    end_frame: int = 0


@dataclass
class DetectionResult:
    """检测结果"""
    success: bool
    filename: str
    detector_type: DetectorType
    threshold: float
    total_scenes: int
    total_duration: float
    detection_time: float
    scenes: List[SceneInfo]
    error: Optional[str] = None
