From b88b7b645bc71ddcd83f81744c78419e0ed15078 Mon Sep 17 00:00:00 2001
From: AlexeyAB <alexeyab84@gmail.com>
Date: Mon, 21 May 2018 12:04:10 +0000
Subject: [PATCH] Save jpg-images for detector demo if used flag: -prefix <filename>

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

diff --git a/src/demo.c b/src/demo.c
index 9041c73..ae2150b 100644
--- a/src/demo.c
+++ b/src/demo.c
@@ -243,7 +243,8 @@
 				}
             }else{
                 char buff[256];
-                sprintf(buff, "%s_%08d", prefix, count);
+                sprintf(buff, "%s_%08d.jpg", prefix, count);
+				cvSaveImage(buff, show_img, 0);
                 //save_image(disp, buff);
             }
 

--
Gitblit v1.10.0