IntelRealSense / librealsense

Intel® RealSense™ SDK
https://www.intelrealsense.com/
Apache License 2.0
7.63k stars 4.83k forks source link

Kinfu‘s performance is poor. #13540

Open star-ice opened 22 hours ago

star-ice commented 22 hours ago

Required Info
Camera Model { D400 }
Firmware Version (Open RealSense Viewer --> Click info)
Operating System & Version Linux(20.04)
Kernel Version (Linux Only) (e.g. 4.14.13)
Platform NIVDIA Jetson Orin NX
SDK Version
Language C++
Segment Robot

Issue Description

I used Kinfu for the 3D reconstruction of a small scene. The camera is D455. I opened the rs-kinfu program and slowly moved the camera, but the performance was not good enough. The point cloud was skewed and even though I had moved as slowly as I could, there were still so many redundant points around the object. The point cloud is as follows:

image-20241125092830793

The scene looks like this: image

I wonder whether I used kinfu incorrectly or need to modify the code for better performance. Thanks for your help.

MartyG-RealSense commented 13 hours ago

Hi @star-ice It sounds as though you used rs-kinfu properly. Other RealSense users have experienced slow performance with rs-kinfu, so it is not just you.

I would recommend trying the following changes:

  1. Comment out line 204 defining the high_density camera configuration preset.

  2. Comment out lines 219 and 257-259 that apply post-processing filters, as these filters are calculated on the computer's CPU and so can add a processing burden to it. If commenting out all the filters results in a noticable reduction in depth image quality then try only commenting out the spatial filter.