简体中文 | 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.🥰🥰🥰🥰🥰
OpenVINO™ 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。
Package | Description | Link |
---|---|---|
OpenVINO.CSharp.API | OpenVINO C# API core libraries | |
OpenVINO.CSharp.Windows | All-in-one package for Windows |
Package | Description | Link |
---|---|---|
OpenVINO.runtime.win | Native bindings for Windows | |
The following article provides installation methods for OpenVINO™ C# API on different platforms, which can be installed according to your own platform.
- Quick start
- Simple usage
If you don't know how to use it, simply understand the usage method through the following code.
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.
- Using OpenVINO™ C# API to Deploy the Yolov8 Model on the AIxBoard
- Pedestrian fall detection - Deploying PP-Human based on OpenVINO C # API
- Deploying RT-DETR based on OpenVINO
If you want to learn more information, you can refer to: OpenVINO™ C# API API Documented
- 🗳 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.
- 🗳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.
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.
The release of this project is certified under the [Apache 2.0 license](https://github.com/guojin-yan/OpenVINO™ C# API/blob/OpenVINO™ C# API3.0/LICENSE) .