Spaces:
Running
Running
fixed the left and right pov
Browse files
app.py
CHANGED
@@ -117,7 +117,7 @@ async def full_detection_pipeline(image: UploadFile = File(...)):
|
|
117 |
eye_images_b64 = {}
|
118 |
|
119 |
for i, eye_crop in enumerate(eye_crops):
|
120 |
-
side = "
|
121 |
|
122 |
# --- NEW: Encode the cropped eye image to Base64 ---
|
123 |
is_success, buffer = cv2.imencode(".jpg", eye_crop)
|
|
|
117 |
eye_images_b64 = {}
|
118 |
|
119 |
for i, eye_crop in enumerate(eye_crops):
|
120 |
+
side = "right" if i == 0 else "left"
|
121 |
|
122 |
# --- NEW: Encode the cropped eye image to Base64 ---
|
123 |
is_success, buffer = cv2.imencode(".jpg", eye_crop)
|