-
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
Further intermediate / advanced C# examples #2809
Comments
Hi @KarlAbson Anyway, I agree that rs-measure, rs-align and rs-dnn would benefit from being translated to .NET as well. We will try to add this in future releases. For now, if you have any questions or run into problems, feel free to open more issues. |
Hi @dorodnic |
Hi @dorodnic I'm currently re-coding the rs-measure in C#. I'm happy to contribute this once it's finished.
Would it be possible to get a little help with the C# equivalents for these. Many thanks, |
I just ran a test of the current code. For some reason the distance I calculate is wrong and constantly changing. I'm taking the co-ordinates given in the C++ example manually to test so they should be the same. I must have missed a step either setting up the camera or in calculating.... The result I get from both depth_frame.GetDistance_3d(Start, Stop, depthintr); I was wondering if anyone could see anything? Align align_to = new Align(Stream.Depth); var cfg = new Config(); Pipeline pipeline = new Pipeline(); block = new CustomProcessingBlock((f, src) =>
// Register to results of processing via a callback:
|
Hi @KarlAbson
var dec = new DecimationFilter();
dec.Options[Option.FilterMagnitude].Value = 3.0F;
|
Hi @dorodnic Many thanks :-) Filters are now set up correctly and the correct measurements are being given. |
See IOptionsContainer.OptionValueDescription and Sensor.CameraOption.GetValueDescription string current_value_desc = dec.Options[Option.FilterMagnitude].ValueDescription;
string some_other_value_desc = dec.Options[Option.FilterMagnitude].GetValueDescription(0f);
string from_options_container = dec.Options.OptionValueDescription(Option.FilterMagnitude, 0f); |
Hi @dorodnic Here is the little measuring sample project that I made. Please feel free to use it. The code for loading that is commented out (lines 83 - 86). If you can think of any improvements let me know. |
Hi @KarlAbson , I'm trying to build DLL file of the realsense SDK, but I've failed. In your code, there are |
Hi @JANGSOONMYUN , I downloaded the master thread and built this using CMake as per the instructions online. I have not used the 64bit option but I don't believe this should be so hard to setup. I'm afraid I cannot instruct you on this however. If you have troubles you should be able to find both x64 and x86 dlls under C:\Program Files (x86)\Intel RealSense SDK 2.0\bin once you have installed the drivers / sdk. You can just use these and then you don't have any need to build them yourself. |
Hi, Kal Abson,
Thank you for your answer!
However, I've tried to use dll files on C:\Program Files (x86)\Intel
RealSense SDK 2.0\bin , but it doesn't work...
Error message is: System.DllNotFoundException: 'DLL 'realsense2'
I've clicked References of the C# project and added [Intel.Realsense.dll].
But I didn't add [realsense2.dll] because it couldn't be added. This dll is
not accessible.
And then start to build it, but failed.
And also I've tried to use CMake. I followed this site:
https://cccommunications.com/intel-realsense-3d-depth-camera-sdk-setup-for-c-development/
After doing this, I've open and build \librealsense\build\INSTALL.vcxproj.
Finally, I got [Intel.Realsense.dll] and [realsense2.dll]
So, I also tested it but it didn't work... just same error as before.
If you have any solution, please let me know.
Best Regards,
Jang Soonmyun
2019년 4월 9일 (화) 오후 8:10, KarlAbson <notifications@github.com>님이 작성:
… Hi @JANGSOONMYUN <https://github.com/JANGSOONMYUN> ,
I downloaded the master thread and built this using CMake as per the
instructions online. I have not used the 64bit option but I don't believe
this should be so hard to setup. I'm afraid I cannot instruct you on this
however. If you have troubles you should be able to find both x64 and x86
dlls under C:\Program Files (x86)\Intel RealSense SDK 2.0\bin once you have
installed the drivers / sdk. You can just use these and then you don't have
any need to build them yourself.
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub
<#2809 (comment)>,
or mute the thread
<https://github.com/notifications/unsubscribe-auth/AIc6OKNTnx-ZlcLTh-hiwCs-V-Rb1IsJks5vfIMxgaJpZM4Y74qu>
.
|
Hi, Kal Abson,
I've solved the problem. I've placed dll files on wrong directory.
Thank you!
2019년 4월 9일 (화) 오후 9:37, Soonmyun Jang <jsm890803.3@gmail.com>님이 작성:
… Hi, Kal Abson,
Thank you for your answer!
However, I've tried to use dll files on C:\Program Files (x86)\Intel
RealSense SDK 2.0\bin , but it doesn't work...
Error message is: System.DllNotFoundException: 'DLL 'realsense2'
I've clicked References of the C# project and added [Intel.Realsense.dll].
But I didn't add [realsense2.dll] because it couldn't be added. This dll is
not accessible.
And then start to build it, but failed.
And also I've tried to use CMake. I followed this site:
https://cccommunications.com/intel-realsense-3d-depth-camera-sdk-setup-for-c-development/
After doing this, I've open and build \librealsense\build\INSTALL.vcxproj.
Finally, I got [Intel.Realsense.dll] and [realsense2.dll]
So, I also tested it but it didn't work... just same error as before.
If you have any solution, please let me know.
Best Regards,
Jang Soonmyun
2019년 4월 9일 (화) 오후 8:10, KarlAbson ***@***.***>님이 작성:
> Hi @JANGSOONMYUN <https://github.com/JANGSOONMYUN> ,
>
> I downloaded the master thread and built this using CMake as per the
> instructions online. I have not used the 64bit option but I don't believe
> this should be so hard to setup. I'm afraid I cannot instruct you on this
> however. If you have troubles you should be able to find both x64 and x86
> dlls under C:\Program Files (x86)\Intel RealSense SDK 2.0\bin once you have
> installed the drivers / sdk. You can just use these and then you don't have
> any need to build them yourself.
>
> —
> You are receiving this because you were mentioned.
> Reply to this email directly, view it on GitHub
> <#2809 (comment)>,
> or mute the thread
> <https://github.com/notifications/unsubscribe-auth/AIc6OKNTnx-ZlcLTh-hiwCs-V-Rb1IsJks5vfIMxgaJpZM4Y74qu>
> .
>
|
Issue Description
I just started getting to know the D415 and the RealSense SDK a few days ago. Since my main programming language is C# I was interested in finding and adding more examples to the existing C# example base.
Specifically more advanced examples like the rs-measure and object tracking found in the C++ examples would be nice. Currently the C# examples are quite basic and having more intermediate and advanced examples would make getting into RealSense easier.
Having seen what was included in the old RealSense interms of object tracking it would be welcoming to see some of this in RealSense2 SDK as open freeware.
The text was updated successfully, but these errors were encountered: