1 /* 2 * Copyright (C) 2021-2023 Alibaba Group Holding Limited 3 */ 4 5 #ifndef _IMAGESEG_H_ 6 #define _IMAGESEG_H_ 7 8 #include "internal.h" 9 10 #ifdef __cplusplus 11 extern "C" { 12 #endif 13 14 typedef struct _SegmentCommonStruct { 15 char *url; 16 char *image; 17 int imageLen; 18 } SegmentCommonStruct; 19 20 typedef struct _SegmentFaceStruct { 21 char *url; 22 char *image; 23 int imageLen; 24 RectStruct location; 25 } SegmentFaceStruct; 26 27 typedef union _ImageSegResultStruct { 28 SegmentCommonStruct common; 29 SegmentFaceStruct face; 30 } ImageSegResultStruct; 31 32 int segmentCommonImage(char *url, AIModelCBFunc cb); 33 int segmentFace(char *url, AIModelCBFunc cb); 34 #ifdef __cplusplus 35 } 36 #endif 37 #endif 38