fjenett commited on
Commit
e49c811
·
1 Parent(s): 85df948

Update app.py

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