summary |
shortlog |
log |
commit | commitdiff |
tree
raw |
patch |
inline | side by side (from parent 1:
21adbf9)
Hardcode the V4L2 backend on linux for now because the GStreamer one
lacks some functionality, see:
https://github.com/opencv/opencv/issues/18562
if (!input_file.empty()) {
inputVideo.open(input_file);
} else {
if (!input_file.empty()) {
inputVideo.open(input_file);
} else {
+#ifdef __linux__
+ // XXX Hardcode the V4L2 backend on linux for now because the
+ // GStreamer one lacks some functionality, see:
+ // https://github.com/opencv/opencv/issues/18562
+ inputVideo.open(0, cv::CAP_V4L2);
+#else
}
if (!inputVideo.isOpened()) {
}
if (!inputVideo.isOpened()) {