aboutsummaryrefslogtreecommitdiff
path: root/overlay.c
diff options
context:
space:
mode:
authorOnur Gündüz <ogunduz@gmail.com>2026-10-21 17:47:57 +0200
committerOnur Gündüz <ogunduz@gmail.com>2026-10-21 17:47:57 +0200
commit8b8acffcf5f1e9e9ddb552b8ac125e50f68987ac (patch)
tree9b618133a468585087ff4b014b22029d40b24bc5 /overlay.c
parent2ce585cc96a3fffba65f1bafbfbc796c6370308f (diff)
downloadfacedet-master.tar.gz
facedet-master.zip
Rename to facedetHEADv0.1.0master
Diffstat (limited to 'overlay.c')
-rw-r--r--overlay.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/overlay.c b/overlay.c
index ab3fcf4..4d2013d 100644
--- a/overlay.c
+++ b/overlay.c
@@ -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;