Unsolved How to run two cameras in parallel?
-
Hi
m trying to run 2 cameras one is laptops default web cam and the other one is portable at the same time parallel but the are not working together either web came runs or portable cameras runs in short one at a time is running .
plz hellp to sort out this problem. -
@Faisal_Ali You didn't explain/show what you tried so far. Can you show your code?
-
@Faisal_Ali See here http://doc.qt.io/qt-5/qcamera.html
QList<QCameraInfo> cameras = QCameraInfo::availableCameras(); foreach (const QCameraInfo &cameraInfo, cameras) { if (cameraInfo.deviceName() == "mycamera") camera = new QCamera(cameraInfo); }
You just need one QCamera instance for each of your cameras. Then you can use one QCameraViewfinder/QMediaRecorder for each of those QCamera instances.
-
@jsulm we have been running cameras using open cv
-
@jsulm basically i am use opencv for this purpose.
-
Hi,
Since you are using OpenCV to grab images from your camera, why not ask that question to the OpenCV folks ?
-
@SGaist can u send me a link of opencv folks.
-