From 2c2809d77ee1c1540b88a3b662f7113ab7d42cdf Mon Sep 17 00:00:00 2001 From: mrDarker <mr.darker@163.com> Date: 星期二, 15 七月 2025 11:02:47 +0800 Subject: [PATCH] 重构:保存图片逻辑,替换 IplImage 为 cv::Mat - 将 保存图片中的 IplImage 接口升级为现代 OpenCV cv::Mat 实现 - 添加图像指针、尺寸等边界条件校验,避免空指针和非法尺寸写入 - 简化图像转换与保存流程,提高代码可维护性 - 保留 JPEG 压缩质量参数,保持原有功能不变 --- EdgeInspector_App/BICommon.h | 2 +- 1 files changed, 1 insertions(+), 1 deletions(-) diff --git a/EdgeInspector_App/BICommon.h b/EdgeInspector_App/BICommon.h index f4ef8f0..239fca6 100644 --- a/EdgeInspector_App/BICommon.h +++ b/EdgeInspector_App/BICommon.h @@ -8,7 +8,7 @@ #include <string> #include <time.h> -#define OFFLINE_KEY 0 //OFFLINE_KEY:1鏄绾挎ā寮�;0鏄湪绾挎ā寮� +#define OFFLINE_KEY 1 //OFFLINE_KEY:1鏄绾挎ā寮�;0鏄湪绾挎ā寮� #define MINI_LED 0 //Mini杞﹂棿 #define MINI_NOTCH 0 //Mini杞﹂棿, 鏄惁浣跨敤鍒绘Ы鍔熻兘 #define HALCON_VISION_KEY 0 //鏄惁鍚敤HALCON -- Gitblit v1.9.3