Fixed python + sign
Browse files
app.py
CHANGED
@@ -78,11 +78,11 @@ def detect_objects(model_name,url_input,image_input,threshold):
|
|
78 |
final_str_else = ""
|
79 |
|
80 |
for r in results:
|
81 |
-
final_str_abv
|
82 |
# if r.boxes.conf >= threshold:
|
83 |
-
# final_str_abv
|
84 |
# else:
|
85 |
-
# final_str_else
|
86 |
|
87 |
final_str = "{:*^50}\n".format("ABOVE THRESHOLD OR EQUAL") + final_str_abv + "\n{:*^50}\n".format("BELOW THRESHOLD")+final_str_else
|
88 |
|
|
|
78 |
final_str_else = ""
|
79 |
|
80 |
for r in results:
|
81 |
+
final_str_abv += str(r.boxes) + "__" + str(r.boxes.xyxy) + "__" + str(r.boxes.conf) + "\n"
|
82 |
# if r.boxes.conf >= threshold:
|
83 |
+
# final_str_abv += str(r.boxes) + "\n"
|
84 |
# else:
|
85 |
+
# final_str_else += str(r.boxes) + "\n"
|
86 |
|
87 |
final_str = "{:*^50}\n".format("ABOVE THRESHOLD OR EQUAL") + final_str_abv + "\n{:*^50}\n".format("BELOW THRESHOLD")+final_str_else
|
88 |
|