diff options
| author | Onur Gündüz <ogunduz@gmail.com> | 2026-10-21 17:47:57 +0200 |
|---|---|---|
| committer | Onur Gündüz <ogunduz@gmail.com> | 2026-10-21 17:47:57 +0200 |
| commit | 8b8acffcf5f1e9e9ddb552b8ac125e50f68987ac (patch) | |
| tree | 9b618133a468585087ff4b014b22029d40b24bc5 /overlay.c | |
| parent | 2ce585cc96a3fffba65f1bafbfbc796c6370308f (diff) | |
| download | facedet-master.tar.gz facedet-master.zip | |
Diffstat (limited to '')
| -rw-r--r-- | overlay.c | 4 |
1 files changed, 2 insertions, 2 deletions
@@ -6,7 +6,7 @@ static const vix_rgb GREEN = {80, 220, 80}; -static void draw_face(const vix_canvas *canvas, const yunet_detection *face, int index) { +static void draw_face(const vix_canvas *canvas, const facedet_detection *face, int index) { double left = face->x, top = face->y; double right = left + face->w, bottom = top + face->h; if (!isfinite(left) || !isfinite(top) || !isfinite(right) || !isfinite(bottom) || @@ -37,7 +37,7 @@ static void draw_face(const vix_canvas *canvas, const yunet_detection *face, int } int overlay_write_ppm(const char *path, unsigned char *rgb, int width, int height, - const yunet_detection *faces, int count) { + const facedet_detection *faces, int count) { if (!path || !*path || !rgb || width < 1 || height < 1 || width > 4096 || height > 4096 || count < 0 || (count && !faces)) return -1; |
