use mjpeg and convert bgr to rgb

This commit is contained in:
underlines committed 2024-08-30 21:49:01 +02:00
1 parent 3107f74165
commit 79c6615a68
3 files changed
+17 -3

No files matched your search

+2
View File
@@ -49,6 +49,8 @@ def swap_face(source_face: Face, target_face: Face, temp_frame: Frame) -> Frame:
def process_frame(source_face: Face, temp_frame: Frame) -> Frame:
# Ensure the frame is in RGB format
temp_frame = cv2.cvtColor(temp_frame, cv2.COLOR_BGR2RGB)
if modules.globals.many_faces:
many_faces = get_many_faces(temp_frame)
if many_faces: