face_environment.dart 803 B

123456789101112131415161718192021
  1. class FaceEnvironment {
  2. static const VALUE_BRIGHTNESS = 82.0;
  3. static const VALUE_MAX_BRIGHTNESS = 200.0;
  4. static const VALUE_BLURNESS = 0.3;
  5. static const VALUE_OCCLUSION = 0.5;
  6. static const VALUE_HEAD_PITCH = 8;
  7. static const VALUE_HEAD_YAW = 8;
  8. static const VALUE_HEAD_ROLL = 8;
  9. static const VALUE_CROP_HEIGHT = 640;
  10. static const VALUE_CROP_WIDTH = 480;
  11. static const VALUE_MIN_FACE_SIZE = 200;
  12. static const VALUE_NOT_FACE_THRESHOLD = 0.6;
  13. static const VALUE_IS_CHECK_QUALITY = true;
  14. static const VALUE_DECODE_THREAD_NUM = 2;
  15. static const VALUE_LIVENESS_DEFAULT_RANDOM_COUNT = 3;
  16. static const VALUE_MAX_CROP_IMAGE_NUM = 1;
  17. static const VALUE_CLOSE_EYES = 0.7;
  18. static const VALUE_CACHE_IMAGE_NUM = 3;
  19. static const VALUE_SCALE = 1.0;
  20. static const VALUE_SEC_TYPE = 0;
  21. }