-
Notifications
You must be signed in to change notification settings - Fork 4.8k
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
Getting error while runnig process of ProcessingBlock and PointCloud at same time #10739
Comments
Hi @omwen13 Does it make any difference if you move the post-processing filter lines to above the "Start point cloud" line? f = f.ApplyFilter(Decimation).DisposeWith(releaser); PointCloud pc = new PointCloud(); |
Hi @MartyG-RealSense , I tried this code the error line is changed. I get the error in phase of ApplyFilter.
The console log output
|
Thanks very much for testing moving the filter code. Does the script still have errors if the decimation filter is commented out but the spatial filter is kept enabled? |
Is the project able to function well without using the filters at all? May I ask why a custom processing block is being used instead of a standard pipeline like in the RealSense SDK's 'Generics' pointcloud example in the C# Cookbook page of examples, please? |
Its normally working when disable the filter process lines as the following examle with standart pipeline.
When i uncomment out filter lines. I get same error.
|
There was another C# user at #2809 (comment) who was trying to implement post-processing filters using CustomProcessingBlock. A RealSense team member gave advice at #2809 (comment) about implementing the filters in C#. |
The error fixed thanks @MartyG-RealSense for helping. The error reason is
above code parts (given the example of processing in csharp example repo). Using with process of point cloud and apply filter, causing the error. In addition above code parts apply all filter on depth image. Working code parts:
|
It's great to hear that you achieved a solution, @omwen13 - thanks very much for the update and for sharing your C# solution with the RealSense community! |
Issue Description
I want to getting depth data from camera and then apply few filter the depth data and get point cloud using the depth data.
I wrote the code and get System.InvalidOperationException: error. The error is fixes when I disable getting point cloud and enable filter process or the exact opposite disable apply filter and enable getting point cloud.
The text was updated successfully, but these errors were encountered: