luxonis / depthai-unity

DepthAI Unity Library, Unity projects and examples (OAK For Unity)
MIT License
200 stars 34 forks source link

.NET Framework/.NET Core Support #20

Closed noumanqaiser closed 1 year ago

noumanqaiser commented 2 years ago

Hello, I am considering using OAK-D POE cameras for an application a .NET 5.0 Windows Forms app would need to read frames/depth data from OAK D cameras.

My question is, Is there any wrapper/Library available that could help me read image/depth information in C#, If this is possible, Any sample that would help achieve this would be greatly appreciated.

gespona commented 2 years ago

Hi @noumanqaiser ! You can use depthai-unity library ... at the end integration with Unity is the same scenario, as Unity use C# scripts. To read frames/depth data I'd suggest to take a look to "streams" example, that basically shows outputs from cameras and include depth.

https://github.com/luxonis/depthai-unity/blob/main/OAKForUnity/URP/Assets/Plugins/OAKForUnity/Scripts/Predefined/Streams/DaiStreams.cs