×

Discussion Board

Results 1 to 5 of 5
  1. #1
    Registered User
    Join Date
    Apr 2005
    Posts
    4

    Take snapshot with N82

    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 14:37.

  2. #2
    Nokia Developer Champion
    Join Date
    Nov 2007
    Location
    Rome, Italy
    Posts
    2,405

    Re: Take snapshot with N82

    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

  3. #3
    Registered User
    Join Date
    Apr 2005
    Posts
    4

    Re: Take snapshot with N82

    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?

  4. #4
    Regular Contributor
    Join Date
    Jul 2003
    Posts
    89

    Re: Take snapshot with N82

    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.

  5. #5
    Nokia Developer Champion
    Join Date
    Apr 2003
    Location
    USA, CA
    Posts
    7,192

    Re: Take snapshot with N82

    Or may be exist third part libraries to manage camera?
    Not possible as there is no real JNI in Java ME.

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

    Hartti

Similar Threads

  1. Video snapshot
    By muntain in forum Symbian Media (Closed)
    Replies: 3
    Last Post: 2009-10-01, 15:33
  2. N82 Problem of synchronization with PC Suite
    By Telemann in forum General Development Questions
    Replies: 1
    Last Post: 2008-08-06, 13:48
  3. Cannot pull business card from N82
    By zhangmaoxian in forum General Development Questions
    Replies: 2
    Last Post: 2008-07-22, 08:13
  4. How to change MMS content class in Nokia N82
    By amirse in forum General Messaging
    Replies: 0
    Last Post: 2008-02-05, 13:20
  5. Take a Camera snapshot using nokia UI Api
    By mahabubul_alam in forum Mobile Java Media (Graphics & Sounds)
    Replies: 0
    Last Post: 2007-04-24, 15:59

Posting Permissions

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