diff options
Diffstat (limited to 'video-opencv/impl.hpp')
-rw-r--r-- | video-opencv/impl.hpp | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/video-opencv/impl.hpp b/video-opencv/impl.hpp index 3d793490..db569823 100644 --- a/video-opencv/impl.hpp +++ b/video-opencv/impl.hpp @@ -31,6 +31,15 @@ struct metadata : camera_ struct cam final : camera { +static constexpr int video_capture_backend = +#ifdef _WIN32 + cv::CAP_DSHOW; +#elif !defined __APPLE__ + cv::CAP_V4L2; +#else + cv::CAP_ANY; +#endif + cam(int idx); ~cam() override; |