File tree Expand file tree Collapse file tree 1 file changed +6
-2
lines changed Expand file tree Collapse file tree 1 file changed +6
-2
lines changed Original file line number Diff line number Diff line change 1
1
#include " application.hpp"
2
2
#include " processing.hpp"
3
3
#include " time.h"
4
+ #include " stdlib.h"
5
+ #include < sstream>
4
6
5
7
#include < opencv2/highgui/highgui.hpp>
6
8
9
+ using namespace std ;
7
10
using namespace cv ;
8
11
9
12
bool testfunction () { return true ; }
@@ -101,8 +104,9 @@ int Application::showFrame(const std::string &caption,
101
104
// ñ ìåòêîé òåêóùåãî âðåìåíè
102
105
// âûçâàòü ôóíêöèþ ñîõðàíåíèÿ imwrite(<image_name>, display)
103
106
// ñáðîñèòü çíà÷åíèå guiState.saveState â false
104
- String imgString = " image" + std::to_string (time (0 ));
105
- imwrite (imgString+" .jpg" ,display);
107
+ std::stringstream ss;
108
+ ss << " image" << to_string (time (0 )) << " .jpg" ;
109
+ imwrite (ss.str (),display);
106
110
guiState.saveState = false ;
107
111
}
108
112
You can’t perform that action at this time.
0 commit comments