skibi11 commited on
Commit
b9bd60d
·
verified ·
1 Parent(s): afbf135

debug resp = iris

Browse files
Files changed (1) hide show
  1. app.py +1 -1
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(data=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"])
 
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"])