From 92b25a72006a77073ee99dc69557ce0cde01cc3c Mon Sep 17 00:00:00 2001 From: iovodov Date: Thu, 3 May 2018 12:43:48 +0300 Subject: [PATCH] FIX #736: Detector does not draw rects for images with small resolutions --- src/image.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/image.c b/src/image.c index b6a0e994..a02e900e 100644 --- a/src/image.c +++ b/src/image.c @@ -251,6 +251,8 @@ void draw_detections_v3(image im, detection *dets, int num, float thresh, char * } if (class_id >= 0) { int width = im.h * .006; + if (width < 1) + width = 1; /* if(0){