Trying to get strings to work
Browse files
app.py
CHANGED
@@ -78,10 +78,11 @@ def detect_objects(model_name,url_input,image_input,threshold):
|
|
78 |
final_str_else = ""
|
79 |
|
80 |
for r in results:
|
81 |
-
|
82 |
-
|
83 |
-
|
84 |
-
|
|
|
85 |
|
86 |
final_str = "{:*^50}\n".format("ABOVE THRESHOLD OR EQUAL") + final_str_abv + "\n{:*^50}\n".format("BELOW THRESHOLD")+final_str_else
|
87 |
|
|
|
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 |
|