Asked 30+ days ago
18 Dec 2016
Views 220
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 Jan 21 '18 20:17

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.

Edit Answer
Share
Post Answer