This commit introduces several new analysis documents, including Auto-Match Load Performance Analysis, Folder Picker Analysis, Monorepo Migration Summary, and various performance analysis documents. Additionally, the installation scripts are updated to reflect changes in backend service paths, ensuring proper integration with the new backend structure. These enhancements provide better documentation and streamline the setup process for users.
30 lines
869 B
Python
30 lines
869 B
Python
"""Configuration values used by the PunimTag web services.
|
|
|
|
This module replaces the legacy desktop configuration to keep the web
|
|
application self-contained.
|
|
"""
|
|
|
|
from __future__ import annotations
|
|
|
|
# Supported image formats for uploads/imports
|
|
SUPPORTED_IMAGE_FORMATS = {".jpg", ".jpeg", ".png", ".bmp", ".tiff", ".tif"}
|
|
|
|
# Supported video formats for scanning (not processed for faces)
|
|
SUPPORTED_VIDEO_FORMATS = {".mp4", ".mov", ".avi", ".mkv", ".webm", ".m4v", ".flv", ".wmv", ".mpg", ".mpeg"}
|
|
|
|
# DeepFace behavior
|
|
DEEPFACE_ENFORCE_DETECTION = False
|
|
DEEPFACE_ALIGN_FACES = True
|
|
|
|
# Face filtering thresholds
|
|
MIN_FACE_CONFIDENCE = 0.4
|
|
MIN_FACE_SIZE = 40
|
|
MAX_FACE_SIZE = 1500
|
|
|
|
# Matching tolerance and calibration options
|
|
DEFAULT_FACE_TOLERANCE = 0.6
|
|
USE_CALIBRATED_CONFIDENCE = True
|
|
CONFIDENCE_CALIBRATION_METHOD = "empirical" # "empirical", "linear", or "sigmoid"
|
|
|
|
|