fjenett commited on
Commit
a1ed5cd
1 Parent(s): 44ce424

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +1 -1
app.py CHANGED
@@ -43,7 +43,7 @@ def detect_ellipses(img_path):
43
  imgN = cv2.cvtColor(imgN, cv2.COLOR_GRAY2RGB)
44
  for e in result:
45
  x, y, w, h, a, _ = e
46
- imgN = cv2.ellipse(imgN, (y, x), (h // 2, w // 2), -a, 0, 360, (0, 255, 0), 3) # image, center_coordinates, axesLength, angle, startAngle, endAngle, color, thickness
47
 
48
  # from CPP code:
49
  # temp.center.x = detEllipses[i].center.y;
 
43
  imgN = cv2.cvtColor(imgN, cv2.COLOR_GRAY2RGB)
44
  for e in result:
45
  x, y, w, h, a, _ = e
46
+ imgN = cv2.ellipse(imgN, (y, x), (int(h / 2), int(w / 2)), -a, 0, 360, (0, 255, 0), 3) # image, center_coordinates, axesLength, angle, startAngle, endAngle, color, thickness
47
 
48
  # from CPP code:
49
  # temp.center.x = detEllipses[i].center.y;