使用caffe版本ssd模型进行测试视频流或者图片

版权声明:本文为博主原创文章,转载请注明出处:https://blog.csdn.net/qq_31261509 https://blog.csdn.net/qq_31261509/article/details/88297312

代码链接在**

使用cd $HOME
mkdir build
cd build
cmake …
make -j7

进行编译,
可以看到main.cpp中的main中三个值,设置好三个值并且选择model下的文件,将训练好的文件更改名就能开始训练了

// 测试图片的路径
const string& testPath = "./test/imgs/";

// save_path 设置存储图片路径

string save_path = "./test/res/";

// 设置测试视频路径
cv::VideoCapture cap = cv::VideoCapture("/home/rui/demo.mp4");

const string& model_path = "./model";

`

猜你喜欢

转载自blog.csdn.net/qq_31261509/article/details/88297312