mustafa2ak commited on
Commit
27d20b1
·
verified ·
1 Parent(s): 050c68b

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +8 -3
app.py CHANGED
@@ -201,7 +201,8 @@ class SokakDostlariAI:
201
  cv2.circle(frame, (int(kp[0] + x1), int(kp[1] + y1)), 2, color, -1)
202
 
203
  # Replace the entire process_video_with_live_display method in your SokakDostlariAI class with this:
204
-
 
205
  def process_video_with_live_display(self, video_path: str, mirror_fix: bool = False):
206
  """Process video with smooth tracking and display"""
207
  if not video_path:
@@ -312,7 +313,9 @@ class SokakDostlariAI:
312
  score=5.0,
313
  status="Unknown",
314
  score_text="5.0/10",
315
- color=(128, 128, 128)
 
 
316
  ),
317
  'is_new': dog_id not in self.current_dogs,
318
  'confidence': confidence
@@ -392,7 +395,9 @@ class SokakDostlariAI:
392
  score=5.0,
393
  status="Unknown",
394
  score_text="5.0/10",
395
- color=(128, 128, 128)
 
 
396
  )
397
 
398
  # Draw bounding box with health color
 
201
  cv2.circle(frame, (int(kp[0] + x1), int(kp[1] + y1)), 2, color, -1)
202
 
203
  # Replace the entire process_video_with_live_display method in your SokakDostlariAI class with this:
204
+ # Replace the entire process_video_with_live_display method in your SokakDostlariAI class with this:
205
+
206
  def process_video_with_live_display(self, video_path: str, mirror_fix: bool = False):
207
  """Process video with smooth tracking and display"""
208
  if not video_path:
 
313
  score=5.0,
314
  status="Unknown",
315
  score_text="5.0/10",
316
+ color=(128, 128, 128),
317
+ alerts=[], # Empty alerts list
318
+ confidence=0.5 # Default confidence
319
  ),
320
  'is_new': dog_id not in self.current_dogs,
321
  'confidence': confidence
 
395
  score=5.0,
396
  status="Unknown",
397
  score_text="5.0/10",
398
+ color=(128, 128, 128),
399
+ alerts=[], # Empty alerts list
400
+ confidence=0.5 # Default confidence
401
  )
402
 
403
  # Draw bounding box with health color