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

Function randomize_boxes

yolo_detector/darknet_opt/src/data.c:168–177  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

166}
167
168void randomize_boxes(box_label *b, int n)
169{
170 int i;
171 for(i = 0; i < n; ++i){
172 box_label swap = b[i];
173 int index = rand()%n;
174 b[i] = b[index];
175 b[index] = swap;
176 }
177}
178
179void correct_boxes(box_label *boxes, int n, float dx, float dy, float sx, float sy, int flip)
180{

Callers 3

fill_truth_swagFunction · 0.85
fill_truth_regionFunction · 0.85
fill_truth_detectionFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected