×

Discussion Board

Results 1 to 10 of 10
  1. #1
    Registered User
    Join Date
    Jan 2010
    Posts
    11

    Question Set focus to a particular distance

    Hi,
    Is it possible to set the camera focus (on auto-focus devices) to a fixed distance? Is there and API through which I can say, for example : set focus at 15cm, etc.?

    Regards,
    JP

  2. #2
    Nokia Developer Champion
    Join Date
    Mar 2006
    Location
    Helsinki, Finland
    Posts
    8,347

    Re: Set focus to a particular distance

    Quote Originally Posted by jp19 View Post
    Hi,
    Is it possible to set the camera focus (on auto-focus devices) to a fixed distance? Is there and API through which I can say, for example : set focus at 15cm, etc.?

    Regards,
    JP
    I am not sure whether this will help but check the SetFocusDistance() from CCameraAdvancedSettings API. Note that CCameraAdvancedSettings is available from S60 3rd FP2 and onwards. Also note that SetFocusDistance() takes TInt as a parameter where you can set the distance in millimeters.
    Nokia Developer Wiki Moderation team

  3. #3
    Registered User
    Join Date
    Jan 2010
    Posts
    11

    Re: Set focus to a particular distance

    Thanks Kiran! Looks like just what I needed. Will try it out

    Regards
    JP

  4. #4
    Nokia Developer Moderator
    Join Date
    Mar 2003
    Location
    Lempäälä/Finland
    Posts
    29,165

    Re: Set focus to a particular distance

    Note also that not all functionality of that particular class are actually implemented, as well as before 3rd ed FP2 is does not work at all. anyway for 3rd FP2 it is propably best possibility on trying the functionality.

  5. #5
    Regular Contributor
    Join Date
    Apr 2008
    Posts
    445

    Re: Set focus to a particular distance

    Quote Originally Posted by jp19 View Post
    Thanks Kiran! Looks like just what I needed. Will try it out

    Regards
    JP
    I am facing a similar problem at the moment. Did it work? If true, what phone model did you use?

  6. #6
    Registered User
    Join Date
    Nov 2008
    Posts
    2

    Re: Set focus to a particular distance

    it works on many mobiles I tested, such as E75, N85, 6100S and 6710 Navigator. Also works on 5th Ed. There are some 3rd FP1 that have autofocus, such as E71 and N95. For these, the sure to check the Symbian/S60 Camera Wrapper on https://projects.forum.nokia.com/camerawrapper , which brings the autofocus functionality to these mobiles

  7. #7
    Nokia Developer Moderator
    Join Date
    Feb 2006
    Location
    Oslo, Norway
    Posts
    28,750

    Re: Set focus to a particular distance

    That is nice, just participants of this thread are looking for customized focus, not autofocus.

  8. #8
    Registered User
    Join Date
    Nov 2008
    Posts
    2

    Re: Set focus to a particular distance

    that's true

  9. #9
    Registered User
    Join Date
    Jan 2010
    Posts
    11

    Re: Set focus to a particular distance

    As far as I remember, it did not work for me on N82 or N5800 (not sure about N5800, but definitely did not work on N82).

  10. #10
    Regular Contributor
    Join Date
    Apr 2008
    Posts
    445

    Re: Set focus to a particular distance

    I have read out the (advanced) camera features from several phones: C7, N8, N86, 5800XM. In Fact all have a similar feature set. The only difference between N8 and all other phones is the "EAutoFocusTypeContinuous". The other features are all more or less the same. Here is the output for the N8 (please ignore the numbers between the brackets):
    ### SupportedAutoFocusAreas (0)
    ### SupportedAutoFocusTypes (3)
    EAutoFocusTypeSingle
    EAutoFocusTypeContinuous
    ### SupportedBracketModes (0)
    ### SupportedBracketParameters (0)
    ### SupportedBracketSteps (0)
    ### SupportedDriveModes (65)
    EDriveModeSingleShot
    EDriveModeBurst
    ### SupportedExposureModes (31)
    EExposureNight
    EExposureBacklight
    EExposureCenter
    EExposureSport
    EExposureVeryLong
    ### SupportedFlashModes (11)
    EFlashAuto
    EFlashForced
    EFlashRedEyeReduce
    ### SupportedFocusModes (1)
    EFocusModeAuto
    ### SupportedFocusRanges (99)
    EFocusRangeMacro
    EFocusRangeNormal
    EFocusRangeHyperfocal
    EFocusRangeInfinite
    ### SupportedMeteringModes (0)
    ### SupportedStabilizationComplexityValues (0)
    ### SupportedStabilizationEffects (1)
    EStabilizationAuto
    ### SupportedStabilizationModes (8)
    EStabilizationModeAuto
    ### SupportedWhiteBalanceModes (15)
    EWBDaylight
    EWBCloudy
    EWBTungsten
    EWBFluorescent
    ### SupportedWBUnits (0)
    ### GetSupportedISORateTypeL (3)
    EISOManual
    EISOAutoUnPrioritised
    ### GetSupportedIsoRatesL (4)
    ### GetSupportedTransformationsL (ImageProcessing) (5)
    - KUidECamEventImageProcessingEffect (1)
    - EEffectNegative
    - EEffectMonochrome
    - EEffectSepia
    - EEffectVivid
    - EEffectNatural
    - KUidECamEventImageProcessingAdjustSaturation
    - KUidECamEventImageProcessingAdjustSharpness
    - KUidECamEventImageProcessingAdjustBrightness
    - KUidECamEventImageProcessingAdjustContrast
    and the Nokia 5800:
    ### SupportedAutoFocusAreas (0)
    ### SupportedAutoFocusTypes (1)
    EAutoFocusTypeSingle
    ### SupportedBracketModes (0)
    ### SupportedBracketParameters (0)
    ### SupportedBracketSteps (0)
    ### SupportedDriveModes (65)
    EDriveModeSingleShot
    EDriveModeBurst
    ### SupportedExposureModes (31)
    EExposureNight
    EExposureBacklight
    EExposureCenter
    EExposureSport
    EExposureVeryLong
    ### SupportedFlashModes (139)
    EFlashAuto
    EFlashForced
    EFlashRedEyeReduce
    EFlashVideoLight
    ### SupportedFocusModes (1)
    EFocusModeAuto
    ### SupportedFocusRanges (99)
    EFocusRangeMacro
    EFocusRangeNormal
    EFocusRangeHyperfocal
    EFocusRangeInfinite
    ### SupportedMeteringModes (0)
    ### SupportedStabilizationComplexityValues (0)
    ### SupportedStabilizationEffects (1)
    EStabilizationAuto
    ### SupportedStabilizationModes (8)
    EStabilizationModeAuto
    ### SupportedWhiteBalanceModes (15)
    EWBDaylight
    EWBCloudy
    EWBTungsten
    EWBFluorescent
    ### SupportedWBUnits (0)
    ### GetSupportedISORateTypeL (3)
    EISOManual
    EISOAutoUnPrioritised
    ### GetSupportedIsoRatesL (4)
    ### GetSupportedTransformationsL (ImageProcessing) (5)
    - KUidECamEventImageProcessingEffect (1)
    - EEffectNegative
    - EEffectMonochrome
    - EEffectSepia
    - EEffectVivid
    - EEffectNatural
    - KUidECamEventImageProcessingAdjustSaturation
    - KUidECamEventImageProcessingAdjustSharpness
    - KUidECamEventImageProcessingAdjustBrightness
    - KUidECamEventImageProcessingAdjustContrast
    As you can see, there is almost any possibility to intervene manually. I think, this is a big disadvantage compared to the iPhone 3 GS resp. 4 where much more manual settings are available to the developer.
    Regards,

Similar Threads

  1. How to set focus to control
    By leeffa in forum Symbian
    Replies: 2
    Last Post: 2009-09-14, 10:58
  2. Not able to set the created SMS date ..
    By keerthi.ck06 in forum Symbian
    Replies: 10
    Last Post: 2009-05-22, 14:26
  3. Setting focus on a control
    By juannoguera in forum Symbian
    Replies: 0
    Last Post: 2009-04-02, 20:31
  4. Set Exif Gps Info Latitude.
    By shashishaw in forum Symbian
    Replies: 15
    Last Post: 2009-03-24, 16:50
  5. Can we set textbox focus to the last character?
    By dhanyap in forum Mobile Java General
    Replies: 1
    Last Post: 2006-11-17, 07: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
  •  
×