swel4ik commited on
Commit
472cb22
1 Parent(s): 4b9602c

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +1 -1
app.py CHANGED
@@ -75,7 +75,7 @@ def detect_corn(inp):
75
  color_mask = random.sample(range(0, 255), 3)
76
  cv2.rectangle(inp, (x1, y1), (x2, y2), color, int(inp.shape[0] * 0.01))
77
  inp = apply_mask(inp, mask_to_save[:, :, i], [255, 0, 255], 0.5)
78
- inp = cv2.resize(inp, (inp.shape[1] // 2, inp.shape[2] // 2))
79
  inp = cv2.cvtColor(inp, cv2.COLOR_BGR2RGB)
80
  return inp / 255.
81
 
 
75
  color_mask = random.sample(range(0, 255), 3)
76
  cv2.rectangle(inp, (x1, y1), (x2, y2), color, int(inp.shape[0] * 0.01))
77
  inp = apply_mask(inp, mask_to_save[:, :, i], [255, 0, 255], 0.5)
78
+ inp = cv2.resize(inp, (inp.shape[1] // 2, inp.shape[0] // 2))
79
  inp = cv2.cvtColor(inp, cv2.COLOR_BGR2RGB)
80
  return inp / 255.
81