Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
我已经使用 YOLOv4 来检测图像中的对象,现在我想模糊这些对象或在边界框内叠加黑色。如何使用 OpenCV 或其他库来做到这一点?
cv2.rectangle(frame, (x, y), (x + w, y + h), color, -1)
I just changed the width of the bounding box and it worked.
Thank you @micka