Updated live portrait video code

This commit is contained in:
Isi
2024-10-30 09:27:56 +01:00
parent b7e552c635
commit b92fdc2667
+2 -2
View File
@@ -758,8 +758,8 @@ class MakeDrivingVideoForLivePortrait:
h, w, _ = frame.shape
# Convert the BGR image to RGB
rgb_frame = cv2.cvtColor(frame, cv2.COLOR_BGR2RGB)
results = face_mesh.process(rgb_frame)
# rgb_frame = cv2.cvtColor(frame, cv2.COLOR_BGR2RGB)
results = face_mesh.process(frame)
if results.multi_face_landmarks:
# Get the landmarks for the first detected face