From ec766fc3f114dd4faaa3add500776a7bae957ba5 Mon Sep 17 00:00:00 2001
From: AlexeyAB <alexeyab84@gmail.com>
Date: Tue, 29 May 2018 11:35:32 +0000
Subject: [PATCH] Ignore empty extra lines in train.txt

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

diff --git a/src/image.c b/src/image.c
index 9c297c4..7545e7d 100644
--- a/src/image.c
+++ b/src/image.c
@@ -287,7 +287,7 @@
 		const int best_class = selected_detections[i].best_class;
 		printf("%s: %.0f%%", names[best_class],	selected_detections[i].det.prob[best_class] * 100);
 		if (ext_output)
-			printf("\t(left: %4.0f   top: %4.0f   w: %4.0f   h: %4.0f)\n",
+			printf("\t(left_x: %4.0f   top_y: %4.0f   width: %4.0f   height: %4.0f)\n",
 				(selected_detections[i].det.bbox.x - selected_detections[i].det.bbox.w / 2)*im.w,
 				(selected_detections[i].det.bbox.y - selected_detections[i].det.bbox.h / 2)*im.h,
 				selected_detections[i].det.bbox.w*im.w, selected_detections[i].det.bbox.h*im.h);
@@ -535,8 +535,8 @@
 
 			cvRectangle(show_img, pt1, pt2, color, width, 8, 0);
 			if (ext_output)
-				printf("  (left: %4.0f   top: %4.0f   w: %4.0f   h: %4.0f)\n", 
-					(float)left, (float)right, b.w*show_img->width, b.h*show_img->height);
+				printf("\t(left_x: %4.0f   top_y: %4.0f   width: %4.0f   height: %4.0f)\n", 
+					(float)left, (float)top, b.w*show_img->width, b.h*show_img->height);
 			else
 				printf("\n");
 			cvRectangle(show_img, pt_text_bg1, pt_text_bg2, color, width, 8, 0);

--
Gitblit v1.10.0