使用入门#
前提条件#
- Basler Stereo mini 相机(USB 或 GigE 型号,请参见下表)
- 运行 Windows、Linux 或 Linux ARM 的计算机
- 计算机上已安装 Basler pylon SDK
- 计算机上已安装 Basler pylon Supplementary Package for Stereo mini
支持的相机型号#
| 型号 | 接口 | 连接器 |
|---|---|---|
| STM-501u | USB | USB Type-C |
| STM-502u | USB | USB Type-C |
| STM-951u | USB | USB Type-C |
| STM-952u | USB | USB Type-C |
| STM-951g | GigE | M12 X 编码,8 引脚 |
| STM-955g | GigE | M12 X 编码,8 引脚 |
有关详细规格,请参阅产品规格主题。
安装#
- Download the latest Basler pylon SDK from the Basler website.
- Download the latest Basler pylon Supplementary Package for Stereo mini from the Basler website.
- Run the installer and follow the installation wizard.
- USB models: Connect the camera to a USB 3.0 port.
The camera will be detected automatically by the pylon SDK. - GigE models: Connect the camera to your GigE network using an M12 X-coded cable.
- Download the latest Basler pylon SDK for Linux from the Basler website.
- Download the latest Basler pylon Supplementary Package for Stereo mini from the Basler website.
- Extract the archive and run the installer script.
- USB models: Connect the camera to a USB 3.0 port.
- GigE models: Connect the camera to your GigE network using an M12 X-coded cable.
连接相机#
USB 型号#
- 使用 USB Type-C 线缆将相机连接到 USB 3.0 端口。
- 相机通过 USB 连接供电。
- 连接后,打开 pylon 3D Viewer 以验证连接。
GigE 型号#
- 使用 M12 X 编码 8 针电缆将相机连接到网络。
GigE 型号支持以太网供电 (PoE, IEEE 802.3af)。或者,它们也可以由独立的 DC 电源 (9–24 V) 供电。 - 确保您的网络接口和交换机支持千兆以太网。
- 连接后,打开 pylon 3D Viewer 以验证连接。
如果相机没有立即显示,请使用 Refresh 按钮。
验证连接#
pylon IP Configurator#
使用 pylon IP Configurator 检查和更改 GigE Stereo mini 相机的 IP 配置。
或者,您可以通过点击 Tools > pylon IP Configurator 在 pylon 3D Viewer 中启动 pylon IP Configurator。
使用 pylon 3D Viewer#
pylon 3D Viewer 提供了一个图形用户界面,用于查看和配置相机的功能以及可视化可用的流传输格式。它还允许您保存图像。
- 打开 pylon 3D Viewer。
您的相机应显示在设备列表中。 - 点击您的相机将其选中。
您应该会看到实时的深度和 RGB 图像流。
后续步骤#
- 阅读 C++ Programmer's Guide 以进行 C++ 开发。
- 阅读 Python Programmer's Guide 以进行 Python 开发。
- 浏览 Samples 部分以获取代码示例。