Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
|
@@ -58,8 +58,8 @@ def model_pred(model, image):
|
|
| 58 |
cv2.rectangle(image, (x,y), (x+w, y+h),
|
| 59 |
color=(0, 255, 0),
|
| 60 |
thickness = 10)
|
| 61 |
-
cv2.putText(image,f"{label},{round(np.max(y_pred_prob),2)}%",
|
| 62 |
-
(x,y
|
| 63 |
(0,255,255),2)
|
| 64 |
return image
|
| 65 |
|
|
|
|
| 58 |
cv2.rectangle(image, (x,y), (x+w, y+h),
|
| 59 |
color=(0, 255, 0),
|
| 60 |
thickness = 10)
|
| 61 |
+
cv2.putText(image,f"{label},{np.round(np.max(y_pred_prob),2)}%",
|
| 62 |
+
(x,y-20),cv2.FONT_HERSHEY_COMPLEX,2,
|
| 63 |
(0,255,255),2)
|
| 64 |
return image
|
| 65 |
|