C# (Windows)
示例程序简介
C# 示例程序位于 {Vcamera SDK 安装路径}/Percipio_SDK/API/csharp/net48/example/PercipioSdkExample,包含:
DepthToPointCloud/Program.cs:实现深度图对齐到点云图上。DepthToColorRegistration/Program.cs:实现深度图与彩色图的像素级坐标对齐。SoftTrigger/Program.cs:设置相机工作在软触发模式,发送软触发指令后,相机采集深度图。DumpAllFeatures/Program.cs:列举当前相机支持的属性。ReadWriteFeatures/Program.cs:用于读写属性。UserSetSelector/Program.cs:选择用户配置。FetchFrameContinuous/Program.cs:设置相机工作在自由采集模式下采集深度图。ListDevices/Program.cs:列举所有连接到电脑上的相机。
安装依赖
安装 Visual Studio
注解
推荐安装 Visual Studio 2022 版本(此版本经测试 100% 兼容支持,其他版本未经测试,不保证兼容性)。
下载并安装 Visual Studio 。请勾选 “桌面应用和移动应用” 分类中的 “.NET 桌面开发” 工作负荷。
![]()
Visual Studio 安装
编译
运行
进入
{SDK 安装目录}/Percipio_SDK/API/csharp/net48/example/PercipioSdkExample/SampleOut/x64/Release目录。打开终端,运行编译生成的可执行文件
.exe。

