1 /* 2 * Copyright (C) 2015-2018 Alibaba Group Holding Limited 3 */ 4 5 #ifndef _OBJECTDET_H_ 6 #define _OBJECTDET_H_ 7 8 #include "model/internal.h" 9 10 #ifdef __cplusplus 11 extern "C" { 12 #endif 13 14 typedef struct _DetectObjectStruct { 15 char *type; 16 float score; 17 RectStruct box; 18 } DetectObjectStruct; 19 20 typedef struct _DetectMainBodyStruct { 21 RectStruct location; 22 } DetectMainBodyStruct; 23 24 typedef union _ObjectDetResultStruct { 25 DetectObjectStruct object; 26 DetectMainBodyStruct mainbody; 27 } ObjectDetResultStruct; 28 29 int detectObject(char *url, AIModelCBFunc cb); 30 int detectMainBody(char *url, AIModelCBFunc cb); 31 32 #ifdef __cplusplus 33 } 34 #endif 35 #endif // _OBJECTDET_H_ 36