From 5cd147031b17204fcc3356a3832d36544361fc42 Mon Sep 17 00:00:00 2001
From: AlexeyAB <alexeyab84@gmail.com>
Date: Thu, 01 Mar 2018 13:05:39 +0000
Subject: [PATCH] Added param -dont_show to detect objects on servers without display, like Amazon EC2

---
 src/image.c |   21 ++-------------------
 1 files changed, 2 insertions(+), 19 deletions(-)

diff --git a/src/image.c b/src/image.c
index c7b7022..64e4158 100644
--- a/src/image.c
+++ b/src/image.c
@@ -528,7 +528,7 @@
 }
 
 
-void show_image_cv_ipl(IplImage *disp, const char *name, CvVideoWriter *output_video_writer, int http_stream_port)
+void show_image_cv_ipl(IplImage *disp, const char *name)
 {
 	if (disp == NULL) return;
 	char buff[256];
@@ -538,24 +538,7 @@
 	//cvMoveWindow(buff, 100*(windows%10) + 200*(windows/10), 100*(windows%10));
 	++windows;
 	cvShowImage(buff, disp);
-
-
-	// http mjpeg stream: http://localhost:8090
-	// use URL with the port number stated in your command line instead of 8090
-	if (http_stream_port > 0) {
-		//int port = 8090;
-		int port = http_stream_port;
-		int timeout = 200;
-		int jpeg_quality = 30;	// 1 - 100
-		send_mjpeg(disp, port, timeout, jpeg_quality);
-	}
-
-	if(output_video_writer) {
-		cvWriteFrame(output_video_writer, disp);	// comment this line to improve FPS !!!
-		printf("\n cvWriteFrame \n");
-	}
-
-	cvReleaseImage(&disp);
+	//cvReleaseImage(&disp);
 }
 #endif
 

--
Gitblit v1.10.0