Spaces:
Runtime error
Runtime error
Update app.py
Browse files
app.py
CHANGED
|
@@ -38,6 +38,8 @@ def detect_ellipses(img_path):
|
|
| 38 |
ipad = int((ammed_size - iw) / 2)
|
| 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)
|
| 43 |
|
|
|
|
| 38 |
ipad = int((ammed_size - iw) / 2)
|
| 39 |
imgG = cv2.copyMakeBorder(imgG, 0, 0, ipad, ipad, cv2.BORDER_REPLICATE)
|
| 40 |
|
| 41 |
+
imgG = cv2.resize(imgG, (ammed_size, ammed_size)) # just to make sure
|
| 42 |
+
|
| 43 |
aamed = pyAAMED(ammed_size, ammed_size)
|
| 44 |
aamed.setParameters(3.1415926/3, 3.4, 0.77)
|
| 45 |
|