Get angle of view of android camera device -


i want know angle of view camera, in this question using android.hardware.camera2. how can reproduce next code using new camera2 library.

camera.parameters p = camera.getparameters(); double thetav = math.toradians(p.getverticalviewangle()); double thetah = math.toradians(p.gethorizontalviewangle()); 

is there way same thing?

as far research has gone answer no. camera2 api there no call can give vertical , horizontal viewing angle.

however, don't need use camera2 api values. can use original camera api vertical , horizontal view angle , use camera2 api rest of app.

as far know actual image capture firmware hasn't changed between camera , camera2 apis.


Comments

Popular posts from this blog

OpenCV OpenCL: Convert Mat to Bitmap in JNI Layer for Android -

android - org.xmlpull.v1.XmlPullParserException: expected: START_TAG {http://schemas.xmlsoap.org/soap/envelope/}Envelope -

python - How to remove the Xframe Options header in django? -