1 | initial version |
Not sure if this is still open, but it depends on which approach to camera input you are using.
I am using videoInput (which I understand is the basis for the VideoCapture OpenCV functions). videoInput does have a getDeviceName function which returns a char listing the camera name. However, I do not think that it is a unique name. For my camera, it just returns "Microsoft LifeCam 3000HD". If there is a way to get a unique device ID, that would be helpful for making sure that you are using the right calibration file with the right camera.
If you are using VideoCapture, I would thins that you could call isOpened and there you will know if it has already been initialized.