You Are Here:

Community: Developer Discussion Boards

#1 Old Question using the front camera in S60 2nd ed - 2008-10-26, 11:46

Join Date: Oct 2008
Posts: 12
Location: Philippines
Send a message via Yahoo to arren_tuazon
arren_tuazon
Offline
Registered User
is there a method on how to take a photograph using the front camera?
Reply With Quote

#2 Old Re: using the front camera in S60 2nd ed - 2008-10-26, 11:59

Join Date: Oct 2007
Posts: 2,841
Location: Deva, Romania
bogdan.galiceanu's Avatar
bogdan.galiceanu
Offline
Forum Nokia Champion
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:
Quote:
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
Reply With Quote

#3 Old Re: using the front camera in S60 2nd ed - 2008-10-26, 13:34

Join Date: Feb 2008
Posts: 743
Location: Belo Horizonte, Brazil
Send a message via Skype™ to Rafael T.
Rafael T.'s Avatar
Rafael T.
Offline
Forum Nokia Champion
Yes, Bogdan's example worked fine here, even using 3rd Edition.


BR,

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

Advanced Search
Rate This Thread
Rate This Thread:

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 On
[IMG] code is Off
HTML code is Off
Forum Jump
Similar Threads
Thread Thread Starter Forum Replies Last Post
Python for S60 1.4.0 released jplauril Python 43 2009-05-24 10:22
API to read file information in S60 2nd FP2 sdk? SanjayKhuntia Mobile Java General 10 2008-08-28 13:11
N73 front camera access dudi Symbian Media (Graphics & Sounds) 4 2007-04-05 17:42
Loop back examples for S60 2nd, 3rd and 3rd FP1 nly VoIP 0 2007-03-16 17:03
What is going on with Vibration on S60? amd_rikus Mobile Java General 3 2006-06-16 01:29

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