gatesla commited on
Commit
b2845c8
·
1 Parent(s): 0c1bfc3

I keep getting string issue

Browse files
Files changed (1) hide show
  1. app.py +1 -1
app.py CHANGED
@@ -81,7 +81,7 @@ def detect_objects(model_name,url_input,image_input,threshold):
81
  boxes = result.boxes.cpu().numpy()
82
  for i, box in enumerate(boxes):
83
  # r = box.xyxy[0].astype(int)
84
- final_str_abv += str(box.xyxy[0].astype(int)) + "__" + str(box.cls) + "__" + str(box.conf) + "__" + str(box) + "__" + str(box.id) + "\n"
85
  # if r.boxes.conf >= threshold:
86
  # final_str_abv += str(r.boxes) + "\n"
87
  # else:
 
81
  boxes = result.boxes.cpu().numpy()
82
  for i, box in enumerate(boxes):
83
  # r = box.xyxy[0].astype(int)
84
+ final_str_abv += str(box.xyxy[0].astype(int)) + "__" + str(box.cls) + "__" + str(box.conf) + "__" + str(box) + "\n"
85
  # if r.boxes.conf >= threshold:
86
  # final_str_abv += str(r.boxes) + "\n"
87
  # else: