fjenett commited on
Commit
af0f82d
1 Parent(s): 1a7cf2f

Update app.py

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