Asked 7 years ago
18 Dec 2016
Views 2858
shabi

shabi posted

Android - measure distance of object from camera

How can i measure distance of object from camera in android ? i am developing app for android people can measure distance from their mobile to particular object , and i found some app also working on same concept like
some android app ::
smart distance - https://play.google.com/store/apps/details?id=kr.sira.distance
smart measure- https://play.google.com/store/apps/details?id=kr.sira.measure
etc.

give me some hint so i can measure distance of object from camera in android .
Mitul Dabhi

Mitul Dabhi
answered Nov 30 '-1 00:00

i am not sure but getFocusDistances() from Camera.Parameters will help you on this

getFocusDistances(float[] output)

Gets the distances from the camera to where an object appears to be in focus.

Post Answer