Get angle of view of android camera device

后端 未结 3 2067
说谎
说谎 2021-02-15 15:08

I want to know the angle of view from the camera, just like in this question but using android.hardware.camera2. How can I reproduce the next code using the new camera2 library.

3条回答
  •  时光取名叫无心
    2021-02-15 16:03

    As far as my research has gone the answer is no. With the camera2 API there is no call which can give you the vertical and horizontal viewing angle.

    However, you don't need to use the camera2 API to get those values. You can just use the original camera API to get the vertical and horizontal view angle and then use the camera2 API for the rest of the app.

    As far as I know the actual image capture firmware hasn't changed between the camera and camera2 APIs.

提交回复
热议问题