Spaces:
Runtime error
Runtime error
Update app.py
Browse files
app.py
CHANGED
|
@@ -15,7 +15,7 @@ def detect_ellipses(img_path):
|
|
| 15 |
|
| 16 |
ammed_size = 1200
|
| 17 |
|
| 18 |
-
iheight, iwidth = imgG.shape
|
| 19 |
imax = max(iheight, iwidth)
|
| 20 |
iscale = ammed_size / imax
|
| 21 |
is_landscape = iwidth >= iheight
|
|
|
|
| 15 |
|
| 16 |
ammed_size = 1200
|
| 17 |
|
| 18 |
+
iheight, iwidth = np.array(imgG.shape, type='int')
|
| 19 |
imax = max(iheight, iwidth)
|
| 20 |
iscale = ammed_size / imax
|
| 21 |
is_landscape = iwidth >= iheight
|