Active Topics

 


Reply
Thread Tools
Posts: 14 | Thanked: 1 time | Joined on Dec 2009
#1
Does anyone know how to integrate Qt4.6 with the N900 Camera?

I've been looking at the Qt classes and still cannot figure out which one can connect to the device to capture a picture. QtMobility seems to support QCamera but it does not seem to be supported in Qt 4.6. I've taken a look at QImage but it seems that it's more of a displaying device rather than a method to capture the image.

Any help or pointers would be greatly appreciated.

Thanks
 
Posts: 1,086 | Thanked: 2,964 times | Joined on Jan 2010
#2
Bump

Did you ever find an answer? I am trying to port over a small app I made in J2ME for Symbian s60 which makes use of the camera, as a way to learn PyQT. But for the life of me I cannot find the api that will allow me to use the camera to capture an image.

I fear there may be a better chance of an answer if this was posted in the development forum rather than the Maemo 5 one. I didnt want to open a new thread yet, but if no replies I guess I should do.

Edit: I've come across the Imaging and Sharing section in the Maemo 5 guide, hopefully it'll give me some clues

http://wiki.maemo.org/Documentation/...ng_and_Sharing

Last edited by kojacker; 2010-02-04 at 23:45.
 

The Following User Says Thank You to kojacker For This Useful Post:
Posts: 1 | Thanked: 1 time | Joined on Mar 2010
#3
I was looking for the same thing

It seems that device specific stuff we need to use the native api
rather than QT

for camera here's the documentation
http://wiki.maemo.org/Documentation/...mera_API_Usage

the example in the page is overwhelmed with comments
so it should be easy to figure out how to integrate it
with qt code
 

The Following User Says Thank You to kyriacosl For This Useful Post:
Posts: 1,038 | Thanked: 737 times | Joined on Nov 2005 @ Helsinki
#4
qt mobility will be included in pr1.3, but there is a preview already in extras-devel.
 

The Following 22 Users Say Thank You to konttori For This Useful Post:
Posts: 182 | Thanked: 540 times | Joined on Aug 2009 @ Finland
#5
Using Qt Mobility Multimedia Camera API is not a correct thing to do as you'll miss all the enhancements on the image quality that are done by default, this is due to an incorrect use of GStreamer pipelines in the Qt implementation that does not take Maemo specifics into details.

A proper way is to use GStreamer with GstPhotography interface almost similar to what is described in the Maemo 5 documentation. You would need to work out usual C/C++ mixture details but it all should work well.

When Qt Mobility Multimedia Camera API backend could be fixed is unknown.
 

The Following 4 Users Say Thank You to abbra For This Useful Post:
Posts: 143 | Thanked: 99 times | Joined on Jun 2009 @ Houston
#6
these threads might be handy:

http://talk.maemo.org/showthread.php?t=38275

http://talk.maemo.org/showthread.php?t=45935


and you can look at the code for the app HealthCheck which interacts with the camera and is written using PyQt.:

http://maemo.org/packages/view/healthcheck/
 

The Following 2 Users Say Thank You to tpaixao For This Useful Post:
Posts: 3,664 | Thanked: 1,530 times | Joined on Sep 2009 @ Hamilton, New Zealand
#7
Originally Posted by konttori View Post
qt mobility will be included in pr1.3, but there is a preview already in extras-devel.


PR1.3?? so not in 1.2? damn... Where did you get the infor from? So we have to keep on waiting for another year to get 1.3.
 

The Following User Says Thank You to maxximuscool For This Useful Post:
Posts: 508 | Thanked: 130 times | Joined on Sep 2009
#8
He is from helsinki! maybe he works for nokia and knows the plans... LOL
 
Posts: 650 | Thanked: 619 times | Joined on Nov 2009
#9
Originally Posted by maxximuscool View Post
PR1.3?? so not in 1.2? damn... Where did you get the infor from? So we have to keep on waiting for another year to get 1.3.
Konttori is a Nokian, and in charge of Maemo 5 development... QT Mobility is not QT 4.6, QT 4.6 will be in PR1.2. The mentioning of PR1.3 is obviously a good news to N900 user as we know that N900/Maemo 5 is not abandoned since the development is still ongoing.
 

The Following User Says Thank You to sony123 For This Useful Post:
noobmonkey's Avatar
Posts: 3,203 | Thanked: 1,391 times | Joined on Nov 2009 @ Worthing, England
#10
i just use gstreamer in healthcheck. when i get near a pc will post the code. it will be in one of my healthcheck threads though.
__________________
----------- Follow me on Twitter here
----------- My Photography Website and Blog is here
----------- Author of the N900 Health Check Application ----------- New Version in Extras Devel (Dec 2010 - 2.9.10)
----------- Are you on the N900 World Map? - http://pininthemap.com/maemo - masterpin: shotgun
----------- What apps do you want to see on the n900 or in MeeGo in the future? -
 
Reply


 
Forum Jump


All times are GMT. The time now is 15:31.