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:

  1. Open the sample in HDevelop: Open HDevelop, and drag the sample into HDevelop.

  2. Step over the program (click the step over button in the toolbar repeatedly), until the Variable Inspect: MechEyeCamers window pops up.

  3. 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:.

    camera name
    user_name is the custom camera name. You can customize the camera name in Mech-Eye Viewer.
  4. Locate the following line, and replace MechEye with the copied unique_name or user_name.

    DeviceInfo := 'MechEye'
  5. Run the sample by clicking run in the toolbar or pressing the F5 key.

  6. View the obtained depth map in the DepthInM variable.

We Value Your Privacy

We use cookies to provide you with the best possible experience on our website. By continuing to use the site, you acknowledge that you agree to the use of cookies. If you decline, a single cookie will be used to ensure you're not tracked or remembered when you visit this website.