24 lines
601 B
C
Raw Normal View History

2026-07-20 11:58:49 +08:00
#pragma once
#include "yolo_runtime_types.h"
#ifdef __cplusplus
extern "C" {
#endif
typedef struct yolo_runtime yolo_runtime_t;
int yolo_runtime_get_abi_version(void);
int yolo_runtime_create(const char* config_path, yolo_runtime_t** runtime);
unsigned int yolo_runtime_get_capabilities(const yolo_runtime_t* runtime);
int yolo_runtime_infer_image(
yolo_runtime_t* runtime,
const yolo_image_view_t* image,
yolo_result_list_t* results);
const char* yolo_runtime_last_error(const yolo_runtime_t* runtime);
void yolo_runtime_destroy(yolo_runtime_t* runtime);
#ifdef __cplusplus
}
#endif