0

我已经使用 YOLOv4 来检测图像中的对象,现在我想模糊这些对象或在边界框内叠加黑色。如何使用 OpenCV 或其他库来做到这一点?

4

1 回答 1

0

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

于 2021-08-19T18:43:09.400 回答