Spaces:
Runtime error
Runtime error
Commit
·
59d6bf0
1
Parent(s):
18639ac
Update detection.py
Browse files- detection.py +0 -1
detection.py
CHANGED
@@ -56,5 +56,4 @@ class ObjectDetection:
|
|
56 |
|
57 |
cv2.rectangle(frame, (x1, y1), (x2, y2), box_color, 2)
|
58 |
cv2.putText(frame, f"{class_name} - {conf[i]*100:.2f}%", (x1, y1), cv2.FONT_HERSHEY_COMPLEX, 0.5, text_color)
|
59 |
-
frame = cv2.resize(frame, (200, 200))
|
60 |
return frame
|
|
|
56 |
|
57 |
cv2.rectangle(frame, (x1, y1), (x2, y2), box_color, 2)
|
58 |
cv2.putText(frame, f"{class_name} - {conf[i]*100:.2f}%", (x1, y1), cv2.FONT_HERSHEY_COMPLEX, 0.5, text_color)
|
|
|
59 |
return frame
|