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