Macro-mode in AVCaptureDevice(custom camera)

Hi,

I would like to use macro-mode for the custom camera using AVCaptureDevice in my project. This feature might help to automatically adjust and switch between lenses to get a close up clear image. It looks like this feature is not available and there are no open apis to achieve macro mode from Apple. Is there a way to get this functionality in the custom camera without losing the image quality. Please let me know if this is possible.

Thanks you, Adil Thamarasseri

Answered by DTS Engineer in 821296022

Hello @AdilT,

This feature might help to automatically adjust and switch between lenses to get a close up clear image. It looks like this feature is not available

This is a common misconception:

If you are using a virtual device that includes the ultra-wide camera (i.e. the builtInDualWideCamera or the builtInTripleCamera), then the default behavior is that the virtual device will automatically switch-over to the ultra-wide camera according to the activePrimaryConstituentDeviceSwitchingBehavior of the device.

In short, as long as you are using one of the virtual devices I mentioned above, the default behavior is the feature you are looking for.

-- Greg

Hello @AdilT,

This feature might help to automatically adjust and switch between lenses to get a close up clear image. It looks like this feature is not available

This is a common misconception:

If you are using a virtual device that includes the ultra-wide camera (i.e. the builtInDualWideCamera or the builtInTripleCamera), then the default behavior is that the virtual device will automatically switch-over to the ultra-wide camera according to the activePrimaryConstituentDeviceSwitchingBehavior of the device.

In short, as long as you are using one of the virtual devices I mentioned above, the default behavior is the feature you are looking for.

-- Greg

Macro-mode in AVCaptureDevice(custom camera)
 
 
Q