public void setFeatureEnableDisable(String featureName, boolean enable);
void setAIDataListener(XmagicApi.OnAIDataListener aiDataListener)public interface OnAIDataListener {void onFaceDataUpdated(List<TEFaceData> faceDataList);void onHandDataUpdated(List<TEHandData> handDataList);void onBodyDataUpdated(List<TEBodyData> bodyDataList);void onAIDataUpdated(String data);}
- (void)setFeatureEnableDisable:(NSString *_Nonnull)featureName enable:(BOOL)enable;
- (void)registerSDKEventListener:(id<YTSDKEventListener> _Nullable)listener;- (void)onAIEvent:(id)event{NSDictionary *eventDict = (NSDictionary *)event;if (eventDict[@"ai_info"] != nil) {NSLog(@"ai_info %@",eventDict[@"ai_info"]);}}
"hand_info":{ "gesture": "PAPER", "hand_point_2d": [180.71888732910156, 569.2958984375, ... , 353.8714294433594, 836.246826171875]}
字段 | 含义 |
gesture | 手势类型名称 |
hand_point_2d | 捕捉到手势的数据信息 |
序号 | 手势 | 类型名称 | 示例图 |
1 | 比心 | HEART | |
2 | 手势5(open) | PAPER | |
3 | 手势2 | SCISSOR | |
4 | 拳头 | FIST | |
5 | 手势1 | ONE | |
6 | 我爱你 | LOVE | |
7 | 点赞 | LIKE | |
8 | OK | OK | |
9 | 摇滚手势 | ROCK | |
10 | 手势6 | SIX | |
11 | 手势8 | EIGHT | |
12 | 托 | LIFT | |
13 | 手势3 | THREE | |
14 | 手势4 | FOUR | |
本页内容是否解决了您的问题?