working environment:Opencv2.4.13, VS2008, Camera(A and B)
my question is: Connect A ----> Connect B: A,B both can be opened;Connect B ----> Connect A: B can be opened,but A can't.
- following is my code: when connect first camera:i use code VideoCapture
videoCapture(0)
when connect second camera:i use code VideoCapturevideoCapture(1)
- B connect firstly then A.I check the opecv's code,i find that:
when i call the
videoCapture(1)
, the response ofvideoInput::getDevice
is Camera B, not Camera A. It is so strange. Can somebody give me suggestion?