Core API
Data Types
BoundingBox
@dataclass
class BoundingBox:
x1: float
y1: float
x2: float
y2: float
confidence: float
@property
def width(self) -> float
@property
def height(self) -> float
FaceDetection
DeepfakeDetection
@dataclass
class DeepfakeDetection:
frame_number: int
is_deepfake: bool
confidence: float
model_name: str
Factory Pattern
All modules use factory methods for model creation: