我已经在自定义数据集中训练了YOLOv3暗网模型。首先,我在Google colab中克隆了https://github.com/kriyeng/darknet/
存储库,然后在Google colab中运行了整个代码。但是我想更改输出视频中边框的颜色。请提出建议。预先感谢。
这里是C ++中的解决方案,但您也可以将其应用于python。只需更改标量中的值即可。在下面的示例中,它设置为红色。
//Draw a rectangle displaying the bounding box
rectangle(frame, Point(left, top), Point(right, bottom), Scalar(0, 0, 255));