×

Discussion Board

Results 1 to 14 of 14
  1. #1
    Registered User
    Join Date
    Dec 2008
    Posts
    2

    Camera autofocus

    How I can use autofocus on S60 v9.4?
    I found midule fastcamera (http://handheld.softpedia.com/progDo...oad-72896.html), but it no for S60 v9.4.
    There are other methods?

  2. #2
    Registered User
    Join Date
    Dec 2008
    Posts
    2

    Re: Camera autofocus

    Please, help me port fastcamera module to Symbian v9.4!

    I don't know how do it...

  3. #3
    Nokia Developer Moderator
    Join Date
    Oct 2007
    Location
    Deva, Romania
    Posts
    3,471

    Re: Camera autofocus

    Have you tried it on Symbian v9.4 (meaning S60 5th Edition)? Try the one for 3rd Edition FP2 and tell us what errors you get, if any. Also mention what version of PyS60 you're using.

  4. #4
    Registered User
    Join Date
    Jun 2010
    Posts
    5

    Re: Camera autofocus

    Hi serzh44,
    Did you have any luck with fastcamera?

  5. #5
    Regular Contributor
    Join Date
    May 2007
    Posts
    75

    Re: Camera autofocus

    Euhm, interesting that that module can be found there ... Anyway, for 5th edition use:

    https://www.iyouit.eu/portal/softwar...ra_3rd_fp2.sis For Python 1.4 and

    https://www.iyouit.eu/portal/softwar...3rd_fp2_25.sis For Python 2.0

    Both are unsigned with UIDs from the test range. Oh, and these URLs are subject to change ...

    Original SIS files, docs and sources can be found https://www.iyouit.eu/portal/Software.aspx, but keep in mind that for now those are only for Python 1.4 (Ports to Python 2.0 and/or Symbian 5th edition do exist, but haven't been released yet)

  6. #6
    Regular Contributor
    Join Date
    Apr 2010
    Location
    Fortaleza, Brazil
    Posts
    118

    Re: Camera autofocus

    Hi!
    Quote Originally Posted by mwibbels View Post
    (Ports to Python 2.0 and/or Symbian 5th edition do exist, but haven't been released yet)
    I'd really love to try the fastcamera module on a Symbian 5th ed. device with Python 2.0.0! Is there any chance of seeing it being released soon? I'd be more than willing to help you iron out bugs and problems if the port is not quite ready for prime time...

  7. #7
    Regular Contributor
    Join Date
    May 2007
    Posts
    75

    Re: Camera autofocus

    Hi, I already answered your email before reading this post. But for the wider audience: the https://www.iyouit.eu/portal/softwar...3rd_fp2_25.sis URL points to a Python 2.0.0 version that should work on 5th edition devices (we use it on those devices).

    (The _25 suffix comes from the main Python 2.5 version the S60 Python 2.0.0 is based on, back from when they were still at 1.9.x and we ported the module)

  8. #8
    Regular Contributor
    Join Date
    Apr 2010
    Location
    Fortaleza, Brazil
    Posts
    118

    Re: Camera autofocus

    Worked like a charm! Thanks!
    You can see the results here

  9. #9
    Registered User
    Join Date
    Dec 2010
    Posts
    6

    Re: Camera autofocus

    Hi,

    I'm trying to use the fastcamera module but i can't get it to work. Is there documentation for it or a sample of code?

  10. #10
    Regular Contributor
    Join Date
    May 2007
    Posts
    75

    Re: Camera autofocus

    Original SIS files, docs and sources can be found https://www.iyouit.eu/portal/Software.aspx
    Though in the case of fastcamera only sample scripts exist.

  11. #11
    Registered User
    Join Date
    Dec 2010
    Posts
    6

    Re: Camera autofocus

    I got it, but I can't get it to work properly on my Nokia N8. The Viewfinderscript doesn't work and I can't seem to make any pictures larger than 640,480.
    I'm not a python coder so I can't figure out what's wrong as I get no errors.
    I'm using python commandline "run a script" on my Nokia N8, is that how it's done?

  12. #12
    Registered User
    Join Date
    Dec 2010
    Posts
    6

    Re: Camera autofocus

    how do I make the viewfinder.py file so that it will flash before it takes a picture?
    and how can I get it to use the max resolution of my N8 (4000*3000)?
    I can't figure how to use fastcamera from the examples given.
    Pls help.

  13. #13
    Regular Contributor
    Join Date
    May 2007
    Posts
    75

    Re: Camera autofocus

    Quote Originally Posted by pbc278 View Post
    The Viewfinderscript doesn't work and I can't seem to make any pictures larger than 640,480.
    What exactly doesn't work? As apparently you're getting 640*480 pictures? If picture size is your problem, then change the following

    Code:
    fastcamera.prepare_take_photo(self.camtouse, mode='RGB16', size=(640, 480))
    into the size you want.

    Wrt flash:

    Code:
    self.camtouse.set_flash('auto')
    should do the trick

  14. #14
    Regular Contributor
    Join Date
    Apr 2010
    Location
    Fortaleza, Brazil
    Posts
    118

    Re: Camera autofocus

    Quote Originally Posted by mwibbels View Post
    Though in the case of fastcamera only sample scripts exist.
    I've tried to download the available source code from your website, but I receive a "service unavailable" error on all pages - I hope this is just a temporary issue: https://www.iyouit.eu/portal/software/fastcamera.zip

    Unfortunately, I believe that fastcamera is panicking with code KERN-EXEC 3 (according to Panic Observer):
    "This panic is raised when an unhandled exception occurs. Exceptions have many
    causes, but the most common are access violations caused, for example, by
    dereferencing NULL. Among other possible causes are: general protection faults,
    executing an invalid instruction, alignment checks, etc."
    http://library.forum.nokia.com/index...xecPanics.html

    Another problem/symptom is that after crashing and restarting my app the viewfinder is rotated 90°. When this happens, no pictures are captured. I receive the following exception when trying to set the picture resolution:
    <type 'exceptions.ValueError'>, Size not supported for camera
    I think the only way to prevent this panic from crashing my app is to correct the underlying problem in fastcamera's source (if that's really the source of the problem). If that's not the case, can anyone give me advice on how to solve this?

    Thanks!
    Last edited by AltoRetrato; 2011-05-17 at 17:33.

Similar Threads

  1. Nokia N-Series Complete Model Line-Up
    By Dopod in forum General Development Questions
    Replies: 6
    Last Post: 2008-07-22, 20:16
  2. brightness probleme with the autofocus camera exemple
    By abbet.c in forum Symbian Media (Closed)
    Replies: 0
    Last Post: 2008-03-14, 14:53
  3. previous camera autofocus lib can not work in S60 3.2
    By whitewinds in forum Symbian Media (Closed)
    Replies: 1
    Last Post: 2008-02-19, 08:02
  4. Issues with the new Camera Autofocus API
    By jcollomosse in forum Symbian Media (Closed)
    Replies: 19
    Last Post: 2007-12-22, 00:19
  5. Camera AutoFocus in N90
    By hgosali in forum Symbian Tools & SDKs
    Replies: 1
    Last Post: 2007-02-22, 23:00

Posting Permissions

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