How to use Mech-Eye API

Intro

If you need to extract data from the Mech-Eye camera for other purposes besides Mech-Vision vision processing, you can use the Mech-Eye API.

Mech-Eye API supports Windows, Ubuntu operating systems, and the ROS platform (ROS1 and ROS2).

Resources:

Overall Usage Process

  1. Confirm the operating system and the language to be used.
  2. Download and install.
  3. Compile the sample program and run it according to the usage instructions below (Get the sample from GitHub: Mech-Eye API GitHub).
  4. Invoke the relevant interfaces to use the camera according to your specific requirements.

Use Mech-Eye API on Windows

Windows C++

In Windows, the languages supported by Mech-Eye API are C++, C#, and Python.

  • Find samples
    • C++ samples can be found in the Mech-Eye SDK installation package at the following path: Mech-Eye SDK\API\samples\c++.
    • Additionally, you can download C++ samples from a GitHub repository. Download link: mecheye_cpp_samples.
  • Use samples
    • For guidance on how to use these samples, please consult the User Manual: C++ (Windows).

Windows C#

  • Find samples
    • C# samples can be found in the Mech-Eye SDK installation package at the following path: Mech-Eye SDK\API\samples\csharp.
    • Additionally, you can download C# samples from a GitHub repository. Download link: mecheye_csharp_samples.
  • Use samples
    • For guidance on how to use these samples, please consult the User Manual: C# (Windows).

Windows Python

  • Find samples
    • To use the Mech-Eye API Python version, it is necessary to install Mech-Eye API: pip install MechEyeAPI.
    • You can download Python samples from a GitHub repository. Download link: mecheye_python_samples.
  • Use samples
    • For guidance on how to use these samples, please consult the User Manual: Python (Windows).

Windows Halcon

Use Mech-Eye API on Ubuntu

Ubuntu Mech-Eye API supports C++, Python, and ROS.

Ubuntu C++

  • Find samples
    • C++ samples can be found in the Mech-Eye SDK installation package at the following path: Mech-Eye SDK\API\samples\c++.
    • Additionally, you can download Halcon samples from a GitHub repository. Download link: mecheye_cpp_samples.
  • Use samples
    • For guidance on how to use these samples, please consult the User Manual: C++ (Ubuntu).

Ubuntu Python

  • Find samples
  • Use samples
    • For guidance on how to use these samples, please consult the User Manual: Python (Ubuntu).

Ubuntu ROS