ddovidovich commited on
Commit
ca58db8
·
1 Parent(s): c793716

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +0 -4
app.py CHANGED
@@ -168,10 +168,6 @@ if image_file is not None:
168
  decay_mask = detect_decays_static_th(img_dc, predict1)
169
 
170
 
171
- predict1 = cv2.cvtColor(predict1,cv2.COLOR_GRAY2RGB)
172
- img_dc = cv2.cvtColor(img_dc,cv2.COLOR_GRAY2RGB)
173
- decay_mask = cv2.cvtColor(decay_mask,cv2.COLOR_GRAY2RGB)
174
-
175
  mask = np.uint8(predict1 * 255)
176
  _, mask = cv2.threshold(mask, thresh=255/2, maxval=255, type=cv2.THRESH_BINARY)
177
  cnts, hierarchy = cv2.findContours(mask, cv2.RETR_TREE, cv2.CHAIN_APPROX_SIMPLE)
 
168
  decay_mask = detect_decays_static_th(img_dc, predict1)
169
 
170
 
 
 
 
 
171
  mask = np.uint8(predict1 * 255)
172
  _, mask = cv2.threshold(mask, thresh=255/2, maxval=255, type=cv2.THRESH_BINARY)
173
  cnts, hierarchy = cv2.findContours(mask, cv2.RETR_TREE, cv2.CHAIN_APPROX_SIMPLE)