aboutsummaryrefslogtreecommitdiff
path: root/overlay.c
diff options
context:
space:
mode:
Diffstat (limited to '')
-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;