将opencv静态库加入了自己写的ocr算法一个类中,并且生成dll用loadlibrary调用,但问题是调用dll时必须要该类的头文件,不然无法找到该类,而头文件又包含多个hpp第三方依赖头文件,应该如何解决
private中含有Net类型,函数参数含有Mat类型
#include <opencv2/opencv.hpp>
#include <opencv2/dnn.hpp>
#include <opencv2/dnn/all_layers.hpp>
class _declspec(dllexport) ocr
{
private:
int crop_mode = 1;
int thresh_mode=1;
public:
//void ~ocr(){}
//inline
void set_morph(int x, int y, int iter);
void char2mat(unsigned char* cimg, Mat &mat, int h, int w, int channel);
void rotate(Mat &frame);