You Are Here:

Community: Developer Discussion Boards

#1 Old Take snapshot with N82 - 2008-09-17, 15:31

Join Date: Apr 2005
Posts: 4
dado73
Offline
Registered User
Hello,

I've developped a midlet on N82 for using camera and taking snapshots at the max resolution, using MMAPI in the standard way.

This the method I've used for taking snapshot:

private void takeSnapshot(){
if(player!=null){
try{
byte[] jpgImage = videoControl.getSnapshot("encoding=jpeg&quality=100&width=2592&height=1944");
midlet.cameraCanvasCaptured(jpgImage);
}catch(MediaException me){
message1="MediaException:";
message2=me.getMessage();
}
}
}

I've compared pictured taken in this way with the same taken with standard application on the mobile, and results are:

* the quality of the pictures are worster in the firt case
* spend long time (20 s) for encoding the picture

Questions are:

1) I've read that all the S60 third edition fp1 mobile support the AMMS api but haven't been implemented the classes for managing camera, flash focus...is it true? Will be implemented in the future?

2) Someone has some ideas how to improve the quality of the pictures and reduce time of coding with MMAPI?

3) Where can I get a list of supported parameters (type of encodings...) for the method getSnapshot?

Thanks in advance for your help

Daniele
Last edited by dado73 : 2008-09-17 at 15:37.
Reply With Quote

#2 Old Re: Take snapshot with N82 - 2008-09-17, 17:57

Join Date: Nov 2007
Posts: 2,029
Location: Rome, Italy
Send a message via MSN to jappit Send a message via Skype™ to jappit
jappit's Avatar
jappit
Online
Forum Nokia Champion
Hi Daniele,

about your first two questions:

1) You're right: AMMS camera capabilites are still not implemented on Nokia phones. About the future, I guess they'll be surely implemented, but maybe someone else has more precise details about it.

2) Uhm, using the same parameters and picture quality (so, without changing anything) I think it's not possible to speed up the camera capture process..

Pit


www.jappit.com - mobile and web blog
Reply With Quote

#3 Old Re: Take snapshot with N82 - 2008-09-18, 11:40

Join Date: Apr 2005
Posts: 4
dado73
Offline
Registered User
Thanks for answer,
I understand that is not possible to speed up enconding of th picture without modifing the parameters,

but the other question is:

with this configuration that I think is the best, the quality of pictures are worst, so how can I improve the quality (there are some parameter to change or add)?

Or may be exist third part libraries to manage camera?

Or is possible to call from a midlet application the standard program of the mobile for taking pictures?
Reply With Quote

#4 Old Re: Take snapshot with N82 - 2008-09-18, 15:25

Join Date: Jul 2003
Posts: 88
morash
Offline
Regular Contributor
As pointed by Jappit as well, Camera features of AMMS API are not supported yet. You can read more about the supported and unsupported features of AMMS API in Nokia Devices at
http://www.forum.nokia.com/document/...E8122580E.html

As for code running slow whilst accessing local resoruces; you have to understand that Java code will run relatively slower as compared to the native code.

You will have to change the image parameters to speed it up. Also make sure that you use an image size that is natively supported by the camera so no enlargement or reduction is being done when data is being returned to your code in the required size.

Refer to Forum Nokia JavaME Developers Library for more on this.
http://www.forum.nokia.com/document/...D8F1EE772.html

So in the end you have to find a right balance between your requirements and what the phone can do for you.

As for other supported parameter as per your original post please refer to Forum Nokia JavaME Developers Library, they are listed there.
Reply With Quote

#5 Old Re: Take snapshot with N82 - 2008-09-18, 19:56

Join Date: Apr 2003
Posts: 6,408
Location: USA, CA
hartti's Avatar
hartti
Offline
Nokia Expert
Quote:
Or may be exist third part libraries to manage camera?
Not possible as there is no real JNI in Java ME.

Quote:
Or is possible to call from a midlet application the standard program of the mobile for taking pictures?
Unfortunately no.

Hartti
Reply With Quote
Reply « Previous Thread | Next Thread »
Display Modes
Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules

You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are Off
[IMG] code is Off
HTML code is Off
Forum Jump
Similar Threads
Thread Thread Starter Forum Replies Last Post
Video snapshot muntain Symbian Media (Graphics & Sounds) 3 2009-10-01 16:33
N82 Problem of synchronization with PC Suite Telemann General Discussion 1 2008-08-06 14:48
Cannot pull business card from N82 zhangmaoxian General Discussion 2 2008-07-22 09:13
How to change MMS content class in Nokia N82 amirse General Messaging 0 2008-02-05 14:20
Take a Camera snapshot using nokia UI Api mahabubul_alam Mobile Java Media (Graphics & Sounds) 0 2007-04-24 16:59

Rate This

 
Bookmark this page: DeliciousDiggFacebookGoogleYahooStumbleUponRedditDiigoTechnocratiTwitter  Share this page Share this page Print this Page Print this page Invite a friend Invite a friend
京ICP备05048969号    Email Newsletters Press Terms & Conditions Privacy Policy Sitemap Contact Us © 2009 Nokia 
RDF Facets: qdcZidentifierQSxhttpE3aE2fE2fdiscussionE2eforumE2enokiaE2ecomhttpE3aE2fE2fdiscussionE2eforumE2enokiaE2ecomE2fforumE2fshowthreadE2ephpE3ftE3d18645X qdcZtypeQUqfnZE45E78cludedFromGeneralE4cistingsQ qdcZtypeQUqfntypeZCommunityContentQ qdcZtypeQUqfntypeZE44iscussionQ qdcZtypeQUqfntypeZE44iscussionContentQ qdcZtypeQUqfntypeZE52esourceQ qdcZtypeQUqfntypeZWebpageQ qdcZtypeQUqmarsZManagedE52esourceQ qdcZtypeQUqwebZInformationE52esourceQ qdcZtypeQUqwebZPageQ qdcZtypeQUqwebZE52esourceQ qdcZtypeQUqrdfsZE52esourceQ qfnZtopicQUqfnTopicZentertainmentQ qfnZtopicQUqfnTopicZj2meQ qfnZtopicQUqfnTopicZjavaQ qfnZtopicQUqfnTopicZmediaQ qfnZtypeQUqfntypeZCommunityContentQ qfnZtypeQUqfntypeZE44iscussionQ qfnZtypeQUqfntypeZE44iscussionContentQ qfnZtypeQUqfntypeZE52esourceQ qfnZtypeQUqfntypeZWebpageQ qmarsZlanguageQUxhttpE3aE2fE2fswE2enokiaE2ecomE2flanguageE2d1E2fenX qrdfZtypeQUqfnZE45E78cludedFromGeneralE4cistingsQ qrdfZtypeQUqfntypeZCommunityContentQ qrdfZtypeQUqfntypeZE44iscussionQ qrdfZtypeQUqfntypeZE44iscussionContentQ qrdfZtypeQUqfntypeZE52esourceQ qrdfZtypeQUqfntypeZWebpageQ qrdfZtypeQUqmarsZManagedE52esourceQ qrdfZtypeQUqwebZInformationE52esourceQ qrdfZtypeQUqwebZPageQ qrdfZtypeQUqwebZE52esourceQ qrdfZtypeQUqrdfsZE52esourceQ