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
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
Thanks Kiran! Looks like just what I needed. Will try it out
Regards
JP
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.
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
That is nice, just participants of this thread are looking for customized focus, not autofocus.
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).
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):
and the Nokia 5800:### 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
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.### 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
Regards,