# fromValue static method

FaceModel fromValue(

1. int value

)

Creates an enumeration value from int. param value The int value. return The created FaceModel.

## Implementation

    static FaceModel fromValue(int value) {
        	switch (value) {
          	case 1001:
            	return FaceModel.faceDetector3A;
          	case 1002:
            	return FaceModel.faceDetector3B;
          	case 1003:
            	return FaceModel.faceDetector3C;
          	case 1004:
            	return FaceModel.faceDetector4A;
          	case 1005:
            	return FaceModel.faceDetector4B;
          	case 1006:
            	return FaceModel.faceDetector4BQ;
          	case 1102:
            	return FaceModel.faceEncoder8A;
          	case 1103:
            	return FaceModel.faceEncoder8B;
          	case 1104:
            	return FaceModel.faceEncoder9A;
          	case 1105:
            	return FaceModel.faceEncoder9B;
          	case 1106:
            	return FaceModel.faceEncoder9C;
          	case 1152:
            	return FaceModel.facePeriocularEncoder2A;
          	case 1202:
            	return FaceModel.faceEncodingQualityEstimator3A;
          	case 1301:
            	return FaceModel.faceLandmarksEstimator2A;
          	case 1350:
            	return FaceModel.faceAgeEstimator1A;
          	case 1401:
            	return FaceModel.faceAttributesClassifier2A;
          	case 1450:
            	return FaceModel.faceExpressionClassifier1A;
          	case 1510:
            	return FaceModel.eyeOpennessDetector1A;
          	case 1520:
            	return FaceModel.eyeRednessDetector1A;
          	case 1531:
            	return FaceModel.eyeGazeEstimator2A;
          	case 1550:
            	return FaceModel.faceBackgroundUniformity1A;
          	case 1601:
            	return FaceModel.faceMaskClassifier2A;
          	case 1651:
            	return FaceModel.faceOcclusionDetector2A;
          	case 1700:
            	return FaceModel.facePoseEstimator1A;
          	case 1801:
            	return FaceModel.faceColorBasedPad2A;
          	case 1802:
            	return FaceModel.faceColorBasedPad3A;
          	case 1810:
            	return FaceModel.faceBlurrinessDetector1A;
          	case 1831:
            	return FaceModel.faceAttackSupportDetector2A;
          	case 1841:
            	return FaceModel.faceAttackSupportDetector3A;
          	case 1850:
            	return FaceModel.faceDepthBasedPad2A;
          	case 1870:
            	return FaceModel.faceBackgroundSegmenter1A;
          	case 1871:
            	return FaceModel.faceSegmenter2A;
          	case 1872:
            	return FaceModel.compressionArtifactRemover1A;
        default:
            	throw Exception("Unable to find the specified enum value for $value");
        	}
      	}