24#pragma region detection
97#define TINYIMG_MAX_RAW_DETECTIONS 2048u
107#define TINYIMG_DETECT_LONG_SIDE 1200u
117#define TINYIMG_DETECT_SIZE_DIVISOR 10u
189 uint32_t capacity, uint32_t* count
int tiny_cascade_check(const char *blob_id)
Reports whether a cascade blob parses, without searching anything.
int tiny_image_detect_faces(const TinyImage *image, TinyFaceBox *boxes, uint32_t capacity, uint32_t *count)
Finds faces, at a resolution and a minimum size chosen from the image.
void tiny_detect_opts(TinyDetectOpts *opts)
Fills an options structure in with the defaults.
uint32_t tiny_face_box_sizeof(void)
Size of a TinyFaceBox, for a host reading an array of them out of linear memory.
uint32_t tiny_detect_opts_sizeof(void)
Size of a TinyDetectOpts, for the same reason.
int tiny_image_detect_faces_ex(const TinyImage *image, const TinyDetectOpts *opts, TinyFaceBox *boxes, uint32_t capacity, uint32_t *count)
Finds faces exactly as asked, on the pixels given.
Image processing library utilities.
Lightweight memory management implementatins in C.
How hard to look.
Definition detect.h:55
uint32_t min_size
Shortest face to look for, as a box height in pixels.
Definition detect.h:69
float scale_factor
Ratio between one search scale and the next. Zero reads as 1.1.
Definition detect.h:79
uint32_t max_size
Definition detect.h:72
uint32_t min_neighbors
Overlapping raw detections a box needs to survive. Zero reads as 3.
Definition detect.h:87
One detection, in the coordinates of the image that was searched.
Definition detect.h:29
uint32_t y
Definition detect.h:33
uint32_t height
Definition detect.h:37
uint32_t neighbors
Overlapping raw detections this box was formed from.
Definition detect.h:46
uint32_t x
Definition detect.h:31
uint32_t width
Definition detect.h:35
Represents an image with its width, height, and pixel data.
Definition image.h:90
Umbrella header, version and error codes.