tencent cloud

Feedback

Tencent Effect SDK
Last updated: 2023-05-18 16:33:08

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.
Contact Us

Contact our sales team or business advisors to help your business.

Technical Support

Open a ticket if you're looking for further assistance. Our Ticket is 7x24 avaliable.

7x24 Phone Support
Hong Kong, China
+852 800 906 020 (Toll Free)
United States
+1 844 606 0804 (Toll Free)
United Kingdom
+44 808 196 4551 (Toll Free)
Canada
+1 888 605 7930 (Toll Free)
Australia
+61 1300 986 386 (Toll Free)
EdgeOne hotline
+852 300 80699
More local hotlines coming soon