Spaces:
Runtime error
Runtime error
Merge branch 'main' of https://huggingface.co./spaces/fjenett/ellipse-detection-aamed
Browse files
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 |
-
|
|
|
|
|
|
|
|
|
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 |
|