-
Notifications
You must be signed in to change notification settings - Fork 4.8k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Private member variable in Intrinsic class in Android Wrapper #7386
Comments
Hi @YichaoW There is a very long and detailed discussion about reading instrinsics in the link below, so I will link to the part of the discussion that I think may be of particular interest to you, as it discusses printing the value of ppx and ppy in the Android log. You can of course return to the start and go through the entire discussion. |
Thanks @MartyG-RealSense ! Is there any java solution? I am not very familiar with C++ and the NDK wrapper. |
@MartyG-RealSense I knew they were added. But the variables stored in Intrinsics are private and I cannot access them. |
A "pull" was submitted a week ago to add intrinsic private property getters to the Android wrapper. The submission has passed build checks but it looks as though it is not merged into the SDK yet. |
Got it thanks |
Hello,
I am trying to get the intrinsic. |
Hi @electro-logic There are very few references about obtaining intrinsics in Android, unfortunately. A RealSense user at #6522 (comment) took the approach of storing intrinsics and extrinsics using C++ Native code in their Android application. |
Any chance to get a Java compatible API? |
There is not an official Java wrapper or plans to create one, but a RealSense user created an unofficial Java wrapper several years ago. https://github.com/edwinRNDR/librealsense/tree/master/wrappers/java |
Hello, I'm on Android and I'm using the official library binding with Java, but I can't access the Intrinsic api |
#6594 states that the API instruction for accessing intrinsics on Android is rs2_get_video_stream_intrinsics |
Hello,
|
I will tag @remibettan into this discussion in case they can provide insight about your problem described at #7386 (comment) |
Hi,
I noticed that all member variables in intrinsic class are private and they don't have getter except for width and height. Is there any other way to get intrinsic value such as ppx and ppy?
https://github.com/IntelRealSense/librealsense/blob/master/wrappers/android/librealsense/src/main/java/com/intel/realsense/librealsense/Intrinsic.java
The text was updated successfully, but these errors were encountered: