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:
- FAQ: before using Mech-Eye API
- FAQ: using Mech-Eye API
- Ask questions here:
Online Community: “Mech-Eye SDK Development” category
Overall Usage Process
- Confirm the operating system and the language to be used.
- Download and install.
- Compile the sample program and run it according to the usage instructions below (Get the sample from GitHub: Mech-Eye API GitHub).
- 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.
- To use the Mech-Eye API Python version, it is necessary to install Mech-Eye API:
- Use samples
- For guidance on how to use these samples, please consult the User Manual: Python (Windows).
Windows Halcon
- Find samples
- Halcon samples can be found in the Mech-Eye SDK installation package at the following path: Mech-Eye SDK\API\samples\Halcon.
- Additionally, you can download Halcon samples from a GitHub repository. Download link: mecheye_halcon_samples.
- Use samples
- For guidance on how to use these samples, please consult the User Manual: HALCON: Connect to Camera, Perform Image Capturing, and Adjust Parameters.
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
- You can download 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 (Ubuntu).
Ubuntu ROS
- Find samples
- You can download samples from a GitHub repository. Download link:
- ROS1: mecheye_ros_interface.
- ROS2: mecheye_ros2_interface.
- Use samples
- For guidance on how to use these samples, please consult the User Manual: Mech-Eye API Sample Usage Guide: ROS.
- For ROS2 version, refer to README.md in this GitHub repository: GitHub Mech-Eye API ROS2.