Add inference snapshot notify client

This commit is contained in:
gqc
2026-06-05 18:14:00 +08:00
parent b5fad0e94f
commit ebc7aaa11c
16 changed files with 2243 additions and 96 deletions
+34
View File
@@ -0,0 +1,34 @@
#ifndef G1000_SNAPSHOT_NOTIFY_H
#define G1000_SNAPSHOT_NOTIFY_H
#ifdef __cplusplus
extern "C" {
#endif
#define SNAPSHOT_NOTIFY_DEFAULT_HOST "10.20.1.225"
#define SNAPSHOT_NOTIFY_DEFAULT_PORT 19090
typedef struct snapshot_notify_event_t {
const char *camera_id;
const char *rtsp;
long ts;
long long frame;
int ccid;
const char *label;
float confidence;
int box_left;
int box_top;
int box_right;
int box_bottom;
} snapshot_notify_event_t;
int snapshot_notify_init(void);
void snapshot_notify_close(void);
int snapshot_notify_send(const snapshot_notify_event_t *event, char *reason, int reason_size);
#ifdef __cplusplus
}
#endif
#endif