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

color and depth frame align too slow on rk3588 #12214

Closed
westpilgrim63 opened this issue Sep 20, 2023 · 6 comments
Closed

color and depth frame align too slow on rk3588 #12214

westpilgrim63 opened this issue Sep 20, 2023 · 6 comments
Labels

Comments

@westpilgrim63
Copy link

  • Before opening a new issue, we wanted to provide you with some useful suggestions (Click "Preview" above for a better view):

  • All users are welcomed to report bugs, ask questions, suggest or request enhancements and generally feel free to open new issue, even if they haven't followed any of the suggestions above :)


Required Info
Camera Model { D435i }
Firmware Version (Open RealSense Viewer --> Click info)
Operating System & Version {Win (11) / Android
Kernel Version (Linux Only) (e.g. 4.14.13)
Platform PC/RK3588
SDK Version 2.0 }
Language {C/java }
Segment {Robot/Smartphone/VR/AR/others }

Issue Description

i tried to align color and depth frame using data = align_to.process(data); ,on pc,it's 10 ms,but on rk3588,the same command using about 300 ms ,it's too slow to use in real scene. is there any solution for this?

@westpilgrim63
Copy link
Author

#11758
i found a solution ,using rs2_project_color_pixel_to_depth_pixel to align single pixel

@MartyG-RealSense
Copy link
Collaborator

Thanks very much @westpilgrim63 for the update. It's great to hear that you found a solution that works for you!

@sun-xm
Copy link

sun-xm commented Jun 13, 2024

The problem has not really been solved. Same issue on rk3399. Sdk version 2.50.

@MartyG-RealSense
Copy link
Collaborator

MartyG-RealSense commented Jun 13, 2024

Hi @sun-xm Depth-color alignment is processed on the CPU of the computer / computing device and not on the camera hardware. So alignment performance will be partly dependent on the strength of the hardware specification of the RK3399 device.

If programming in C++ language then it is possible to accelerate performance by offloading processing work from the CPU onto the graphics GPU of a device using the RealSense SDK's GLSL Processing Blocks feature, described at #3654

There is also a C++ example program called rs-gl that demonstrates using GLSL.

https://github.com/IntelRealSense/librealsense/tree/master/examples/gl

GLSL is 'vendor neutral', meaning that it should work with any brand of GPU. However, if the computing device has a low-end hardware specification then GLSL may not make a noticeable difference.

@sun-xm
Copy link

sun-xm commented Jun 18, 2024

Thanks for the tips @MartyG-RealSense. Eventually I've implemented my own version with NEON and OpenMP. Now I can get 30 fps at 1280x720 with around 50% cpu occupation on RK3399.

@MartyG-RealSense
Copy link
Collaborator

Hi @sun-xm It's great to hear that you were able to achieve a solution. Thanks very much for the update!

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

No branches or pull requests

3 participants