SDK Example Overview. More...
Topics | |
| Basic inference example | |
| Basic inference example. | |
| Multi-threaded inference example | |
| Multi-threaded inference example. | |
| Inference with OpenCV integration | |
| Inference with OpenCV integration. | |
| Inference with Halcon integration | |
| Inference with Halcon integration. | |
SDK Example Overview.
Each example is a standalone .NET project under csharp/examples/<name>/ with its own .sln and .csproj. The recommended way to build everything in one shot is to run build_csharp.bat from the repository root; it builds the C++/CLI wrapper (dl_sdk_wrapper) and then dotnet builds every example.
The compiled executables land in each example's build\ subdirectory, with names defined by <AssemblyName> in the .csproj:
example_csharp_basic.exeexample_csharp_multi_thread.exeexample_csharp_opencv.exeexample_csharp_halcon.exemmind_dl_sdk_csharp.dll)mmind_dl_sdk_cpp.dll, backend engines)net461)resources/ directory must be discoverable from the example exe. The example helpers look for ..\resources\ relative to AppDomain.CurrentDomain.BaseDirectory (i.e. one directory above the .exe).OpenCvSharp4 / OpenCvSharp4.runtime.win NuGet packages (auto-restored by dotnet restore).HalconDotNet) and a valid Halcon license.