Comments (7)
I believe that the C++ code that was converted is the script at the link below.
from librealsense.
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.
from librealsense.
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.
@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.
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.
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.
You are very welcome. I'm pleased that I could help. Thanks very much for the update!
from librealsense.
Related Issues (20)
- Hi, I had the same issue. I solved it with the command "sudo apt-get install ros-$ROS_DISTRO-realsense2-camera"
- [Question] human or photo detection HOT 2
- keep popping 16:15:26 [Info] /home/greg988/Downloads/realsense/librealsense/src/linux/backend-v4l2.cpp:753 - Enumerating UVC video2 realpath=/sys/devices/pci0000:00/0000:00:14.0/usb2/2-2/2-2:1.0/video4linux/video2
- keep popping 16:15:26 [Info] /home/greg988/Downloads/realsense/librealsense/src/linux/backend-v4l2.cpp:753 - Enumerating UVC video2 realpath=/sys/devices/pci0000:00/0000:00:14.0/usb2/2-2/2-2:1.0/video4linux/video2 HOT 14
- Question of Alignment image and Depth Scale unit on D405 HOT 5
- Firmware Update HOT 7
- D455F and Depth Module D450 + Vision Processor D4 Board V3 Bundle (8 Pack) HOT 6
- External power supply for Intel Realsense d415 HOT 3
- Error to update firmware HOT 6
- Can not run libuvc_installation.sh normally HOT 11
- SOFTWARE DOESN'T RECOGNIZE REALSENSE SR300 CAMERA HOT 7
- Manually align the depth image with the color image. HOT 9
- this is a big dan!!!!!! HOT 2
- RealSense BGRA Buffer Doesn't Work with ZXing HOT 5
- Frame didn't arrive within 5000 on macOS HOT 4
- Android App Freeze At Second Launch HOT 10
- Cannot link to new camera HOT 3
- Access Color Stream from Left Imager in UYVY [16 bits] format HOT 3
- The D435 camera is producing inconsistent data while performing in different light conditions. HOT 1
- Realsense-viewer does not detect L515 camera on ubuntu 20.04 HOT 7
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from librealsense.