From 5fc1e9a918bfb9229eec90d459dbfb6778ae6906 Mon Sep 17 00:00:00 2001
From: Sam Beran <sberan@gmail.com>
Date: Tue, 10 Jul 2018 22:13:00 +0000
Subject: [PATCH] ext_output: flush stdout after printing output

---
 src/image.c |    3 +++
 1 files changed, 3 insertions(+), 0 deletions(-)

diff --git a/src/image.c b/src/image.c
index 75259e8..4807371 100644
--- a/src/image.c
+++ b/src/image.c
@@ -548,6 +548,9 @@
             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)

--
Gitblit v1.10.0