Error in recording video using two logitech webcam simultaneously
조회 수: 2 (최근 30일)
이전 댓글 표시
I was able to record video using two webcam simultaneously. But now using same code I am getting error. It is saying that my device is in use but actually it is not. The error is:
Error using videoinput (line 391)
winvideo: The device associated with device ID 2 is already in use. A new videoinput object cannot be created for this device while it is in use.
Error in recording_video1 (line 5)
vid2 = videoinput('winvideo',2, 'YUY2_320x240');
댓글 수: 0
답변 (1개)
Image Analyst
2015년 1월 17일
Try
vid2 = videoinput('winvideo',1, 'YUY2_320x240');
or
vid2 = videoinput('winvideo',3, 'YUY2_320x240');
or whatever number your second camera is.
댓글 수: 3
soyoung shin
2017년 11월 6일
same situation here. Did you fix the problem? I also connect two logitech cameras on my labtop and got same error..
참고 항목
카테고리
Help Center 및 File Exchange에서 Image Acquisition Support Packages for Hardware Adaptors (Generic Video Interface)에 대해 자세히 알아보기
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!