You Are Here:

Community: Developer Discussion Boards

#1 Old using flash with pycamera - 2008-10-28, 00:58

Join Date: Jun 2007
Posts: 169
lpvalente's Avatar
lpvalente
Online
Forum Nokia Champion
Hello people,

Is it possible to use the camera flash with PyCamera (from Nokia Research) ?
Reply With Quote

#2 Old Re: using flash with pycamera - 2008-10-28, 01:49

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
Quote:
Originally Posted by lpvalente View Post
Hello people,

Is it possible to use the camera flash with PyCamera (from Nokia Research) ?
Hi Luis,


I'm Rafael from the Code Camp in Rio. I'll still talk in English here, so the others can also understand


So, I'm not sure if you can do that using PyCamera, but you should, since is a extending module and it wouldn't miss such a basic function.

Although, there is a very complete example on the Wiki that doesn't says anything about using flash

I'll search a little more tomorrow. I'm also curious about this

If I find something, I will post it here.


BR,

Rafael.
Reply With Quote

#3 Old Re: using flash with pycamera - 2008-10-28, 02:03

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
Just downloaded the PyCamera package and saw the oficial script that comes in the documentation folder (by the way, is the same from the Wiki). I think it really doesn't have support for using the flash, since it isn't any example of that, even in official documentation.

Unfortunately, I think you will have to use default camera module for using flash


BR,

Rafael.
Reply With Quote

#4 Old Re: using flash with pycamera - 2008-10-28, 07:42

Join Date: Mar 2003
Posts: 937
Location: Espoo, Finland
JOM's Avatar
JOM
Online
Forum Nokia Champion
Quote:
Originally Posted by lpvalente View Post
Is it possible to use the camera flash with PyCamera (from Nokia Research) ?
Manual 1.4.4 page 35:

Quote:
flash is the flash mode setting. The default value is 'none'. The following
flash mode settings are supported:
- 'none'
No flash. Default value, always supported
- 'auto'
Flash will automatically fire when required
- 'forced'
Flash will always fire
- 'fill in'
Reduced flash for general lighting
- 'red eye reduce'
Red-eye reduction mode
Cheers,

--jouni
Reply With Quote

#5 Old Re: using flash with pycamera - 2008-10-28, 11:16

Join Date: Jun 2007
Posts: 169
lpvalente's Avatar
lpvalente
Online
Forum Nokia Champion
Hello JOM,

Thanks for the reply, that documentation is for the standard camera module, and not the pycamera from NRC.
Reply With Quote

#6 Old Re: using flash with pycamera - 2008-10-28, 11:59

Join Date: May 2007
Posts: 2,737
Location: 21.46 N 72.11 E
croozeus's Avatar
croozeus
Online
Forum Nokia Champion
Quote:
Originally Posted by lpvalente View Post
Hello JOM,

Thanks for the reply, that documentation is for the standard camera module, and not the pycamera from NRC.
Hi Luis,

Yes, you can use flash !

Below are the modes,

Quote:
EFlashAuto , EFlashFillIn,EFlashForced , EFlashLManual , EFlashRedEyeReduce , EFlashSlowFrontSync , EFlashSlowRearSync, EFlashNone
and here is how you can select one,
Code:
cam = pycamera.Camera(0)
cam.SetFlash(EFlashAuto)
Best Regards,
Croozeus
Reply With Quote

#7 Old Re: using flash with pycamera - 2008-10-28, 12:02

Join Date: Jun 2007
Posts: 169
lpvalente's Avatar
lpvalente
Online
Forum Nokia Champion
Hello croozeus,

I've already tried to use SetFlash, but I get an error saying that this method doesn't exist.
Reply With Quote

#8 Old Re: using flash with pycamera - 2008-10-28, 12:24

Join Date: May 2007
Posts: 2,737
Location: 21.46 N 72.11 E
croozeus's Avatar
croozeus
Online
Forum Nokia Champion
Quote:
Originally Posted by lpvalente View Post
Hello croozeus,

I've already tried to use SetFlash, but I get an error saying that this method doesn't exist.
Is the function listed when you use, dir(cam) ?
Reply With Quote

#9 Old Re: using flash with pycamera - 2008-10-28, 12:40

Join Date: Jun 2007
Posts: 169
lpvalente's Avatar
lpvalente
Online
Forum Nokia Champion
Quote:
Originally Posted by croozeus View Post
Is the function listed when you use, dir(cam) ?
It's not ...
Reply With Quote

#10 Old Re: using flash with pycamera - 2008-10-28, 12:50

Join Date: May 2007
Posts: 2,737
Location: 21.46 N 72.11 E
croozeus's Avatar
croozeus
Online
Forum Nokia Champion
Quote:
Originally Posted by lpvalente View Post
It's not ...
Yes, and hence the error!

Ideally it should be listed. I haven't used PyCamera myself. Lets wait for someone who has used it, to comment on this.


Best Regards,
Croozeus
Reply With Quote

#11 Old Re: using flash with pycamera - 2008-10-28, 12:52

Join Date: Jun 2007
Posts: 169
lpvalente's Avatar
lpvalente
Online
Forum Nokia Champion
I guess the source is not available either, so we are unable to modify it ...
Reply With Quote

#12 Old Re: using flash with pycamera - 2008-10-28, 15:51

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
Here it is also giving this error. And when I do dir(cam) it also doesn't return any set flash function


BR,

Rafael.
Reply With Quote

#13 Old Re: using flash with pycamera - 2008-10-29, 10:39

Join Date: Mar 2003
Posts: 937
Location: Espoo, Finland
JOM's Avatar
JOM
Online
Forum Nokia Champion
Quote:
Originally Posted by lpvalente View Post
I guess the source is not available either, so we are unable to modify it ...
Ok, now I know what you were talking about
http://research.nokia.com/research/p.../download.html

Checked only PyCam and at least there was only _pycamera.pyd without sources. Not sure what was used to create it, but maybe those other ZIPs contain something useful... Most likely not the needed sources.

Cheers,

--jouni
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
Flash lite 2.1 on Nokia N73 and OMA DRM DmitryZayats Flash Lite on Nokia Devices 1 2008-09-26 08:27
Internet problems Aamirrasool Flash Lite on Nokia Devices 1 2008-08-24 10:21
Article series on ising sound Flash for phones hp3 Audio 1 2006-10-22 20:55
S60 2nd FP3 and 3rd - Flash Lite frustration ilyadanilov General Discussion 7 2006-02-08 20:07

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: qdcZidentifierQSxhttpE3aE2fE2fdiscussionE2eforumE2enokiaE2ecomhttpE3aE2fE2fdiscussionE2eforumE2enokiaE2ecomE2fforumE2fshowthreadE2ephpE3ftE3d81449X qdcZtypeQUqfnZE45E78cludedFromGeneralE4cistingsQ qdcZtypeQUqfntypeZCommunityContentQ qdcZtypeQUqfntypeZE44iscussionQ qdcZtypeQUqfntypeZE44iscussionContentQ qdcZtypeQUqfntypeZE52esourceQ qdcZtypeQUqfntypeZWebpageQ qdcZtypeQUqmarsZManagedE52esourceQ qdcZtypeQUqwebZInformationE52esourceQ qdcZtypeQUqwebZPageQ qdcZtypeQUqwebZE52esourceQ qdcZtypeQUqrdfsZE52esourceQ qfnZtopicQUqfnTopicZpythonQ qfnZtypeQUqfntypeZCommunityContentQ qfnZtypeQUqfntypeZE44iscussionQ qfnZtypeQUqfntypeZE44iscussionContentQ qfnZtypeQUqfntypeZE52esourceQ qfnZtypeQUqfntypeZWebpageQ qfnZuserE5ftagQSxpythonX qmarsZlanguageQUxhttpE3aE2fE2fswE2enokiaE2ecomE2flanguageE2d1E2fenX qrdfZtypeQUqfnZE45E78cludedFromGeneralE4cistingsQ qrdfZtypeQUqfntypeZCommunityContentQ qrdfZtypeQUqfntypeZE44iscussionQ qrdfZtypeQUqfntypeZE44iscussionContentQ qrdfZtypeQUqfntypeZE52esourceQ qrdfZtypeQUqfntypeZWebpageQ qrdfZtypeQUqmarsZManagedE52esourceQ qrdfZtypeQUqwebZInformationE52esourceQ qrdfZtypeQUqwebZPageQ qrdfZtypeQUqwebZE52esourceQ qrdfZtypeQUqrdfsZE52esourceQ