ProyectoVision commited on
Commit
c2e4aba
·
1 Parent(s): 44dccd8

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +3 -3
app.py CHANGED
@@ -14,10 +14,10 @@ def image_mod(image):
14
 
15
  for r in results:
16
  image = r.plot() # plot a BGR numpy array of predictions
17
- image = Image.fromarray(image[..., ::-1]) # RGB PIL image
18
 
19
- image = image.resize((ancho, alto))
20
- return image
21
 
22
  #Obtener el numero de objetos de cada clase y el nombre
23
 
 
14
 
15
  for r in results:
16
  image = r.plot() # plot a BGR numpy array of predictions
17
+ image_with_predictions = Image.fromarray(image[..., ::-1]) # RGB PIL image
18
 
19
+ image_with_predictions = image_with_predictions .resize((ancho, alto))
20
+ return image_with_predictions
21
 
22
  #Obtener el numero de objetos de cada clase y el nombre
23