Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
|
@@ -354,7 +354,7 @@ class YOLOVideoProcessor:
|
|
| 354 |
|
| 355 |
# Affichage du comptage
|
| 356 |
# draw_text_with_background(display_frame, f"Total Sens 1: {len(self.unique_region1_ids)}", (10, frame_height - 50))
|
| 357 |
-
draw_text_with_background(display_frame, f"Total
|
| 358 |
|
| 359 |
return display_frame
|
| 360 |
|
|
@@ -451,10 +451,10 @@ def main():
|
|
| 451 |
st.header("🔹 Paramètres")
|
| 452 |
|
| 453 |
st.subheader("📍 Polygone 1 (vert)")
|
| 454 |
-
poly1_input = st.text_area("Entrez 4 points (x,y) séparés par des espaces", "
|
| 455 |
|
| 456 |
st.subheader("📍 Polygone 2 (rouge)")
|
| 457 |
-
poly2_input = st.text_area("Entrez 4 points (x,y) séparés par des espaces", "
|
| 458 |
|
| 459 |
tracker_method = st.selectbox("Méthode de tracking", ["bot", "byte"], index=0)
|
| 460 |
|
|
|
|
| 354 |
|
| 355 |
# Affichage du comptage
|
| 356 |
# draw_text_with_background(display_frame, f"Total Sens 1: {len(self.unique_region1_ids)}", (10, frame_height - 50))
|
| 357 |
+
draw_text_with_background(display_frame, f"Total: {len(self.unique_region2_ids)}", (frame_width - 300, frame_height - 50))
|
| 358 |
|
| 359 |
return display_frame
|
| 360 |
|
|
|
|
| 451 |
st.header("🔹 Paramètres")
|
| 452 |
|
| 453 |
st.subheader("📍 Polygone 1 (vert)")
|
| 454 |
+
poly1_input = st.text_area("Entrez 4 points (x,y) séparés par des espaces", "0,0 0,0 0,0 0,0")
|
| 455 |
|
| 456 |
st.subheader("📍 Polygone 2 (rouge)")
|
| 457 |
+
poly2_input = st.text_area("Entrez 4 points (x,y) séparés par des espaces", "500,150 700,150 1100,530 630,530")
|
| 458 |
|
| 459 |
tracker_method = st.selectbox("Méthode de tracking", ["bot", "byte"], index=0)
|
| 460 |
|