fjenett commited on
Commit
99c5a26
·
1 Parent(s): e65e092

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +1 -1
app.py CHANGED
@@ -40,7 +40,7 @@ def detect_ellipses(img_path):
40
 
41
  if len(result) > 0:
42
  imgN = imgG.copy()
43
- imgN = cv2.cvtColor(imgN, cv2.COLOR_BRAY2RGB)
44
  for e in result:
45
  x, y, w, h, a, _ = e
46
  imgN = cv2.ellipse(imgN, (x, y), (w, h), -a, 0, 360, (0, 255, 0), 3) # image, center_coordinates, axesLength, angle, startAngle, endAngle, color, thickness
 
40
 
41
  if len(result) > 0:
42
  imgN = imgG.copy()
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, (x, y), (w, h), -a, 0, 360, (0, 255, 0), 3) # image, center_coordinates, axesLength, angle, startAngle, endAngle, color, thickness