Functions | |
Darknet::Image | collapse_images_horz (const Darknet::Image *ims, int n) |
int | compare_by_lefts (const void *a_ptr, const void *b_ptr) |
int | compare_by_probs (const void *a_ptr, const void *b_ptr) |
void | copy_image_from_bytes (Darknet::Image im, char *pdata) |
void | free_image (image im) |
This is part of the original C API. | |
detection_with_class * | get_actual_detections (const Darknet::Detection *dets, int dets_num, float thresh, int *selected_detections_num, const Darknet::VStr &names) |
Creates array of detections with prob > thresh and fills best_class for them Return number of selected detections in *selected_detections_num. | |
Darknet::Image | get_opencv_label (const std::string &str, const int area) |
DarknetImage | make_empty_image (int w, int h, int c) |
This is part of the original C API. | |
DarknetImage | make_image (int w, int h, int c) |
This is part of the original C API. | |
void | translate_image (Darknet::Image m, float s) |
Darknet::Image collapse_images_horz | ( | const Darknet::Image * | ims, |
int | n | ||
) |
int compare_by_lefts | ( | const void * | a_ptr, |
const void * | b_ptr | ||
) |
int compare_by_probs | ( | const void * | a_ptr, |
const void * | b_ptr | ||
) |
void copy_image_from_bytes | ( | Darknet::Image | im, |
char * | pdata | ||
) |
void free_image | ( | image | im | ) |
This is part of the original C
API.
Free the data pointer that stores the image . All image objects must eventually call either this function or Darknet::free_image() to prevent memory leaks.
detection_with_class * get_actual_detections | ( | const Darknet::Detection * | dets, |
int | dets_num, | ||
float | thresh, | ||
int * | selected_detections_num, | ||
const Darknet::VStr & | names | ||
) |
Creates array of detections with prob > thresh and fills best_class for them Return number of selected detections in *selected_detections_num.
Darknet::Image get_opencv_label | ( | const std::string & | str, |
const int | area | ||
) |
DarknetImage make_empty_image | ( | int | w, |
int | h, | ||
int | c | ||
) |
This is part of the original C
API.
Make an empty image with the given dimensions. The data pointer will be nullptr
.
DarknetImage make_image | ( | int | w, |
int | h, | ||
int | c | ||
) |
This is part of the original C
API.
Similar to make_empty_image() but the data pointer is fully allocated.
void translate_image | ( | Darknet::Image | m, |
float | s | ||
) |