Search code examples
c++linuxqtvideomaemo

Maemo 5 Qt: how to capture frame (RGB) from first and second camera?


So (I havent tried yet) but it somehow seems that video for linux 2 will work... But I wonder is it possible to do such thing with for pure qt libs?


Solution

  • Install Qt Mobility QtMultiMediaKit extension (libqtm-multimedia-dev package) and then use QCamera in conjunction with QCameraImageCapture to capture frames. To activate the front-facing secondary camera, construct your camera like this:

    QCamera *camera = new QCamera(QCamera::availableDevices()[1]);