Since my One M8s has two cameras, it should be possible to calculate how far away any object in view is. I can't see any way to do this within HTC's built-in apps, but I know they released an API for using the Duo camera capture and processing. So has someone already made an app that uses this? I don't want an app that calculates based on the person holding it and pointing towards the ground, because I want to measure to objects above me.
have you tried any of the measuring apps on play, They might have a dual camera support..
Most of them calculate your height and the distance it takes to reach the ground using the gyroscope
but i haven't heard of one for dual cameras.. It means you would have to manually configure the distance between cameras on every individual device .. It would be a nice app to see in development but it'd be a very small customer base to make an application around, considering the device compatibility wouldn't be very extensive !