We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 3f9fea1 commit b6ba13eCopy full SHA for b6ba13e
2 files changed
example/VideoExample.cpp
@@ -142,6 +142,8 @@ void VideoExample::SyncProcess()
142
143
WriteFrame(writer, frameInfo.m_frames[i].GetMatBGR());
144
}
145
+ if (framesCounter % 100 == 0)
146
+ m_resultsLog.Flush();
147
148
149
int64 stopLoopTime = cv::getTickCount();
@@ -242,6 +244,9 @@ void VideoExample::AsyncProcess()
242
244
break;
243
245
246
++processCounter;
247
+
248
+ if (processCounter % 100 == 0)
249
250
251
stopCapture = true;
252
example/VideoExample.h
@@ -70,6 +70,13 @@ class ResultsLog
70
m_robustIDs.insert(trackID);
71
72
73
+ ///
74
+ void Flush()
75
+ {
76
+ WriteAll(true);
77
+ m_frames.clear();
78
+ }
79
80
private:
81
std::string m_fileName;
82
std::ofstream m_resCSV;
0 commit comments