函数 | |
int32_t | aiagent_service_init (const char *engine_name, ai_model_t model) |
int32_t | aiagent_service_uninit (void) |
void | aiagent_service_config (ai_config_t *config) |
int32_t | aiagent_service_model_infer (char *src1, char *src2, ai_engine_cb_t cb) |
ai_model_t | aiagent_service_get_cur_model (void) |
void aiagent_service_config | ( | ai_config_t * | config | ) |
Config the aiagent service.
[in] | config | ai engine config. |
ai_model_t aiagent_service_get_cur_model | ( | void | ) |
Init the aiagent service.
int32_t aiagent_service_init | ( | const char * | engine_name, |
ai_model_t | model | ||
) |
Initialize aiagent service.
[in] | engine_name | engine name. |
[in] | model | ai model. |
int32_t aiagent_service_model_infer | ( | char * | src1, |
char * | src2, | ||
ai_engine_cb_t | cb | ||
) |
Init the aiagent service.
[in] | src1 | source data1(image) you want to detect. |
[in] | src2 | source data2(image), some cases need to compare with original data. |
[in] | cb | callback function to deal with result. |
int32_t aiagent_service_uninit | ( | void | ) |
Uninitialize aiagent service.