December 15, 2010

aapiskukko aapiskukko
Lab Rat
1 posts

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.

6 replies

December 29, 2010

qtrahul qtrahul
Lab Rat
188 posts

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. [doc.qt.nokia.com]

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

December 29, 2010

QtK QtK
Lab Rat
1140 posts

qtrahul wrote:
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. [doc.qt.nokia.com]

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

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.

January 7, 2011

ashrafsamir ashrafsamir
Lab Rat
4 posts

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 ?

January 8, 2011

QtK QtK
Lab Rat
1140 posts

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

January 8, 2011

ashrafsamir ashrafsamir
Lab Rat
4 posts

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.

January 24, 2011

witsku witsku
Lab Rat
7 posts

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.

 
  ‹‹ Selective UI based on device      Problem in binding texture ››

You must log in to post a reply. Not a member yet? Register here!