|
|
@ -279,7 +279,7 @@ Cigarette::Cigarette(QWidget *parent)
|
|
|
|
{
|
|
|
|
{
|
|
|
|
if(SingleCamInfo[i].Detect){
|
|
|
|
if(SingleCamInfo[i].Detect){
|
|
|
|
cam_status_mat[i]->setStyleSheet(tr("background-color: rgb(0, 170, 0);"));
|
|
|
|
cam_status_mat[i]->setStyleSheet(tr("background-color: rgb(0, 170, 0);"));
|
|
|
|
if (!alg_jd[i].init(g_sys_conf.model_path,g_sys_conf.jpg_path))
|
|
|
|
if (!alg_jd[i].init(g_sys_conf.path_model,g_sys_conf.path_jpg))
|
|
|
|
{
|
|
|
|
{
|
|
|
|
QMessageBox::information(NULL, QStringLiteral("系统自检失败"), QStringLiteral("AI模型1初始化失败,请检查程序完整性"), QMessageBox::Ok);
|
|
|
|
QMessageBox::information(NULL, QStringLiteral("系统自检失败"), QStringLiteral("AI模型1初始化失败,请检查程序完整性"), QMessageBox::Ok);
|
|
|
|
exit(-1);
|
|
|
|
exit(-1);
|
|
|
@ -288,7 +288,7 @@ Cigarette::Cigarette(QWidget *parent)
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
#ifdef __DEBUG
|
|
|
|
#ifdef __DEBUG
|
|
|
|
alg_test.init(g_sys_conf.model_path,g_sys_conf.jpg_path);
|
|
|
|
alg_test.init(g_sys_conf.path_model,g_sys_conf.path_jpg);
|
|
|
|
#endif
|
|
|
|
#endif
|
|
|
|
//自动打开所有相机
|
|
|
|
//自动打开所有相机
|
|
|
|
if (g_sys_conf.auto_open == 1)
|
|
|
|
if (g_sys_conf.auto_open == 1)
|
|
|
@ -2028,7 +2028,7 @@ bool Cigarette::read_sys_config(SysConf &conf)
|
|
|
|
}
|
|
|
|
}
|
|
|
|
else if (tmp_key == "MODELPATH")
|
|
|
|
else if (tmp_key == "MODELPATH")
|
|
|
|
{
|
|
|
|
{
|
|
|
|
conf.path = line.substr(pos + 1).c_str();
|
|
|
|
conf.path_model = line.substr(pos + 1).c_str();
|
|
|
|
}
|
|
|
|
}
|
|
|
|
else if (tmp_key == "JPGPATH")
|
|
|
|
else if (tmp_key == "JPGPATH")
|
|
|
|
{
|
|
|
|
{
|
|
|
|