ProyectoVision commited on
Commit
24581a2
·
1 Parent(s): 1ad5ab6

Cambio Visualización mscaras

Browse files
Files changed (1) hide show
  1. app.py +3 -2
app.py CHANGED
@@ -74,8 +74,9 @@ 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
- image_with_predictions = img_resultante.resize((ancho, alto))
78
- image_with_predictions = Image.fromarray(image_with_predictions[..., ::-1]) # RGB PIL image
 
79
 
80
  return image_with_predictions
81
 
 
74
  alpha = 0.4
75
  img_resultante = cv.addWeighted(img_mod, 1 - alpha, cv.cvtColor(th, cv.COLOR_GRAY2BGR), alpha, 0)
76
 
77
+ image_with_predictions = Image.fromarray(img_resultante[..., ::-1]) # RGB PIL image
78
+
79
+ image_with_predictions = image_with_predictions.resize((ancho, alto))
80
 
81
  return image_with_predictions
82