×

Discussion Board

Results 1 to 4 of 4

Thread: Face Camera

  1. #1
    Registered User
    Join Date
    Jan 2009
    Posts
    172

    Face Camera Problem

    Hi,
    i am using this tutorial to capture an image

    http://wiki.forum.nokia.com/index.ph...uring_an_image

    The target platform is Symbian^3
    Tested Device is N8

    The capture works perfect with camera index 0 (the main camera)
    but i can't use face camera
    //Original code works perfect to capture from main camera
    void CCameraEngine::ConstructL()
    {
    // TODO: It is assumed here that the device has a camera.
    // Add error handling, if this may not be the case.

    // Camera index 0 is the main camera
    iCamera = CCamera::NewL(*this, 0);

    }
    //i modified it to capture from face camera

    void CCameraEngine::ConstructL()
    {
    // TODO: It is assumed here that the device has a camera.
    // Add error handling, if this may not be the case.

    // Camera index 1 is the face camera
    iCamera = CCamera::NewL(*this, 1);

    }

    but i get this error log CActiveScheduler::RunIfReady() returned error: -5



    Kindly Advice
    Regards
    Wael
    Last edited by waelfarouk; 2011-04-10 at 23:05.

  2. #2
    Nokia Developer Expert
    Join Date
    Dec 2003
    Posts
    148

    Re: Face Camera Problem

    Most probably preparing image capture fails because of unsupported image size index == 1. There might be only one supported image size i.e. index == 0. The example is very much hard coded. The supported image formats should be checked from CameraInfo(), supported capture sizes enumerated by calling EnumerateCaptureSize().
    janza

  3. #3
    Registered User
    Join Date
    Jun 2007
    Location
    Mumbai, India
    Posts
    1,998

    Re: Face Camera Problem

    Quote Originally Posted by waelfarouk View Post
    Hi,
    i am using this tutorial to capture an image

    http://wiki.forum.nokia.com/index.ph...uring_an_image

    The target platform is Symbian^3
    Tested Device is N8

    The capture works perfect with camera index 0 (the main camera)
    but i can't use face camera
    //Original code works perfect to capture from main camera
    void CCameraEngine::ConstructL()
    {
    // TODO: It is assumed here that the device has a camera.
    // Add error handling, if this may not be the case.

    // Camera index 0 is the main camera
    iCamera = CCamera::NewL(*this, 0);

    }
    //i modified it to capture from face camera

    void CCameraEngine::ConstructL()
    {
    // TODO: It is assumed here that the device has a camera.
    // Add error handling, if this may not be the case.

    // Camera index 1 is the face camera
    iCamera = CCamera::NewL(*this, 1);

    }

    but i get this error log CActiveScheduler::RunIfReady() returned error: -5



    Kindly Advice
    Regards
    Wael

    This issue has been already discussed here. It should help you fix this.

  4. #4
    Registered User
    Join Date
    Jan 2009
    Posts
    172

    Re: Face Camera Problem

    Quote Originally Posted by kamalakshan View Post
    This issue has been already discussed here. It should help you fix this.
    Thanks your help was useful and appreciated

Similar Threads

  1. Face recognition
    By maclun123 in forum Symbian
    Replies: 3
    Last Post: 2009-02-24, 22:10
  2. Second(directed to face) camera on Nokia N70(and other smartphones)
    By saand in forum Mobile Java Media (Graphics & Sounds)
    Replies: 1
    Last Post: 2007-12-07, 00:50
  3. Font Face
    By tigran_g in forum Mobile Java General
    Replies: 4
    Last Post: 2006-09-16, 18:40
  4. N-Gage face plates
    By zaca03 in forum General Development Questions
    Replies: 0
    Last Post: 2004-02-18, 19:12

Posting Permissions

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