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 frame on windows
char key = (char)waitKey(30);
}
}