toValue method

String toValue()

Implementation

String toValue() {
  switch (this) {
    case Reason.exceedsMaxFaces:
      return 'EXCEEDS_MAX_FACES';
    case Reason.extremePose:
      return 'EXTREME_POSE';
    case Reason.lowBrightness:
      return 'LOW_BRIGHTNESS';
    case Reason.lowSharpness:
      return 'LOW_SHARPNESS';
    case Reason.lowConfidence:
      return 'LOW_CONFIDENCE';
    case Reason.smallBoundingBox:
      return 'SMALL_BOUNDING_BOX';
    case Reason.lowFaceQuality:
      return 'LOW_FACE_QUALITY';
  }
}