...

Source file src/github.com/Azure/azure-sdk-for-go/services/cognitiveservices/v1.0/face/enums.go

Documentation: github.com/Azure/azure-sdk-for-go/services/cognitiveservices/v1.0/face

     1  package face
     2  
     3  // Copyright (c) Microsoft Corporation. All rights reserved.
     4  // Licensed under the MIT License. See License.txt in the project root for license information.
     5  //
     6  // Code generated by Microsoft (R) AutoRest Code Generator.
     7  // Changes may cause incorrect behavior and will be lost if the code is regenerated.
     8  
     9  // AccessoryType enumerates the values for accessory type.
    10  type AccessoryType string
    11  
    12  const (
    13  	// Glasses ...
    14  	Glasses AccessoryType = "glasses"
    15  	// HeadWear ...
    16  	HeadWear AccessoryType = "headWear"
    17  	// Mask ...
    18  	Mask AccessoryType = "mask"
    19  )
    20  
    21  // PossibleAccessoryTypeValues returns an array of possible values for the AccessoryType const type.
    22  func PossibleAccessoryTypeValues() []AccessoryType {
    23  	return []AccessoryType{Glasses, HeadWear, Mask}
    24  }
    25  
    26  // AttributeType enumerates the values for attribute type.
    27  type AttributeType string
    28  
    29  const (
    30  	// AttributeTypeAccessories ...
    31  	AttributeTypeAccessories AttributeType = "accessories"
    32  	// AttributeTypeAge ...
    33  	AttributeTypeAge AttributeType = "age"
    34  	// AttributeTypeBlur ...
    35  	AttributeTypeBlur AttributeType = "blur"
    36  	// AttributeTypeEmotion ...
    37  	AttributeTypeEmotion AttributeType = "emotion"
    38  	// AttributeTypeExposure ...
    39  	AttributeTypeExposure AttributeType = "exposure"
    40  	// AttributeTypeFacialHair ...
    41  	AttributeTypeFacialHair AttributeType = "facialHair"
    42  	// AttributeTypeGender ...
    43  	AttributeTypeGender AttributeType = "gender"
    44  	// AttributeTypeGlasses ...
    45  	AttributeTypeGlasses AttributeType = "glasses"
    46  	// AttributeTypeHair ...
    47  	AttributeTypeHair AttributeType = "hair"
    48  	// AttributeTypeHeadPose ...
    49  	AttributeTypeHeadPose AttributeType = "headPose"
    50  	// AttributeTypeMakeup ...
    51  	AttributeTypeMakeup AttributeType = "makeup"
    52  	// AttributeTypeNoise ...
    53  	AttributeTypeNoise AttributeType = "noise"
    54  	// AttributeTypeOcclusion ...
    55  	AttributeTypeOcclusion AttributeType = "occlusion"
    56  	// AttributeTypeSmile ...
    57  	AttributeTypeSmile AttributeType = "smile"
    58  )
    59  
    60  // PossibleAttributeTypeValues returns an array of possible values for the AttributeType const type.
    61  func PossibleAttributeTypeValues() []AttributeType {
    62  	return []AttributeType{AttributeTypeAccessories, AttributeTypeAge, AttributeTypeBlur, AttributeTypeEmotion, AttributeTypeExposure, AttributeTypeFacialHair, AttributeTypeGender, AttributeTypeGlasses, AttributeTypeHair, AttributeTypeHeadPose, AttributeTypeMakeup, AttributeTypeNoise, AttributeTypeOcclusion, AttributeTypeSmile}
    63  }
    64  
    65  // BlurLevel enumerates the values for blur level.
    66  type BlurLevel string
    67  
    68  const (
    69  	// High ...
    70  	High BlurLevel = "High"
    71  	// Low ...
    72  	Low BlurLevel = "Low"
    73  	// Medium ...
    74  	Medium BlurLevel = "Medium"
    75  )
    76  
    77  // PossibleBlurLevelValues returns an array of possible values for the BlurLevel const type.
    78  func PossibleBlurLevelValues() []BlurLevel {
    79  	return []BlurLevel{High, Low, Medium}
    80  }
    81  
    82  // DetectionModel enumerates the values for detection model.
    83  type DetectionModel string
    84  
    85  const (
    86  	// Detection01 ...
    87  	Detection01 DetectionModel = "detection_01"
    88  	// Detection02 ...
    89  	Detection02 DetectionModel = "detection_02"
    90  )
    91  
    92  // PossibleDetectionModelValues returns an array of possible values for the DetectionModel const type.
    93  func PossibleDetectionModelValues() []DetectionModel {
    94  	return []DetectionModel{Detection01, Detection02}
    95  }
    96  
    97  // ExposureLevel enumerates the values for exposure level.
    98  type ExposureLevel string
    99  
   100  const (
   101  	// GoodExposure ...
   102  	GoodExposure ExposureLevel = "GoodExposure"
   103  	// OverExposure ...
   104  	OverExposure ExposureLevel = "OverExposure"
   105  	// UnderExposure ...
   106  	UnderExposure ExposureLevel = "UnderExposure"
   107  )
   108  
   109  // PossibleExposureLevelValues returns an array of possible values for the ExposureLevel const type.
   110  func PossibleExposureLevelValues() []ExposureLevel {
   111  	return []ExposureLevel{GoodExposure, OverExposure, UnderExposure}
   112  }
   113  
   114  // FindSimilarMatchMode enumerates the values for find similar match mode.
   115  type FindSimilarMatchMode string
   116  
   117  const (
   118  	// MatchFace ...
   119  	MatchFace FindSimilarMatchMode = "matchFace"
   120  	// MatchPerson ...
   121  	MatchPerson FindSimilarMatchMode = "matchPerson"
   122  )
   123  
   124  // PossibleFindSimilarMatchModeValues returns an array of possible values for the FindSimilarMatchMode const type.
   125  func PossibleFindSimilarMatchModeValues() []FindSimilarMatchMode {
   126  	return []FindSimilarMatchMode{MatchFace, MatchPerson}
   127  }
   128  
   129  // Gender enumerates the values for gender.
   130  type Gender string
   131  
   132  const (
   133  	// Female ...
   134  	Female Gender = "female"
   135  	// Male ...
   136  	Male Gender = "male"
   137  )
   138  
   139  // PossibleGenderValues returns an array of possible values for the Gender const type.
   140  func PossibleGenderValues() []Gender {
   141  	return []Gender{Female, Male}
   142  }
   143  
   144  // GlassesType enumerates the values for glasses type.
   145  type GlassesType string
   146  
   147  const (
   148  	// NoGlasses ...
   149  	NoGlasses GlassesType = "noGlasses"
   150  	// ReadingGlasses ...
   151  	ReadingGlasses GlassesType = "readingGlasses"
   152  	// Sunglasses ...
   153  	Sunglasses GlassesType = "sunglasses"
   154  	// SwimmingGoggles ...
   155  	SwimmingGoggles GlassesType = "swimmingGoggles"
   156  )
   157  
   158  // PossibleGlassesTypeValues returns an array of possible values for the GlassesType const type.
   159  func PossibleGlassesTypeValues() []GlassesType {
   160  	return []GlassesType{NoGlasses, ReadingGlasses, Sunglasses, SwimmingGoggles}
   161  }
   162  
   163  // HairColorType enumerates the values for hair color type.
   164  type HairColorType string
   165  
   166  const (
   167  	// Black ...
   168  	Black HairColorType = "black"
   169  	// Blond ...
   170  	Blond HairColorType = "blond"
   171  	// Brown ...
   172  	Brown HairColorType = "brown"
   173  	// Gray ...
   174  	Gray HairColorType = "gray"
   175  	// Other ...
   176  	Other HairColorType = "other"
   177  	// Red ...
   178  	Red HairColorType = "red"
   179  	// Unknown ...
   180  	Unknown HairColorType = "unknown"
   181  	// White ...
   182  	White HairColorType = "white"
   183  )
   184  
   185  // PossibleHairColorTypeValues returns an array of possible values for the HairColorType const type.
   186  func PossibleHairColorTypeValues() []HairColorType {
   187  	return []HairColorType{Black, Blond, Brown, Gray, Other, Red, Unknown, White}
   188  }
   189  
   190  // NoiseLevel enumerates the values for noise level.
   191  type NoiseLevel string
   192  
   193  const (
   194  	// NoiseLevelHigh ...
   195  	NoiseLevelHigh NoiseLevel = "High"
   196  	// NoiseLevelLow ...
   197  	NoiseLevelLow NoiseLevel = "Low"
   198  	// NoiseLevelMedium ...
   199  	NoiseLevelMedium NoiseLevel = "Medium"
   200  )
   201  
   202  // PossibleNoiseLevelValues returns an array of possible values for the NoiseLevel const type.
   203  func PossibleNoiseLevelValues() []NoiseLevel {
   204  	return []NoiseLevel{NoiseLevelHigh, NoiseLevelLow, NoiseLevelMedium}
   205  }
   206  
   207  // OperationStatusType enumerates the values for operation status type.
   208  type OperationStatusType string
   209  
   210  const (
   211  	// Failed ...
   212  	Failed OperationStatusType = "failed"
   213  	// Notstarted ...
   214  	Notstarted OperationStatusType = "notstarted"
   215  	// Running ...
   216  	Running OperationStatusType = "running"
   217  	// Succeeded ...
   218  	Succeeded OperationStatusType = "succeeded"
   219  )
   220  
   221  // PossibleOperationStatusTypeValues returns an array of possible values for the OperationStatusType const type.
   222  func PossibleOperationStatusTypeValues() []OperationStatusType {
   223  	return []OperationStatusType{Failed, Notstarted, Running, Succeeded}
   224  }
   225  
   226  // RecognitionModel enumerates the values for recognition model.
   227  type RecognitionModel string
   228  
   229  const (
   230  	// Recognition01 ...
   231  	Recognition01 RecognitionModel = "recognition_01"
   232  	// Recognition02 ...
   233  	Recognition02 RecognitionModel = "recognition_02"
   234  	// Recognition03 ...
   235  	Recognition03 RecognitionModel = "recognition_03"
   236  )
   237  
   238  // PossibleRecognitionModelValues returns an array of possible values for the RecognitionModel const type.
   239  func PossibleRecognitionModelValues() []RecognitionModel {
   240  	return []RecognitionModel{Recognition01, Recognition02, Recognition03}
   241  }
   242  
   243  // SnapshotApplyMode enumerates the values for snapshot apply mode.
   244  type SnapshotApplyMode string
   245  
   246  const (
   247  	// CreateNew ...
   248  	CreateNew SnapshotApplyMode = "CreateNew"
   249  )
   250  
   251  // PossibleSnapshotApplyModeValues returns an array of possible values for the SnapshotApplyMode const type.
   252  func PossibleSnapshotApplyModeValues() []SnapshotApplyMode {
   253  	return []SnapshotApplyMode{CreateNew}
   254  }
   255  
   256  // SnapshotObjectType enumerates the values for snapshot object type.
   257  type SnapshotObjectType string
   258  
   259  const (
   260  	// SnapshotObjectTypeFaceList ...
   261  	SnapshotObjectTypeFaceList SnapshotObjectType = "FaceList"
   262  	// SnapshotObjectTypeLargeFaceList ...
   263  	SnapshotObjectTypeLargeFaceList SnapshotObjectType = "LargeFaceList"
   264  	// SnapshotObjectTypeLargePersonGroup ...
   265  	SnapshotObjectTypeLargePersonGroup SnapshotObjectType = "LargePersonGroup"
   266  	// SnapshotObjectTypePersonGroup ...
   267  	SnapshotObjectTypePersonGroup SnapshotObjectType = "PersonGroup"
   268  )
   269  
   270  // PossibleSnapshotObjectTypeValues returns an array of possible values for the SnapshotObjectType const type.
   271  func PossibleSnapshotObjectTypeValues() []SnapshotObjectType {
   272  	return []SnapshotObjectType{SnapshotObjectTypeFaceList, SnapshotObjectTypeLargeFaceList, SnapshotObjectTypeLargePersonGroup, SnapshotObjectTypePersonGroup}
   273  }
   274  
   275  // TrainingStatusType enumerates the values for training status type.
   276  type TrainingStatusType string
   277  
   278  const (
   279  	// TrainingStatusTypeFailed ...
   280  	TrainingStatusTypeFailed TrainingStatusType = "failed"
   281  	// TrainingStatusTypeNonstarted ...
   282  	TrainingStatusTypeNonstarted TrainingStatusType = "nonstarted"
   283  	// TrainingStatusTypeRunning ...
   284  	TrainingStatusTypeRunning TrainingStatusType = "running"
   285  	// TrainingStatusTypeSucceeded ...
   286  	TrainingStatusTypeSucceeded TrainingStatusType = "succeeded"
   287  )
   288  
   289  // PossibleTrainingStatusTypeValues returns an array of possible values for the TrainingStatusType const type.
   290  func PossibleTrainingStatusTypeValues() []TrainingStatusType {
   291  	return []TrainingStatusType{TrainingStatusTypeFailed, TrainingStatusTypeNonstarted, TrainingStatusTypeRunning, TrainingStatusTypeSucceeded}
   292  }
   293  

View as plain text