#!/usr/bin/env python3 """ Configuration constants and settings for PunimTag """ # Default file paths DEFAULT_DB_PATH = "data/photos.db" DEFAULT_CONFIG_FILE = "gui_config.json" DEFAULT_WINDOW_SIZE = "600x500" # Face detection settings DEFAULT_FACE_DETECTION_MODEL = "hog" DEFAULT_FACE_TOLERANCE = 0.6 DEFAULT_BATCH_SIZE = 20 DEFAULT_PROCESSING_LIMIT = 50 # Face quality settings MIN_FACE_QUALITY = 0.3 DEFAULT_CONFIDENCE_THRESHOLD = 0.5 # GUI settings FACE_CROP_SIZE = 100 ICON_SIZE = 20 MAX_SUGGESTIONS = 10 # Database settings DB_TIMEOUT = 30.0 # Supported image formats SUPPORTED_IMAGE_FORMATS = {'.jpg', '.jpeg', '.png', '.bmp', '.tiff', '.tif'} # Face crop temporary directory TEMP_FACE_CROP_DIR = "temp_face_crops"