Update app.py
Browse files
app.py
CHANGED
@@ -81,6 +81,7 @@ def get_figure(in_pil_img):
|
|
81 |
|
82 |
ax.add_patch(plt.Rectangle((x, y), w, h, fill=False, color=selected_color, linewidth=3))
|
83 |
ax.text(x, y, f"{prediction['label']}: {round(prediction['score']*100, 1)}%", fontdict=fdic)
|
|
|
84 |
|
85 |
plt.axis("off")
|
86 |
|
|
|
81 |
|
82 |
ax.add_patch(plt.Rectangle((x, y), w, h, fill=False, color=selected_color, linewidth=3))
|
83 |
ax.text(x, y, f"{prediction['label']}: {round(prediction['score']*100, 1)}%", fontdict=fdic)
|
84 |
+
print(f"x: {x}, y: {y}, w: {w}, h: {h}, label: {prediction['label']}, score: {prediction['score']}")
|
85 |
|
86 |
plt.axis("off")
|
87 |
|