How to open external camera instead of PC camera? [closed]

asked 2019-03-04 09:14:05 -0500

opencvr gravatar image

updated 2019-03-05 04:06:33 -0500


I am doing camera calibration for external logitech camera using this file.

link text

I am changing cameraId in source code to 1,

int mode = DETECTION;
int cameraId = 1;
vector<vector<Point2f> > imagePoints;

But after compiling, when I run calibration.exe in command line, it is not opening external camera but again opening PC camera.

am I missing something here to add in source code?


edit retag flag offensive reopen merge delete

Closed for the following reason the question is answered, right answer was accepted by opencvr
close date 2019-03-05 05:43:46.717697


how exactly do you call the program ? (it probably got overwritten by sme param / config item)

did you make an independant check, if VideoCapture(1) does the expected ?

berak gravatar imageberak ( 2019-03-05 04:47:35 -0500 )edit

It is not working.

But instead of that I have used this tutorial, link text by setting parameters in in_VID5.xml file and I got calibration data.

opencvr gravatar imageopencvr ( 2019-03-05 05:42:58 -0500 )edit

what is not working, dear ?

berak gravatar imageberak ( 2019-03-05 05:49:51 -0500 )edit


opencvr gravatar imageopencvr ( 2019-03-05 05:50:38 -0500 )edit