android / android/camera-samples

question! Can I get the FocusDistances(the distance between object and camera?)

Open
#527 0 comments 2 reactions 0 assignees View on GitHub
Dominant language
Kotlin
Stars
5.5k
Forks
2.4k
PR merge metrics
No merged PRs in 30d

Description

In camera, there is getFocusDistance().
But it was not used after API21.
Now, I searched the camera2/camerax, but I can't find the parameters about the focus-distance.
Anybody have the same question or have any idea?
Thanks!
I want to know the distance between object and camera without bluetooth or infrared ray.o(╥﹏╥)o

Contributor guide

Open the contributing guide

Research direction

Review the issue's references to getFocusDistance(), camera2, and CameraX; first determine whether this repository contains a relevant camera sample or API entry point. Done requires a concrete, repository-scoped change or documentation target, which the current question does not specify.

Written by the indexing model from the issue text.

Assessment

Tech stack
android, kotlin
Domain
mobile
Issue type
Feature
Difficulty
5/5
Estimated time
Over a week
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
20/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.