小编dep*_*rai的帖子

使用Opencv模糊矩形中的内容

在下面的矩形函数中,将绘制矩形。

// Draw the predicted bounding box
void drawPred(int classId, float conf, int left, int top, int right, int bottom, Mat& frame)
{
    //Draw a rectangle displaying the bounding box
    rectangle(frame, Point(left, top), Point(right, bottom), Scalar(255, 178, 50),LINE_4);

    //bluring region
    cout << frame; 

    //Get the label for the class name and its confidence
    string label = format("%.2f", conf);
    if (!classes.empty())
    {
        CV_Assert(classId < (int)classes.size());
        label = classes[classId] + ":" + label;
    }

    //Display the label at the top of the …
Run Code Online (Sandbox Code Playgroud)

c++ arrays opencv

5
推荐指数
2
解决办法
76
查看次数

标签 统计

arrays ×1

c++ ×1

opencv ×1