ucloud_ai

函数

void ucloud_ai_set_key_secret (char *key, char *secret)
 
void ucloud_ai_set_oss_bucket (char *bucket)
 
void ucloud_ai_set_oss_endpoint (char *endpoint)
 
uint8_t * ucloud_ai_upload_file (char *path)
 
int32_t ucloud_ai_init (void)
 
int32_t ucloud_ai_uninit (void)
 
int32_t ucloud_ai_connect (char *url)
 
void ucloud_ai_disconnect (void)
 
int32_t ucloud_ai_get_stream (char *url, char **stream)
 
char * ucloud_ai_get_token_id (const char *domain, const char *region_id)
 
void ucloud_ai_facebody_comparing_face (char *path, char *myface, ucloud_ai_cb_t cb)
 
void ucloud_ai_facebody_recognize_expression (char *path, ucloud_ai_cb_t cb)
 
void ucloud_ai_facebody_generate_human_anime_style (char *path, ucloud_ai_cb_t cb)
 
void ucloud_ai_facebody_detect_pedestrian (char *path, ucloud_ai_cb_t cb)
 
void ucloud_ai_imageenhan_erase_person (char *image_path, char *user_mask_path, ucloud_ai_cb_t cb)
 
void ucloud_ai_imageenhan_extend_image_style (char *major_path, char *style_path, ucloud_ai_cb_t cb)
 
void ucloud_ai_imagerecog_classifying_rubbish (char *path, ucloud_ai_cb_t cb)
 
void ucloud_ai_imagerecog_detect_fruits (char *path, ucloud_ai_cb_t cb)
 
void ucloud_ai_imageseg_segment_face (char *path, ucloud_ai_cb_t cb)
 
void ucloud_ai_imageseg_segment_common_image (char *path, ucloud_ai_cb_t cb)
 
void ucloud_ai_objectdet_detect_object (char *path, ucloud_ai_cb_t cb)
 
void ucloud_ai_objectdet_detect_main_body (char *path, ucloud_ai_cb_t cb)
 
void ucloud_ai_ocr_recognize_identity_card_face_side (char *path, ucloud_ai_cb_t cb)
 
void ucloud_ai_ocr_recognize_identity_card_back_side (char *path, ucloud_ai_cb_t cb)
 
void ucloud_ai_ocr_recognize_bank_card (char *path, ucloud_ai_cb_t cb)
 
void ucloud_ai_ocr_recognize_character (char *path, ucloud_ai_cb_t cb)
 
void ucloud_ai_ocr_recognize_license_plate (char *path, ucloud_ai_cb_t cb)
 

详细描述

函数说明

◆ ucloud_ai_connect()

int32_t ucloud_ai_connect ( char *  url)

Connect to url server.

参数
[in]urlurl address.
返回
0 on success, negative error on failure.

◆ ucloud_ai_disconnect()

void ucloud_ai_disconnect ( void  )

Disconnect to url server.

◆ ucloud_ai_facebody_comparing_face()

void ucloud_ai_facebody_comparing_face ( char *  path,
char *  myface,
ucloud_ai_cb_t  cb 
)

Ucloud ai facebody comparing face api.

参数
[in]pathface image you want to recognize.
[in]myfaceoriginal face image you want to compare to.
[in]cbcallback function to deal with result.

◆ ucloud_ai_facebody_detect_pedestrian()

void ucloud_ai_facebody_detect_pedestrian ( char *  path,
ucloud_ai_cb_t  cb 
)

Ucloud ai facebody detect pedestrian api.

参数
[in]pathfacebody image you want to recognize.
[in]cbcallback function to deal with result.

◆ ucloud_ai_facebody_generate_human_anime_style()

void ucloud_ai_facebody_generate_human_anime_style ( char *  path,
ucloud_ai_cb_t  cb 
)

Ucloud ai facebody generating human animation style api.

参数
[in]pathface image you want to recognize.
[in]cbcallback function to deal with result.

◆ ucloud_ai_facebody_recognize_expression()

void ucloud_ai_facebody_recognize_expression ( char *  path,
ucloud_ai_cb_t  cb 
)

Ucloud ai facebody recognizing expression api.

参数
[in]pathface image you want to recognize.
[in]cbcallback function to deal with result.

◆ ucloud_ai_get_stream()

int32_t ucloud_ai_get_stream ( char *  url,
char **  stream 
)

Get stream by url address.

◆ ucloud_ai_get_token_id()

char* ucloud_ai_get_token_id ( const char *  domain,
const char *  region_id 
)

Get token id by domain and region id.

◆ ucloud_ai_imageenhan_erase_person()

void ucloud_ai_imageenhan_erase_person ( char *  image_path,
char *  user_mask_path,
ucloud_ai_cb_t  cb 
)

Ucloud ai imageenhan erasing person api.

参数
[in]image_pathperson image you want to enhance.
[in]user_mask_pathmask style image you want to follow.
[in]cbcallback function to deal with result.

◆ ucloud_ai_imageenhan_extend_image_style()

void ucloud_ai_imageenhan_extend_image_style ( char *  major_path,
char *  style_path,
ucloud_ai_cb_t  cb 
)

Ucloud ai imageenhan extending image style api.

参数
[in]major_pathimage you want to extend.
[in]style_pathstyle image you want to follow.
[in]cbcallback function to deal with result.

◆ ucloud_ai_imagerecog_classifying_rubbish()

void ucloud_ai_imagerecog_classifying_rubbish ( char *  path,
ucloud_ai_cb_t  cb 
)

Ucloud ai cassifying rubbish api.

参数
[in]pathrubbish image you want to cassify.
[in]cbcallback function to deal with result.

◆ ucloud_ai_imagerecog_detect_fruits()

void ucloud_ai_imagerecog_detect_fruits ( char *  path,
ucloud_ai_cb_t  cb 
)

Ucloud ai detecting fruits api.

参数
[in]pathfruit image you want to detect.
[in]cbcallback function to deal with result.

◆ ucloud_ai_imageseg_segment_common_image()

void ucloud_ai_imageseg_segment_common_image ( char *  path,
ucloud_ai_cb_t  cb 
)

Ucloud ai segmenting common image api.

参数
[in]pathcommon image you want to segment.
[in]cbcallback function to deal with result.

◆ ucloud_ai_imageseg_segment_face()

void ucloud_ai_imageseg_segment_face ( char *  path,
ucloud_ai_cb_t  cb 
)

Ucloud ai segmenting face api.

参数
[in]pathface image you want to segment.
[in]cbcallback function to deal with result.

◆ ucloud_ai_init()

int32_t ucloud_ai_init ( void  )

Initialize ucloud ai.

返回
0 on success, negative error on failure.

◆ ucloud_ai_objectdet_detect_main_body()

void ucloud_ai_objectdet_detect_main_body ( char *  path,
ucloud_ai_cb_t  cb 
)

Ucloud ai detecting main body api.

参数
[in]pathmain body you want to detect.
[in]cbcallback function to deal with result.

◆ ucloud_ai_objectdet_detect_object()

void ucloud_ai_objectdet_detect_object ( char *  path,
ucloud_ai_cb_t  cb 
)

Ucloud ai detecting object api.

参数
[in]pathobject you want to detect.
[in]cbcallback function to deal with result.

◆ ucloud_ai_ocr_recognize_bank_card()

void ucloud_ai_ocr_recognize_bank_card ( char *  path,
ucloud_ai_cb_t  cb 
)

Ucloud ai recognizing bank card api.

参数
[in]pathbank card you want to recognize.
[in]cbcallback function to deal with result.

◆ ucloud_ai_ocr_recognize_character()

void ucloud_ai_ocr_recognize_character ( char *  path,
ucloud_ai_cb_t  cb 
)

Ucloud ai recognizing character api.

参数
[in]pathcharacter you want to recogize.
[in]cbcallback function to deal with result.

◆ ucloud_ai_ocr_recognize_identity_card_back_side()

void ucloud_ai_ocr_recognize_identity_card_back_side ( char *  path,
ucloud_ai_cb_t  cb 
)

Ucloud ai recognizing identity card back side api.

参数
[in]pathidentity card back side you want to recognize.
[in]cbcallback function to deal with result.

◆ ucloud_ai_ocr_recognize_identity_card_face_side()

void ucloud_ai_ocr_recognize_identity_card_face_side ( char *  path,
ucloud_ai_cb_t  cb 
)

Ucloud ai recognizing identity card face side api.

参数
[in]pathidentity card face side you want to recognize.
[in]cbcallback function to deal with result.

◆ ucloud_ai_ocr_recognize_license_plate()

void ucloud_ai_ocr_recognize_license_plate ( char *  path,
ucloud_ai_cb_t  cb 
)

Ucloud ai recognizing license plate api.

参数
[in]pathlicense plate you want to recogize.
[in]cbcallback function to deal with result.

◆ ucloud_ai_set_key_secret()

void ucloud_ai_set_key_secret ( char *  key,
char *  secret 
)

Ucloud ai set key and secret.

参数
[in]keyalibaba cloud key account.
[in]secretalibaba cloud secret.

◆ ucloud_ai_set_oss_bucket()

void ucloud_ai_set_oss_bucket ( char *  bucket)

Set oss bucket name.

参数
[in]bucketoss bucket name.

◆ ucloud_ai_set_oss_endpoint()

void ucloud_ai_set_oss_endpoint ( char *  endpoint)

Set oss endpoint.

参数
[in]endpointoss endpoint.

◆ ucloud_ai_uninit()

int32_t ucloud_ai_uninit ( void  )

Uninitialize ucloud ai.

返回
0 on success, negative error on failure.

◆ ucloud_ai_upload_file()

uint8_t* ucloud_ai_upload_file ( char *  path)

Upload file to oss bucket.

参数
[in]pathlocal file path.
返回
oss url result.