diff options
author | Stanislaw Halik <sthalik@misaki.pl> | 2024-07-27 11:40:57 +0200 |
---|---|---|
committer | Stanislaw Halik <sthalik@misaki.pl> | 2024-07-27 11:40:57 +0200 |
commit | 35b7638827853de1cacab2198407c5a011d62237 (patch) | |
tree | e5741471626b9406abe82507b0de50143b19e955 | |
parent | 32f2614d3c7e8b301ac58c2306cdd826635abe65 (diff) |
video/opencv: shut up opencv_videoio logspam
Fixes: #1899
-rw-r--r-- | video-opencv/impl-camera.cpp | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/video-opencv/impl-camera.cpp b/video-opencv/impl-camera.cpp index 662eceb2..96081399 100644 --- a/video-opencv/impl-camera.cpp +++ b/video-opencv/impl-camera.cpp @@ -1,6 +1,7 @@ #include "impl.hpp" #include "compat/sleep.hpp" #include "video-property-page.hpp" +#include <opencv2/core/utils/logger.hpp> namespace opencv_camera_impl { @@ -33,6 +34,7 @@ bool cam::is_open() bool cam::start(info& args) { stop(); + cv::utils::logging::setLogLevel(cv::utils::logging::LogLevel::LOG_LEVEL_WARNING); cap.emplace(idx, video_capture_backend); if (args.width > 0 && args.height > 0) |