Sample Usage Guide

You are currently viewing the documentation for the latest version (3.0.0). To access a different version, click the "Switch version" button located in the upper-right corner of the page.

■ If you are not sure which version of the product you are currently using, please feel free to contact Mech-Mind Technical Support.

This topic provides instructions on using the samples for C#, C++, and Python. Basic and Advanced samples are supported in all languages. Advanced samples include multi-thread inference, OpenCV integration, and HALCON integration, as explained in the following table:

Sample Type Relative Path Description

Basic

basic

Basic inference samples. Read images, perform inference, and output visualization results. Applicable to basic inference scenarios.

Advanced (Multi-threaded inference)

advanced/multi_thread_infer

Multi-threaded inference sample. It is recommended to create an independent inference engine for each thread; if multiple threads share the same inference engine, ensure the safety of concurrent use of multiple threads. Applicable to scenarios where images need to be processed simultaneously.

Advanced (OpenCV)

advanced/infer_with_opencv

OpenCV integration samples. Images can be read using OpenCV and converted to MMindImage for inference. Applicable to scenarios requiring image processing and inference with OpenCV.

Advanced (HALCON)

advanced/infer_with_halcon

HALCON integration samples. Images can be read using HALCON and converted to MMindImage for inference. Applicable to scenarios requiring image processing and inference with HALCON.

C# Samples

Check the contents below to learn about the running prerequisites and ways to build and run C# samples.

C++ Samples

Check the contents below to learn about the running prerequisites and ways to build and run C++ samples.

Python Examples

Check the contents below to learn about the running prerequisites and ways to build and run Python samples.

Is this page helpful?

You can give a feedback in any of the following ways:

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.