Obtain Depth Map
This topic introduces how to obtain the depth map that contains only the depth information of the object with the obtain_depth_map sample on Windows. Obtaining the depth map can speed up the data transmission and improve efficiency.
| Please refer to Usage Guide for HALCON Samples to obtain the samples and check the prerequisites for using the samples. |
Obtain Depth Map
Follow these steps to obtain the depth map:
-
Open the sample in HDevelop: Open HDevelop, and drag the sample into HDevelop.
-
Step over the program (click the
button in the toolbar repeatedly), until the Variable Inspect: MechEyeCamers window pops up. -
This window displays all the available cameras. Double-click the camera that you want to connect, and copy the name after unique_name: or user_name:.
user_name is the custom camera name. You can customize the camera name in Mech-Eye Viewer. -
Locate the following line, and replace MechEye with the copied unique_name or user_name.
DeviceInfo := 'MechEye' -
Run the sample by clicking
in the toolbar or pressing the F5 key. -
View the obtained depth map in the DepthInM variable.