ThinkChat2.0新版上线,更智能更精彩,支持会话、画图、阅读、搜索等,送10W Token,即刻开启你的AI之旅 广告
美狐美颜在金山美颜的基础上进行封装,所以需要导入GPUImage框架。一般金山库已经提供。如果项目中没有的话请参考官方cocoapods提供的[GPUImage](https://github.com/BradLarson/GPUImage/releases/tag/0.1.7),当前我们测试通过的版本是[0.1.7](https://github.com/BradLarson/GPUImage/releases/tag/0.1.7)。(Meihu Meiyan is encapsulated on the basis of Jinshan Meiyan, so it needs to import the gpuimage framework. General Jinshan Treasury has been provided. If not in the project, please refer to the gpuimage provided by the official cocoapods. At present, the version we tested is 0.1.7.) 将“KSYMHBeauty\_金山直播专用”文件夹下的文件导入到工程中,在直播页面导入头文件(Import the file under "ksymhbeauty\_; Jinshan" folder into the project, and import the header file on the live broadcast page:): ``` #import "MHBeautyOfKSYStream.h" ``` 先保证初始化MHBeautyManager之后,再初始化MHBeautyOfKSYStream(Make sure to initialize mhbeautymanager before initializing mhbeautyofksystream): ``` MHBeautyOfKSYStream *mhbeauty = [[MHBeautyOfKSYStream alloc] initMHSDKWithManager:self.beautyManager]; ``` 调用金山SDK方法,在配置SDK相关参数的时候将mhbeauty传入(Call Jinshan SDK method and pass mheauty in when configuring SDK related parameters): ``` [_kit setupFilter:mhbeauty]; ``` (说明:\_kit**是**KSYGPUStreamerKit实例) (Note: \_kitis an instance of ksygpustreamerkit)