diff --git a/pkg/opencv/opencv.cpp b/pkg/opencv/opencv.cpp index 5680d4a..5ff4588 100644 --- a/pkg/opencv/opencv.cpp +++ b/pkg/opencv/opencv.cpp @@ -5,6 +5,14 @@ #include #include +// 图像结构体定义 +typedef struct { + unsigned char* data; + int width; + int height; + int channels; +} Image; + static std::string last_error; extern "C" {