How to find my Camera Index? [closed]

asked 2016-01-12 04:35:35 -0600

Shamerox gravatar image

updated 2016-01-13 12:38:05 -0600

pklab gravatar image

I have interfaced my Raspberry pi running Rasbian with two cameras. The cvCaptureFromCAM( int index ) function has the parameter index which is the camera index. What value should I give in here? or how will I find my camera index?

edit retag flag offensive reopen merge delete

Closed for the following reason the question is answered, right answer was accepted by sturkmen
close date 2020-10-20 04:47:13.445186

Comments

I can't test it with raspberry but using index=0 should open the default camera. In case you can scan for some index to find right one. For this, try my function EnumerateCamerashere or more general here

pklab gravatar imagepklab ( 2016-01-13 12:35:05 -0600 )edit