Retrieve 3D points using C#
I can get depth points and color points from C# with D435i. But depth points only represent the distance of each pixel. Here is my question: Are there any method in C# that I can 3D point data of each pixel?Because I need the 3D point data to fulfill my requirements. I've found some discussion but still can't solve my problem. Thanks for helping!
-
There is a method called 'generics' for creating a 3D point cloud in C#. Does this meet your needs, please?
-
First, I really appreciate your reply.
I tried the method 'generics', but it doesn't work.
The error "System.Exception: 'Frame didn't arrived within 5000' " always happens on this line : using (var frames = pipe.WaitForFrames()) .
And this problem also occur in other method in the cookbook.
From my understanding it means no data coming from the realsense, am I correct?
But I can run this example and this works: https://github.com/IntelRealSense/librealsense/blob/master/wrappers/csharp/cs-tutorial-1-depth/Program.cs
So I think is not the hardware problem.
-
Frames not arriving within 5000 would typically suggest a communication problem between the camera and the computer's USB controller. As this is a C# programming problem, I would recommend posting a question at the RealSense GitHub, as the Intel RealSense team members there are more experienced with C#. You can post a question by visiting the link below and clicking the 'New Issue' button.
Please sign in to leave a comment.
Comments
3 comments