fjenett commited on
Commit
c96cef3
·
1 Parent(s): 7168cc8

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +1 -1
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