|
|
@ -685,6 +685,9 @@ void Cigarette::TestImg()
|
|
|
|
alg_test.detect(imagein, output,results);
|
|
|
|
alg_test.detect(imagein, output,results);
|
|
|
|
cv::imshow("TestImg", output);
|
|
|
|
cv::imshow("TestImg", output);
|
|
|
|
cv::waitKeyEx(1);
|
|
|
|
cv::waitKeyEx(1);
|
|
|
|
|
|
|
|
#ifdef __ExportData
|
|
|
|
|
|
|
|
alg_test.analyse(imagein, results);
|
|
|
|
|
|
|
|
#endif
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
void Cigarette::TestImgs()
|
|
|
|
void Cigarette::TestImgs()
|
|
|
@ -718,6 +721,9 @@ void Cigarette::TestImgs()
|
|
|
|
cv::imshow("TestImg", output);
|
|
|
|
cv::imshow("TestImg", output);
|
|
|
|
int k = cv::waitKeyEx(1);
|
|
|
|
int k = cv::waitKeyEx(1);
|
|
|
|
if (k == 27)break;//ESC¼ü
|
|
|
|
if (k == 27)break;//ESC¼ü
|
|
|
|
|
|
|
|
#ifdef __ExportData
|
|
|
|
|
|
|
|
alg_test.analyse(imagein, results);
|
|
|
|
|
|
|
|
#endif
|
|
|
|
QCoreApplication::processEvents();
|
|
|
|
QCoreApplication::processEvents();
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|