Giter VIP home page Giter VIP logo

Comments (7)

MartyG-RealSense avatar MartyG-RealSense commented on May 20, 2024 1

I believe that the C++ code that was converted is the script at the link below.

https://support.intelrealsense.com/hc/en-us/community/posts/360051896473-Get-Disparity-Map-of-D455-by-RealSense-SDK-2-0?page=1#community_comment_360014626993

from librealsense.

MartyG-RealSense avatar MartyG-RealSense commented on May 20, 2024

Hi @sunglyoungKim Are you aiming to generate a disparity map with Python and OpenCV, please? If you are then the information at #8572 may be helpful to you.

If it is a depth map that you are aiming for then the Python / OpenCV reference at the link below may suit your requirements.

https://support.intelrealsense.com/hc/en-us/community/posts/23846939164947-RealSense-D405-Depth-Map-Fidelity

from librealsense.

sunglyoungKim avatar sunglyoungKim commented on May 20, 2024

Thank you for replying to my questions so quickly.

Yes, it seems like I should follow #8572.

I have found this C++ code, too. Is it the same code that #8572 mentions about converting C++ code into Python?

https://github.com/IntelRealSense/librealsense/tree/master/wrappers/opencv/depth-filter

from librealsense.

sunglyoungKim avatar sunglyoungKim commented on May 20, 2024

@MartyG-RealSense
Hello,
Maybe I am wrong, but based on the links and #8572, it seems like I have to use OpenCV to generate disparity and depth maps from left and right IR images.

After I got the depth map, is it possible I can encode it correctly and point the dataset into this object?
config.enable_stream(rs.stream.depth, depth_res[0], depth_res[1], rs.format.z16, fps)

So that I can use all the align frames, post-processing filters, and make point cloud.

Thank you!

from librealsense.

MartyG-RealSense avatar MartyG-RealSense commented on May 20, 2024

Once you have generated images in OpenCV, #2634 advises about a method to convert back to the RealSense SDK's rs2::frame format with C++ code so that you can use the SDK's functions on the data. There is not a Python conversion of this code available but it might provide some useful insights about implementing a similar CV to SDK conversion in Python.

An alternative method of using OpenCV data for SDK instructions is to feed the OpenCV frames into the SDK's software-device interface, like the Python example at #12677

from librealsense.

sunglyoungKim avatar sunglyoungKim commented on May 20, 2024

@MartyG-RealSense

Thank you so much. I think I got all the information that I need.

If I need extra help, I will re-open this issue. Thank yo!

from librealsense.

MartyG-RealSense avatar MartyG-RealSense commented on May 20, 2024

You are very welcome. I'm pleased that I could help. Thanks very much for the update!

from librealsense.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.