aiagent

函数

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)
 

详细描述

函数说明

◆ aiagent_service_config()

void aiagent_service_config ( ai_config_t *  config)

Config the aiagent service.

参数
[in]configai engine config.
返回
0 on success, negative error on failure.

◆ aiagent_service_get_cur_model()

ai_model_t aiagent_service_get_cur_model ( void  )

Init the aiagent service.

返回
ai model get frome aiagent service.

◆ aiagent_service_init()

int32_t aiagent_service_init ( const char *  engine_name,
ai_model_t  model 
)

Initialize aiagent service.

参数
[in]engine_nameengine name.
[in]modelai model.
返回
0 on success, negative error on failure.

◆ aiagent_service_model_infer()

int32_t aiagent_service_model_infer ( char *  src1,
char *  src2,
ai_engine_cb_t  cb 
)

Init the aiagent service.

参数
[in]src1source data1(image) you want to detect.
[in]src2source data2(image), some cases need to compare with original data.
[in]cbcallback function to deal with result.
返回
0 on success, negative error on failure.

◆ aiagent_service_uninit()

int32_t aiagent_service_uninit ( void  )

Uninitialize aiagent service.

返回
0 on success, negative error on failure.