HALCON: Obtain Depth Values Only¶
This topic introduces how to obtain the depth map that contains only the object depth information in Windows using the HALCON sample programs provided by Mech-Mind. Obtaining only the depth information can speed up the data transmission and improve efficiency.
Obtain Depth Map¶
Please follow these steps to obtain the depth map.
Open the sample program in HDevelop: Open HDevelop, and drag the sample program into HDevelop.
Select the line containing the info_framegrabber operator in Program Windows, and click in the toolbar or press the F6 key to run this line.
In the Control Variables area, double-click DeviceInfos to display a list of all the available cameras.
In the list, double-click the camera that you want to connect, and copy the camera name after unique_name: or user_name:.
Locate the following line, and replace MechEye with the copied unique_name or user_name.
DeviceInfo := 'MechEye'
Run the sample program by clicking or pressing the F5 key. The obtained depth map is stored in the DepthInM variable.