Spaces:
Running
Running
debug resp = iris
Browse files
app.py
CHANGED
|
@@ -56,7 +56,7 @@ def detect_iris_roboflow(eye_crop):
|
|
| 56 |
"""Calls Roboflow to find the largest iris in an eye crop."""
|
| 57 |
is_success, buffer = cv2.imencode(".jpg", eye_crop)
|
| 58 |
if not is_success: return None
|
| 59 |
-
resp = CLIENT_IRIS.infer(
|
| 60 |
preds = resp.get("predictions", [])
|
| 61 |
if not preds: return None
|
| 62 |
largest = max(preds, key=lambda p: p["width"] * p["height"])
|
|
|
|
| 56 |
"""Calls Roboflow to find the largest iris in an eye crop."""
|
| 57 |
is_success, buffer = cv2.imencode(".jpg", eye_crop)
|
| 58 |
if not is_success: return None
|
| 59 |
+
resp = CLIENT_IRIS.infer(buffer, model_id="iris_120_set/7")
|
| 60 |
preds = resp.get("predictions", [])
|
| 61 |
if not preds: return None
|
| 62 |
largest = max(preds, key=lambda p: p["width"] * p["height"])
|