BDFaceAdjustParamsConstants.h 3.1 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485
  1. //
  2. // BDFaceAdjustParamsConstants.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. /// 质量控制设置 页面的标题
  11. extern NSString *const BDFaceAjustParamsPageTitle;
  12. /// 正常参数配置 页面标题
  13. extern NSString *const BDFaceAjustParamsNormalPageTitle;
  14. /// 宽松参数配置 页面标题
  15. extern NSString *const BDFaceAjustParamsLoosePageTitle;
  16. /// 严格参数配置 页面标题
  17. extern NSString *const BDFaceAjustParamsStrictPageTitle;
  18. #pragma mark json keys
  19. extern NSString *const minLightIntensityKey;// = @"minLightIntensity"; ///< 最小光照值Key
  20. extern NSString *const maxLightIntensityKey; ///< 最大光照值Key
  21. extern NSString *const ambiguityKey; ///< 模糊度Key
  22. extern NSString *const leftEyeOcclusionKey; ///< 左眼遮挡阈值Key
  23. extern NSString *const rightEyeOcclusionKey; ///< 右眼遮挡阈值Key
  24. extern NSString *const noseOcclusionKey; ///< 鼻子遮挡阈值Key
  25. extern NSString *const mouthOcclusionKey; ///< 嘴巴遮挡阈值Key
  26. extern NSString *const leftFaceOcclusionKey; ///< 左脸遮挡阈值Key
  27. extern NSString *const rightFaceOcclusionKey; ///< 右脸遮挡阈值Key
  28. extern NSString *const lowerJawOcclusionKey; ///< 下巴遮挡阈值Key
  29. extern NSString *const upAndDownAngleKey; ///< 俯仰角Key
  30. extern NSString *const leftAndRightAngleKey; ///< 左右角Key
  31. extern NSString *const spinAngleKey; ///< 旋转角Key
  32. /// 目前用户选择的配置类型,宽松,自定义,严格,正常
  33. typedef enum : NSUInteger {
  34. BDFaceSelectTypeLoose = 0,
  35. BDFaceSelectTypeNormal = 1,
  36. BDFaceSelectTypeStrict = 2,
  37. BDFaceSelectTypeCustom = 3
  38. } BDFaceSelectType;
  39. /// Cell 的位置枚举值,只有一个,非只有一个第一个,非只有一个中间的,非只有一个最后一个Cell
  40. typedef enum : NSUInteger {
  41. BDFaceCellPostionTypeOnlyOneCell = 0,
  42. BDFaceCellPostionTypeMoreThanOneFirst = 1,
  43. BDFaceCellPostionTypeMoreThanOneMiddle = 2,
  44. BDFaceCellPostionTypeMoreThanOneLast = 3
  45. } BDFaceCellPostionType;
  46. extern float const BDFaceAdjustConfigTableCornerRadius;
  47. extern float const BDFaceAdjustConfigTableMargin;
  48. extern float const BDFaceAdjustConfigContentTitleFontSize;
  49. extern float const BDFaceAdjustConfigControllerTitleFontSize;
  50. extern UInt32 const BDFaceAdjustConfigTipTextColor;
  51. extern UInt32 const BDFaceAdjustParamsSeperatorColor;
  52. extern UInt32 const BDFaceAdjustParamsTableBackgroundColor;
  53. ///页面直接传递消息, 用户选择自定义了
  54. extern NSString *const BDFaceAdjustParamsUserDidFinishSavedConfigNotification;
  55. ///BDFaceAdjustParamsController页面中传递消息
  56. extern NSString *const BDFaceAdjustParamsControllerConfigDidChangeNotification;
  57. extern NSString *const BDFaceAdjustParamsControllerConfigIsSameKey;
  58. extern UInt32 const BDFaceAdjustParamsRecoverActiveTextColor;
  59. extern UInt32 const BDFaceAdjustParamsRecoverUnactiveTextColor;
  60. /**
  61. @class: BDFaceAdjustParamsConstants
  62. @description 常量定义页面
  63. */
  64. @interface BDFaceAdjustParamsConstants : NSObject
  65. @end
  66. NS_ASSUME_NONNULL_END