|
|
@ -1,4 +1,4 @@
|
|
|
|
#pragma once
|
|
|
|
#pragma once
|
|
|
|
#include <iostream>
|
|
|
|
#include <iostream>
|
|
|
|
#include <vector>
|
|
|
|
#include <vector>
|
|
|
|
#include <mutex>
|
|
|
|
#include <mutex>
|
|
|
@ -13,7 +13,7 @@
|
|
|
|
//#define IMM_FEED_BACK //处理完后立马反馈,不等校验信号
|
|
|
|
//#define IMM_FEED_BACK //处理完后立马反馈,不等校验信号
|
|
|
|
#define ONE_TIME_SHIFT //错开一拍发送反馈(默认错开两次)
|
|
|
|
#define ONE_TIME_SHIFT //错开一拍发送反馈(默认错开两次)
|
|
|
|
#define AI_WARM_UP //AI识别开始前的热身动作
|
|
|
|
#define AI_WARM_UP //AI识别开始前的热身动作
|
|
|
|
//#define LICENSE_VERIFY //开启license文件校验
|
|
|
|
#define LICENSE_VERIFY //开启license文件校验
|
|
|
|
//CAP_FEED_BACK和DOUBLE_FEED_BACK不要一起开
|
|
|
|
//CAP_FEED_BACK和DOUBLE_FEED_BACK不要一起开
|
|
|
|
#if defined (ONE_TIME_SHIFT)
|
|
|
|
#if defined (ONE_TIME_SHIFT)
|
|
|
|
//#define CAP_FEED_BACK //拍照时也检测有没有测试结果,有的话就反馈
|
|
|
|
//#define CAP_FEED_BACK //拍照时也检测有没有测试结果,有的话就反馈
|
|
|
@ -80,9 +80,9 @@ public:
|
|
|
|
std::mutex lock;
|
|
|
|
std::mutex lock;
|
|
|
|
int save; // 图片是否保存,0不保存,1保存NG, 2全部保存
|
|
|
|
int save; // 图片是否保存,0不保存,1保存NG, 2全部保存
|
|
|
|
int MisMatchAct; // 错位行为,1:NG,0:ok
|
|
|
|
int MisMatchAct; // 错位行为,1:NG,0:ok
|
|
|
|
int save_days; ///照片保存天数
|
|
|
|
int save_days; // 照片保存天数
|
|
|
|
int freesize; /// 设定清理图片最小空间
|
|
|
|
int freesize; // 设定清理图片最小空间
|
|
|
|
std::string ComPort; ///COM口
|
|
|
|
std::string ComPort; // COM口
|
|
|
|
int ConfThreshold; // 识别率
|
|
|
|
int ConfThreshold; // 识别率
|
|
|
|
int auto_open; // 是否自动打开相机,0否,1是
|
|
|
|
int auto_open; // 是否自动打开相机,0否,1是
|
|
|
|
int auto_work; // 是否自动开始工作,0否,1是
|
|
|
|
int auto_work; // 是否自动开始工作,0否,1是
|
|
|
@ -110,6 +110,8 @@ public:
|
|
|
|
//MonitorPort+NumberOfSupportedCameras为图像端口
|
|
|
|
//MonitorPort+NumberOfSupportedCameras为图像端口
|
|
|
|
//MonitorPort+NumberOfSupportedCameras*2为发送命令端口,也就是FeedbackPort
|
|
|
|
//MonitorPort+NumberOfSupportedCameras*2为发送命令端口,也就是FeedbackPort
|
|
|
|
//MonitorPort+NumberOfSupportedCameras*2+1为接受命令端口
|
|
|
|
//MonitorPort+NumberOfSupportedCameras*2+1为接受命令端口
|
|
|
|
|
|
|
|
std::string TcpIP; // TCP服务器端ip地址
|
|
|
|
|
|
|
|
int TcpPort; // TCP服务器端端口号
|
|
|
|
|
|
|
|
|
|
|
|
SysConf()
|
|
|
|
SysConf()
|
|
|
|
{
|
|
|
|
{
|
|
|
@ -144,6 +146,8 @@ public:
|
|
|
|
}
|
|
|
|
}
|
|
|
|
MonitorIP = "192.168.10.1";
|
|
|
|
MonitorIP = "192.168.10.1";
|
|
|
|
FeedbackPort = MonitorPort + NumberOfSupportedCameras * 2;
|
|
|
|
FeedbackPort = MonitorPort + NumberOfSupportedCameras * 2;
|
|
|
|
|
|
|
|
TcpIP = "192.168.1.126";
|
|
|
|
|
|
|
|
TcpPort = 8888;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
};
|
|
|
|
};
|
|
|
|
|
|
|
|
|
|
|
|