5 #ifndef _UCLOUD_AI_COMMON_H_
6 #define _UCLOUD_AI_COMMON_H_
7 #include "model/common.h"
16 #define FACE1_IMAGE "/data/ucloud_ai_image/face1.png"
17 #define FACE2_IMAGE "/data/ucloud_ai_image/face2.png"
18 #define ANIME_IMAGE "/data/ucloud_ai_image/expression.jpg"
19 #define EXPRESSION_IMAGE "/data/ucloud_ai_image/expression.jpg"
20 #define OBJECT_IMAGE "/data/ucloud_ai_image/object.jpg"
21 #define MAINBODY_IMAGE "/data/ucloud_ai_image/face1.png"
22 #define CARD_FACE_IMAGE "/data/ucloud_ai_image/card_face.jpg"
23 #define CARD_BACK_IMAGE "/data/ucloud_ai_image/card_back.jpg"
24 #define BANK_CARD_IMAGE "/data/ucloud_ai_image/bank_card.jpg"
25 #define CHARACTER_IMAGE "/data/ucloud_ai_image/character.jpg"
26 #define RUBBISH_IMAGE "/data/ucloud_ai_image/rubbish.jpg"
27 #define FRUITS_IMAGE "/data/ucloud_ai_image/fruits.jpg"
28 #define PERSON_ORG_IMAGE "/data/ucloud_ai_image/person_org.jpg"
29 #define STYLE_IMAGE "/data/ucloud_ai_image/person_org.jpg"
32 #define IMAGEENHAN_ERASE_PERSON_USERMASK_URL "http://viapi-test.oss-cn-shanghai.aliyuncs.com/viapi-3.0domepic/imageenhan/ErasePerson/ErasePerson6.jpg"
33 #define IMAGEENHAN_EXTEND_IMAGE_STYLE_URL "http://ivpd-demo.oss-cn-shanghai.aliyuncs.com/ivpd-demo/images/ExtendImageStyle/styleUrl.jpeg"
int32_t ucloud_ai_uninit(void)
int32_t ucloud_ai_get_stream(char *url, char **stream)
uint8_t * ucloud_ai_upload_file(char *path)
char * ucloud_ai_get_token_id(const char *domain, const char *region_id)
void ucloud_ai_set_key_secret(char *key, char *secret)
void ucloud_ai_disconnect(void)
int32_t ucloud_ai_connect(char *url)
int32_t ucloud_ai_init(void)
void ucloud_ai_set_oss_endpoint(char *endpoint)
void ucloud_ai_set_oss_bucket(char *bucket)
AIModelResultStruct ucloud_ai_result_t
enum _ucloud_ai_model_t ucloud_ai_model_t
AIModelCBFunc ucloud_ai_cb_t
@ UCLOUD_AI_MODEL_RECOGNIZE_EXPRESSION
@ UCLOUD_AI_MODEL_GENERATE_HUMAN_ANIME_STYLE
@ UCLOUD_AI_MODEL_RECOGNIZE_BANK_CARD
@ UCLOUD_AI_MODEL_DETECT_OBJECT
@ UCLOUD_AI_MODEL_DETECT_PEDSTRIAN
@ UCLOUD_AI_MODEL_RECOGNIZE_CHARACTER
@ UCLOUD_AI_MODEL_RECOGNIZE_IDENTITY_CARD_BACK_SIDE
@ UCLOUD_AI_MODEL_SEGMENT_COMMON_IMAGE
@ UCLOUD_AI_MODEL_ERASE_PERSON
@ UCLOUD_AI_MODEL_DETECT_FRUITS
@ UCLOUD_AI_MODEL_RECOGNIZE_LICENCE_PLATE
@ UCLOUD_AI_MODEL_CLASSIFYING_RUBBISH
@ UCLOUD_AI_MODEL_SEGMENT_FACE
@ UCLOUD_AI_MODEL_EXTEND_IMAGE_STYLE
@ UCLOUD_AI_MODEL_COMPARING_FACEBODY
@ UCLOUD_AI_MODEL_RECOGNIZE_IDENTITY_CARD_FACE_SIDE
@ UCLOUD_AI_MODEL_DETECT_MAIN_BODY