davanstrien HF Staff commited on
Commit
4a49870
·
1 Parent(s): 8f6b9e6

Fix formatting in detection output message for better readability

Browse files
Files changed (1) hide show
  1. detect-objects.py +1 -1
detect-objects.py CHANGED
@@ -282,7 +282,7 @@ for bbox, category, score in zip(
282
  detections["score"]
283
  ):
284
  x, y, w, h = bbox
285
- print(f"Detected {class_name} at ({x}, {y}) with confidence {{score:.2f}}")
286
 
287
  # Filter high-confidence detections
288
  high_conf_examples = [
 
282
  detections["score"]
283
  ):
284
  x, y, w, h = bbox
285
+ print(f"Detected {class_name} at ({{x}}, {{y}}) with confidence {{score:.2f}}")
286
 
287
  # Filter high-confidence detections
288
  high_conf_examples = [