fix(face-enhancer): add missing process_frame_v2 method

The live webcam preview in ui.py calls process_frame_v2() on all
frame processors, but face_enhancer.py was missing this method.
This caused an AttributeError crash when the GFPGAN face enhancer
was enabled during live mode.

Fixes https://github.com/hacksider/Deep-Live-Cam/issues/1654

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
This commit is contained in:
Matt Van Horn
2026-03-30 23:49:12 -07:00
co-authored by Claude Opus 4.6
parent d9a5500bdf
commit 9525d45291
@@ -319,6 +319,11 @@ def process_frame(source_face: Face | None, temp_frame: Frame) -> Frame:
return temp_frame
def process_frame_v2(temp_frame: Frame) -> Frame:
"""Processes a frame without source face (used by live webcam preview)."""
return enhance_face(temp_frame)
def process_frames(
source_path: str | None, temp_frame_paths: List[str], progress: Any = None
) -> None: