DHEIVER commited on
Commit
8f0b20f
1 Parent(s): 700be79

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +6 -1
app.py CHANGED
@@ -59,7 +59,12 @@ def classify_image(input_image):
59
  # Escreva o r贸tulo de previs茫o no output_image_with_box (com a cor da caixa)
60
  font = cv2.FONT_HERSHEY_SIMPLEX
61
  font_scale = 0.4 # Tamanho da fonte reduzido
62
- cv2.putText(output_image_with_box, f"Predicted Class: {predicted_class}", (10, 20), font, font_scale, (0, 255, 0), 1) # Cor verde
 
 
 
 
 
63
 
64
  return output_image_with_box
65
 
 
59
  # Escreva o r贸tulo de previs茫o no output_image_with_box (com a cor da caixa)
60
  font = cv2.FONT_HERSHEY_SIMPLEX
61
  font_scale = 0.4 # Tamanho da fonte reduzido
62
+
63
+ # Adicione a data e hora da an谩lise
64
+ current_time = datetime.datetime.now()
65
+ cv2.putText(output_image_with_box, f"Analysis Time: {current_time.strftime('%Y-%m-%d %H:%M:%S')}", (10, 40), font, font_scale, (0, 255, 0), 1)
66
+
67
+ cv2.putText(output_image_with_box, f"Predicted Class: {predicted_class}", (10, 60), font, font_scale, (0, 255, 0), 1) # Cor verde
68
 
69
  return output_image_with_box
70