Update app.py
Browse files
app.py
CHANGED
@@ -12,7 +12,7 @@ def show_preds_image(image_path):
|
|
12 |
results = outputs[0]. cpu().numpy()
|
13 |
for i, det in enumerate(results.boxes.xyxy):
|
14 |
cv2. rectangle(image,(int(det[0]), int(det[1])), (int(det[2]), int(det[3])),
|
15 |
-
thickness=
|
16 |
)
|
17 |
return cv2. cvtColor (image, cv2.COLOR_BGR2RGB)
|
18 |
|
|
|
12 |
results = outputs[0]. cpu().numpy()
|
13 |
for i, det in enumerate(results.boxes.xyxy):
|
14 |
cv2. rectangle(image,(int(det[0]), int(det[1])), (int(det[2]), int(det[3])),
|
15 |
+
thickness=6 , color=[0,0,255]
|
16 |
)
|
17 |
return cv2. cvtColor (image, cv2.COLOR_BGR2RGB)
|
18 |
|