如何运行HALCON示例
介绍
This tutorial shows how to configure HALCON samples and run them in HDevelop, C++, or C#.
要求
必需的
zivid-halcon-samples (HDevelop) / zivid-cpp-samples / zivid-csharp-samples
备注
The HALCON versions tested with Zivid cameras are 19.05 Progress, 20.05 Progress, 21.11 Progress, 24.05 Progress, 24.11 Progress-Steady, 25.05 Progress, 25.11 Progress, 26.05 Progress.
可选的
如果您目前没有安装单独的 ply 查看器, MeshLab 是一个直观易用的选择,可用于查看从所提供的示例生成的点云数据。
说明
Set the GenICam/HALCON environment variables, then run a sample in your language of choice.
为GenICam/HALCON配置环境变量
Some environment variables needs to be set before you can begin to use Zivid with GenICam. There are two options: use the Windows Control Panel, or use the Windows Command Prompt.
Windows Control Panel
Windows Command Prompt
Now that your environment variables are set, you are ready to run samples. Select your language: HDevelop, C++, or C#.
HDevelop
C++
要运行示例,请按照本教程并从可选要求中选择 Halcon:
您有两种方法来捕获并保存点云数据,我们将通过两个示例对此进行演示:
使用 GenICam 接口和 Halcon C++ SDK: CaptureHalconViaGenICam.cpp
使用 Zivid SDK 通过使用 Halcon C++ SDK 将点云转换为 Halcon 的文件格式: CaptureHalconViaZivid.cpp
C#
要运行示例,请按照本教程并从可选要求中选择 Halcon:
您有两种方法来捕获并保存点云数据,我们将通过两个示例对此进行演示:
使用 GenICam 接口和 Halcon C# SDK: CaptureHalconViaGenICam.cs
使用 Zivid SDK 通过使用 Halcon C# SDK 将点云转换为 Halcon 的文件格式: CaptureHalconViaZivid.cs