Skip to content

Commit

Permalink
Commented time clock
Browse files Browse the repository at this point in the history
  • Loading branch information
albertopasqualetto committed Jul 21, 2024
1 parent 9dcacff commit 37e41b3
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions src/main.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -122,7 +122,7 @@ int main(int argc, char *argv[]) {
tracker.trackAll(frame);

//VIDEO WITH MINIMAP
time_point start = high_resolution_clock::now();
// time_point start = high_resolution_clock::now();
bool ret = vid.read(frame);
while (vid.isOpened() && ret) { // work on middle frames

Expand All @@ -136,7 +136,7 @@ int main(int argc, char *argv[]) {
// show status every X frame
if (frameCount % FRAME_VISUALITAION_STEP == 0) {
// enlarge and shrink are needed because for the tracking
// we enlarge the bounding box to have a better detection
// we enlarge the bounding box to have better tracking performances
for(int i = 0; i < table.ballsPtr()->size(); i++){
Rect r = table.ballsPtr()->at(i).getBbox();
shrinkRect(r, 10);
Expand All @@ -161,9 +161,9 @@ int main(int argc, char *argv[]) {
ret = vid.read(frame);
}

time_point stop = high_resolution_clock::now();
minutes duration = duration_cast<minutes>(stop - start);
cout << "Time to create the video: " << duration.count() << " minutes" << endl;
// time_point stop = high_resolution_clock::now();
// minutes duration = duration_cast<minutes>(stop - start);
// cout << "Time to create the video: " << duration.count() << " minutes" << endl;
vidOutput.release();

imwrite("../Output/minimap/" + videoName + "_minimap.png", minimapWithBalls);
Expand Down

0 comments on commit 37e41b3

Please sign in to comment.