Skip to content

Commit 5fc1e9a

Browse files
committed
ext_output: flush stdout after printing output
this allows tooling to watch for changes while the application is running.
1 parent b956a66 commit 5fc1e9a

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

src/image.c

+3
Original file line numberDiff line numberDiff line change
@@ -548,6 +548,9 @@ void draw_detections_cv_v3(IplImage* show_img, detection *dets, int num, float t
548548
cvPutText(show_img, labelstr, pt_text, &font, black_color);
549549
}
550550
}
551+
if (ext_output) {
552+
fflush(stdout);
553+
}
551554
}
552555

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

0 commit comments

Comments
 (0)