在文件yolo_v2_class.hpp中声明。
extern "C" LIB_API int init(const char *configurationFilename, const char *weightsFilename, int gpu); extern "C" LIB_API int detect_image(const char *filename, bbox_t_container &container); extern "C" LIB_API int detect_mat(const uint8_t* data, const size_t data_length, bbox_t_container &container); extern "C" LIB_API int dispose(); extern "C" LIB_API int get_device_count(); extern "C" LIB_API int get_device_name(int gpu, char* deviceName); extern "C" LIB_API bool built_with_cuda(); extern "C" LIB_API bool built_with_cudnn(); extern "C" LIB_API bool built_with_opencv(); extern "C" LIB_API void send_json_custom(char const* send_buf, int port, int timeout);