Getting access to the frames in video stream provided by QCamera



  • I have a problem for which I cannot find a solution. I'm using QCamera class (Qt Mobility 1.1) and I need to get access to the video frames(e.g. QVideoFrame) provided by the camera in N900. I need to do some image processing to the frames before they are shown in for example QVideoWidget. How can I do that?

    I have tried the method illustrated in http://developer.qt.nokia.com/forums/viewthread/370 with no luck.
    If i don't define "camera->setViewfinder(viewfinder);", all I get is some Camerabin "internal data flow error".

    I have also considered subclassing QVideoWidget and reimplementing paintEvent, but don't see how can I actually get access to the frames before they are drawn to the widget.

    I do not want to process snapshot images that are already saved in file.

    Is the any good solutions/examples how to solve this problem?

    Thank you.



  • The camera API is still in Technology preview mode.

    It is not the final release, There are so many developers are getting error while making project using camera API under "Qt Mobility 1.1 TP.":http://doc.qt.nokia.com/qtmobility-1.1-tp/index.html

    We have to wait for the stable version, for full support.



  • [quote author="qtrahul" date="1293618256"]The camera API is still in Technology preview mode.

    It is not the final release, There are so many developers are getting error while making project using camera API under "Qt Mobility 1.1 TP.":http://doc.qt.nokia.com/qtmobility-1.1-tp/index.html

    We have to wait for the stable version, for full support.
    [/quote]

    Qt Mobility 1.1 is out from TP and now a" stable version":http://doc.qt.nokia.com/qtmobility-1.1/index.html is available. Even Qt Mobility 1.2 TP is out.



  • I build the SIS of the qcamera from the Mobility 1.1 to test it on the N8 using the NokiaQTSDK
    but when I deploy the SIS file I receive "access not granted"

    What I have to do to make it runs on N8? signing ?



  • It seems you are missing some capability. Check the api used and the capability required.



  • Thanks QTK, but I just built the sample of qcamera shipped with the Mobility 1.1 with no code change. All what I need is to be able to build the qCamera and deploy to my N8, then add extra code to it in step by step to develop my first application.



  • In the .pro-file:
    Replace:
    TARGET.CAPABILITY = UserEnvironment WriteDeviceData ReadDeviceData

    ...with:
    TARGET.CAPABILITY = UserEnvironment WriteUserData ReadUserData

    In this way you should be able to self-sign the application.


Log in to reply
 

Looks like your connection to Qt Forum was lost, please wait while we try to reconnect.