react-native-vision-camera
react-native-vision-camera copied to clipboard
✨Support focusing manually by specifying focus depth
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).
- iOS:
setFocusModeLocked(lensPosition) - Android:
LENS_FOCUS_DISTANCE
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
- [X] I agree to follow this project's Code of Conduct
- [X] I searched for similar feature requests in this repository and found none.
Hey! Good feature request 👍