ProyectoVision commited on
Commit
0bebc49
·
1 Parent(s): 511bb57

Cambio aspecto máscaras

Browse files
Files changed (1) hide show
  1. app.py +1 -1
app.py CHANGED
@@ -74,7 +74,7 @@ def image_mod(img_original):
74
  alpha = 0.4
75
  img_resultante = cv.addWeighted(img_mod, 1 - alpha, cv.cvtColor(th, cv.COLOR_GRAY2BGR), alpha, 0)
76
 
77
- img_resultante = cv.cvtColor(imagen_umbralizada, cv.COLOR_BGR2RGB)
78
 
79
  image_with_predictions = Image.fromarray(img_resultante[..., ::-1]) # RGB PIL image
80
 
 
74
  alpha = 0.4
75
  img_resultante = cv.addWeighted(img_mod, 1 - alpha, cv.cvtColor(th, cv.COLOR_GRAY2BGR), alpha, 0)
76
 
77
+ img_resultante = cv.cvtColor(img_resultante, cv.COLOR_BGR2RGB)
78
 
79
  image_with_predictions = Image.fromarray(img_resultante[..., ::-1]) # RGB PIL image
80