Skip to content

Commit

Permalink
Merge pull request #1172 from sberan/flush-stdout
Browse files Browse the repository at this point in the history
ext_output: flush stdout after printing output
  • Loading branch information
AlexeyAB authored Jul 10, 2018
2 parents b956a66 + 5fc1e9a commit 3d2d0a7
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions src/image.c
Original file line number Diff line number Diff line change
Expand Up @@ -548,6 +548,9 @@ void draw_detections_cv_v3(IplImage* show_img, detection *dets, int num, float t
cvPutText(show_img, labelstr, pt_text, &font, black_color);
}
}
if (ext_output) {
fflush(stdout);
}
}

void draw_detections_cv(IplImage* show_img, int num, float thresh, box *boxes, float **probs, char **names, image **alphabet, int classes)
Expand Down

0 comments on commit 3d2d0a7

Please sign in to comment.