From 92b25a72006a77073ee99dc69557ce0cde01cc3c Mon Sep 17 00:00:00 2001
From: iovodov <b@ovdv.ru>
Date: Thu, 03 May 2018 09:43:48 +0000
Subject: [PATCH] FIX #736: Detector does not draw rects for images with small resolutions
---
src/image.c | 2 ++
1 files changed, 2 insertions(+), 0 deletions(-)
diff --git a/src/image.c b/src/image.c
index b6a0e99..a02e900 100644
--- a/src/image.c
+++ b/src/image.c
@@ -251,6 +251,8 @@
}
if (class_id >= 0) {
int width = im.h * .006;
+ if (width < 1)
+ width = 1;
/*
if(0){
--
Gitblit v1.10.0