Files
go-darknet/detection.c
2018-06-05 03:05:11 +08:00

20 lines
338 B
C

#include <darknet.h>
detection * get_detection(detection *dets, int index, int dets_len)
{
if (index >= dets_len) {
return NULL;
}
return dets + index;
}
float get_detection_probability(detection *det, int index, int prob_len)
{
if (index >= prob_len) {
return .0;
}
return det->prob[index];
}