# OpenVINO-CSharp-API **Repository Path**: linbei_cht/OpenVINO-CSharp-API ## Basic Information - **Project Name**: OpenVINO-CSharp-API - **Description**: No description available - **Primary Language**: Unknown - **License**: Apache-2.0 - **Default Branch**: csharp3.0 - **Homepage**: None - **GVP Project**: No ## Statistics - **Stars**: 1 - **Forks**: 0 - **Created**: 2023-11-09 - **Last Updated**: 2025-06-11 ## Categories & Tags **Categories**: Uncategorized **Tags**: None ## README ![OpenVINO™ C# API](https://socialify.git.ci/guojin-yan/OpenVINO-CSharp-API/image?description=1&descriptionEditable=💞%20OpenVINO%20wrapper%20for%20.NET💞%20&forks=1&issues=1&logo=https%3A%2F%2Fs2.loli.net%2F2023%2F01%2F26%2FylE1K5JPogMqGSW.png&name=1&owner=1&pattern=Circuit%20Board&pulls=1&stargazers=1&theme=Light)

[简体中文](README_cn.md) | English ## This is OpenVINO ™ C # API, this project is still under construction and its functions are not yet fully developed. If you have any problems using it, please feel free to communicate with me. If you are interested in this project, you can also join our development.🥰🥰🥰🥰🥰 ## 📚 What is OpenVINO™ C# API ? [OpenVINO™](www.openvino.ai) is an open-source toolkit for optimizing and deploying AI inference. - Boost deep learning performance in computer vision, automatic speech recognition, natural language processing and other common tasks - Use models trained with popular frameworks like TensorFlow, PyTorch and more - Reduce resource demands and efficiently deploy on a range of Intel® platforms from edge to cloud   This project is based on OpenVINO™ The tool kit has launched OpenVINO™ C # API, aimed at driving OpenVINO™ Application in the C # field. OpenVINO ™ The C # API is based on OpenVINO™ Development, supported platforms, and OpenVINO ™ Consistent, please refer to OpenVINO™ for specific information。 ## NuGet Package ### Managed libraries | Package | Description | Link | | --------------------------- | ------------------------------ | ------------------------------------------------------------ | | **OpenVINO.CSharp.API** | OpenVINO C# API core libraries | [![NuGet Gallery ](https://badge.fury.io/nu/OpenVINO.CSharp.API.svg)](https://www.nuget.org/packages/OpenVINO.CSharp.API/) | | **OpenVINO.CSharp.Windows** | All-in-one package for Windows | [![NuGet Gallery ](https://badge.fury.io/nu/OpenVINO.CSharp.Windows.svg)](https://www.nuget.org/packages/OpenVINO.CSharp.Windows/) | ### Native bindings | Package | Description | Link | | ------------------------------------- | ------------------------------------ | ------------------------------------------------------------ | | **OpenVINO.runtime.win** | Native bindings for Windows | [![NuGet Gallery ](https://badge.fury.io/nu/OpenVINO.runtime.win.svg)](https://www.nuget.org/packages/OpenVINO.runtime.win/) | | **OpenVINO.runtime.ubuntu.22-x86_64** | Native bindings for ubuntu.22-x86_64 | [![NuGet Gallery ](https://badge.fury.io/nu/OpenVINO.runtime.ubuntu.22-x86_64.svg)](https://www.nuget.org/packages/OpenVINO.runtime.ubuntu.22-x86_64/) | | **OpenVINO.runtime.ubuntu.20-x86_64** | Native bindings for ubuntu.20-x86_64 | [![NuGet Gallery ](https://badge.fury.io/nu/OpenVINO.runtime.ubuntu.20-x86_64.svg)](https://www.nuget.org/packages/OpenVINO.runtime.ubuntu.20-x86_64/) | | **OpenVINO.runtime.ubuntu.18-x86_64** | Native bindings for ubuntu.18-x86_64 | [![NuGet Gallery ](https://badge.fury.io/nu/OpenVINO.runtime.ubuntu.18-x86_64.svg)](https://www.nuget.org/packages/OpenVINO.runtime.ubuntu.18-x86_64/) | | **OpenVINO.runtime.debian9-arm64** | Native bindings for debian9-arm64 | [![NuGet Gallery ](https://badge.fury.io/nu/OpenVINO.runtime.win.svg)](https://www.nuget.org/packages/OpenVINO.runtime.win/) | | **OpenVINO.runtime.centos7-x86_64** | Native bindings for centos7-x86_64 | [![NuGet Gallery ](https://badge.fury.io/nu/OpenVINO.runtime.centos7-x86_64.svg)](https://www.nuget.org/packages/OpenVINO.runtime.centos7-x86_64/) | ## ⚙ How to install OpenVINO™ C# API?   The following provides OpenVINO ™ The installation method of C # API on different platforms can be customized according to the platform you are using. ### **Windows**   Install the following package through the ``dotnet add package`` command or through Visual Studio ```shell dotnet add package OpenVINO.CSharp.API dotnet add package OpenVINO.runtime.win Or install =》 dotnet add package OpenVINO.CSharp.Windows ``` ### **Linux**   We have created the corresponding NuGet Package for the **Linux ** platform based on the official compiled platform, For example, using **ubuntu.22-x86_64** is installed using the ``dotnet add package`` command: ```shell dotnet add package OpenVINO.CSharp.API dotnet add package OpenVINO.runtime.ubuntu.22-x86_64 ```   After running the program once, add environment variables: ``` export LD_LIBRARY_PATH={Program generated executable file directory}/runtimes/ubuntu.22-x86_64/native such as =》 export LD_LIBRARY_PATH=/home/ygj/Program/sample1/bin/Debug/net6.0/runtimes/ubuntu.22-x86_64/native ```   If for a brand new platform (without installing OpenVINO C++), it is necessary to install a dependent environment and switch to ``{Program generated executable file directory}/runtimes/ubuntu.22-x86'_ 64/native ``directory, run the following command: ```shell sudo -E ./install_openvino_dependencies.sh ``` ## 🏷How to use OpenVINO™ C# API? - **Quick start** - [Deploying the Yolov8 full series model using OpenVINO™ C# API](demos/yolov8/README.md) - **Simple usage** If you don't know how to use it, simply understand the usage method through the following code. ```c# using OpenVinoSharp; namespace test { internal class Program { static void Main(string[] args) { using Core core = new Core(); using Model model = core.read_model("./model.xml"); using CompiledModel compiled_model = core.compiled_model(model, "AUTO"); using InferRequest infer_request = compiled_model.create_infer_request(); using Tensor input_tensor = infer_request.get_tensor("images"); infer_request.infer(); using Tensor output_tensor = infer_request.get_tensor("output0"); } } } ``` The classes and objects encapsulated in the project, such as Core, Model, Tensor, etc., are implemented by calling the C API interface and have unmanaged resources. They need to be handled by calling the **Dispose() ** method or `using` statement, otherwise memory leakage may occur. ## 💻 Tutorial Examples - [Using OpenVINO™ C# API to Deploy the Yolov8 Model on the AIxBoard](tutorial_examples/AlxBoard_deploy_yolov8/README.md) - [Pedestrian fall detection - Deploying PP-Human based on OpenVINO C # API](tutorial_examples\PP-Human_Fall_Detection\README.md) - [Deploying RT-DETR based on OpenVINO](https://github.com/guojin-yan/RT-DETR-OpenVINO) ## 🗂 API Reference If you want to learn more information, you can refer to: [OpenVINO™ C# API API Documented](https://guojin-yan.github.io/OpenVINO-CSharp-API.docs/index.html) ## 🔃 Update log #### 🔥 **2023.10.22 :Update OpenVINO™ C# API ** - 🗳 **OpenVINO™ C# API :** - Modify OpenVINO™ errors in the C # API, and integration of code sections to add exception handling mechanisms. - 🛹**Application Cases:** - Pedestrian fall detection - Deploying PP-Human based on OpenVINO C # API - Deploying RT-DETR based on OpenVINO - 🔮 **NuGet:** - Abolish the previously released NuGet package, release updated installation packages, and release three types of NuGet packages, including **OpenVINO. CSharp. API **: core code package, **OpenVINO. CSharp. Windows **: Windows platform integration package, and **OpenVINO. runtime. win **: Windows platform runtime package. #### **2023.6.19 : release OpenVINO™ C# API 3.0** - 🗳OpenVINO™ C# API : - Upgrade OpenVINO™ C# API 2.0 to OpenVINO™ C# API 3.0, changing from refactoring the C++API to directly reading OpenVino ™ The official C API makes the application more flexible and supports a richer range of functions. - 🛹Application Cases: - OpenVINO™ C# API Deployment Yolov8 Model Example。 - 🔮NuGet: - Create and publish NuGet package, release * * OpenVINO™ C# API. win 3.0.120 * *, including OpenVino 2023.0 dependencies. ## 🎖 Contribute   If you are interested in OpenVINO ™ Interested in using C # and contributing to the open source community, welcome to join us and develop OpenVINO™ C# API together.   If you have any ideas or improvement ideas for this project, please feel free to contact us for guidance on our work. ## License The release of this project is certified under the [Apache 2.0 license](https://github.com/guojin-yan/OpenVINO-CSharp-API/blob/csharp3.0/LICENSE.txt) .