Beauty AR
  • 개요
  • Web
    • 빠른 실행
    • 통합
      • 개요
      • 내장 카메라
      • 사용자 정의 스트림
      • 로딩 최적화
      • 특수효과 설정
      • 인물사진 분할 사용
      • 이모티콘 및 가상 아바타 설정
    • 인터페이스 문서
    • 배포 설명
    • 모범 관례
      • WebRTC를 결합한 푸시
      • WebRTC를 결합한 푸시(사전 초기화 방안)
      • TRTC를 결합한 푸시
    • 자주 받는 질문들
  • Android
    • 통합
      • SDK 통합
      • TEBeautyKit 통합
    • 인터페이스 문서
    • 배포 설명
    • 모범 관례
      • SDK 크기 축소
      • 특수효과 매개변수
    • 고급 기능
      • 제스처 인식
      • 얼굴 인식
      • 가상 배경
    • 소재 만들기
      • 뷰티 AR Studio 소개
    • 자주 받는 질문들
  • IOS
    • 통합
      • SDK 통합
      • TEBeautyKit 통합
    • 인터페이스 문서
    • 배포 설명
    • 모범 관례
      • SDK 크기 축소
      • 특수효과 매개변수
    • 고급 기능
      • 제스처 인식
      • 얼굴 인식
      • 가상 배경
    • 소재 만들기
      • 뷰티 AR Studio 소개
    • 자주 받는 질문들
  • Flutter
    • 통합
    • 인터페이스 문서
    • 소재 만들기
      • 뷰티 AR Studio 소개
  • 개요
    • 개요
  • 서비스 활성화
  • 가격
  • 무료 버전
    • Web
    • 모바일
Beauty AR
이 페이지는 현재 영어로만 제공되며 한국어 버전은 곧 제공될 예정입니다. 기다려 주셔서 감사드립니다.

자주 받는 질문들

When I built my Android application for release, an error occurred saying that some methods were not found. What should I do?

If you enable optimization (by setting minifyEnabled to true) when building your application, some code that is not called at the Java layer will be removed. However, such code may be called at the native layer, causing a no xxx method error.
To fix the issue, add the following keep rules to prevent the code from being removed:
-keep class com.tencent.xmagic.** { *;}
-keep class org.light.** { *;}
-keep class org.libpag.** { *;}
-keep class org.extra.** { *;}
-keep class com.gyailib.**{ *;}
-keep class com.tencent.cloud.iai.lib.** { *;}
-keep class com.tencent.beacon.** { *;}
-keep class com.tencent.qimei.** { *;}
-keep class androidx.exifinterface.** { *;}

What should I do if a GSON library conflict error occurs when I integrate the SDK into my host Android project?

Add the following code to the build.gradle file of the host project:
Android{
configurations {
all*.exclude group: 'com.google.code.gson'
}
}

What should I do if the SO libraries fail to be loaded when Android targetSdkVersion is 31 or larger?

When Android targetSdkVersion is 31 or larger, you need to open the AndroidManifest.xml file in app and add the following tag to application:
<uses-native-library
android:name="libOpenCL.so"
android:required="true" />
//`true` indicates that the library is a must for the application to run. The application cannot be installed on a system without the library.
//`false` indicates that the application can use the library if it is available, but can also run without it. It can be installed on a system without the library. If you set the parameter to `false`, you need to deal with the issues that may arise due to the absence of the library.
//Android website introduction: %!s(<nil>)
For more information, see <uses-native-library>.

If the texture passed when using beauty filters is a horizontal texture, how to solve it?

You can use the 'convert' method in the TextureConverter.java utility class in the demo to rotate the texture and convert it to portrait mode, and then pass it to the beauty SDK.
/**
* This method is used to rotate and mirror the RGBA texture. The process is to first rotate the texture Proceed in a clockwise direction. by 'rotation' degrees (which can take values of 0, 90, 180, 270), and then perform a horizontal flip (flipHorizontal) and a vertical flip (flipVertical)
* Use case: Some streaming SDKs return horizontal textures or the characters in the image are facing the wrong direction, while the SDK requires that the characters in the texture are facing forward. Therefore, this method can be used to convert the texture.
*
* @param srcID: The RGBA texture.
* @param width: The width of the texture.
* @param height: The height of the texture.
* @param rotation: The angle of rotation.
* @Returns: The rotated texture. Note: If rotated 90 or 270 degrees, the width needs to be swapped.
*/
public int convert(int srcID, int width, int height, @RotationDegreesValue int rotation, boolean flipVertical, boolean flipHorizontal)

If the texture passed when using beauty filters is an OES texture, how to solve it?

You can use the 'oes2Rgba' method in the TextureConverter.java utility class in the demo to convert the texture to an RGBA texture, and then pass it to the beauty SDK.
/**
* This method is used to convert an OES texture to an RGBA texture
*
* @param srcID: The OES texture.
* @param width: The width of the texture.
* @param height: The height of the texture.
* @Returns: The ID of the RGBA texture.
*/
public int oes2Rgba(int srcID, int width, int height)

What if I want to use another version of PAG? Supported by V3.5.0

When the client integrates the beauty filter SDK:
If integrated through Maven, sdk can be introduced via implement. If you does not wish to use this version of pag, it can be excluded through:
implementation ('com.tencent.mediacloud:TencentEffect_S1-04:version'){ exclude group: "com.tencent.tav", module: "libpag"
}
If manually integrated with the beautification SDK through download, the dependency on aar is without pag. you would still need to add a line in their app's build.gradle to implement pag for usage.
implementation 'com.tencent.tav:libpag:4.3.33-noffavc'
To dynamically download the .so libraries, you need to obtain them from the official download page and only integrate the .aar.
1.1 

What are the relationships between different effect properties?