Skip to content

Commit

Permalink
colors
Browse files Browse the repository at this point in the history
  • Loading branch information
Joseph Redmon committed Jun 25, 2016
1 parent 52a6c30 commit cf32e7e
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions src/image.c
Original file line number Diff line number Diff line change
Expand Up @@ -111,11 +111,11 @@ void draw_detections(image im, int num, float thresh, box *boxes, float **probs,
if(prob > thresh){
int width = pow(prob, 1./2.)*10+1;
width = 8;
printf("%s: %.2f\n", names[class], prob);
int offset = class*17 % classes;
float red = get_color(0,offset,classes);
printf("%s: %.0f%%\n", names[class], prob*100);
int offset = class*1 % classes;
float red = get_color(2,offset,classes);
float green = get_color(1,offset,classes);
float blue = get_color(2,offset,classes);
float blue = get_color(0,offset,classes);
float rgb[3];
rgb[0] = red;
rgb[1] = green;
Expand Down

0 comments on commit cf32e7e

Please sign in to comment.