Spaces:
Runtime error
Runtime error
Update app.py
Browse files
app.py
CHANGED
@@ -18,7 +18,6 @@ def detect_ellipses(img_path):
|
|
18 |
|
19 |
ammed_size = 600
|
20 |
|
21 |
-
"""
|
22 |
iheight, iwidth = imgG.shape
|
23 |
imax = max(iheight, iwidth)
|
24 |
iscale = ammed_size / imax
|
@@ -38,7 +37,6 @@ def detect_ellipses(img_path):
|
|
38 |
else:
|
39 |
ipad = int((imax - iwidth) / 2 * iscale)
|
40 |
imgG = cv2.copyMakeBorder(imgG, 0, 0, ipad, ipad, cv2.BORDER_REPLICATE)
|
41 |
-
"""
|
42 |
|
43 |
aamed = pyAAMED(ammed_size, ammed_size)
|
44 |
aamed.setParameters(3.1415926/3, 3.4, 0.77)
|
|
|
18 |
|
19 |
ammed_size = 600
|
20 |
|
|
|
21 |
iheight, iwidth = imgG.shape
|
22 |
imax = max(iheight, iwidth)
|
23 |
iscale = ammed_size / imax
|
|
|
37 |
else:
|
38 |
ipad = int((imax - iwidth) / 2 * iscale)
|
39 |
imgG = cv2.copyMakeBorder(imgG, 0, 0, ipad, ipad, cv2.BORDER_REPLICATE)
|
|
|
40 |
|
41 |
aamed = pyAAMED(ammed_size, ammed_size)
|
42 |
aamed.setParameters(3.1415926/3, 3.4, 0.77)
|