Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
@@ -96,7 +96,7 @@ with app_tab:
|
|
96 |
# st.write("Similarity Scores:", prediction_scores)
|
97 |
for match in matches:
|
98 |
x1, y1, x2, y2 = match['bbox']
|
99 |
-
|
100 |
color = (0, 255, 0) if name != "Unknown" else (0, 0, 255)
|
101 |
cv2.rectangle(image_bgr, (x1, y1), (x2, y2), color, 2)
|
102 |
cv2.putText(image_bgr, name, (x1, y2 + 20), cv2.FONT_HERSHEY_SIMPLEX, 0.8, color, 2)
|
|
|
96 |
# st.write("Similarity Scores:", prediction_scores)
|
97 |
for match in matches:
|
98 |
x1, y1, x2, y2 = match['bbox']
|
99 |
+
matched_name = match['name']
|
100 |
color = (0, 255, 0) if name != "Unknown" else (0, 0, 255)
|
101 |
cv2.rectangle(image_bgr, (x1, y1), (x2, y2), color, 2)
|
102 |
cv2.putText(image_bgr, name, (x1, y2 + 20), cv2.FONT_HERSHEY_SIMPLEX, 0.8, color, 2)
|