Spaces:
Runtime error
Runtime error
Fix cv2 rectangle argument
#3
by
EgorMaslikov
- opened
app.py
CHANGED
@@ -40,7 +40,7 @@ def image_guided_detection(img, query_img, score_threshold, nms_threshold):
|
|
40 |
box = [int(i) for i in box.tolist()]
|
41 |
|
42 |
if score >= score_threshold:
|
43 |
-
img = cv2.rectangle(img, box[:2], box[2:], (255,0
|
44 |
if box[3] + 25 > 768:
|
45 |
y = box[3] - 10
|
46 |
else:
|
|
|
40 |
box = [int(i) for i in box.tolist()]
|
41 |
|
42 |
if score >= score_threshold:
|
43 |
+
img = cv2.rectangle(img, box[:2], box[2:], (0, 255, 0), 2)
|
44 |
if box[3] + 25 > 768:
|
45 |
y = box[3] - 10
|
46 |
else:
|