diff --git a/Cigarette/cigarette.cpp b/Cigarette/cigarette.cpp index 38a1907..6f6c7ef 100644 --- a/Cigarette/cigarette.cpp +++ b/Cigarette/cigarette.cpp @@ -767,7 +767,9 @@ void Cigarette::TestImg() std::vector > results; cv::Mat output; alg_test.detect(imagein, output,results); - cv::imshow("TestImg", output); + std::string WindowName = "TestImg"; + cv::namedWindow(WindowName, cv::WINDOW_NORMAL); + cv::imshow(WindowName, output); cv::waitKeyEx(1); #ifdef __ExportData alg_test.analyse(imagein, results); @@ -802,7 +804,9 @@ void Cigarette::TestImgs() cv::Mat output; std::vector > results; alg_test.detect(imagein, output,results); - cv::imshow("TestImg", output); + std::string WindowName = "TestImg"; + cv::namedWindow(WindowName, cv::WINDOW_NORMAL); + cv::imshow(WindowName, output); int k = cv::waitKeyEx(1); if (k == 27)break;//ESC¼ü #ifdef __ExportData