https://github.com/lightbuzz/realsense
C# utilities for the Intel RealSense D415/435
https://github.com/lightbuzz/realsense
Last synced: 9 months ago
JSON representation
C# utilities for the Intel RealSense D415/435
- Host: GitHub
- URL: https://github.com/lightbuzz/realsense
- Owner: LightBuzz
- License: apache-2.0
- Created: 2018-11-20T20:29:37.000Z (over 7 years ago)
- Default Branch: master
- Last Pushed: 2019-03-04T14:17:34.000Z (over 7 years ago)
- Last Synced: 2025-08-18T01:33:38.750Z (10 months ago)
- Language: C#
- Size: 10.2 MB
- Stars: 16
- Watchers: 2
- Forks: 3
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# LightBuzz RealSense SDK for C#
An easy-to-use C# wrapper for the [Intel RealSense D415/435 SDK](https://github.com/IntelRealSense/librealsense). Supports .NET 3.5+ and Unity3D for Windows.
## Download
The latest binaries are available in the project [releases](https://github.com/LightBuzz/RealSense/releases/latest).
## Features
### Color, Depth, and Infrared streams @ 90 FPS
```
private RealSenseDevice device;
private void Start()
{
device = new RealSenseDevice();
device.OnColorFrameArrived += Device_OnColorFrameArrived;
device.OnDepthFrameArrived += Device_OnDepthFrameArrived;
device.OnInfraredFrameArrived += Device_OnInfraredFrameArrived;
device.Open();
}
private void OnDestroy()
{
device.OnColorFrameArrived -= Device_OnColorFrameArrived;
device.OnDepthFrameArrived -= Device_OnDepthFrameArrived;
device.OnInfraredFrameArrived -= Device_OnInfraredFrameArrived;
device.Close();
}
private void Device_OnColorFrameArrived(VideoFrame frame)
{
// Do something with the frame...
}
private void Device_OnDepthFrameArrived(DepthFrame frame)
{
// Do something with the frame...
}
private void Device_OnInfraredFrameArrived(VideoFrame frame)
{
// Do something with the frame...
}
```
### Coordinate mapping
```
CoordinateMapper mapper = mapper = device.ActiveProfile.GetCoordinateMapper();
mapper.MapDepthToWorld(point, depth);
mapper.MapWorldToColor(point);
mapper.MapWorldToDepth(point);
```
## Support
The project is developed and maintained by [LightBuzz Inc](https://lightbuzz.com).
## License
[Apache License 2.0](https://github.com/LightBuzz/RealSense/blob/master/LICENSE)