• 서비스
  • 가격
  • 리소스
  • 기술지원
이 페이지는 현재 영어로만 제공되며 한국어 버전은 곧 제공될 예정입니다. 기다려 주셔서 감사드립니다.
새로운 기능으로 더 부드럽고 멋진 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.