Spaces:
Runtime error
Runtime error
Update app.py
Browse files
app.py
CHANGED
|
@@ -136,6 +136,7 @@ class VideoProcessor:
|
|
| 136 |
|
| 137 |
def recv(self, frame):
|
| 138 |
frm = frame.to_ndarray(format="bgr24")
|
|
|
|
| 139 |
rgb_frame = cv2.cvtColor(frm, cv2.COLOR_BGR2RGB)
|
| 140 |
results = face_mesh.process(rgb_frame)
|
| 141 |
img_h, img_w, img_c = frm.shape
|
|
|
|
| 136 |
|
| 137 |
def recv(self, frame):
|
| 138 |
frm = frame.to_ndarray(format="bgr24")
|
| 139 |
+
frm = cv2.flip(frm,1)
|
| 140 |
rgb_frame = cv2.cvtColor(frm, cv2.COLOR_BGR2RGB)
|
| 141 |
results = face_mesh.process(rgb_frame)
|
| 142 |
img_h, img_w, img_c = frm.shape
|