View my account

D400: depth frames in Python vs. Java

Comments

3 comments

  • MartyX Grover

    Hi Llorcarodriguez  This is a difficult question, as there are only a couple of good examples that I know of to refer to regarding a RealSense example of a Java script for exporting a camera depth frame to bitmap image in an Android application.

    https://github.com/IntelRealSense/librealsense/issues/5446

    https://github.com/IntelRealSense/librealsense/issues/6089

     

    The simpler image from Python looks like a more correct representation of a typical RealSense depth frame than the more complex image from your Java code does.

     

     

     

    Given the lack of reference materials available about exporting to a bitmap image from Java, I would recommend looking at the code in the two links that I shared above to see whether it provides useful insights.

    0
    Comment actions Permalink
  • Llorcarodriguez

    Hello MartyG!

    First of all, thank you very much for the work you put into these forums.

    I will look into the links. I am using Java in PC through Maven, Gradle and IntelliJ anyway, not any sort of android development. Still very intrigued about what goes into the Java wrapper to make the depth pictures look so much more sensible.

    Have a nice day!

    0
    Comment actions Permalink
  • MartyX Grover

    You are very welcome, Llorcarodriguez  :)

     

    Outside of Android, the two Java compatibility wrappers available for the RealSense SDK are unofficial and contributed by RealSense users.  You can find them under the Community Projects heading of the SDK examples directory at the link below.

    Of those two wrappers, the one by cansik is the most recently updated one and has some example programs.

    https://github.com/IntelRealSense/librealsense/tree/master/wrappers#community-projects

    0
    Comment actions Permalink

Please sign in to leave a comment.