Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
@@ -113,7 +113,7 @@ def get_xyxy(input_image, outputs,w,h):
|
|
113 |
# Class label.
|
114 |
#label = "{}:{:.2f}".format(classes[class_ids[i]], confidences[i])
|
115 |
# Draw label.
|
116 |
-
draw_label(input_image, '
|
117 |
cv2.imwrite('image.jpg',input_image)
|
118 |
#turn xywh into xyxy
|
119 |
boxes[i][2]=left + width
|
|
|
113 |
# Class label.
|
114 |
#label = "{}:{:.2f}".format(classes[class_ids[i]], confidences[i])
|
115 |
# Draw label.
|
116 |
+
draw_label(input_image, 'door', left, top)
|
117 |
cv2.imwrite('image.jpg',input_image)
|
118 |
#turn xywh into xyxy
|
119 |
boxes[i][2]=left + width
|