Web Analytics

DME API

DME APIs are for setting up dynamic loaded model, and inference.

Start DME

int kdp_start_dme(int dev_idx, uint32_t model_size, char* data, int dat_size, uint32_t* ret_size, char* img_buf, int buf_len);

Configure DME

int kdp_dme_configure(int dev_idx, char* data, int dat_size, uint32_t* ret_model_id);

Inference

int kdp_dme_inference(int dev_idx, char* img_buf, int buf_len, uint32_t* inf_size, bool* res_flag, char* inf_res, uint16_t mode, uint16_t model_id);

Retrieve Result

int kdp_dme_retrieve_res(int dev_idx, uint32_t addr, int len, char* inf_res);

Get Status (Used in DME Async Mode)

int kdp_dme_get_status(int dev_idx, uint16_t *ssid, uint16_t *status, uint32_t* inf_size, char* inf_res);

End DME Mode

int kdp_end_dme(int dev_idx);