"""Configuration for Dad's Video Catalog."""

from pathlib import Path

PROJECT_ROOT = Path(__file__).resolve().parent.parent
VIDEO_DIR = Path("~/Pictures/1960s-1970s-Dad").expanduser()
DB_PATH = PROJECT_ROOT / "catalog.db"
FRAMES_DIR = PROJECT_ROOT / "frames"
FACES_DIR = PROJECT_ROOT / "faces"

# Frame extraction settings
FRAME_INTERVAL_SECONDS = 5  # Extract one frame every N seconds

# Face detection settings
FACE_PADDING = 0.4  # 40% padding around detected faces
MIN_FACE_SIZE = 60  # Minimum face dimension in pixels

# Face recognition settings
FACE_RECOGNITION_MODEL = "hog"  # "hog" for CPU (fast), "cnn" for GPU (accurate)
FACE_MATCH_TOLERANCE = 0.6  # Lower = stricter matching (0.0-1.0)

# Web server
SERVER_PORT = 8000
FACES_PER_PAGE = 50
