mirror of
https://github.com/pjreddie/darknet.git
synced 2023-08-10 21:13:14 +03:00
Merge pull request #737 from IlyaOvodov/Fix_thin
FIX #736: Detector does not draw rects for images with small resolutions
This commit is contained in:
@ -251,6 +251,8 @@ void draw_detections_v3(image im, detection *dets, int num, float thresh, char *
|
|||||||
}
|
}
|
||||||
if (class_id >= 0) {
|
if (class_id >= 0) {
|
||||||
int width = im.h * .006;
|
int width = im.h * .006;
|
||||||
|
if (width < 1)
|
||||||
|
width = 1;
|
||||||
|
|
||||||
/*
|
/*
|
||||||
if(0){
|
if(0){
|
||||||
|
Reference in New Issue
Block a user