项目结构大变

This commit is contained in:
2025-11-20 19:29:00 +08:00
parent 6a7ab65597
commit a8791ab3df
17 changed files with 549 additions and 287 deletions

View File

@@ -3,6 +3,7 @@
#include <opencv2/opencv.hpp>
#include <string>
#include <memory>
// MindVision SDK 头文件 - 可能需要根据实际SDK文件调整
extern "C" {
@@ -17,12 +18,14 @@ public:
int width;
int height;
int fps;
unsigned char* g_pRgbBuffer; // 处理后数据缓存区
MindVisionCamera(int cam_id = 0, const std::string& target_color = "red");
~MindVisionCamera();
void set_cam_params();
bool set_cam_params();
bool read_frame(cv::Mat& frame);
bool read_frame_with_color_filter(cv::Mat& frame, cv::Mat& mask, const std::string& target_color);
void release();
bool switch_color(const std::string& target_color);