NERtc iOS SDK  V5.5.40
NERtcBeauty.h
浏览该文件的文档.
1 #import <Foundation/Foundation.h>
2 #import "NERtcEngineEnum.h"
3 
12 typedef NS_ENUM(NSInteger, NERtcBeautyEffectType) {
22 
32 
42 
52 
62 
72 
82 
92 
102 
112 
122 
132 
142 
152 
162 
172 
182 
192 
202 
212 
222 
232 
242 
251 
260 
269 
278 
287 };
288 
289 NERTC_EXPORT @interface NERtcBeauty : NSObject
290 
291 #pragma mark - Attribute
292 
303 @property(nonatomic, assign) float teeth;
304 
315 @property(nonatomic, assign) float brightEye;
316 
327 @property(nonatomic, assign) float whiteSkin;
328 
339 @property(nonatomic, assign) float smoothSkin;
340 
351 @property(nonatomic, assign) float smallNose;
352 
363 @property(nonatomic, assign) float eyesDistance;
364 
375 @property(nonatomic, assign) float eyesAngle;
376 
387 @property(nonatomic, assign) float mouth;
388 
399 @property(nonatomic, assign) float bigEye;
400 
411 @property(nonatomic, assign) float smallFace;
412 
423 @property(nonatomic, assign) float jaw;
424 
435 @property(nonatomic, assign) float thinFace;
436 
447 @property(nonatomic, assign) float faceRuddyStrength;
448 
459 @property(nonatomic, assign) float longNoseStrength;
460 
471 @property(nonatomic, assign) float renZhongStrength;
472 
483 @property(nonatomic, assign) float mouthAngle;
484 
495 @property(nonatomic, assign) float roundEyeStrength;
496 
507 @property(nonatomic, assign) float openEyeAngleStrength;
508 
519 @property(nonatomic, assign) float vFaceStrength;
520 
531 @property(nonatomic, assign) float thinUnderjawStrength;
532 
543 @property(nonatomic, assign) float narrowFaceStrength;
544 
555 @property(nonatomic, assign) float cheekBoneStrength;
556 
567 @property(nonatomic, assign) float faceSharpenStrength;
568 
577 @property(nonatomic, assign) float mouthWiderStrength;
578 
587 @property(nonatomic, assign) float foreheadWrinklesStrength;
588 
597 @property(nonatomic, assign) float darkCirclesStrength;
598 
607 @property(nonatomic, assign) float smileLinesStrength;
608 
617 @property(nonatomic, assign) float shortFaceStrength;
618 
631 @property(nonatomic, assign) float filterStrength;
632 
649 @property(nonatomic, assign) BOOL flipX;
650 
667 @property(nonatomic, assign) BOOL isLandscape;
668 
695 @property(nonatomic, assign) BOOL isOpenBeauty;
696 
697 #pragma mark - Method
698 
700 
737 - (int)startBeauty;
738 
762 - (void)stopBeauty;
763 
818 - (void)setBeautyEffectWithValue:(float)value atType:(NERtcBeautyEffectType)type;
819 
848 - (int)addTempleteWithPath:(NSString *)path andName:(NSString *)name;
849 
901 - (void)addBeautyFilterWithPath:(NSString *)path andName:(NSString *)name;
902 
919 - (void)removeBeautyFilter;
920 
949 - (void)addBeautyStickerWithPath:(NSString *)path andName:(NSString *)name;
950 
967 - (void)removeBeautySticker;
968 
997 - (void)addBeautyMakeupWithPath:(NSString *)path andName:(NSString *)name;
998 
1015 - (void)removeBeautyMakeup;
1016 
1035 - (NSString *)getError;
1036 
1037 @end
NERtcBeautyEffectType
美颜类型。
Definition: NERtcBeauty.h:12
@ kNERtcBeautyThinUnderjaw
瘦下颚。强度默认值为 0.0。
Definition: NERtcBeauty.h:211
@ kNERtcBeautyWhiteTeeth
美牙。强度默认值为 0.0。
Definition: NERtcBeauty.h:21
@ kNERtcBeautySmooth
磨皮。强度默认值为 0.0。
Definition: NERtcBeauty.h:51
@ kNERtcBeautyLongNose
长鼻。强度默认值为 0.5。
Definition: NERtcBeauty.h:151
@ kNERtcBeautySmallFace
小脸。强度默认值为 0.0。
Definition: NERtcBeauty.h:111
@ kNERtcBeautyVFace
V 脸。强度默认值为 0.0。
Definition: NERtcBeauty.h:201
@ kNERtcBeautyMouthWider
调整嘴巴宽度。强度默认值为 0.5。
Definition: NERtcBeauty.h:250
@ kNERtcBeautyCheekBone
瘦颧骨。强度默认值为 0.0。
Definition: NERtcBeauty.h:231
@ kNERtcBeautyWhiten
美白。强度默认值为 0.0。
Definition: NERtcBeauty.h:41
@ kNERtcBeautySmallNose
小鼻。强度默认值为 0.0。
Definition: NERtcBeauty.h:61
@ kNERtcBeautyJaw
下巴调整。强度默认值为 0.0。
Definition: NERtcBeauty.h:121
@ kNERtcBeautyMouthAngle
调整嘴角。强度默认值为 0.5。
Definition: NERtcBeauty.h:171
@ kNERtcBeautyNarrowFace
窄脸。强度默认值为 0.0。
Definition: NERtcBeauty.h:221
@ kNERtcBeautyEyeDis
眼距调整。强度默认值为 0.5。
Definition: NERtcBeauty.h:71
@ kNERtcBeautyMouth
嘴型调整。强度默认值为 0.5。
Definition: NERtcBeauty.h:91
@ kNERtcBeautyFaceRuddy
红润。强度默认值为 0.0。
Definition: NERtcBeauty.h:141
@ kNERtcBeautySmileLines
祛法令纹。强度默认值为 0.0。
Definition: NERtcBeauty.h:277
@ kNERtcBeautyOpenEyeAngle
开眼角。强度默认值为 0.0。
Definition: NERtcBeauty.h:191
@ kNERtcBeautyForeheadWrinkles
祛抬头纹。强度默认值为 0.0。
Definition: NERtcBeauty.h:259
@ kNERtcBeautyShortFace
短脸。强度默认值为 0.0。
Definition: NERtcBeauty.h:286
@ kNERtcBeautyThinFace
瘦脸。强度默认值为 0.0。
Definition: NERtcBeauty.h:131
@ kNERtcBeautyEyeAngle
眼角调整。强度默认值为 0.5。
Definition: NERtcBeauty.h:81
@ kNERtcBeautyFaceSharpen
锐化。强度默认值为 0.0。
Definition: NERtcBeauty.h:241
@ kNERtcBeautyLightEye
亮眼。强度默认值为 0.0。
Definition: NERtcBeauty.h:31
@ kNERtcBeautyBigEye
大眼。强度默认值为 0.0。
Definition: NERtcBeauty.h:101
@ kNERtcBeautyDarkCircles
祛黑眼圈。强度默认值为 0.0。
Definition: NERtcBeauty.h:268
@ kNERtcBeautyRoundEye
圆眼。强度默认值为 0.0。
Definition: NERtcBeauty.h:181
@ kNERtcBeautyRenZhong
调整人中。强度默认值为 0.5。
Definition: NERtcBeauty.h:161
#define NERTC_EXPORT
Definition: NERtcEngineEnum.h:12
Definition: NERtcBeauty.h:290
float whiteSkin
美白 取值范围:[0.0, 1.0] 0.0为无效果,1.0为最大效果,默认值0.0
Definition: NERtcBeauty.h:327
float roundEyeStrength
圆眼 取值范围:[0.0, 1.0] 0.0为无效果,1.0为最大效果,默认值0.0
Definition: NERtcBeauty.h:495
void removeBeautyMakeup()
(此接口为 beta 版本)取消美妆效果。
float mouth
嘴型调整 取值范围:[0.0, 1.0] 0.5为无效果,0.0和1.0最大效果,默认值0.5
Definition: NERtcBeauty.h:387
NERtcBeauty * shareInstance()
float faceRuddyStrength
红润 取值范围:[0.0, 1.0] 0.0为无效果,1.0为最大效果,默认值0.0
Definition: NERtcBeauty.h:447
void removeBeautyFilter()
取消滤镜效果。
float longNoseStrength
长鼻 取值范围:[0.0, 1.0] 0.5为无效果,0.0和1.0最大效果,默认值0.5
Definition: NERtcBeauty.h:459
float mouthWiderStrength
调整嘴巴宽度 取值范围:[0.0, 1.0] 0.5为无效果,0.0和1.0最大效果,默认值0.5
Definition: NERtcBeauty.h:577
float cheekBoneStrength
瘦颧骨 取值范围:[0.0, 1.0] 0.0为无效果,1.0为最大效果,默认值0.0
Definition: NERtcBeauty.h:555
float smileLinesStrength
祛法令纹 取值范围:[0.0, 1.0] 0.0为无效果,1.0为最大效果,默认值0.0
Definition: NERtcBeauty.h:607
float foreheadWrinklesStrength
祛抬头纹 取值范围:[0.0, 1.0] 0.0为无效果,1.0为最大效果,默认值0.0
Definition: NERtcBeauty.h:587
NSString * getError()
获取美颜相关的错误信息。
float renZhongStrength
人中 取值范围:[0.0, 1.0] 0.5为无效果,0.0和1.0最大效果,默认值0.5
Definition: NERtcBeauty.h:471
BOOL flipX
启用美颜时,启用或关闭镜像模式。 默认为 NO,表示美颜时启用镜像模式。
Definition: NERtcBeauty.h:649
float smallFace
小脸 取值范围:[0.0, 1.0] 0.0为无效果,1.0为最大效果,默认值0.0
Definition: NERtcBeauty.h:411
BOOL isOpenBeauty
暂停或恢复美颜效果。 暂停美颜效果后,包括全局美颜、滤镜、贴纸和美妆在内的所有美颜效果都会暂时关闭,直至重新恢复美颜效果。
Definition: NERtcBeauty.h:695
float thinFace
瘦脸 取值范围:[0.0, 1.0] 0.0为无效果,1.0为最大效果,默认值0.0
Definition: NERtcBeauty.h:435
void removeBeautySticker()
(此接口为 beta 版本)取消贴纸效果。
float teeth
美牙 取值范围:[0.0, 1.0] 0.0为无效果,1.0为最大效果,默认值0.0
Definition: NERtcBeauty.h:303
float smallNose
小鼻 取值范围:[0.0, 1.0] 0.0为无效果,1.0为最大效果,默认值0.0
Definition: NERtcBeauty.h:351
float darkCirclesStrength
祛黑眼圈 取值范围:[0.0, 1.0] 0.0为无效果,1.0为最大效果,默认值0.0
Definition: NERtcBeauty.h:597
float jaw
下巴调整 取值范围:[0.0, 1.0] 0.0为无效果,1.0为最大效果,默认值0.0
Definition: NERtcBeauty.h:423
float thinUnderjawStrength
瘦下颌 取值范围:[0.0, 1.0] 0.0为无效果,1.0为最大效果,默认值0.0
Definition: NERtcBeauty.h:531
float eyesDistance
眼距调整 取值范围:[0.0, 1.0] 0.5为无效果,0.0和1.0最大效果,默认值0.5
Definition: NERtcBeauty.h:363
float faceSharpenStrength
锐化 取值范围:[0.0, 1.0] 0.0为无效果,1.0为最大效果,默认值0.0
Definition: NERtcBeauty.h:567
float shortFaceStrength
短脸 取值范围:[0.0, 1.0] 0.0为无效果,1.0为最大效果,默认值0.0
Definition: NERtcBeauty.h:617
float smoothSkin
磨皮 取值范围:[0.0, 1.0] 0.0为无效果,1.0为最大效果,默认值0.0
Definition: NERtcBeauty.h:339
BOOL isLandscape
启用美颜时,设置采集图像是否横屏。 默认为 NO,表示美颜时处理竖屏图像。
Definition: NERtcBeauty.h:667
float mouthAngle
嘴角 取值范围:[0.0, 1.0] 0.5为无效果,0.0和1.0最大效果,默认值0.5
Definition: NERtcBeauty.h:483
int startBeauty()
开启美颜功能模块。
float bigEye
大眼 取值范围:[0.0, 1.0] 0.0为无效果,1.0为最大效果,默认值0.0
Definition: NERtcBeauty.h:399
void stopBeauty()
结束美颜功能模块。 通过此接口实现关闭美颜功能模块后,SDK 会自动销毁美颜引擎并释放资源。
float filterStrength
设置滤镜强度。 取值范围为 [0 - 1],默认值为 0.0。取值越大,滤镜强度越大,开发者可以根据业务需求自定义设置滤镜强度。 滤镜强度设置实时生效,更换滤镜后滤镜强度不变,如需调整,可以再次通过此参...
Definition: NERtcBeauty.h:631
float vFaceStrength
V脸 取值范围:[0.0, 1.0] 0.0为无效果,1.0为最大效果,默认值0.0
Definition: NERtcBeauty.h:519
float brightEye
亮眼 取值范围:[0.0, 1.0] 0.0为无效果,1.0为最大效果,默认值0.0
Definition: NERtcBeauty.h:315
float openEyeAngleStrength
开眼角 取值范围:[0.0, 1.0] 0.0为无效果,1.0为最大效果,默认值0.0
Definition: NERtcBeauty.h:507
float eyesAngle
眼角调整 取值范围:[0.0, 1.0] 0.5为无效果,0.0和1.0最大效果,默认值0.5
Definition: NERtcBeauty.h:375
float narrowFaceStrength
窄脸 取值范围:[0.0, 1.0] 0.0为无效果,1.0为最大效果,默认值0.0
Definition: NERtcBeauty.h:543