Explorar el Código

add opencv include

syyxsxx hace 5 años
padre
commit
baea165e14
Se han modificado 1 ficheros con 5 adiciones y 0 borrados
  1. 5 0
      deploy/cpp/src/paddlex.cpp

+ 5 - 0
deploy/cpp/src/paddlex.cpp

@@ -18,6 +18,11 @@
 #include <fstream>
 #include <cstring>
 #include "include/paddlex/paddlex.h"
+
+#include <opencv2/core/core.hpp>
+#include <opencv2/highgui/highgui.hpp>
+#include <opencv2/imgproc/imgproc.hpp>
+
 namespace PaddleX {
 
 void Model::create_predictor(const std::string& model_dir,