//
|
// Created by Scheaven on 2020/4/26.
|
//
|
|
#ifndef H_INTERFACE_H
|
#define H_INTERFACE_H
|
#include "./core/ari_manager.h"
|
#ifdef __cplusplus
|
extern "C"{
|
#endif
|
|
#define YOLOTRACK_API extern "C" __attribute__((visibility ("default")))
|
|
YOLOTRACK_API void* create(const char *conf, int *max_chan);
|
YOLOTRACK_API void release(void* handle);
|
YOLOTRACK_API void* get_result(void *handle, const void *img, const int chan);
|
YOLOTRACK_API void release_result(void *res);
|
YOLOTRACK_API void* get_result_face(void *handle, const void *img, const char* arg_json, const int arg_len, void *face_info, const int face_info_size);
|
|
|
void ReadJsonFromFile(const char* filename); // 读取json文件
|
int setCamConfig(const char* data);
|
int ReadJsonStr(void* handle, const char* data);
|
|
void init_TResult(TResult *t);
|
|
#ifdef __cplusplus
|
}
|
#endif
|
#endif
|