Sample Usage Guide
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.