#pragma once
#ifdef NCNN_EXPORTS
#define createV8ncnn __declspec(dllexport)
#else
#define createV8ncnn __declspec(dllimport)
#endif
#include "yolov8.h"
//原来的写法
extern "C" {
__declspec(dllexport) void createYolov8NCNN(char* paramsPath, char* binPath);
__declspec(dllexport) const char* detectNumpyImg(int rows, int cols, unsigned char* src_data);
}
//原来的写法
void createYolov8NCNN(char* paramsPath, char* binPath) {
loadingModel(paramsPath, binPath);
}