Items with no label
3335 Discussions

Using C# How to enable and set brightnes of the dot pattern for depth

PBoos1
New Contributor I
2,119 Views

Could someone show a small example of how to enable/disable the dot pattern and set the brightness of it for the D435 camera ?

0 Kudos
5 Replies
MartyG
Honored Contributor III
663 Views

The 'Librealsense2' section of the documentation below explains how to enable / disable the emitter, and alter its brightness by changing the Laser Power setting. The lower the Laser Power value is, the less visible the pattern becomes.

https://github.com/IntelRealSense/librealsense/wiki/API-How-To# controlling-the-laser API How To · IntelRealSense/librealsense Wiki · GitHub

0 Kudos
PBoos1
New Contributor I
663 Views

Some example in c# please ?

0 Kudos
MartyG
Honored Contributor III
663 Views

The number of examples of C# code for the 400 Series cameras is currently very limited, unfortunately. It is recommended that you use the script below as a foundation to insert the laser power and emitter code I provided earlier.

https://github.com/IntelRealSense/librealsense/issues/1747 How to change camera settings programmatically in C# · Issue # 1747 · IntelRealSense/librealsense · GitHub

0 Kudos
RFern15
Beginner
663 Views

Are there any plans to put up some more robust C# examples. Something using WPF or windows forms instead of the ascii art console examples?

0 Kudos
MartyG
Honored Contributor III
663 Views

The most strongly supported use of the C# wrapper in RealSense SDK 2.0 currently is in its Unity engine wrapper, which has had a number of sample programs developed for it.

https://github.com/IntelRealSense/librealsense/tree/master/wrappers/unity librealsense/wrappers/unity at master · IntelRealSense/librealsense · GitHub

https://github.com/IntelRealSense/librealsense/tree/master/wrappers/unity/Assets/RealSenseSDK2.0/Scenes/Samples librealsense/wrappers/unity/Assets/RealSenseSDK2.0/Scenes/Samples at master · IntelRealSense/librealsense · GitHub

0 Kudos
Reply