• 製品
  • 価格
  • リソース
  • サポート
このページは現在英語版のみで提供されており、日本語版も近日中に提供される予定です。ご利用いただきありがとうございます。
新機能でよりスムーズでクールなAR効果を実現!

ボディポイント

Overview

This capability processes the OpenGL textures of the camera and outputs 3D body data. You can pass the data to Unity to drive your model or use the data to implement other features.

Integration (iOS)

Follow the directions in Integrating Tencent Effect SDK to integrate the Tencent Effect SDK.

API calls

1. Enable the feature (XMagic.h).

- (void)setFeatureEnableDisable:(NSString *_Nonnull)featureName enable:(BOOL)enable;
Set featureName to XmagicConstant.FeatureName.BODY_3D_POINT.
2. Configure the data callback (XMagic.h).
Version 2.6.0 and earlier versions use the following method.
//XMagic.h
- (void)registerSDKEventListener:(id<YTSDKEventListener> _Nullable)listener;

@implementation listener
- (void)onYTDataEvent:(id)event
{
NSLog(@"YTData %@", event);
}
@end
onYTDataEvent returns a JSON string.
face_info is facial data, which is not used by this capability.
For the meanings of fields in body_3d_info, see below.
Version 3.0.0 uses the following method.
//XMagic.h
- (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"]);
}
}
eventDict[@"ai_info"] returns a JSON string.
face_info is facial data, which is not used by this capability.
For the meanings of fields in body_3d_info, see below.

Body Keypoints and Descriptions

For details about body keypoints, see Body Keypoints and Descriptions.