Quantcast
Channel: OpenCV Q&A Forum - RSS feed
Viewing all articles
Browse latest Browse all 41027

share usb device with videocapture

$
0
0
Hi, On windows with opencv 3.0 I can share same webcam device using VideoCapture. Is it true on linux, android...? thanks for yours anwers. int main(int argc, char** argv) { VideoCapture vid1; vid1.open(0); // Open device 0 VideoCapture vid2; vid2.open(0); // Open device 0 Mat frame1; Mat frame2; for (;;) { vid1 >> frame1; vid2 >> frame2; if (frame1.empty()) break; if (frame2.empty()) break; imshow("video1", frame1);// Capture with device 0 imshow("video2", frame2);// Capture with device 0 imshow("diff", frame2-frame1);// It's not same frame on windows char key = (char)waitKey(30); } }

Viewing all articles
Browse latest Browse all 41027

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>