react-native-vision-camera icon indicating copy to clipboard operation
react-native-vision-camera copied to clipboard

✨Support focusing manually by specifying focus depth

Open bakoe opened this issue 2 years ago • 1 comments

What feature or enhancement are you suggesting?

Currently, VisionCamera only supports focusing manually by specifying coordinates of a subject where the camera should focus to (using the <Camera>’s focus method)

In addition, both Android and iOS allow focusing manually by specifying a fixed depth (i.e., a distance from the camera).

Hence, it would be great to be able to focus on a given depth/distance using VisionCamera as well.

API design note

It seems like RNCamera used a prop called focusDepth for this (instead of, e.g., exposing a method like focusToDepth(depth)).

What Platforms whould this feature/enhancement affect?

iOS, Android

Alternatives/Workarounds

As far as I know, there are no workarounds available to focus by a depth/distance (instead of focusing on a subject).

Additional information

bakoe avatar Sep 17 '23 17:09 bakoe

Hey! Good feature request 👍

mrousavy avatar Sep 20 '23 12:09 mrousavy