sabaridsnfuji
commited on
Commit
•
5b516e8
1
Parent(s):
e8bbcbb
Update app.py
Browse files
app.py
CHANGED
@@ -64,7 +64,7 @@ def predict_image(image):
|
|
64 |
])
|
65 |
|
66 |
if prob > 0.2:
|
67 |
-
cv2.rectangle(temp_image, (x1, y1), (x2, y2), (
|
68 |
label_text = f"{classes} {round(prob, 2)}"
|
69 |
cv2.putText(temp_image, label_text, (x1, y1), 0, 0.5, (0, 255, 0), 2)
|
70 |
|
|
|
64 |
])
|
65 |
|
66 |
if prob > 0.2:
|
67 |
+
cv2.rectangle(temp_image, (x1, y1), (x2, y2), (0, 0, 255), 2)
|
68 |
label_text = f"{classes} {round(prob, 2)}"
|
69 |
cv2.putText(temp_image, label_text, (x1, y1), 0, 0.5, (0, 255, 0), 2)
|
70 |
|