Add inference snapshot notify client
This commit is contained in:
@@ -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
|
||||
Reference in New Issue
Block a user