From 1b5afb45838e603fa6780762eb8cc59246dc2d81 Mon Sep 17 00:00:00 2001 From: IlyaOvodov <b@ovdv.ru> Date: Tue, 08 May 2018 11:09:35 +0000 Subject: [PATCH] Output improvements for detector results: When printing detector results, output was done in random order, obfuscating results for interpreting. Now: 1. Text output includes coordinates of rects in (left,right,top,bottom in pixels) along with label and score 2. Text output is sorted by rect lefts to simplify finding appropriate rects on image 3. If several class probs are > thresh for some detection, the most probable is written first and coordinates for others are not repeated 4. Rects are imprinted in image in order by their best class prob, so most probable rects are always on top and not overlayed by less probable ones 5. Most probable label for rect is always written first Also: 6. Message about low GPU memory include required amount --- src/image.h | 2 +- 1 files changed, 1 insertions(+), 1 deletions(-) diff --git a/src/image.h b/src/image.h index ebf28e8..d047f62 100644 --- a/src/image.h +++ b/src/image.h @@ -23,7 +23,7 @@ void draw_label(image a, int r, int c, image label, const float *rgb); void write_label(image a, int r, int c, image *characters, char *string, float *rgb); void draw_detections(image im, int num, float thresh, box *boxes, float **probs, char **names, image **labels, int classes); -void draw_detections_v3(image im, detection *dets, int num, float thresh, char **names, image **alphabet, int classes); +void draw_detections_v3(image im, detection *dets, int num, float thresh, char **names, image **alphabet, int classes, int ext_output); image image_distance(image a, image b); void scale_image(image m, float s); image crop_image(image im, int dx, int dy, int w, int h); -- Gitblit v1.10.0