aboutsummaryrefslogtreecommitdiff
path: root/overlay.h
blob: 180507f7e445b3f7e30712071f3f1aced484ea78 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
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