1. 最大曝光时间乘以0.95,目的:避免曝光时间超过最大,而造成帧率降低;

2. 去掉多余的std::out,避免采集log过于杂乱;
3. 通过OpenCV从高光谱影像中提取rgb影像;
4. 在log中记录开始采集时间和停止采集时间;
5. 添加手动设置曝光时间的功能:127.0.0.1 7,2;
6. 头文件中写入仪器序列号;
This commit is contained in:
tangchao0503
2023-03-19 16:44:12 +08:00
parent e96953b54a
commit 447a1aafb1
11 changed files with 440 additions and 34 deletions

View File

@ -206,6 +206,22 @@ bool Configfile::getGainOffset(float &gain, float &offset)
return true;
}
bool Configfile::getSN(QString &SN)
{
try
{
std::string SN_tem = cfg.lookup("SN");
SN = QString::fromStdString(SN_tem);
return true;
}
catch(const SettingNotFoundException &nfex)
{
cerr << "No 'spectralBin' setting in configuration file." << endl;
return false;
}
}
bool Configfile::createConfigFile()
{
using namespace std;