×

Discussion Board

Results 1 to 3 of 3

Thread: Code help

  1. #1
    Registered User
    Join Date
    Oct 2007
    Posts
    1

    Code help

    Hello,

    I'm new to all this stuff so please.... go easy!

    I currently have a pyhon script that states :

    while running:
    image = camera.take_photo(exposure='night', flash='red_eye_reduce')

    This strobes the flash ligh on the camera, now what I would like to know is what the command to get the LED on when it is in Video mode would be i.e

    while running:
    image = camera.take_Video(exposure='night', flash='red_eye_reduce')

    Which isn't right but I think you get the idea

    Also how do I find out the commands ?! I have no idea where to start with finding such information

    Thanks in advance

    Tony

  2. #2
    Regular Contributor
    Join Date
    Jan 2007
    Posts
    80

    Re: Code help

    Hi

    I don't you can take videos from python first of all, but for future references you can always look in the API which you can get from the Sourceforge site, as well as if you know how to use the terminal using bluetooth and typing

    import camera
    dir(camera)

    it will tell you all the things the camera can do..

    example
    >>> import camera
    >>> dir(camera)
    ['__builtins__', '__doc__', '__file__', '__name__', '_backlight_on', '_camera',
    '_finder_call_back', '_main_pane_size', '_my_call_back', '_my_camera', 'cameras_
    available', 'dev_index', 'device', 'e32', 'exposure_modes', 'exposuremap', 'flas
    h_modes', 'flashmap', 'graphics', 'image_modes', 'image_sizes', 'max_zoom', 'mod
    emap', 'number_of_devices', 'release', 'start_finder', 'stop_finder', 'take_phot
    o', 'white_balance_modes', 'whitebalancemap']


    Cheers,

  3. #3
    Super Contributor
    Join Date
    May 2006
    Location
    Oulu, Finland
    Posts
    622

    Re: Code help

    You can find all the info you need in PyS60 doc (5.3 camera — Interface for taking photographs)

    LFD
    Devices:
    Nokia E61 3rd Edition - pys60 1.4.0

    Tips and modules:
    http://www.lfdm.net/thesis

Similar Threads

  1. Replies: 2
    Last Post: 2007-10-05, 20:40
  2. Link errors when trying to Display bitmap
    By Bkc82 in forum Symbian Media (Closed)
    Replies: 1
    Last Post: 2006-01-16, 22:46
  3. How to handle a response with HTTP status code 100 (Continue)?
    By danieldkim in forum Mobile Java General
    Replies: 5
    Last Post: 2004-01-19, 10:54
  4. Replies: 0
    Last Post: 2003-09-26, 15:07

Posting Permissions

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