Update app.py
Browse files
app.py
CHANGED
|
@@ -37,7 +37,7 @@ def detectar_objetos(image):
|
|
| 37 |
label = f"Class {cls}"
|
| 38 |
|
| 39 |
# Dibujar el cuadro y la etiqueta
|
| 40 |
-
cv2.rectangle(annotated_image, (x1, y1), (x2, y2), color, thickness=
|
| 41 |
cv2.putText(
|
| 42 |
annotated_image, label, (x1, y1 - 10),
|
| 43 |
cv2.FONT_HERSHEY_SIMPLEX, 0.5, color, thickness=1
|
|
|
|
| 37 |
label = f"Class {cls}"
|
| 38 |
|
| 39 |
# Dibujar el cuadro y la etiqueta
|
| 40 |
+
cv2.rectangle(annotated_image, (x1, y1), (x2, y2), color, thickness=2)
|
| 41 |
cv2.putText(
|
| 42 |
annotated_image, label, (x1, y1 - 10),
|
| 43 |
cv2.FONT_HERSHEY_SIMPLEX, 0.5, color, thickness=1
|