×

Discussion Board

Results 1 to 3 of 3
  1. #1
    Registered User
    Join Date
    Oct 2008
    Location
    Philippines
    Posts
    12

    Question using the front camera in S60 2nd ed

    is there a method on how to take a photograph using the front camera?

  2. #2
    Super Contributor
    Join Date
    Oct 2007
    Location
    Deva, Romania
    Posts
    3,471

    Re: using the front camera in S60 2nd ed

    Yes, you set the camera position to 1 (for front camera) instead of 0 (for main camera, which is the default).

    From the PyS60 documentation:
    take_photo([mode, size, zoom, flash, exposure, white balance, position ])

    *position is the camera used if the device, such as Nokia 6680, has several cameras. In Nokia 6680, the camera pointing to the user of the device is located in position 1, whereas the one pointing away from the user is located in position 0. The default position is 0.
    So, for example:
    Code:
    import camera
    
    image = camera.take_photo(mode = "RGB", size = (176, 144), exposure = "auto", position = 1)
    #Remember that resolution for the front camera may be different depending on the device

  3. #3
    Super Contributor
    Join Date
    Feb 2008
    Location
    Belo Horizonte, Brazil
    Posts
    744

    Re: using the front camera in S60 2nd ed

    Yes, Bogdan's example worked fine here, even using 3rd Edition.


    BR,

    Rafael.

Similar Threads

  1. Python for S60 1.4.0 released
    By jplauril in forum Symbian
    Replies: 43
    Last Post: 2009-05-24, 09:22
  2. API to read file information in S60 2nd FP2 sdk?
    By SanjayKhuntia in forum Mobile Java General
    Replies: 10
    Last Post: 2008-08-28, 12:11
  3. N73 front camera access
    By dudi in forum Symbian Media (Closed)
    Replies: 4
    Last Post: 2007-04-05, 16:42
  4. Replies: 0
    Last Post: 2007-03-16, 16:03
  5. What is going on with Vibration on S60?
    By amd_rikus in forum Mobile Java General
    Replies: 3
    Last Post: 2006-06-16, 00:29

Posting Permissions

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