|
|
|
@ -47,36 +47,6 @@ output_statistic::~output_statistic()
|
|
|
|
|
|
|
|
|
|
void output_statistic::recMsgFromDialogSetup()
|
|
|
|
|
{
|
|
|
|
|
#ifdef __ExportData
|
|
|
|
|
_ExportDataInfo data;
|
|
|
|
|
map<string, float> averageData[NumberOfSupportedCameras];
|
|
|
|
|
|
|
|
|
|
ui.tabWidget->setTabVisible(1, false);
|
|
|
|
|
ui.tabWidget->setTabVisible(2, false);
|
|
|
|
|
ui.tabWidget->setTabVisible(3, false);
|
|
|
|
|
ui.tabWidget->setTabVisible(4, false);
|
|
|
|
|
ui.tabWidget->setTabVisible(5, false);
|
|
|
|
|
ui.tabWidget->setTabVisible(6, false);
|
|
|
|
|
ui.tabWidget->setTabVisible(7, false);
|
|
|
|
|
ui.tabWidget->setTabText(0, "Statistical data");
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
for (int index = 0; index < NumberOfSupportedCameras; index++) {
|
|
|
|
|
data.getAverageData(averageData[index], index);
|
|
|
|
|
QString text;
|
|
|
|
|
text.append(" CameraId: ");
|
|
|
|
|
text.append(std::to_string((int)averageData[index]["CameraId"]).c_str());
|
|
|
|
|
text.append("\n IsNG: ");
|
|
|
|
|
text.append(std::to_string((int)averageData[index]["IsNG"]).c_str());
|
|
|
|
|
text.append("\n IsJdExist: ");
|
|
|
|
|
text.append(std::to_string((int)averageData[index]["IsJdExist"]).c_str());
|
|
|
|
|
text.append("\n TimeCost: ");
|
|
|
|
|
text.append(std::to_string(averageData[index]["TimeCost"]).c_str());
|
|
|
|
|
text.append("\n*************************************************\n");
|
|
|
|
|
ui.textBrowser_1->insertPlainText(text);
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
#else
|
|
|
|
|
QString file_path, file_name;
|
|
|
|
|
QFile file;
|
|
|
|
|
for (int i = 0; i < NumberOfSupportedCameras; i++) {
|
|
|
|
@ -95,6 +65,5 @@ void output_statistic::recMsgFromDialogSetup()
|
|
|
|
|
file.close();
|
|
|
|
|
this->show();
|
|
|
|
|
}
|
|
|
|
|
#endif
|
|
|
|
|
//this->show();
|
|
|
|
|
}
|