MCPcopy Create free account
hub / github.com/OpenPTrack/open_ptrack_v2 / get_label

Function get_label

yolo_detector/darknet_opt/src/image.c:132–146  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

130}
131
132image get_label(image **characters, char *string, int size)
133{
134 if(size > 7) size = 7;
135 image label = make_empty_image(0,0,0);
136 while(*string){
137 image l = characters[size][(int)*string];
138 image n = tile_images(label, l, -size - 1 + (size+1)/2);
139 free_image(label);
140 label = n;
141 ++string;
142 }
143 image b = border_image(label, label.h*.25);
144 free_image(label);
145 return b;
146}
147
148void draw_label(image a, int r, int c, image label, const float *rgb)
149{

Callers 1

draw_detectionsFunction · 0.85

Calls 4

make_empty_imageFunction · 0.85
tile_imagesFunction · 0.85
free_imageFunction · 0.85
border_imageFunction · 0.85

Tested by

no test coverage detected