关于VS输出[ INFO:0] global C:\build\master_winpack-build-win64-vc15\opencv\modules\videoio\src\....

在添加Opencv4.5的contrib包之后,调试窗口自动输出一堆日志:[ INFO:0] global C:\build\master_winpack-build-win64-vc15\opencv\modules\videoio\src…关于VS输出[ INFO:0] global C:\build\master_winpack-build-win64-vc15\opencv\modules\videoio\src\...._第1张图片
解决办法:
1.添加头文件:

#include 

2.调用函数:

cv::utils::logging::setLogLevel(utils::logging::LOG_LEVEL_SILENT);//不再输出日志

//或
//utils::logging::setLogLevel(utils::logging::LOG_LEVEL_ERROR);//只输出错误日志

亲测有效。

相关链接:https://blog.csdn.net/pansaky/article/details/90710751?ops_request_misc=&request_id=&biz_id=102&utm_term=cv::utils::logging::setLogLeve&utm_medium=distribute.pc_search_result.none-task-blog-2allsobaiduweb~default-9-.first_rank_v2_pc_rank_v29&spm=1018.2226.3001.4187

你可能感兴趣的:(其他,opencv,经验分享,visualstudio)