aboutsummaryrefslogtreecommitdiff
path: root/overlay.h
diff options
context:
space:
mode:
authorOnur Gündüz <ogunduz@gmail.com>2026-10-20 11:44:30 +0200
committerOnur Gündüz <ogunduz@gmail.com>2026-10-20 11:44:30 +0200
commit9b9005101e6170a226acb265428aac429be6edbf (patch)
treef89c76f4a5c2a00a72abe9b92468ac9f15083b94 /overlay.h
downloadfacedet-9b9005101e6170a226acb265428aac429be6edbf.tar.gz
facedet-9b9005101e6170a226acb265428aac429be6edbf.zip
Init
Diffstat (limited to 'overlay.h')
-rw-r--r--overlay.h12
1 files changed, 12 insertions, 0 deletions
diff --git a/overlay.h b/overlay.h
new file mode 100644
index 0000000..180507f
--- /dev/null
+++ b/overlay.h
@@ -0,0 +1,12 @@
+#ifndef YUNET_OVERLAY_H
+#define YUNET_OVERLAY_H
+
+#include "yunet.h"
+
+/* Draws on RGB8 pixels in place and writes a P6 image at the original size.
+ * Detection coordinates are clipped for drawing without modifying the records.
+ * Returns 0 on success or -1 on invalid arguments or a file write failure. */
+int overlay_write_ppm(const char *path, unsigned char *rgb, int width, int height,
+ const yunet_detection *faces, int count);
+
+#endif