feat: Add media_type column to photos table and enhance video handling
This commit introduces a new column, media_type, to the photos table to differentiate between image and video files. The ensure_photo_media_type_column function has been added to manage the database schema changes. Additionally, the photo and video processing logic has been updated to skip videos during face detection and to extract metadata from videos, including the date taken. The find_photos_in_folder function now supports both image and video formats, improving the overall media management capabilities. Documentation has been updated to reflect these changes.
This commit is contained in:
@@ -9,6 +9,9 @@ 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
|
||||
|
||||
Reference in New Issue
Block a user