Rasleen commited on
Commit
15eac66
Β·
verified Β·
1 Parent(s): fb0f8c1

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +1 -1
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
- 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)
 
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)