如何在yolov3暗网的视频输出中更改边框颜色

问题描述 投票:0回答:1

我已经在自定义数据集中训练了YOLOv3暗网模型。首先,我在Google colab中克隆了https://github.com/kriyeng/darknet/存储库,然后在Google colab中运行了整个代码。但是我想更改输出视频中边框的颜色。请提出建议。预先感谢。

google-colaboratory colorbox bounding-box yolo darknet
1个回答
0
投票

这里是C ++中的解决方案,但您也可以将其应用于python。只需更改标量中的值即可。在下面的示例中,它设置为红色。

//Draw a rectangle displaying the bounding box
rectangle(frame, Point(left, top), Point(right, bottom), Scalar(0, 0, 255));

© www.soinside.com 2019 - 2024. All rights reserved.