How can i calculate the field of view of the camera of a phone?
I need to know the field of view of the camera of the phone to make an augmented reality app, for calculate where i have to write on the camera view the name of a gps located Point of interest of a city on the correct coordinates of the screen, pointi开发者_Python百科ng the point of interest.
for example:
distance 5 meters: 6 meters (from left to right FOV)
distance 10 meters: 12 meters (from left to right FOV)
How to calculate it?
I think you will never match the FOV definition for every device. (Compare this answer for iPhone.)
Every device is different when using android. Take your device, do the math (or take the results from anywhere else) and decide yourself to choose a reasonable FOV angle.
Maybe you could take account of Camera.Parameters.getSupportedPictureSizes() for getting the camera ratio, but that should be all you can do.
精彩评论