diff options
author | Stanislaw Halik <sthalik@misaki.pl> | 2023-01-10 16:30:58 +0100 |
---|---|---|
committer | Stanislaw Halik <sthalik@misaki.pl> | 2023-01-23 14:16:33 +0100 |
commit | 5aa1e00e17c33d0d0ef39eb3913b641a80f12c42 (patch) | |
tree | 07306728b8a75b6752df175f35f046e5ca4b4fdb /video-opencv | |
parent | 2f04e69142ede88fb98bd168596c9d2a6aa036bb (diff) |
tracker/nn, video/opencv: hardcode camera name
Diffstat (limited to 'video-opencv')
-rw-r--r-- | video-opencv/impl-camera.cpp | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/video-opencv/impl-camera.cpp b/video-opencv/impl-camera.cpp index 662eceb2..543f9dff 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 <QDebug> namespace opencv_camera_impl { @@ -46,6 +47,13 @@ bool cam::start(info& args) if (args.use_mjpeg) cap->set(cv::CAP_PROP_FOURCC, cv::VideoWriter::fourcc('M', 'J', 'P', 'G')); +#if 1 + cap->set(cv::CAP_PROP_AUTO_EXPOSURE, 0); + //cap->set(cv::CAP_PROP_SHARPNESS, 0); + if (auto exp = cap->get(cv::CAP_PROP_EXPOSURE); exp > -4 || exp < -5) + cap->set(cv::CAP_PROP_EXPOSURE, -5); +#endif + if (!cap->isOpened()) goto fail; |