fjenett commited on
Commit
f71705d
2 Parent(s): 72d348e 9a85ca4

Merge branch 'main' of https://huggingface.co./spaces/fjenett/ellipse-detection-aamed

Browse files
Files changed (1) hide show
  1. app.py +5 -1
app.py CHANGED
@@ -53,7 +53,11 @@ def detect_ellipses(img_path):
53
  # temp.size.width = detEllipses[i].size.height;
54
  # temp.angle = -detEllipses[i].angle;
55
 
56
- return [Image.fromarray(imgN), json.dumps(result.tolist())]
 
 
 
 
57
 
58
  examples = []
59
 
 
53
  # temp.size.width = detEllipses[i].size.height;
54
  # temp.angle = -detEllipses[i].angle;
55
 
56
+ result = result.tolist()
57
+ else:
58
+ result = []
59
+
60
+ return [Image.fromarray(imgN), json.dumps(result)]
61
 
62
  examples = []
63