DefTruth / lite.ai.toolkit

🛠 A lite C++ toolkit of awesome AI models, support ONNXRuntime, MNN. Contains YOLOv5, YOLOv6, YOLOX, YOLOv8, FaceDet, HeadSeg, HeadPose, Matting etc. Engine: ONNXRuntime, MNN.
https://github.com/DefTruth/lite.ai.toolkit
GNU General Public License v3.0
3.53k stars 672 forks source link

[0.1.1]编写自定义模型的C函数接口extern "C" __declspec(dllexport) #408

Closed Flamse closed 3 weeks ago

Flamse commented 2 months ago

版本0.1.1已经可以在Windows中运行,并且也添加了自己训练的模型。现在想将自己的模型封装成C函数接口并在C#中使用,存在一些问题。接口代码已经写完,按照Windows打包DLL教程输出了DLL,但在使用C++测试C接口时,封装了OpenCV的接口无法读取图片。

是否打包成C函数接口DLL需要和添加模型中的教程类似?在添加的模型类中再定义该模型的C函数接口,模型类和接口函数一起按照添加模型教程中的方法走一遍。

谢谢。

github-actions[bot] commented 1 month ago

This issue is stale because it has been open for 30 days with no activity.

github-actions[bot] commented 3 weeks ago

This issue was closed because it has been inactive for 7 days since being marked as stale.