Skip to content
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

Algorithms for Depth & RGB streaming #11407

Closed
TheNemo05 opened this issue Feb 7, 2023 · 11 comments
Closed

Algorithms for Depth & RGB streaming #11407

TheNemo05 opened this issue Feb 7, 2023 · 11 comments

Comments

@TheNemo05
Copy link

Required Info
Camera Model D455
Firmware Version 05.14.00.00
Operating System & Version win11, ubuntu 20
Kernel Version (Linux Only) NA
Platform PC
SDK Version 2.53.1
Language ROS/Python
Segment NA

Issue Description

Need python algos for depth & rgb streaming

@MartyG-RealSense
Copy link
Collaborator

Hi @TheNemo05 If you wanted a Python script for accesssing both depth and RGB then the RealSense SDK example program opencv_viewer_example.py may be a useful reference.

https://github.com/IntelRealSense/librealsense/blob/master/wrappers/python/examples/opencv_viewer_example.py

@TheNemo05
Copy link
Author

Thank You, can i also get recording algorithm

@MartyG-RealSense
Copy link
Collaborator

If you wish to record depth and RGB to a bag file using the SDK's enable_record_to_file instruction then there is a Python script for doing so at #3029

The Python script at #2731 (comment) saves depth and RGB to .avi video file instead.

@TheNemo05
Copy link
Author

According to your reference #2731 (comment) using the python script can actually save the depth and RGB to .avi but the video players cannot play it. Also tried using the VLC player

@MartyG-RealSense
Copy link
Collaborator

I'm sorry to hear that you had problems with playback. That script usually works for RealSense users who have tried it, such as the user at #10647 (comment)

There is another Python recording script here:

https://qiita.com/nataly510/items/c676a28a1119907a560d

@TheNemo05
Copy link
Author

Still it didnt worked. The .avi file format is not working. Any other method will me acceptable

@MartyG-RealSense
Copy link
Collaborator

MartyG-RealSense commented Feb 9, 2023

A RealSense user at #8969 (comment) suggests using ffmpeg-python.

Another approach referenced at #6841 (comment) is to use screen capture software such as XSplit to record the contents of the screen directly to video.

In that same discussion a RealSense team member also advises how to capture camera data with standard Linux video tools instead of a RealSense program script.

@TheNemo05
Copy link
Author

Any python code for 3D streaming and .bag file export

@MartyG-RealSense
Copy link
Collaborator

#3671 contains Python scripts for aligning depth to color and then saving to a bag file.

@MartyG-RealSense
Copy link
Collaborator

Hi @TheNemo05 Do you require further assistance with this case, please? Thanks!

@MartyG-RealSense
Copy link
Collaborator

Case closed due to no further comments received.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants