From ae1768e5831caa95214b93b08ee711aede36df07 Mon Sep 17 00:00:00 2001
From: AlexeyAB <alexeyab84@gmail.com>
Date: Mon, 05 Mar 2018 20:26:09 +0000
Subject: [PATCH] Removed random=1 from resnet152_yolo.cfg. Until resize_network() isn't supported for [shortcut] layer

---
 src/demo.c |    5 +++--
 1 files changed, 3 insertions(+), 2 deletions(-)

diff --git a/src/demo.c b/src/demo.c
index 0dce144..376ddea 100644
--- a/src/demo.c
+++ b/src/demo.c
@@ -233,7 +233,7 @@
             }
 
 			// if you run it with param -http_port 8090  then open URL in your web-browser: http://localhost:8090
-			if (http_stream_port > 0) {
+			if (http_stream_port > 0 && show_img) {
 				//int port = 8090;
 				int port = http_stream_port;
 				int timeout = 200;
@@ -242,10 +242,11 @@
 			}
 
 			// save video file
-			if (output_video_writer) {
+			if (output_video_writer && show_img) {
 				cvWriteFrame(output_video_writer, show_img);
 				printf("\n cvWriteFrame \n");
 			}
+
 			cvReleaseImage(&show_img);
 
             pthread_join(fetch_thread, 0);

--
Gitblit v1.10.0