Opencv Enabled backends(4, sorted by priority): GTK(1000); GTK3(990); GTK2(980)日子处理


使用Opencv进行图像读取时,在弹出的命令行界面出现很多failed。

[ INFO:[email protected]] global c:/build/master_winpack-build-win64-vc15/opencv/modules/highgui/src/registry.impl.hpp (114) cv::highgui_backend::UIBackendRegistry::UIBackendRegistry UI: Enabled backends(4, sorted by priority): GTK(1000); GTK3(990); GTK2(980); WIN32(970) + BUILTIN(WIN32UI)
[ INFO:[email protected]] global c:/build/master_winpack-build-win64-vc15/opencv/modules/core/src/utils/plugin_loader.impl.hpp (67) cv::plugin::impl::DynamicLib::libraryLoad load D:/Program Files (x86)/opencv/build/x64/vc15/bin/opencv_highgui_gtk460_64.dll => FAILED
[ INFO:[email protected]] global c:/build/master_winpack-build-win64-vc15/opencv/modules/core/src/utils/plugin_loader.impl.hpp (67) cv::plugin::impl::DynamicLib::libraryLoad load opencv_highgui_gtk460_64.dll => FAILED
[ INFO:[email protected]] global c:/build/master_winpack-build-win64-vc15/opencv/modules/core/src/utils/plugin_loader.impl.hpp (67) cv::plugin::impl::DynamicLib::libraryLoad load D:/Program Files (x86)/opencv/build/x64/vc15/bin/opencv_highgui_gtk3460_64.dll => FAILED
[ INFO:[email protected]] global c:/build/master_winpack-build-win64-vc15/opencv/modules/core/src/utils/plugin_loader.impl.hpp (67) cv::plugin::impl::DynamicLib::libraryLoad load opencv_highgui_gtk3460_64.dll => FAILED
[ INFO:[email protected]] global c:/build/master_winpack-build-win64-vc15/opencv/modules/core/src/utils/plugin_loader.impl.hpp (67) cv::plugin::impl::DynamicLib::libraryLoad load D:/Program Files (x86)/opencv/build/x64/vc15/bin/opencv_highgui_gtk2460_64.dll => FAILED
[ INFO:[email protected]] global c:/build/master_winpack-build-win64-vc15/opencv/modules/core/src/utils/plugin_loader.impl.hpp (67) cv::plugin::impl::DynamicLib::libraryLoad load opencv_highgui_gtk2460_64.dll => FAILED
[ INFO:[email protected]] global c:/build/master_winpack-build-win64-vc15/opencv/modules/highgui/src/backend.cpp (90) cv::highgui_backend::createUIBackend UI: using backend: WIN32 (priority=970)
[ INFO:[email protected]] global c:/build/master_winpack-build-win64-vc15/opencv/modules/highgui/src/window_w32.cpp (3013) cv::impl::Win32BackendUI::createWindow OpenCV/UI: Creating Win32UI window: Input window (256)
[ INFO:[email protected]] global c:/build/master_winpack-build-win64-vc15/opencv/modules/core/src/parallel/registry_parallel.impl.hpp (96) cv::parallel::ParallelBackendRegistry::ParallelBackendRegistry core(parallel): Enabled backends(3, sorted by priority): ONETBB(1000); TBB(990); OPENMP(980)
[ INFO:[email protected]] global c:/build/master_winpack-build-win64-vc15/opencv/modules/core/src/utils/plugin_loader.impl.hpp (67) cv::plugin::impl::DynamicLib::libraryLoad load D:/Program Files (x86)/opencv/build/x64/vc15/bin/opencv_core_parallel_onetbb460_64d.dll => FAILED
[ INFO:[email protected]] global c:/build/master_winpack-build-win64-vc15/opencv/modules/core/src/utils/plugin_loader.impl.hpp (67) cv::plugin::impl::DynamicLib::libraryLoad load opencv_core_parallel_onetbb460_64d.dll => FAILED
[ INFO:[email protected]] global c:/build/master_winpack-build-win64-vc15/opencv/modules/core/src/utils/plugin_loader.impl.hpp (67) cv::plugin::impl::DynamicLib::libraryLoad load D:/Program Files (x86)/opencv/build/x64/vc15/bin/opencv_core_parallel_tbb460_64d.dll => FAILED
[ INFO:[email protected]] global c:/build/master_winpack-build-win64-vc15/opencv/modules/core/src/utils/plugin_loader.impl.hpp (67) cv::plugin::impl::DynamicLib::libraryLoad load opencv_core_parallel_tbb460_64d.dll => FAILED
[ INFO:[email protected]] global c:/build/master_winpack-build-win64-vc15/opencv/modules/core/src/utils/plugin_loader.impl.hpp (67) cv::plugin::impl::DynamicLib::libraryLoad load D:/Program Files (x86)/opencv/build/x64/vc15/bin/opencv_core_parallel_openmp460_64d.dll => FAILED
[ INFO:[email protected]] global c:/build/master_winpack-build-win64-vc15/opencv/modules/core/src/utils/plugin_loader.impl.hpp (67) cv::plugin::impl::DynamicLib::libraryLoad load opencv_core_parallel_openmp460_64d.dll => FAILED
[ INFO:[email protected]] global c:/build/master_winpack-build-win64-vc15/opencv/modules/highgui/src/window_w32.cpp (3013) cv::impl::Win32BackendUI::createWindow OpenCV/UI: Creating Win32UI window: HSV (256)
[ INFO:[email protected]] global c:/build/master_winpack-build-win64-vc15/opencv/modules/highgui/src/window_w32.cpp (3013) cv::impl::Win32BackendUI::createWindow OpenCV/UI: Creating Win32UI window: GRAY (256)

不影响图片的打开和处理,但是对于强迫症认识来说是一种折磨。

可以通过隐藏日志的方式,不打印此信息。

包含头文件:

#include <opencv2/core/utils/logger.hpp>

然后调用

utils::logging::setLogLevel(utils::logging::LOG_LEVEL_SILENT);  <此处已声明 using namespace cv>;

日志信息不再打印。

 

原创文章,作者:ItWorker,如若转载,请注明出处:https://blog.ytso.com/280290.html

(0)
上一篇 2022年8月13日
下一篇 2022年8月13日

相关推荐

发表回复

登录后才能评论