|
|
|
@ -1,4 +1,4 @@
|
|
|
|
|
#pragma once
|
|
|
|
|
#pragma once
|
|
|
|
|
#include <iostream>
|
|
|
|
|
#include <vector>
|
|
|
|
|
#include <mutex>
|
|
|
|
@ -13,7 +13,7 @@
|
|
|
|
|
//#define IMM_FEED_BACK //处理完后立马反馈,不等校验信号
|
|
|
|
|
#define ONE_TIME_SHIFT //错开一拍发送反馈(默认错开两次)
|
|
|
|
|
#define AI_WARM_UP //AI识别开始前的热身动作
|
|
|
|
|
//#define LICENSE_VERIFY //开启license文件校验
|
|
|
|
|
#define LICENSE_VERIFY //开启license文件校验
|
|
|
|
|
//CAP_FEED_BACK和DOUBLE_FEED_BACK不要一起开
|
|
|
|
|
#if defined (ONE_TIME_SHIFT)
|
|
|
|
|
//#define CAP_FEED_BACK //拍照时也检测有没有测试结果,有的话就反馈
|
|
|
|
@ -78,31 +78,31 @@ class SysConf
|
|
|
|
|
{
|
|
|
|
|
public:
|
|
|
|
|
std::mutex lock;
|
|
|
|
|
int save; //图片是否保存,0不保存,1保存NG, 2全部保存
|
|
|
|
|
int MisMatchAct; //错位行为,1:NG,0:ok
|
|
|
|
|
int save_days; ///照片保存天数
|
|
|
|
|
int freesize; /// 设定清理图片最小空间
|
|
|
|
|
std::string ComPort; ///COM口
|
|
|
|
|
int ConfThreshold; //识别率
|
|
|
|
|
int auto_open; //是否自动打开相机,0否,1是
|
|
|
|
|
int auto_work; //是否自动开始工作,0否,1是
|
|
|
|
|
int auto_shift; //是否自动换班,0否,1是
|
|
|
|
|
int shift_byhand; // 是否手动换班,0否,1是
|
|
|
|
|
QTime shiftA; //A换班时间
|
|
|
|
|
QTime shiftB; //B换班时间
|
|
|
|
|
QTime shiftC; //C换班时间
|
|
|
|
|
QString location; // 所在地
|
|
|
|
|
QString model_path; // 模型文件夹路径
|
|
|
|
|
QString model_name; // 模型名
|
|
|
|
|
QString model_jpg_path; // 模型图片路径
|
|
|
|
|
int timing_shift; //是否定时换班,0否,1是
|
|
|
|
|
int expo[NumberOfSupportedCameras]; //相机曝光时间,单位微秒
|
|
|
|
|
int gain[NumberOfSupportedCameras]; //相机模拟增益,范围0~64
|
|
|
|
|
int filter[NumberOfSupportedCameras];//相机滤波时间
|
|
|
|
|
int save; // 图片是否保存,0不保存,1保存NG, 2全部保存
|
|
|
|
|
int MisMatchAct; // 错位行为,1:NG,0:ok
|
|
|
|
|
int save_days; // 照片保存天数
|
|
|
|
|
int freesize; // 设定清理图片最小空间
|
|
|
|
|
std::string ComPort; // COM口
|
|
|
|
|
int ConfThreshold; // 识别率
|
|
|
|
|
int auto_open; // 是否自动打开相机,0否,1是
|
|
|
|
|
int auto_work; // 是否自动开始工作,0否,1是
|
|
|
|
|
int auto_shift; // 是否自动换班,0否,1是
|
|
|
|
|
int shift_byhand; // 是否手动换班,0否,1是
|
|
|
|
|
QTime shiftA; // A换班时间
|
|
|
|
|
QTime shiftB; // B换班时间
|
|
|
|
|
QTime shiftC; // C换班时间
|
|
|
|
|
QString location; // 所在地
|
|
|
|
|
QString model_path; // 模型文件夹路径
|
|
|
|
|
QString model_name; // 模型名
|
|
|
|
|
QString model_jpg_path; // 模型图片路径
|
|
|
|
|
int timing_shift; // 是否定时换班,0否,1是
|
|
|
|
|
int expo[NumberOfSupportedCameras]; // 相机曝光时间,单位微秒
|
|
|
|
|
int gain[NumberOfSupportedCameras]; // 相机模拟增益,范围0~64
|
|
|
|
|
int filter[NumberOfSupportedCameras]; // 相机滤波时间
|
|
|
|
|
int UserID[NumberOfSupportedCameras];
|
|
|
|
|
int no[NumberOfSupportedCameras][3];//拍摄图片最少合格胶点数
|
|
|
|
|
int shoot[NumberOfSupportedCameras];//拍摄次数
|
|
|
|
|
std::string MonitorIP; //远程监控端的IP
|
|
|
|
|
int no[NumberOfSupportedCameras][3]; // 拍摄图片最少合格胶点数
|
|
|
|
|
int shoot[NumberOfSupportedCameras]; // 拍摄次数
|
|
|
|
|
std::string MonitorIP; // 远程监控端的IP
|
|
|
|
|
int MonitorPort;
|
|
|
|
|
int FeedbackPort;
|
|
|
|
|
int FilePort;
|
|
|
|
@ -110,6 +110,8 @@ public:
|
|
|
|
|
//MonitorPort+NumberOfSupportedCameras为图像端口
|
|
|
|
|
//MonitorPort+NumberOfSupportedCameras*2为发送命令端口,也就是FeedbackPort
|
|
|
|
|
//MonitorPort+NumberOfSupportedCameras*2+1为接受命令端口
|
|
|
|
|
std::string TcpIP; // TCP服务器端ip地址
|
|
|
|
|
int TcpPort; // TCP服务器端端口号
|
|
|
|
|
|
|
|
|
|
SysConf()
|
|
|
|
|
{
|
|
|
|
@ -144,6 +146,8 @@ public:
|
|
|
|
|
}
|
|
|
|
|
MonitorIP = "192.168.10.1";
|
|
|
|
|
FeedbackPort = MonitorPort + NumberOfSupportedCameras * 2;
|
|
|
|
|
TcpIP = "192.168.1.126";
|
|
|
|
|
TcpPort = 8888;
|
|
|
|
|
}
|
|
|
|
|
};
|
|
|
|
|
|
|
|
|
|