Macbook USB camera

asked 2020-05-03 03:51:33 -0500

mstuio gravatar image

Hi, I'm trying to capture video from external camera USB camera: elp-usbfhd01m-sfv(5-50)-j

The camera is detected under USB/CAMERA devices by the system, but If I try to change the index cap.open() nothing happens, I cannot open it.

VideoCapture cap;
cap.open(1);

The build in camera works.

Can somebody please help me?

Thank you

edit retag flag offensive close merge delete

Comments

Change this:

cap.open(1);

to:

cap.open(CV_CAP_DSHOW);
supra56 gravatar imagesupra56 ( 2020-05-03 06:16:20 -0500 )edit