ModuMLTECH commited on
Commit
b683266
·
verified ·
1 Parent(s): 320dc3c

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +3 -3
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 comptes: {len(self.unique_region2_ids)}", (frame_width - 300, frame_height - 50))
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", "900,350 1150,350 700,630 200,630")
455
 
456
  st.subheader("📍 Polygone 2 (rouge)")
457
- poly2_input = st.text_area("Entrez 4 points (x,y) séparés par des espaces", "1200,350 1400,350 1150,630 743,630")
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