BDFaceAdjustParams.h 1.9 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364
  1. //
  2. // BDFaceAdjustParams.h
  3. // FaceSDKSample_IOS
  4. //
  5. // Created by Zhang,Jian(MBD) on 2020/12/1.
  6. // Copyright © 2020 Baidu. All rights reserved.
  7. //
  8. #import <Foundation/Foundation.h>
  9. NS_ASSUME_NONNULL_BEGIN
  10. @interface BDFaceAdjustParams : NSObject<NSCopying>
  11. @property(nonatomic, assign) NSInteger minLightIntensity; ///< 最小光照值
  12. @property(nonatomic, assign) NSInteger maxLightIntensity; ///< 最大光照值
  13. @property(nonatomic, assign) float ambiguity; ///< 模糊度
  14. #pragma mark 遮挡阈值
  15. @property(nonatomic, assign) float leftEyeOcclusion; ///< 左眼遮挡阈值
  16. @property(nonatomic, assign) float rightEyeOcclusion; ///< 右眼遮挡阈值
  17. @property(nonatomic, assign) float noseOcclusion; ///< 鼻子遮挡阈值
  18. @property(nonatomic, assign) float mouthOcclusion; ///< 嘴巴遮挡阈值
  19. @property(nonatomic, assign) float leftFaceOcclusion; ///< 左脸遮挡阈值
  20. @property(nonatomic, assign) float rightFaceOcclusion; ///< 右脸遮挡阈值
  21. @property(nonatomic, assign) float lowerJawOcclusion; ///< 下巴遮挡阈值
  22. #pragma mark 姿态阈值
  23. @property(nonatomic, assign) NSInteger upAndDownAngle; ///< 俯仰角
  24. @property(nonatomic, assign) NSInteger leftAndRightAngle; ///< 左右角
  25. @property(nonatomic, assign) NSInteger spinAngle; ///< 旋转角
  26. /**
  27. *Description 初始化方法
  28. *@params json jsonString
  29. */
  30. - (instancetype)initWithJson:(NSString *)json;
  31. /**
  32. *Description 初始化方法
  33. *@params dic dic对象
  34. */
  35. - (instancetype)initWithDic:(NSDictionary *)dic;
  36. /**
  37. *Description 转为dictionary
  38. */
  39. - (NSDictionary *)toDic;
  40. /**
  41. *Description 对比两个参数obj是否是一个
  42. *@params obj 另外一个BDFaceAdjustParams
  43. *@return 对比另外一个obj,如果是一样的参数,返回YES,否则返回NO,如果obj为空,返回NO
  44. */
  45. - (BOOL)compareToParams:(BDFaceAdjustParams *)obj;
  46. - (NSString *)description;
  47. @end
  48. NS_ASSUME_NONNULL_END