示例#
Accessing Samples#
The samples are located in the C:\Program Files\Basler\pylon\Development\Samples\Stereo_mini folder.
The samples are located in the /opt/pylon/share/pylon/Samples/Stereo_mini folder.
The samples are located in the /opt/pylon/share/pylon/Samples/Stereo_mini folder.
信息
Before building the samples, copy the folder containing the samples to a location of your choice where you have write permissions.
Available Samples#
C++ Samples#
The following C++ samples are available:
- FirstSample: Grabs intensity and range data and prints center pixel values.
- Opens the first Stereo mini device using
BaslerGenTlStmDeviceClass. - Enables intensity and range components.
- Reads center pixel intensity (RGBA) and range values.
- Opens the first Stereo mini device using
- GrabDepthMap: Converts range data to a colorized depth map using OpenCV.
- Uses the range component (
Coord3D_C16). - Colorizes depth values with OpenCV for live visualization.
- Uses the range component (
- ShowPointCloud: Displays live colored point clouds with PCL.
- Uses the range component (
Coord3D_ABC32f) and intensity for color. - Converts grab results to
pcl::PointCloud<pcl::PointXYZRGB>. - Displays a live point cloud viewer.
- Uses the range component (
- SavePointCloud: Saves one colored point cloud as a .ply file.
- Captures one frame and exports a colored point cloud to
pointcloud_color.ply.
- Captures one frame and exports a colored point cloud to
Python Samples#
The following Python samples are available:
- SimpleGrab: Illustrates how to grab images from a Stereo mini camera and access color and depth data.
- ShowPointCloud: Illustrates how to grab and visualize a point cloud from a Stereo mini camera using Open3D.
Running Samples#
C++ Samples#
Refer to the C++ Programmer's Guide for detailed instructions on building and running C++ samples.
Python Samples#
Refer to the Python Programmer's Guide for information about the Python programming samples.