Socket
Socket
Sign inDemoInstall

@azure/cognitiveservices-face

Package Overview
Dependencies
25
Maintainers
6
Versions
8
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

Comparing version 4.0.0 to 4.1.0

2

dist/cognitiveservices-face.min.js

@@ -1,1 +0,1 @@

!function(e,a){"object"==typeof exports&&"undefined"!=typeof module?a(exports,require("@azure/ms-rest-js")):"function"==typeof define&&define.amd?define(["exports","@azure/ms-rest-js"],a):a(((e=e||self).Azure=e.Azure||{},e.Azure.CognitiveservicesFace={}),e.msRest)}(this,function(e,o){"use strict";var t=function(e,a){return(t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,a){e.__proto__=a}||function(e,a){for(var r in a)a.hasOwnProperty(r)&&(e[r]=a[r])})(e,a)};function a(e,a){function r(){this.constructor=e}t(e,a),e.prototype=null===a?Object.create(a):(r.prototype=a.prototype,new r)}var r=function(){return(r=Object.assign||function(e){for(var a,r=1,t=arguments.length;r<t;r++)for(var s in a=arguments[r])Object.prototype.hasOwnProperty.call(a,s)&&(e[s]=a[s]);return e}).apply(this,arguments)},s=Object.freeze({}),i={serializedName:"Error",type:{name:"Composite",className:"ErrorModel",modelProperties:{code:{serializedName:"code",type:{name:"String"}},message:{serializedName:"message",type:{name:"String"}}}}},p={serializedName:"APIError",type:{name:"Composite",className:"APIError",modelProperties:{error:{serializedName:"error",type:{name:"Composite",className:"ErrorModel"}}}}},n={serializedName:"FaceRectangle",type:{name:"Composite",className:"FaceRectangle",modelProperties:{width:{required:!0,serializedName:"width",type:{name:"Number"}},height:{required:!0,serializedName:"height",type:{name:"Number"}},left:{required:!0,serializedName:"left",type:{name:"Number"}},top:{required:!0,serializedName:"top",type:{name:"Number"}}}}},d={serializedName:"Coordinate",type:{name:"Composite",className:"Coordinate",modelProperties:{x:{required:!0,serializedName:"x",type:{name:"Number"}},y:{required:!0,serializedName:"y",type:{name:"Number"}}}}},l={serializedName:"FaceLandmarks",type:{name:"Composite",className:"FaceLandmarks",modelProperties:{pupilLeft:{serializedName:"pupilLeft",type:{name:"Composite",className:"Coordinate"}},pupilRight:{serializedName:"pupilRight",type:{name:"Composite",className:"Coordinate"}},noseTip:{serializedName:"noseTip",type:{name:"Composite",className:"Coordinate"}},mouthLeft:{serializedName:"mouthLeft",type:{name:"Composite",className:"Coordinate"}},mouthRight:{serializedName:"mouthRight",type:{name:"Composite",className:"Coordinate"}},eyebrowLeftOuter:{serializedName:"eyebrowLeftOuter",type:{name:"Composite",className:"Coordinate"}},eyebrowLeftInner:{serializedName:"eyebrowLeftInner",type:{name:"Composite",className:"Coordinate"}},eyeLeftOuter:{serializedName:"eyeLeftOuter",type:{name:"Composite",className:"Coordinate"}},eyeLeftTop:{serializedName:"eyeLeftTop",type:{name:"Composite",className:"Coordinate"}},eyeLeftBottom:{serializedName:"eyeLeftBottom",type:{name:"Composite",className:"Coordinate"}},eyeLeftInner:{serializedName:"eyeLeftInner",type:{name:"Composite",className:"Coordinate"}},eyebrowRightInner:{serializedName:"eyebrowRightInner",type:{name:"Composite",className:"Coordinate"}},eyebrowRightOuter:{serializedName:"eyebrowRightOuter",type:{name:"Composite",className:"Coordinate"}},eyeRightInner:{serializedName:"eyeRightInner",type:{name:"Composite",className:"Coordinate"}},eyeRightTop:{serializedName:"eyeRightTop",type:{name:"Composite",className:"Coordinate"}},eyeRightBottom:{serializedName:"eyeRightBottom",type:{name:"Composite",className:"Coordinate"}},eyeRightOuter:{serializedName:"eyeRightOuter",type:{name:"Composite",className:"Coordinate"}},noseRootLeft:{serializedName:"noseRootLeft",type:{name:"Composite",className:"Coordinate"}},noseRootRight:{serializedName:"noseRootRight",type:{name:"Composite",className:"Coordinate"}},noseLeftAlarTop:{serializedName:"noseLeftAlarTop",type:{name:"Composite",className:"Coordinate"}},noseRightAlarTop:{serializedName:"noseRightAlarTop",type:{name:"Composite",className:"Coordinate"}},noseLeftAlarOutTip:{serializedName:"noseLeftAlarOutTip",type:{name:"Composite",className:"Coordinate"}},noseRightAlarOutTip:{serializedName:"noseRightAlarOutTip",type:{name:"Composite",className:"Coordinate"}},upperLipTop:{serializedName:"upperLipTop",type:{name:"Composite",className:"Coordinate"}},upperLipBottom:{serializedName:"upperLipBottom",type:{name:"Composite",className:"Coordinate"}},underLipTop:{serializedName:"underLipTop",type:{name:"Composite",className:"Coordinate"}},underLipBottom:{serializedName:"underLipBottom",type:{name:"Composite",className:"Coordinate"}}}}},m={serializedName:"FacialHair",type:{name:"Composite",className:"FacialHair",modelProperties:{moustache:{nullable:!1,serializedName:"moustache",type:{name:"Number"}},beard:{nullable:!1,serializedName:"beard",type:{name:"Number"}},sideburns:{nullable:!1,serializedName:"sideburns",type:{name:"Number"}}}}},u={serializedName:"HeadPose",type:{name:"Composite",className:"HeadPose",modelProperties:{roll:{nullable:!1,serializedName:"roll",type:{name:"Number"}},yaw:{nullable:!1,serializedName:"yaw",type:{name:"Number"}},pitch:{nullable:!1,serializedName:"pitch",type:{name:"Number"}}}}},c={serializedName:"Emotion",type:{name:"Composite",className:"Emotion",modelProperties:{anger:{nullable:!1,serializedName:"anger",type:{name:"Number"}},contempt:{nullable:!1,serializedName:"contempt",type:{name:"Number"}},disgust:{nullable:!1,serializedName:"disgust",type:{name:"Number"}},fear:{nullable:!1,serializedName:"fear",type:{name:"Number"}},happiness:{nullable:!1,serializedName:"happiness",type:{name:"Number"}},neutral:{nullable:!1,serializedName:"neutral",type:{name:"Number"}},sadness:{nullable:!1,serializedName:"sadness",type:{name:"Number"}},surprise:{nullable:!1,serializedName:"surprise",type:{name:"Number"}}}}},y={serializedName:"HairColor",type:{name:"Composite",className:"HairColor",modelProperties:{color:{nullable:!1,serializedName:"color",type:{name:"Enum",allowedValues:["unknown","white","gray","blond","brown","red","black","other"]}},confidence:{nullable:!1,serializedName:"confidence",type:{name:"Number"}}}}},h={serializedName:"Hair",type:{name:"Composite",className:"Hair",modelProperties:{bald:{nullable:!1,serializedName:"bald",type:{name:"Number"}},invisible:{nullable:!1,serializedName:"invisible",type:{name:"Boolean"}},hairColor:{serializedName:"hairColor",type:{name:"Sequence",element:{type:{name:"Composite",className:"HairColor"}}}}}}},N={serializedName:"Makeup",type:{name:"Composite",className:"Makeup",modelProperties:{eyeMakeup:{nullable:!1,serializedName:"eyeMakeup",type:{name:"Boolean"}},lipMakeup:{nullable:!1,serializedName:"lipMakeup",type:{name:"Boolean"}}}}},f={serializedName:"Occlusion",type:{name:"Composite",className:"Occlusion",modelProperties:{foreheadOccluded:{nullable:!1,serializedName:"foreheadOccluded",type:{name:"Boolean"}},eyeOccluded:{nullable:!1,serializedName:"eyeOccluded",type:{name:"Boolean"}},mouthOccluded:{nullable:!1,serializedName:"mouthOccluded",type:{name:"Boolean"}}}}},g={serializedName:"Accessory",type:{name:"Composite",className:"Accessory",modelProperties:{type:{nullable:!1,serializedName:"type",type:{name:"Enum",allowedValues:["headWear","glasses","mask"]}},confidence:{nullable:!1,serializedName:"confidence",type:{name:"Number"}}}}},P={serializedName:"Blur",type:{name:"Composite",className:"Blur",modelProperties:{blurLevel:{nullable:!1,serializedName:"blurLevel",type:{name:"Enum",allowedValues:["Low","Medium","High"]}},value:{nullable:!1,serializedName:"value",type:{name:"Number"}}}}},z={serializedName:"Exposure",type:{name:"Composite",className:"Exposure",modelProperties:{exposureLevel:{nullable:!1,serializedName:"exposureLevel",type:{name:"Enum",allowedValues:["UnderExposure","GoodExposure","OverExposure"]}},value:{nullable:!1,serializedName:"value",type:{name:"Number"}}}}},I={serializedName:"Noise",type:{name:"Composite",className:"Noise",modelProperties:{noiseLevel:{nullable:!1,serializedName:"noiseLevel",type:{name:"Enum",allowedValues:["Low","Medium","High"]}},value:{nullable:!1,serializedName:"value",type:{name:"Number"}}}}},q={serializedName:"FaceAttributes",type:{name:"Composite",className:"FaceAttributes",modelProperties:{age:{serializedName:"age",type:{name:"Number"}},gender:{serializedName:"gender",type:{name:"Enum",allowedValues:["male","female"]}},smile:{serializedName:"smile",type:{name:"Number"}},facialHair:{serializedName:"facialHair",type:{name:"Composite",className:"FacialHair"}},glasses:{serializedName:"glasses",type:{name:"Enum",allowedValues:["noGlasses","readingGlasses","sunglasses","swimmingGoggles"]}},headPose:{serializedName:"headPose",type:{name:"Composite",className:"HeadPose"}},emotion:{serializedName:"emotion",type:{name:"Composite",className:"Emotion"}},hair:{serializedName:"hair",type:{name:"Composite",className:"Hair"}},makeup:{serializedName:"makeup",type:{name:"Composite",className:"Makeup"}},occlusion:{serializedName:"occlusion",type:{name:"Composite",className:"Occlusion"}},accessories:{serializedName:"accessories",type:{name:"Sequence",element:{type:{name:"Composite",className:"Accessory"}}}},blur:{serializedName:"blur",type:{name:"Composite",className:"Blur"}},exposure:{serializedName:"exposure",type:{name:"Composite",className:"Exposure"}},noise:{serializedName:"noise",type:{name:"Composite",className:"Noise"}}}}},M={serializedName:"DetectedFace",type:{name:"Composite",className:"DetectedFace",modelProperties:{faceId:{serializedName:"faceId",type:{name:"Uuid"}},recognitionModel:{nullable:!1,serializedName:"recognitionModel",defaultValue:"recognition_01",type:{name:"String"}},faceRectangle:{required:!0,serializedName:"faceRectangle",type:{name:"Composite",className:"FaceRectangle"}},faceLandmarks:{serializedName:"faceLandmarks",type:{name:"Composite",className:"FaceLandmarks"}},faceAttributes:{serializedName:"faceAttributes",type:{name:"Composite",className:"FaceAttributes"}}}}},b={serializedName:"FindSimilarRequest",type:{name:"Composite",className:"FindSimilarRequest",modelProperties:{faceId:{required:!0,serializedName:"faceId",type:{name:"Uuid"}},faceListId:{serializedName:"faceListId",constraints:{MaxLength:64,Pattern:/^[a-z0-9-_]+$/},type:{name:"String"}},largeFaceListId:{serializedName:"largeFaceListId",constraints:{MaxLength:64,Pattern:/^[a-z0-9-_]+$/},type:{name:"String"}},faceIds:{serializedName:"faceIds",constraints:{MaxItems:1e3},type:{name:"Sequence",element:{type:{name:"Uuid"}}}},maxNumOfCandidatesReturned:{serializedName:"maxNumOfCandidatesReturned",defaultValue:20,constraints:{InclusiveMaximum:1e3,InclusiveMinimum:1},type:{name:"Number"}},mode:{nullable:!1,serializedName:"mode",defaultValue:"matchPerson",type:{name:"Enum",allowedValues:["matchPerson","matchFace"]}}}}},F={serializedName:"SimilarFace",type:{name:"Composite",className:"SimilarFace",modelProperties:{faceId:{serializedName:"faceId",type:{name:"Uuid"}},persistedFaceId:{serializedName:"persistedFaceId",type:{name:"Uuid"}},confidence:{required:!0,serializedName:"confidence",type:{name:"Number"}}}}},L={serializedName:"GroupRequest",type:{name:"Composite",className:"GroupRequest",modelProperties:{faceIds:{required:!0,serializedName:"faceIds",constraints:{MaxItems:1e3},type:{name:"Sequence",element:{type:{name:"Uuid"}}}}}}},C={serializedName:"GroupResult",type:{name:"Composite",className:"GroupResult",modelProperties:{groups:{required:!0,serializedName:"groups",type:{name:"Sequence",element:{type:{name:"Sequence",element:{type:{name:"Uuid"}}}}}},messyGroup:{serializedName:"messyGroup",type:{name:"Sequence",element:{type:{name:"Uuid"}}}}}}},R={serializedName:"IdentifyRequest",type:{name:"Composite",className:"IdentifyRequest",modelProperties:{faceIds:{required:!0,serializedName:"faceIds",constraints:{MaxItems:10},type:{name:"Sequence",element:{type:{name:"Uuid"}}}},personGroupId:{serializedName:"personGroupId",constraints:{MaxLength:64,Pattern:/^[a-z0-9-_]+$/},type:{name:"String"}},largePersonGroupId:{serializedName:"largePersonGroupId",constraints:{MaxLength:64,Pattern:/^[a-z0-9-_]+$/},type:{name:"String"}},maxNumOfCandidatesReturned:{serializedName:"maxNumOfCandidatesReturned",defaultValue:1,constraints:{InclusiveMaximum:5,InclusiveMinimum:1},type:{name:"Number"}},confidenceThreshold:{serializedName:"confidenceThreshold",type:{name:"Number"}}}}},S={serializedName:"IdentifyCandidate",type:{name:"Composite",className:"IdentifyCandidate",modelProperties:{personId:{required:!0,serializedName:"personId",type:{name:"Uuid"}},confidence:{required:!0,serializedName:"confidence",type:{name:"Number"}}}}},G={serializedName:"IdentifyResult",type:{name:"Composite",className:"IdentifyResult",modelProperties:{faceId:{required:!0,serializedName:"faceId",type:{name:"Uuid"}},candidates:{required:!0,serializedName:"candidates",type:{name:"Sequence",element:{type:{name:"Composite",className:"IdentifyCandidate"}}}}}}},O={serializedName:"VerifyFaceToPersonRequest",type:{name:"Composite",className:"VerifyFaceToPersonRequest",modelProperties:{faceId:{required:!0,serializedName:"faceId",type:{name:"Uuid"}},personGroupId:{serializedName:"personGroupId",constraints:{MaxLength:64,Pattern:/^[a-z0-9-_]+$/},type:{name:"String"}},largePersonGroupId:{serializedName:"largePersonGroupId",constraints:{MaxLength:64,Pattern:/^[a-z0-9-_]+$/},type:{name:"String"}},personId:{required:!0,serializedName:"personId",type:{name:"Uuid"}}}}},T={serializedName:"VerifyFaceToFaceRequest",type:{name:"Composite",className:"VerifyFaceToFaceRequest",modelProperties:{faceId1:{required:!0,serializedName:"faceId1",type:{name:"Uuid"}},faceId2:{required:!0,serializedName:"faceId2",type:{name:"Uuid"}}}}},E={serializedName:"VerifyResult",type:{name:"Composite",className:"VerifyResult",modelProperties:{isIdentical:{required:!0,serializedName:"isIdentical",type:{name:"Boolean"}},confidence:{required:!0,serializedName:"confidence",type:{name:"Number"}}}}},D={serializedName:"PersistedFace",type:{name:"Composite",className:"PersistedFace",modelProperties:{persistedFaceId:{required:!0,serializedName:"persistedFaceId",type:{name:"Uuid"}},userData:{serializedName:"userData",constraints:{MaxLength:1024},type:{name:"String"}}}}},A={serializedName:"NameAndUserDataContract",type:{name:"Composite",className:"NameAndUserDataContract",modelProperties:{name:{serializedName:"name",constraints:{MaxLength:128},type:{name:"String"}},userData:{serializedName:"userData",constraints:{MaxLength:16384},type:{name:"String"}}}}},U={serializedName:"MetaDataContract",type:{name:"Composite",className:"MetaDataContract",modelProperties:r(r({},A.type.modelProperties),{recognitionModel:{nullable:!1,serializedName:"recognitionModel",defaultValue:"recognition_01",type:{name:"String"}}})}},x={serializedName:"FaceList",type:{name:"Composite",className:"FaceList",modelProperties:r(r({},U.type.modelProperties),{faceListId:{required:!0,serializedName:"faceListId",constraints:{MaxLength:64,Pattern:/^[a-z0-9-_]+$/},type:{name:"String"}},persistedFaces:{serializedName:"persistedFaces",type:{name:"Sequence",element:{type:{name:"Composite",className:"PersistedFace"}}}}})}},w={serializedName:"PersonGroup",type:{name:"Composite",className:"PersonGroup",modelProperties:r(r({},U.type.modelProperties),{personGroupId:{required:!0,serializedName:"personGroupId",constraints:{MaxLength:64,Pattern:/^[a-z0-9-_]+$/},type:{name:"String"}}})}},B={serializedName:"Person",type:{name:"Composite",className:"Person",modelProperties:r(r({},A.type.modelProperties),{personId:{required:!0,serializedName:"personId",type:{name:"Uuid"}},persistedFaceIds:{serializedName:"persistedFaceIds",type:{name:"Sequence",element:{type:{name:"Uuid"}}}}})}},v={serializedName:"LargeFaceList",type:{name:"Composite",className:"LargeFaceList",modelProperties:r(r({},U.type.modelProperties),{largeFaceListId:{required:!0,serializedName:"largeFaceListId",constraints:{MaxLength:64,Pattern:/^[a-z0-9-_]+$/},type:{name:"String"}}})}},H={serializedName:"LargePersonGroup",type:{name:"Composite",className:"LargePersonGroup",modelProperties:r(r({},U.type.modelProperties),{largePersonGroupId:{required:!0,serializedName:"largePersonGroupId",constraints:{MaxLength:64,Pattern:/^[a-z0-9-_]+$/},type:{name:"String"}}})}},V={serializedName:"UpdateFaceRequest",type:{name:"Composite",className:"UpdateFaceRequest",modelProperties:{userData:{serializedName:"userData",constraints:{MaxLength:1024},type:{name:"String"}}}}},k={serializedName:"TrainingStatus",type:{name:"Composite",className:"TrainingStatus",modelProperties:{status:{required:!0,serializedName:"status",type:{name:"Enum",allowedValues:["nonstarted","running","succeeded","failed"]}},created:{required:!0,serializedName:"createdDateTime",type:{name:"DateTime"}},lastAction:{serializedName:"lastActionDateTime",type:{name:"DateTime"}},lastSuccessfulTraining:{serializedName:"lastSuccessfulTrainingDateTime",type:{name:"DateTime"}},message:{serializedName:"message",type:{name:"String"}}}}},_={serializedName:"ApplySnapshotRequest",type:{name:"Composite",className:"ApplySnapshotRequest",modelProperties:{objectId:{required:!0,serializedName:"objectId",constraints:{MaxLength:64,Pattern:/^[a-z0-9-_]+$/},type:{name:"String"}},mode:{nullable:!1,serializedName:"mode",defaultValue:"CreateNew",type:{name:"Enum",allowedValues:["CreateNew"]}}}}},j={serializedName:"Snapshot",type:{name:"Composite",className:"Snapshot",modelProperties:{id:{required:!0,serializedName:"id",type:{name:"Uuid"}},account:{required:!0,serializedName:"account",type:{name:"String"}},type:{required:!0,serializedName:"type",type:{name:"Enum",allowedValues:["FaceList","LargeFaceList","LargePersonGroup","PersonGroup"]}},applyScope:{required:!0,serializedName:"applyScope",type:{name:"Sequence",element:{type:{name:"Uuid"}}}},userData:{serializedName:"userData",constraints:{MaxLength:16384},type:{name:"String"}},createdTime:{required:!0,serializedName:"createdTime",type:{name:"DateTime"}},lastUpdateTime:{required:!0,serializedName:"lastUpdateTime",type:{name:"DateTime"}}}}},$={serializedName:"TakeSnapshotRequest",type:{name:"Composite",className:"TakeSnapshotRequest",modelProperties:{type:{required:!0,serializedName:"type",type:{name:"Enum",allowedValues:["FaceList","LargeFaceList","LargePersonGroup","PersonGroup"]}},objectId:{required:!0,serializedName:"objectId",constraints:{MaxLength:64,Pattern:/^[a-z0-9-_]+$/},type:{name:"String"}},applyScope:{required:!0,serializedName:"applyScope",type:{name:"Sequence",element:{type:{name:"Uuid"}}}},userData:{serializedName:"userData",constraints:{MaxLength:16384},type:{name:"String"}}}}},Q={serializedName:"UpdateSnapshotRequest",type:{name:"Composite",className:"UpdateSnapshotRequest",modelProperties:{applyScope:{serializedName:"applyScope",type:{name:"Sequence",element:{type:{name:"Uuid"}}}},userData:{serializedName:"userData",constraints:{MaxLength:16384},type:{name:"String"}}}}},W={serializedName:"OperationStatus",type:{name:"Composite",className:"OperationStatus",modelProperties:{status:{required:!0,serializedName:"status",type:{name:"Enum",allowedValues:["notstarted","running","succeeded","failed"]}},createdTime:{required:!0,serializedName:"createdTime",type:{name:"DateTime"}},lastActionTime:{serializedName:"lastActionTime",type:{name:"DateTime"}},resourceLocation:{serializedName:"resourceLocation",type:{name:"String"}},message:{serializedName:"message",type:{name:"String"}}}}},J={serializedName:"ImageUrl",type:{name:"Composite",className:"ImageUrl",modelProperties:{url:{required:!0,serializedName:"url",type:{name:"String"}}}}},K={serializedName:"snapshot-take-headers",type:{name:"Composite",className:"SnapshotTakeHeaders",modelProperties:{operationLocation:{serializedName:"operation-location",type:{name:"String"}}}}},X={serializedName:"snapshot-apply-headers",type:{name:"Composite",className:"SnapshotApplyHeaders",modelProperties:{operationLocation:{serializedName:"operation-location",type:{name:"String"}}}}},Y=Object.freeze({ErrorModel:i,APIError:p,FaceRectangle:n,Coordinate:d,FaceLandmarks:l,FacialHair:m,HeadPose:u,Emotion:c,HairColor:y,Hair:h,Makeup:N,Occlusion:f,Accessory:g,Blur:P,Exposure:z,Noise:I,FaceAttributes:q,DetectedFace:M,FindSimilarRequest:b,SimilarFace:F,GroupRequest:L,GroupResult:C,IdentifyRequest:R,IdentifyCandidate:S,IdentifyResult:G,VerifyFaceToPersonRequest:O,VerifyFaceToFaceRequest:T,VerifyResult:E,PersistedFace:D,NameAndUserDataContract:A,MetaDataContract:U,FaceList:x,PersonGroup:w,Person:B,LargeFaceList:v,LargePersonGroup:H,UpdateFaceRequest:V,TrainingStatus:k,ApplySnapshotRequest:_,Snapshot:j,TakeSnapshotRequest:$,UpdateSnapshotRequest:Q,OperationStatus:W,ImageUrl:J,SnapshotTakeHeaders:K,SnapshotApplyHeaders:X}),Z=Object.freeze({Accessory:g,APIError:p,Blur:P,Coordinate:d,DetectedFace:M,Emotion:c,ErrorModel:i,Exposure:z,FaceAttributes:q,FaceLandmarks:l,FaceRectangle:n,FacialHair:m,FindSimilarRequest:b,GroupRequest:L,GroupResult:C,Hair:h,HairColor:y,HeadPose:u,IdentifyCandidate:S,IdentifyRequest:R,IdentifyResult:G,ImageUrl:J,Makeup:N,Noise:I,Occlusion:f,SimilarFace:F,VerifyFaceToFaceRequest:T,VerifyFaceToPersonRequest:O,VerifyResult:E}),ee={parameterPath:["options","applyScope"],mapper:{serializedName:"applyScope",type:{name:"Sequence",element:{type:{name:"Uuid"}}}},collectionFormat:o.QueryCollectionFormat.Csv},ae={parameterPath:["options","detectionModel"],mapper:{serializedName:"detectionModel",defaultValue:"detection_01",type:{name:"String"}}},re={parameterPath:"endpoint",mapper:{required:!0,serializedName:"Endpoint",defaultValue:"",type:{name:"String"}},skipEncoding:!0},te={parameterPath:"faceListId",mapper:{required:!0,serializedName:"faceListId",constraints:{MaxLength:64,Pattern:/^[a-z0-9-_]+$/},type:{name:"String"}}},se={parameterPath:"largeFaceListId",mapper:{required:!0,serializedName:"largeFaceListId",constraints:{MaxLength:64,Pattern:/^[a-z0-9-_]+$/},type:{name:"String"}}},oe={parameterPath:"largePersonGroupId",mapper:{required:!0,serializedName:"largePersonGroupId",constraints:{MaxLength:64,Pattern:/^[a-z0-9-_]+$/},type:{name:"String"}}},ie={parameterPath:"persistedFaceId",mapper:{required:!0,serializedName:"persistedFaceId",type:{name:"Uuid"}}},pe={parameterPath:"personGroupId",mapper:{required:!0,serializedName:"personGroupId",constraints:{MaxLength:64,Pattern:/^[a-z0-9-_]+$/},type:{name:"String"}}},ne={parameterPath:"personId",mapper:{required:!0,serializedName:"personId",type:{name:"Uuid"}}},de={parameterPath:["options","recognitionModel"],mapper:{serializedName:"recognitionModel",defaultValue:"recognition_01",type:{name:"String"}}},le={parameterPath:["options","returnFaceAttributes"],mapper:{serializedName:"returnFaceAttributes",type:{name:"Sequence",element:{type:{name:"Enum",allowedValues:["age","gender","headPose","smile","facialHair","glasses","emotion","hair","makeup","occlusion","accessories","blur","exposure","noise"]}}}},collectionFormat:o.QueryCollectionFormat.Csv},me={parameterPath:["options","returnFaceId"],mapper:{serializedName:"returnFaceId",defaultValue:!0,type:{name:"Boolean"}}},ue={parameterPath:["options","returnFaceLandmarks"],mapper:{serializedName:"returnFaceLandmarks",defaultValue:!1,type:{name:"Boolean"}}},ce={parameterPath:["options","returnRecognitionModel"],mapper:{serializedName:"returnRecognitionModel",defaultValue:!1,type:{name:"Boolean"}}},ye={parameterPath:"snapshotId",mapper:{required:!0,serializedName:"snapshotId",type:{name:"Uuid"}}},he={parameterPath:["options","start"],mapper:{serializedName:"start",type:{name:"String"}}},Ne={parameterPath:["options","start"],mapper:{serializedName:"start",constraints:{MaxLength:64},type:{name:"String"}}},fe={parameterPath:["options","targetFace"],mapper:{serializedName:"targetFace",type:{name:"Sequence",element:{type:{name:"Number"}}}},collectionFormat:o.QueryCollectionFormat.Csv},ge={parameterPath:["options","top"],mapper:{serializedName:"top",constraints:{InclusiveMaximum:1e3,InclusiveMinimum:1},type:{name:"Number"}}},Pe={parameterPath:["options","top"],mapper:{serializedName:"top",defaultValue:1e3,constraints:{InclusiveMaximum:1e3,InclusiveMinimum:1},type:{name:"Number"}}},ze={parameterPath:["options","userData"],mapper:{serializedName:"userData",constraints:{MaxLength:1024},type:{name:"String"}}},Ie=(qe.prototype.findSimilar=function(e,a,r){return this.client.sendOperationRequest({faceId:e,options:a},be,r)},qe.prototype.group=function(e,a,r){return this.client.sendOperationRequest({faceIds:e,options:a},Fe,r)},qe.prototype.identify=function(e,a,r){return this.client.sendOperationRequest({faceIds:e,options:a},Le,r)},qe.prototype.verifyFaceToFace=function(e,a,r,t){return this.client.sendOperationRequest({faceId1:e,faceId2:a,options:r},Ce,t)},qe.prototype.detectWithUrl=function(e,a,r){return this.client.sendOperationRequest({url:e,options:a},Re,r)},qe.prototype.verifyFaceToPerson=function(e,a,r,t){return this.client.sendOperationRequest({faceId:e,personId:a,options:r},Se,t)},qe.prototype.detectWithStream=function(e,a,r){return this.client.sendOperationRequest({image:e,options:a},Ge,r)},qe);function qe(e){this.client=e}var Me=new o.Serializer(Z),be={httpMethod:"POST",path:"findsimilars",urlParameters:[re],requestBody:{parameterPath:{faceId:"faceId",faceListId:["options","faceListId"],largeFaceListId:["options","largeFaceListId"],faceIds:["options","faceIds"],maxNumOfCandidatesReturned:["options","maxNumOfCandidatesReturned"],mode:["options","mode"]},mapper:r(r({},b),{required:!0})},responses:{200:{bodyMapper:{serializedName:"parsedResponse",type:{name:"Sequence",element:{type:{name:"Composite",className:"SimilarFace"}}}}},default:{bodyMapper:p}},serializer:Me},Fe={httpMethod:"POST",path:"group",urlParameters:[re],requestBody:{parameterPath:{faceIds:"faceIds"},mapper:r(r({},L),{required:!0})},responses:{200:{bodyMapper:C},default:{bodyMapper:p}},serializer:Me},Le={httpMethod:"POST",path:"identify",urlParameters:[re],requestBody:{parameterPath:{faceIds:"faceIds",personGroupId:["options","personGroupId"],largePersonGroupId:["options","largePersonGroupId"],maxNumOfCandidatesReturned:["options","maxNumOfCandidatesReturned"],confidenceThreshold:["options","confidenceThreshold"]},mapper:r(r({},R),{required:!0})},responses:{200:{bodyMapper:{serializedName:"parsedResponse",type:{name:"Sequence",element:{type:{name:"Composite",className:"IdentifyResult"}}}}},default:{bodyMapper:p}},serializer:Me},Ce={httpMethod:"POST",path:"verify",urlParameters:[re],requestBody:{parameterPath:{faceId1:"faceId1",faceId2:"faceId2"},mapper:r(r({},T),{required:!0})},responses:{200:{bodyMapper:E},default:{bodyMapper:p}},serializer:Me},Re={httpMethod:"POST",path:"detect",urlParameters:[re],queryParameters:[me,ue,le,de,ce,ae],requestBody:{parameterPath:{url:"url"},mapper:r(r({},J),{required:!0})},responses:{200:{bodyMapper:{serializedName:"parsedResponse",type:{name:"Sequence",element:{type:{name:"Composite",className:"DetectedFace"}}}}},default:{bodyMapper:p}},serializer:Me},Se={httpMethod:"POST",path:"verify",urlParameters:[re],requestBody:{parameterPath:{faceId:"faceId",personGroupId:["options","personGroupId"],largePersonGroupId:["options","largePersonGroupId"],personId:"personId"},mapper:r(r({},O),{required:!0})},responses:{200:{bodyMapper:E},default:{bodyMapper:p}},serializer:Me},Ge={httpMethod:"POST",path:"detect",urlParameters:[re],queryParameters:[me,ue,le,de,ce,ae],requestBody:{parameterPath:"image",mapper:{required:!0,serializedName:"Image",type:{name:"Stream"}}},contentType:"application/octet-stream",responses:{200:{bodyMapper:{serializedName:"parsedResponse",type:{name:"Sequence",element:{type:{name:"Composite",className:"DetectedFace"}}}}},default:{bodyMapper:p}},serializer:Me},Oe=Object.freeze({APIError:p,ErrorModel:i,FaceList:x,ImageUrl:J,LargeFaceList:v,LargePersonGroup:H,MetaDataContract:U,NameAndUserDataContract:A,PersistedFace:D,Person:B,PersonGroup:w,UpdateFaceRequest:V}),Te=(Ee.prototype.create=function(e,a,r){return this.client.sendOperationRequest({personGroupId:e,options:a},Ae,r)},Ee.prototype.list=function(e,a,r){return this.client.sendOperationRequest({personGroupId:e,options:a},Ue,r)},Ee.prototype.deleteMethod=function(e,a,r,t){return this.client.sendOperationRequest({personGroupId:e,personId:a,options:r},xe,t)},Ee.prototype.get=function(e,a,r,t){return this.client.sendOperationRequest({personGroupId:e,personId:a,options:r},we,t)},Ee.prototype.update=function(e,a,r,t){return this.client.sendOperationRequest({personGroupId:e,personId:a,options:r},Be,t)},Ee.prototype.deleteFace=function(e,a,r,t,s){return this.client.sendOperationRequest({personGroupId:e,personId:a,persistedFaceId:r,options:t},ve,s)},Ee.prototype.getFace=function(e,a,r,t,s){return this.client.sendOperationRequest({personGroupId:e,personId:a,persistedFaceId:r,options:t},He,s)},Ee.prototype.updateFace=function(e,a,r,t,s){return this.client.sendOperationRequest({personGroupId:e,personId:a,persistedFaceId:r,options:t},Ve,s)},Ee.prototype.addFaceFromUrl=function(e,a,r,t,s){return this.client.sendOperationRequest({personGroupId:e,personId:a,url:r,options:t},ke,s)},Ee.prototype.addFaceFromStream=function(e,a,r,t,s){return this.client.sendOperationRequest({personGroupId:e,personId:a,image:r,options:t},_e,s)},Ee);function Ee(e){this.client=e}var De=new o.Serializer(Oe),Ae={httpMethod:"POST",path:"persongroups/{personGroupId}/persons",urlParameters:[re,pe],requestBody:{parameterPath:{name:["options","name"],userData:["options","userData"]},mapper:r(r({},A),{required:!0})},responses:{200:{bodyMapper:B},default:{bodyMapper:p}},serializer:De},Ue={httpMethod:"GET",path:"persongroups/{personGroupId}/persons",urlParameters:[re,pe],queryParameters:[he,ge],responses:{200:{bodyMapper:{serializedName:"parsedResponse",type:{name:"Sequence",element:{type:{name:"Composite",className:"Person"}}}}},default:{bodyMapper:p}},serializer:De},xe={httpMethod:"DELETE",path:"persongroups/{personGroupId}/persons/{personId}",urlParameters:[re,pe,ne],responses:{200:{},default:{bodyMapper:p}},serializer:De},we={httpMethod:"GET",path:"persongroups/{personGroupId}/persons/{personId}",urlParameters:[re,pe,ne],responses:{200:{bodyMapper:B},default:{bodyMapper:p}},serializer:De},Be={httpMethod:"PATCH",path:"persongroups/{personGroupId}/persons/{personId}",urlParameters:[re,pe,ne],requestBody:{parameterPath:{name:["options","name"],userData:["options","userData"]},mapper:r(r({},A),{required:!0})},responses:{200:{},default:{bodyMapper:p}},serializer:De},ve={httpMethod:"DELETE",path:"persongroups/{personGroupId}/persons/{personId}/persistedfaces/{persistedFaceId}",urlParameters:[re,pe,ne,ie],responses:{200:{},default:{bodyMapper:p}},serializer:De},He={httpMethod:"GET",path:"persongroups/{personGroupId}/persons/{personId}/persistedfaces/{persistedFaceId}",urlParameters:[re,pe,ne,ie],responses:{200:{bodyMapper:D},default:{bodyMapper:p}},serializer:De},Ve={httpMethod:"PATCH",path:"persongroups/{personGroupId}/persons/{personId}/persistedfaces/{persistedFaceId}",urlParameters:[re,pe,ne,ie],requestBody:{parameterPath:{userData:["options","userData"]},mapper:r(r({},V),{required:!0})},responses:{200:{},default:{bodyMapper:p}},serializer:De},ke={httpMethod:"POST",path:"persongroups/{personGroupId}/persons/{personId}/persistedfaces",urlParameters:[re,pe,ne],queryParameters:[ze,fe,ae],requestBody:{parameterPath:{url:"url"},mapper:r(r({},J),{required:!0})},responses:{200:{bodyMapper:D},default:{bodyMapper:p}},serializer:De},_e={httpMethod:"POST",path:"persongroups/{personGroupId}/persons/{personId}/persistedfaces",urlParameters:[re,pe,ne],queryParameters:[ze,fe,ae],requestBody:{parameterPath:"image",mapper:{required:!0,serializedName:"Image",type:{name:"Stream"}}},contentType:"application/octet-stream",responses:{200:{bodyMapper:D},default:{bodyMapper:p}},serializer:De},je=Object.freeze({APIError:p,ErrorModel:i,FaceList:x,LargeFaceList:v,LargePersonGroup:H,MetaDataContract:U,NameAndUserDataContract:A,PersistedFace:D,Person:B,PersonGroup:w,TrainingStatus:k}),$e=(Qe.prototype.create=function(e,a,r){return this.client.sendOperationRequest({personGroupId:e,options:a},Je,r)},Qe.prototype.deleteMethod=function(e,a,r){return this.client.sendOperationRequest({personGroupId:e,options:a},Ke,r)},Qe.prototype.get=function(e,a,r){return this.client.sendOperationRequest({personGroupId:e,options:a},Xe,r)},Qe.prototype.update=function(e,a,r){return this.client.sendOperationRequest({personGroupId:e,options:a},Ye,r)},Qe.prototype.getTrainingStatus=function(e,a,r){return this.client.sendOperationRequest({personGroupId:e,options:a},Ze,r)},Qe.prototype.list=function(e,a){return this.client.sendOperationRequest({options:e},ea,a)},Qe.prototype.train=function(e,a,r){return this.client.sendOperationRequest({personGroupId:e,options:a},aa,r)},Qe);function Qe(e){this.client=e}var We=new o.Serializer(je),Je={httpMethod:"PUT",path:"persongroups/{personGroupId}",urlParameters:[re,pe],requestBody:{parameterPath:{name:["options","name"],userData:["options","userData"],recognitionModel:["options","recognitionModel"]},mapper:r(r({},U),{required:!0})},responses:{200:{},default:{bodyMapper:p}},serializer:We},Ke={httpMethod:"DELETE",path:"persongroups/{personGroupId}",urlParameters:[re,pe],responses:{200:{},default:{bodyMapper:p}},serializer:We},Xe={httpMethod:"GET",path:"persongroups/{personGroupId}",urlParameters:[re,pe],queryParameters:[ce],responses:{200:{bodyMapper:w},default:{bodyMapper:p}},serializer:We},Ye={httpMethod:"PATCH",path:"persongroups/{personGroupId}",urlParameters:[re,pe],requestBody:{parameterPath:{name:["options","name"],userData:["options","userData"]},mapper:r(r({},A),{required:!0})},responses:{200:{},default:{bodyMapper:p}},serializer:We},Ze={httpMethod:"GET",path:"persongroups/{personGroupId}/training",urlParameters:[re,pe],responses:{200:{bodyMapper:k},default:{bodyMapper:p}},serializer:We},ea={httpMethod:"GET",path:"persongroups",urlParameters:[re],queryParameters:[Ne,Pe,ce],responses:{200:{bodyMapper:{serializedName:"parsedResponse",type:{name:"Sequence",element:{type:{name:"Composite",className:"PersonGroup"}}}}},default:{bodyMapper:p}},serializer:We},aa={httpMethod:"POST",path:"persongroups/{personGroupId}/train",urlParameters:[re,pe],responses:{202:{},default:{bodyMapper:p}},serializer:We},ra=Object.freeze({APIError:p,ErrorModel:i,FaceList:x,ImageUrl:J,LargeFaceList:v,LargePersonGroup:H,MetaDataContract:U,NameAndUserDataContract:A,PersistedFace:D,Person:B,PersonGroup:w}),ta=(sa.prototype.create=function(e,a,r){return this.client.sendOperationRequest({faceListId:e,options:a},ia,r)},sa.prototype.get=function(e,a,r){return this.client.sendOperationRequest({faceListId:e,options:a},pa,r)},sa.prototype.update=function(e,a,r){return this.client.sendOperationRequest({faceListId:e,options:a},na,r)},sa.prototype.deleteMethod=function(e,a,r){return this.client.sendOperationRequest({faceListId:e,options:a},da,r)},sa.prototype.list=function(e,a){return this.client.sendOperationRequest({options:e},la,a)},sa.prototype.deleteFace=function(e,a,r,t){return this.client.sendOperationRequest({faceListId:e,persistedFaceId:a,options:r},ma,t)},sa.prototype.addFaceFromUrl=function(e,a,r,t){return this.client.sendOperationRequest({faceListId:e,url:a,options:r},ua,t)},sa.prototype.addFaceFromStream=function(e,a,r,t){return this.client.sendOperationRequest({faceListId:e,image:a,options:r},ca,t)},sa);function sa(e){this.client=e}var oa=new o.Serializer(ra),ia={httpMethod:"PUT",path:"facelists/{faceListId}",urlParameters:[re,te],requestBody:{parameterPath:{name:["options","name"],userData:["options","userData"],recognitionModel:["options","recognitionModel"]},mapper:r(r({},U),{required:!0})},responses:{200:{},default:{bodyMapper:p}},serializer:oa},pa={httpMethod:"GET",path:"facelists/{faceListId}",urlParameters:[re,te],queryParameters:[ce],responses:{200:{bodyMapper:x},default:{bodyMapper:p}},serializer:oa},na={httpMethod:"PATCH",path:"facelists/{faceListId}",urlParameters:[re,te],requestBody:{parameterPath:{name:["options","name"],userData:["options","userData"]},mapper:r(r({},A),{required:!0})},responses:{200:{},default:{bodyMapper:p}},serializer:oa},da={httpMethod:"DELETE",path:"facelists/{faceListId}",urlParameters:[re,te],responses:{200:{},default:{bodyMapper:p}},serializer:oa},la={httpMethod:"GET",path:"facelists",urlParameters:[re],queryParameters:[ce],responses:{200:{bodyMapper:{serializedName:"parsedResponse",type:{name:"Sequence",element:{type:{name:"Composite",className:"FaceList"}}}}},default:{bodyMapper:p}},serializer:oa},ma={httpMethod:"DELETE",path:"facelists/{faceListId}/persistedfaces/{persistedFaceId}",urlParameters:[re,te,ie],responses:{200:{},default:{bodyMapper:p}},serializer:oa},ua={httpMethod:"POST",path:"facelists/{faceListId}/persistedfaces",urlParameters:[re,te],queryParameters:[ze,fe,ae],requestBody:{parameterPath:{url:"url"},mapper:r(r({},J),{required:!0})},responses:{200:{bodyMapper:D},default:{bodyMapper:p}},serializer:oa},ca={httpMethod:"POST",path:"facelists/{faceListId}/persistedfaces",urlParameters:[re,te],queryParameters:[ze,fe,ae],requestBody:{parameterPath:"image",mapper:{required:!0,serializedName:"Image",type:{name:"Stream"}}},contentType:"application/octet-stream",responses:{200:{bodyMapper:D},default:{bodyMapper:p}},serializer:oa},ya=Object.freeze({APIError:p,ErrorModel:i,FaceList:x,ImageUrl:J,LargeFaceList:v,LargePersonGroup:H,MetaDataContract:U,NameAndUserDataContract:A,PersistedFace:D,Person:B,PersonGroup:w,UpdateFaceRequest:V}),ha=(Na.prototype.create=function(e,a,r){return this.client.sendOperationRequest({largePersonGroupId:e,options:a},ga,r)},Na.prototype.list=function(e,a,r){return this.client.sendOperationRequest({largePersonGroupId:e,options:a},Pa,r)},Na.prototype.deleteMethod=function(e,a,r,t){return this.client.sendOperationRequest({largePersonGroupId:e,personId:a,options:r},za,t)},Na.prototype.get=function(e,a,r,t){return this.client.sendOperationRequest({largePersonGroupId:e,personId:a,options:r},Ia,t)},Na.prototype.update=function(e,a,r,t){return this.client.sendOperationRequest({largePersonGroupId:e,personId:a,options:r},qa,t)},Na.prototype.deleteFace=function(e,a,r,t,s){return this.client.sendOperationRequest({largePersonGroupId:e,personId:a,persistedFaceId:r,options:t},Ma,s)},Na.prototype.getFace=function(e,a,r,t,s){return this.client.sendOperationRequest({largePersonGroupId:e,personId:a,persistedFaceId:r,options:t},ba,s)},Na.prototype.updateFace=function(e,a,r,t,s){return this.client.sendOperationRequest({largePersonGroupId:e,personId:a,persistedFaceId:r,options:t},Fa,s)},Na.prototype.addFaceFromUrl=function(e,a,r,t,s){return this.client.sendOperationRequest({largePersonGroupId:e,personId:a,url:r,options:t},La,s)},Na.prototype.addFaceFromStream=function(e,a,r,t,s){return this.client.sendOperationRequest({largePersonGroupId:e,personId:a,image:r,options:t},Ca,s)},Na);function Na(e){this.client=e}var fa=new o.Serializer(ya),ga={httpMethod:"POST",path:"largepersongroups/{largePersonGroupId}/persons",urlParameters:[re,oe],requestBody:{parameterPath:{name:["options","name"],userData:["options","userData"]},mapper:r(r({},A),{required:!0})},responses:{200:{bodyMapper:B},default:{bodyMapper:p}},serializer:fa},Pa={httpMethod:"GET",path:"largepersongroups/{largePersonGroupId}/persons",urlParameters:[re,oe],queryParameters:[he,ge],responses:{200:{bodyMapper:{serializedName:"parsedResponse",type:{name:"Sequence",element:{type:{name:"Composite",className:"Person"}}}}},default:{bodyMapper:p}},serializer:fa},za={httpMethod:"DELETE",path:"largepersongroups/{largePersonGroupId}/persons/{personId}",urlParameters:[re,oe,ne],responses:{200:{},default:{bodyMapper:p}},serializer:fa},Ia={httpMethod:"GET",path:"largepersongroups/{largePersonGroupId}/persons/{personId}",urlParameters:[re,oe,ne],responses:{200:{bodyMapper:B},default:{bodyMapper:p}},serializer:fa},qa={httpMethod:"PATCH",path:"largepersongroups/{largePersonGroupId}/persons/{personId}",urlParameters:[re,oe,ne],requestBody:{parameterPath:{name:["options","name"],userData:["options","userData"]},mapper:r(r({},A),{required:!0})},responses:{200:{},default:{bodyMapper:p}},serializer:fa},Ma={httpMethod:"DELETE",path:"largepersongroups/{largePersonGroupId}/persons/{personId}/persistedfaces/{persistedFaceId}",urlParameters:[re,oe,ne,ie],responses:{200:{},default:{bodyMapper:p}},serializer:fa},ba={httpMethod:"GET",path:"largepersongroups/{largePersonGroupId}/persons/{personId}/persistedfaces/{persistedFaceId}",urlParameters:[re,oe,ne,ie],responses:{200:{bodyMapper:D},default:{bodyMapper:p}},serializer:fa},Fa={httpMethod:"PATCH",path:"largepersongroups/{largePersonGroupId}/persons/{personId}/persistedfaces/{persistedFaceId}",urlParameters:[re,oe,ne,ie],requestBody:{parameterPath:{userData:["options","userData"]},mapper:r(r({},V),{required:!0})},responses:{200:{},default:{bodyMapper:p}},serializer:fa},La={httpMethod:"POST",path:"largepersongroups/{largePersonGroupId}/persons/{personId}/persistedfaces",urlParameters:[re,oe,ne],queryParameters:[ze,fe,ae],requestBody:{parameterPath:{url:"url"},mapper:r(r({},J),{required:!0})},responses:{200:{bodyMapper:D},default:{bodyMapper:p}},serializer:fa},Ca={httpMethod:"POST",path:"largepersongroups/{largePersonGroupId}/persons/{personId}/persistedfaces",urlParameters:[re,oe,ne],queryParameters:[ze,fe,ae],requestBody:{parameterPath:"image",mapper:{required:!0,serializedName:"Image",type:{name:"Stream"}}},contentType:"application/octet-stream",responses:{200:{bodyMapper:D},default:{bodyMapper:p}},serializer:fa},Ra=Object.freeze({APIError:p,ErrorModel:i,FaceList:x,LargeFaceList:v,LargePersonGroup:H,MetaDataContract:U,NameAndUserDataContract:A,PersistedFace:D,Person:B,PersonGroup:w,TrainingStatus:k}),Sa=(Ga.prototype.create=function(e,a,r){return this.client.sendOperationRequest({largePersonGroupId:e,options:a},Ta,r)},Ga.prototype.deleteMethod=function(e,a,r){return this.client.sendOperationRequest({largePersonGroupId:e,options:a},Ea,r)},Ga.prototype.get=function(e,a,r){return this.client.sendOperationRequest({largePersonGroupId:e,options:a},Da,r)},Ga.prototype.update=function(e,a,r){return this.client.sendOperationRequest({largePersonGroupId:e,options:a},Aa,r)},Ga.prototype.getTrainingStatus=function(e,a,r){return this.client.sendOperationRequest({largePersonGroupId:e,options:a},Ua,r)},Ga.prototype.list=function(e,a){return this.client.sendOperationRequest({options:e},xa,a)},Ga.prototype.train=function(e,a,r){return this.client.sendOperationRequest({largePersonGroupId:e,options:a},wa,r)},Ga);function Ga(e){this.client=e}var Oa=new o.Serializer(Ra),Ta={httpMethod:"PUT",path:"largepersongroups/{largePersonGroupId}",urlParameters:[re,oe],requestBody:{parameterPath:{name:["options","name"],userData:["options","userData"],recognitionModel:["options","recognitionModel"]},mapper:r(r({},U),{required:!0})},responses:{200:{},default:{bodyMapper:p}},serializer:Oa},Ea={httpMethod:"DELETE",path:"largepersongroups/{largePersonGroupId}",urlParameters:[re,oe],responses:{200:{},default:{bodyMapper:p}},serializer:Oa},Da={httpMethod:"GET",path:"largepersongroups/{largePersonGroupId}",urlParameters:[re,oe],queryParameters:[ce],responses:{200:{bodyMapper:H},default:{bodyMapper:p}},serializer:Oa},Aa={httpMethod:"PATCH",path:"largepersongroups/{largePersonGroupId}",urlParameters:[re,oe],requestBody:{parameterPath:{name:["options","name"],userData:["options","userData"]},mapper:r(r({},A),{required:!0})},responses:{200:{},default:{bodyMapper:p}},serializer:Oa},Ua={httpMethod:"GET",path:"largepersongroups/{largePersonGroupId}/training",urlParameters:[re,oe],responses:{200:{bodyMapper:k},default:{bodyMapper:p}},serializer:Oa},xa={httpMethod:"GET",path:"largepersongroups",urlParameters:[re],queryParameters:[Ne,Pe,ce],responses:{200:{bodyMapper:{serializedName:"parsedResponse",type:{name:"Sequence",element:{type:{name:"Composite",className:"LargePersonGroup"}}}}},default:{bodyMapper:p}},serializer:Oa},wa={httpMethod:"POST",path:"largepersongroups/{largePersonGroupId}/train",urlParameters:[re,oe],responses:{202:{},default:{bodyMapper:p}},serializer:Oa},Ba=Object.freeze({APIError:p,ErrorModel:i,FaceList:x,ImageUrl:J,LargeFaceList:v,LargePersonGroup:H,MetaDataContract:U,NameAndUserDataContract:A,PersistedFace:D,Person:B,PersonGroup:w,TrainingStatus:k,UpdateFaceRequest:V}),va=(Ha.prototype.create=function(e,a,r){return this.client.sendOperationRequest({largeFaceListId:e,options:a},ka,r)},Ha.prototype.get=function(e,a,r){return this.client.sendOperationRequest({largeFaceListId:e,options:a},_a,r)},Ha.prototype.update=function(e,a,r){return this.client.sendOperationRequest({largeFaceListId:e,options:a},ja,r)},Ha.prototype.deleteMethod=function(e,a,r){return this.client.sendOperationRequest({largeFaceListId:e,options:a},$a,r)},Ha.prototype.getTrainingStatus=function(e,a,r){return this.client.sendOperationRequest({largeFaceListId:e,options:a},Qa,r)},Ha.prototype.list=function(e,a){return this.client.sendOperationRequest({options:e},Wa,a)},Ha.prototype.train=function(e,a,r){return this.client.sendOperationRequest({largeFaceListId:e,options:a},Ja,r)},Ha.prototype.deleteFace=function(e,a,r,t){return this.client.sendOperationRequest({largeFaceListId:e,persistedFaceId:a,options:r},Ka,t)},Ha.prototype.getFace=function(e,a,r,t){return this.client.sendOperationRequest({largeFaceListId:e,persistedFaceId:a,options:r},Xa,t)},Ha.prototype.updateFace=function(e,a,r,t){return this.client.sendOperationRequest({largeFaceListId:e,persistedFaceId:a,options:r},Ya,t)},Ha.prototype.addFaceFromUrl=function(e,a,r,t){return this.client.sendOperationRequest({largeFaceListId:e,url:a,options:r},Za,t)},Ha.prototype.listFaces=function(e,a,r){return this.client.sendOperationRequest({largeFaceListId:e,options:a},er,r)},Ha.prototype.addFaceFromStream=function(e,a,r,t){return this.client.sendOperationRequest({largeFaceListId:e,image:a,options:r},ar,t)},Ha);function Ha(e){this.client=e}var Va=new o.Serializer(Ba),ka={httpMethod:"PUT",path:"largefacelists/{largeFaceListId}",urlParameters:[re,se],requestBody:{parameterPath:{name:["options","name"],userData:["options","userData"],recognitionModel:["options","recognitionModel"]},mapper:r(r({},U),{required:!0})},responses:{200:{},default:{bodyMapper:p}},serializer:Va},_a={httpMethod:"GET",path:"largefacelists/{largeFaceListId}",urlParameters:[re,se],queryParameters:[ce],responses:{200:{bodyMapper:v},default:{bodyMapper:p}},serializer:Va},ja={httpMethod:"PATCH",path:"largefacelists/{largeFaceListId}",urlParameters:[re,se],requestBody:{parameterPath:{name:["options","name"],userData:["options","userData"]},mapper:r(r({},A),{required:!0})},responses:{200:{},default:{bodyMapper:p}},serializer:Va},$a={httpMethod:"DELETE",path:"largefacelists/{largeFaceListId}",urlParameters:[re,se],responses:{200:{},default:{bodyMapper:p}},serializer:Va},Qa={httpMethod:"GET",path:"largefacelists/{largeFaceListId}/training",urlParameters:[re,se],responses:{200:{bodyMapper:k},default:{bodyMapper:p}},serializer:Va},Wa={httpMethod:"GET",path:"largefacelists",urlParameters:[re],queryParameters:[ce],responses:{200:{bodyMapper:{serializedName:"parsedResponse",type:{name:"Sequence",element:{type:{name:"Composite",className:"LargeFaceList"}}}}},default:{bodyMapper:p}},serializer:Va},Ja={httpMethod:"POST",path:"largefacelists/{largeFaceListId}/train",urlParameters:[re,se],responses:{202:{},default:{bodyMapper:p}},serializer:Va},Ka={httpMethod:"DELETE",path:"largefacelists/{largeFaceListId}/persistedfaces/{persistedFaceId}",urlParameters:[re,se,ie],responses:{200:{},default:{bodyMapper:p}},serializer:Va},Xa={httpMethod:"GET",path:"largefacelists/{largeFaceListId}/persistedfaces/{persistedFaceId}",urlParameters:[re,se,ie],responses:{200:{bodyMapper:D},default:{bodyMapper:p}},serializer:Va},Ya={httpMethod:"PATCH",path:"largefacelists/{largeFaceListId}/persistedfaces/{persistedFaceId}",urlParameters:[re,se,ie],requestBody:{parameterPath:{userData:["options","userData"]},mapper:r(r({},V),{required:!0})},responses:{200:{},default:{bodyMapper:p}},serializer:Va},Za={httpMethod:"POST",path:"largefacelists/{largeFaceListId}/persistedfaces",urlParameters:[re,se],queryParameters:[ze,fe,ae],requestBody:{parameterPath:{url:"url"},mapper:r(r({},J),{required:!0})},responses:{200:{bodyMapper:D},default:{bodyMapper:p}},serializer:Va},er={httpMethod:"GET",path:"largefacelists/{largeFaceListId}/persistedfaces",urlParameters:[re,se],queryParameters:[he,ge],responses:{200:{bodyMapper:{serializedName:"parsedResponse",type:{name:"Sequence",element:{type:{name:"Composite",className:"PersistedFace"}}}}},default:{bodyMapper:p}},serializer:Va},ar={httpMethod:"POST",path:"largefacelists/{largeFaceListId}/persistedfaces",urlParameters:[re,se],queryParameters:[ze,fe,ae],requestBody:{parameterPath:"image",mapper:{required:!0,serializedName:"Image",type:{name:"Stream"}}},contentType:"application/octet-stream",responses:{200:{bodyMapper:D},default:{bodyMapper:p}},serializer:Va},rr=Object.freeze({APIError:p,ApplySnapshotRequest:_,ErrorModel:i,OperationStatus:W,Snapshot:j,SnapshotApplyHeaders:X,SnapshotTakeHeaders:K,TakeSnapshotRequest:$,UpdateSnapshotRequest:Q}),tr=(sr.prototype.take=function(e,a,r,t,s){return this.client.sendOperationRequest({type:e,objectId:a,applyScope:r,options:t},pr,s)},sr.prototype.list=function(e,a){return this.client.sendOperationRequest({options:e},nr,a)},sr.prototype.get=function(e,a,r){return this.client.sendOperationRequest({snapshotId:e,options:a},dr,r)},sr.prototype.update=function(e,a,r){return this.client.sendOperationRequest({snapshotId:e,options:a},lr,r)},sr.prototype.deleteMethod=function(e,a,r){return this.client.sendOperationRequest({snapshotId:e,options:a},mr,r)},sr.prototype.apply=function(e,a,r,t){return this.client.sendOperationRequest({snapshotId:e,objectId:a,options:r},ur,t)},sr.prototype.getOperationStatus=function(e,a,r){return this.client.sendOperationRequest({operationId:e,options:a},cr,r)},sr);function sr(e){this.client=e}var or,ir=new o.Serializer(rr),pr={httpMethod:"POST",path:"snapshots",urlParameters:[re],requestBody:{parameterPath:{type:"type",objectId:"objectId",applyScope:"applyScope",userData:["options","userData"]},mapper:r(r({},$),{required:!0})},responses:{202:{headersMapper:K},default:{bodyMapper:p}},serializer:ir},nr={httpMethod:"GET",path:"snapshots",urlParameters:[re],queryParameters:[{parameterPath:["options","type"],mapper:{serializedName:"type",type:{name:"Enum",allowedValues:["FaceList","LargeFaceList","LargePersonGroup","PersonGroup"]}}},ee],responses:{200:{bodyMapper:{serializedName:"parsedResponse",type:{name:"Sequence",element:{type:{name:"Composite",className:"Snapshot"}}}}},default:{bodyMapper:p}},serializer:ir},dr={httpMethod:"GET",path:"snapshots/{snapshotId}",urlParameters:[re,ye],responses:{200:{bodyMapper:j},default:{bodyMapper:p}},serializer:ir},lr={httpMethod:"PATCH",path:"snapshots/{snapshotId}",urlParameters:[re,ye],requestBody:{parameterPath:{applyScope:["options","applyScope"],userData:["options","userData"]},mapper:r(r({},Q),{required:!0})},responses:{200:{},default:{bodyMapper:p}},serializer:ir},mr={httpMethod:"DELETE",path:"snapshots/{snapshotId}",urlParameters:[re,ye],responses:{200:{},default:{bodyMapper:p}},serializer:ir},ur={httpMethod:"POST",path:"snapshots/{snapshotId}/apply",urlParameters:[re,ye],requestBody:{parameterPath:{objectId:"objectId",mode:["options","mode"]},mapper:r(r({},_),{required:!0})},responses:{202:{headersMapper:X},default:{bodyMapper:p}},serializer:ir},cr={httpMethod:"GET",path:"operations/{operationId}",urlParameters:[re,{parameterPath:"operationId",mapper:{required:!0,serializedName:"operationId",type:{name:"Uuid"}}}],responses:{200:{bodyMapper:W},default:{bodyMapper:p}},serializer:ir},yr=(a(hr,or=o.ServiceClient),hr);function hr(e,a,r){var t=this;if(null==a)throw new Error("'endpoint' cannot be null.");if(null==e)throw new Error("'credentials' cannot be null.");if(!(r=r||{}).userAgent){var s=o.getDefaultUserAgentValue();r.userAgent="@azure/cognitiveservices-face/4.0.0 "+s}return(t=or.call(this,e,r)||this).baseUri="{Endpoint}/face/v1.0",t.requestContentType="application/json; charset=utf-8",t.endpoint=a,t.credentials=e,t}var Nr,fr=(a(gr,Nr=yr),gr);function gr(e,a,r){var t=Nr.call(this,e,a,r)||this;return t.face=new Ie(t),t.personGroupPerson=new Te(t),t.personGroup=new $e(t),t.faceList=new ta(t),t.largePersonGroupPerson=new ha(t),t.largePersonGroup=new Sa(t),t.largeFaceList=new va(t),t.snapshot=new tr(t),t}e.Face=Ie,e.FaceClient=fr,e.FaceClientContext=yr,e.FaceListOperations=ta,e.FaceMappers=Y,e.FaceModels=s,e.LargeFaceListOperations=va,e.LargePersonGroupOperations=Sa,e.LargePersonGroupPerson=ha,e.PersonGroupOperations=$e,e.PersonGroupPerson=Te,e.SnapshotOperations=tr,Object.defineProperty(e,"__esModule",{value:!0})});
!function(e,a){"object"==typeof exports&&"undefined"!=typeof module?a(exports,require("@azure/ms-rest-js")):"function"==typeof define&&define.amd?define(["exports","@azure/ms-rest-js"],a):a(((e=e||self).Azure=e.Azure||{},e.Azure.CognitiveservicesFace={}),e.msRest)}(this,function(e,o){"use strict";var t=function(e,a){return(t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,a){e.__proto__=a}||function(e,a){for(var r in a)a.hasOwnProperty(r)&&(e[r]=a[r])})(e,a)};function a(e,a){function r(){this.constructor=e}t(e,a),e.prototype=null===a?Object.create(a):(r.prototype=a.prototype,new r)}var r=function(){return(r=Object.assign||function(e){for(var a,r=1,t=arguments.length;r<t;r++)for(var s in a=arguments[r])Object.prototype.hasOwnProperty.call(a,s)&&(e[s]=a[s]);return e}).apply(this,arguments)},s=Object.freeze({__proto__:null}),i={serializedName:"Error",type:{name:"Composite",className:"ErrorModel",modelProperties:{code:{serializedName:"code",type:{name:"String"}},message:{serializedName:"message",type:{name:"String"}}}}},p={serializedName:"APIError",type:{name:"Composite",className:"APIError",modelProperties:{error:{serializedName:"error",type:{name:"Composite",className:"ErrorModel"}}}}},n={serializedName:"FaceRectangle",type:{name:"Composite",className:"FaceRectangle",modelProperties:{width:{required:!0,serializedName:"width",type:{name:"Number"}},height:{required:!0,serializedName:"height",type:{name:"Number"}},left:{required:!0,serializedName:"left",type:{name:"Number"}},top:{required:!0,serializedName:"top",type:{name:"Number"}}}}},d={serializedName:"Coordinate",type:{name:"Composite",className:"Coordinate",modelProperties:{x:{required:!0,serializedName:"x",type:{name:"Number"}},y:{required:!0,serializedName:"y",type:{name:"Number"}}}}},l={serializedName:"FaceLandmarks",type:{name:"Composite",className:"FaceLandmarks",modelProperties:{pupilLeft:{serializedName:"pupilLeft",type:{name:"Composite",className:"Coordinate"}},pupilRight:{serializedName:"pupilRight",type:{name:"Composite",className:"Coordinate"}},noseTip:{serializedName:"noseTip",type:{name:"Composite",className:"Coordinate"}},mouthLeft:{serializedName:"mouthLeft",type:{name:"Composite",className:"Coordinate"}},mouthRight:{serializedName:"mouthRight",type:{name:"Composite",className:"Coordinate"}},eyebrowLeftOuter:{serializedName:"eyebrowLeftOuter",type:{name:"Composite",className:"Coordinate"}},eyebrowLeftInner:{serializedName:"eyebrowLeftInner",type:{name:"Composite",className:"Coordinate"}},eyeLeftOuter:{serializedName:"eyeLeftOuter",type:{name:"Composite",className:"Coordinate"}},eyeLeftTop:{serializedName:"eyeLeftTop",type:{name:"Composite",className:"Coordinate"}},eyeLeftBottom:{serializedName:"eyeLeftBottom",type:{name:"Composite",className:"Coordinate"}},eyeLeftInner:{serializedName:"eyeLeftInner",type:{name:"Composite",className:"Coordinate"}},eyebrowRightInner:{serializedName:"eyebrowRightInner",type:{name:"Composite",className:"Coordinate"}},eyebrowRightOuter:{serializedName:"eyebrowRightOuter",type:{name:"Composite",className:"Coordinate"}},eyeRightInner:{serializedName:"eyeRightInner",type:{name:"Composite",className:"Coordinate"}},eyeRightTop:{serializedName:"eyeRightTop",type:{name:"Composite",className:"Coordinate"}},eyeRightBottom:{serializedName:"eyeRightBottom",type:{name:"Composite",className:"Coordinate"}},eyeRightOuter:{serializedName:"eyeRightOuter",type:{name:"Composite",className:"Coordinate"}},noseRootLeft:{serializedName:"noseRootLeft",type:{name:"Composite",className:"Coordinate"}},noseRootRight:{serializedName:"noseRootRight",type:{name:"Composite",className:"Coordinate"}},noseLeftAlarTop:{serializedName:"noseLeftAlarTop",type:{name:"Composite",className:"Coordinate"}},noseRightAlarTop:{serializedName:"noseRightAlarTop",type:{name:"Composite",className:"Coordinate"}},noseLeftAlarOutTip:{serializedName:"noseLeftAlarOutTip",type:{name:"Composite",className:"Coordinate"}},noseRightAlarOutTip:{serializedName:"noseRightAlarOutTip",type:{name:"Composite",className:"Coordinate"}},upperLipTop:{serializedName:"upperLipTop",type:{name:"Composite",className:"Coordinate"}},upperLipBottom:{serializedName:"upperLipBottom",type:{name:"Composite",className:"Coordinate"}},underLipTop:{serializedName:"underLipTop",type:{name:"Composite",className:"Coordinate"}},underLipBottom:{serializedName:"underLipBottom",type:{name:"Composite",className:"Coordinate"}}}}},m={serializedName:"FacialHair",type:{name:"Composite",className:"FacialHair",modelProperties:{moustache:{nullable:!1,serializedName:"moustache",type:{name:"Number"}},beard:{nullable:!1,serializedName:"beard",type:{name:"Number"}},sideburns:{nullable:!1,serializedName:"sideburns",type:{name:"Number"}}}}},u={serializedName:"HeadPose",type:{name:"Composite",className:"HeadPose",modelProperties:{roll:{nullable:!1,serializedName:"roll",type:{name:"Number"}},yaw:{nullable:!1,serializedName:"yaw",type:{name:"Number"}},pitch:{nullable:!1,serializedName:"pitch",type:{name:"Number"}}}}},c={serializedName:"Emotion",type:{name:"Composite",className:"Emotion",modelProperties:{anger:{nullable:!1,serializedName:"anger",type:{name:"Number"}},contempt:{nullable:!1,serializedName:"contempt",type:{name:"Number"}},disgust:{nullable:!1,serializedName:"disgust",type:{name:"Number"}},fear:{nullable:!1,serializedName:"fear",type:{name:"Number"}},happiness:{nullable:!1,serializedName:"happiness",type:{name:"Number"}},neutral:{nullable:!1,serializedName:"neutral",type:{name:"Number"}},sadness:{nullable:!1,serializedName:"sadness",type:{name:"Number"}},surprise:{nullable:!1,serializedName:"surprise",type:{name:"Number"}}}}},y={serializedName:"HairColor",type:{name:"Composite",className:"HairColor",modelProperties:{color:{nullable:!1,serializedName:"color",type:{name:"Enum",allowedValues:["unknown","white","gray","blond","brown","red","black","other"]}},confidence:{nullable:!1,serializedName:"confidence",type:{name:"Number"}}}}},h={serializedName:"Hair",type:{name:"Composite",className:"Hair",modelProperties:{bald:{nullable:!1,serializedName:"bald",type:{name:"Number"}},invisible:{nullable:!1,serializedName:"invisible",type:{name:"Boolean"}},hairColor:{serializedName:"hairColor",type:{name:"Sequence",element:{type:{name:"Composite",className:"HairColor"}}}}}}},N={serializedName:"Makeup",type:{name:"Composite",className:"Makeup",modelProperties:{eyeMakeup:{nullable:!1,serializedName:"eyeMakeup",type:{name:"Boolean"}},lipMakeup:{nullable:!1,serializedName:"lipMakeup",type:{name:"Boolean"}}}}},f={serializedName:"Occlusion",type:{name:"Composite",className:"Occlusion",modelProperties:{foreheadOccluded:{nullable:!1,serializedName:"foreheadOccluded",type:{name:"Boolean"}},eyeOccluded:{nullable:!1,serializedName:"eyeOccluded",type:{name:"Boolean"}},mouthOccluded:{nullable:!1,serializedName:"mouthOccluded",type:{name:"Boolean"}}}}},g={serializedName:"Accessory",type:{name:"Composite",className:"Accessory",modelProperties:{type:{nullable:!1,serializedName:"type",type:{name:"Enum",allowedValues:["headWear","glasses","mask"]}},confidence:{nullable:!1,serializedName:"confidence",type:{name:"Number"}}}}},P={serializedName:"Blur",type:{name:"Composite",className:"Blur",modelProperties:{blurLevel:{nullable:!1,serializedName:"blurLevel",type:{name:"Enum",allowedValues:["Low","Medium","High"]}},value:{nullable:!1,serializedName:"value",type:{name:"Number"}}}}},z={serializedName:"Exposure",type:{name:"Composite",className:"Exposure",modelProperties:{exposureLevel:{nullable:!1,serializedName:"exposureLevel",type:{name:"Enum",allowedValues:["UnderExposure","GoodExposure","OverExposure"]}},value:{nullable:!1,serializedName:"value",type:{name:"Number"}}}}},I={serializedName:"Noise",type:{name:"Composite",className:"Noise",modelProperties:{noiseLevel:{nullable:!1,serializedName:"noiseLevel",type:{name:"Enum",allowedValues:["Low","Medium","High"]}},value:{nullable:!1,serializedName:"value",type:{name:"Number"}}}}},q={serializedName:"FaceAttributes",type:{name:"Composite",className:"FaceAttributes",modelProperties:{age:{serializedName:"age",type:{name:"Number"}},gender:{serializedName:"gender",type:{name:"Enum",allowedValues:["male","female"]}},smile:{serializedName:"smile",type:{name:"Number"}},facialHair:{serializedName:"facialHair",type:{name:"Composite",className:"FacialHair"}},glasses:{serializedName:"glasses",type:{name:"Enum",allowedValues:["noGlasses","readingGlasses","sunglasses","swimmingGoggles"]}},headPose:{serializedName:"headPose",type:{name:"Composite",className:"HeadPose"}},emotion:{serializedName:"emotion",type:{name:"Composite",className:"Emotion"}},hair:{serializedName:"hair",type:{name:"Composite",className:"Hair"}},makeup:{serializedName:"makeup",type:{name:"Composite",className:"Makeup"}},occlusion:{serializedName:"occlusion",type:{name:"Composite",className:"Occlusion"}},accessories:{serializedName:"accessories",type:{name:"Sequence",element:{type:{name:"Composite",className:"Accessory"}}}},blur:{serializedName:"blur",type:{name:"Composite",className:"Blur"}},exposure:{serializedName:"exposure",type:{name:"Composite",className:"Exposure"}},noise:{serializedName:"noise",type:{name:"Composite",className:"Noise"}}}}},M={serializedName:"DetectedFace",type:{name:"Composite",className:"DetectedFace",modelProperties:{faceId:{serializedName:"faceId",type:{name:"Uuid"}},recognitionModel:{nullable:!1,serializedName:"recognitionModel",defaultValue:"recognition_01",type:{name:"String"}},faceRectangle:{required:!0,serializedName:"faceRectangle",type:{name:"Composite",className:"FaceRectangle"}},faceLandmarks:{serializedName:"faceLandmarks",type:{name:"Composite",className:"FaceLandmarks"}},faceAttributes:{serializedName:"faceAttributes",type:{name:"Composite",className:"FaceAttributes"}}}}},b={serializedName:"FindSimilarRequest",type:{name:"Composite",className:"FindSimilarRequest",modelProperties:{faceId:{required:!0,serializedName:"faceId",type:{name:"Uuid"}},faceListId:{serializedName:"faceListId",constraints:{MaxLength:64,Pattern:/^[a-z0-9-_]+$/},type:{name:"String"}},largeFaceListId:{serializedName:"largeFaceListId",constraints:{MaxLength:64,Pattern:/^[a-z0-9-_]+$/},type:{name:"String"}},faceIds:{serializedName:"faceIds",constraints:{MaxItems:1e3},type:{name:"Sequence",element:{type:{name:"Uuid"}}}},maxNumOfCandidatesReturned:{serializedName:"maxNumOfCandidatesReturned",defaultValue:20,constraints:{InclusiveMaximum:1e3,InclusiveMinimum:1},type:{name:"Number"}},mode:{nullable:!1,serializedName:"mode",defaultValue:"matchPerson",type:{name:"Enum",allowedValues:["matchPerson","matchFace"]}}}}},F={serializedName:"SimilarFace",type:{name:"Composite",className:"SimilarFace",modelProperties:{faceId:{serializedName:"faceId",type:{name:"Uuid"}},persistedFaceId:{serializedName:"persistedFaceId",type:{name:"Uuid"}},confidence:{required:!0,serializedName:"confidence",type:{name:"Number"}}}}},L={serializedName:"GroupRequest",type:{name:"Composite",className:"GroupRequest",modelProperties:{faceIds:{required:!0,serializedName:"faceIds",constraints:{MaxItems:1e3},type:{name:"Sequence",element:{type:{name:"Uuid"}}}}}}},C={serializedName:"GroupResult",type:{name:"Composite",className:"GroupResult",modelProperties:{groups:{required:!0,serializedName:"groups",type:{name:"Sequence",element:{type:{name:"Sequence",element:{type:{name:"Uuid"}}}}}},messyGroup:{serializedName:"messyGroup",type:{name:"Sequence",element:{type:{name:"Uuid"}}}}}}},R={serializedName:"IdentifyRequest",type:{name:"Composite",className:"IdentifyRequest",modelProperties:{faceIds:{required:!0,serializedName:"faceIds",constraints:{MaxItems:10},type:{name:"Sequence",element:{type:{name:"Uuid"}}}},personGroupId:{serializedName:"personGroupId",constraints:{MaxLength:64,Pattern:/^[a-z0-9-_]+$/},type:{name:"String"}},largePersonGroupId:{serializedName:"largePersonGroupId",constraints:{MaxLength:64,Pattern:/^[a-z0-9-_]+$/},type:{name:"String"}},maxNumOfCandidatesReturned:{serializedName:"maxNumOfCandidatesReturned",defaultValue:1,constraints:{InclusiveMaximum:5,InclusiveMinimum:1},type:{name:"Number"}},confidenceThreshold:{serializedName:"confidenceThreshold",type:{name:"Number"}}}}},S={serializedName:"IdentifyCandidate",type:{name:"Composite",className:"IdentifyCandidate",modelProperties:{personId:{required:!0,serializedName:"personId",type:{name:"Uuid"}},confidence:{required:!0,serializedName:"confidence",type:{name:"Number"}}}}},G={serializedName:"IdentifyResult",type:{name:"Composite",className:"IdentifyResult",modelProperties:{faceId:{required:!0,serializedName:"faceId",type:{name:"Uuid"}},candidates:{required:!0,serializedName:"candidates",type:{name:"Sequence",element:{type:{name:"Composite",className:"IdentifyCandidate"}}}}}}},O={serializedName:"VerifyFaceToPersonRequest",type:{name:"Composite",className:"VerifyFaceToPersonRequest",modelProperties:{faceId:{required:!0,serializedName:"faceId",type:{name:"Uuid"}},personGroupId:{serializedName:"personGroupId",constraints:{MaxLength:64,Pattern:/^[a-z0-9-_]+$/},type:{name:"String"}},largePersonGroupId:{serializedName:"largePersonGroupId",constraints:{MaxLength:64,Pattern:/^[a-z0-9-_]+$/},type:{name:"String"}},personId:{required:!0,serializedName:"personId",type:{name:"Uuid"}}}}},T={serializedName:"VerifyFaceToFaceRequest",type:{name:"Composite",className:"VerifyFaceToFaceRequest",modelProperties:{faceId1:{required:!0,serializedName:"faceId1",type:{name:"Uuid"}},faceId2:{required:!0,serializedName:"faceId2",type:{name:"Uuid"}}}}},E={serializedName:"VerifyResult",type:{name:"Composite",className:"VerifyResult",modelProperties:{isIdentical:{required:!0,serializedName:"isIdentical",type:{name:"Boolean"}},confidence:{required:!0,serializedName:"confidence",type:{name:"Number"}}}}},D={serializedName:"PersistedFace",type:{name:"Composite",className:"PersistedFace",modelProperties:{persistedFaceId:{required:!0,serializedName:"persistedFaceId",type:{name:"Uuid"}},userData:{serializedName:"userData",constraints:{MaxLength:1024},type:{name:"String"}}}}},A={serializedName:"NameAndUserDataContract",type:{name:"Composite",className:"NameAndUserDataContract",modelProperties:{name:{serializedName:"name",constraints:{MaxLength:128},type:{name:"String"}},userData:{serializedName:"userData",constraints:{MaxLength:16384},type:{name:"String"}}}}},_={serializedName:"MetaDataContract",type:{name:"Composite",className:"MetaDataContract",modelProperties:r(r({},A.type.modelProperties),{recognitionModel:{nullable:!1,serializedName:"recognitionModel",defaultValue:"recognition_01",type:{name:"String"}}})}},U={serializedName:"FaceList",type:{name:"Composite",className:"FaceList",modelProperties:r(r({},_.type.modelProperties),{faceListId:{required:!0,serializedName:"faceListId",constraints:{MaxLength:64,Pattern:/^[a-z0-9-_]+$/},type:{name:"String"}},persistedFaces:{serializedName:"persistedFaces",type:{name:"Sequence",element:{type:{name:"Composite",className:"PersistedFace"}}}}})}},x={serializedName:"PersonGroup",type:{name:"Composite",className:"PersonGroup",modelProperties:r(r({},_.type.modelProperties),{personGroupId:{required:!0,serializedName:"personGroupId",constraints:{MaxLength:64,Pattern:/^[a-z0-9-_]+$/},type:{name:"String"}}})}},w={serializedName:"Person",type:{name:"Composite",className:"Person",modelProperties:r(r({},A.type.modelProperties),{personId:{required:!0,serializedName:"personId",type:{name:"Uuid"}},persistedFaceIds:{serializedName:"persistedFaceIds",type:{name:"Sequence",element:{type:{name:"Uuid"}}}}})}},B={serializedName:"LargeFaceList",type:{name:"Composite",className:"LargeFaceList",modelProperties:r(r({},_.type.modelProperties),{largeFaceListId:{required:!0,serializedName:"largeFaceListId",constraints:{MaxLength:64,Pattern:/^[a-z0-9-_]+$/},type:{name:"String"}}})}},v={serializedName:"LargePersonGroup",type:{name:"Composite",className:"LargePersonGroup",modelProperties:r(r({},_.type.modelProperties),{largePersonGroupId:{required:!0,serializedName:"largePersonGroupId",constraints:{MaxLength:64,Pattern:/^[a-z0-9-_]+$/},type:{name:"String"}}})}},H={serializedName:"UpdateFaceRequest",type:{name:"Composite",className:"UpdateFaceRequest",modelProperties:{userData:{serializedName:"userData",constraints:{MaxLength:1024},type:{name:"String"}}}}},V={serializedName:"TrainingStatus",type:{name:"Composite",className:"TrainingStatus",modelProperties:{status:{required:!0,serializedName:"status",type:{name:"Enum",allowedValues:["nonstarted","running","succeeded","failed"]}},created:{required:!0,serializedName:"createdDateTime",type:{name:"DateTime"}},lastAction:{serializedName:"lastActionDateTime",type:{name:"DateTime"}},lastSuccessfulTraining:{serializedName:"lastSuccessfulTrainingDateTime",type:{name:"DateTime"}},message:{serializedName:"message",type:{name:"String"}}}}},k={serializedName:"ApplySnapshotRequest",type:{name:"Composite",className:"ApplySnapshotRequest",modelProperties:{objectId:{required:!0,serializedName:"objectId",constraints:{MaxLength:64,Pattern:/^[a-z0-9-_]+$/},type:{name:"String"}},mode:{nullable:!1,serializedName:"mode",defaultValue:"CreateNew",type:{name:"Enum",allowedValues:["CreateNew"]}}}}},j={serializedName:"Snapshot",type:{name:"Composite",className:"Snapshot",modelProperties:{id:{required:!0,serializedName:"id",type:{name:"Uuid"}},account:{required:!0,serializedName:"account",type:{name:"String"}},type:{required:!0,serializedName:"type",type:{name:"Enum",allowedValues:["FaceList","LargeFaceList","LargePersonGroup","PersonGroup"]}},applyScope:{required:!0,serializedName:"applyScope",type:{name:"Sequence",element:{type:{name:"Uuid"}}}},userData:{serializedName:"userData",constraints:{MaxLength:16384},type:{name:"String"}},createdTime:{required:!0,serializedName:"createdTime",type:{name:"DateTime"}},lastUpdateTime:{required:!0,serializedName:"lastUpdateTime",type:{name:"DateTime"}}}}},$={serializedName:"TakeSnapshotRequest",type:{name:"Composite",className:"TakeSnapshotRequest",modelProperties:{type:{required:!0,serializedName:"type",type:{name:"Enum",allowedValues:["FaceList","LargeFaceList","LargePersonGroup","PersonGroup"]}},objectId:{required:!0,serializedName:"objectId",constraints:{MaxLength:64,Pattern:/^[a-z0-9-_]+$/},type:{name:"String"}},applyScope:{required:!0,serializedName:"applyScope",type:{name:"Sequence",element:{type:{name:"Uuid"}}}},userData:{serializedName:"userData",constraints:{MaxLength:16384},type:{name:"String"}}}}},Q={serializedName:"UpdateSnapshotRequest",type:{name:"Composite",className:"UpdateSnapshotRequest",modelProperties:{applyScope:{serializedName:"applyScope",type:{name:"Sequence",element:{type:{name:"Uuid"}}}},userData:{serializedName:"userData",constraints:{MaxLength:16384},type:{name:"String"}}}}},W={serializedName:"OperationStatus",type:{name:"Composite",className:"OperationStatus",modelProperties:{status:{required:!0,serializedName:"status",type:{name:"Enum",allowedValues:["notstarted","running","succeeded","failed"]}},createdTime:{required:!0,serializedName:"createdTime",type:{name:"DateTime"}},lastActionTime:{serializedName:"lastActionTime",type:{name:"DateTime"}},resourceLocation:{serializedName:"resourceLocation",type:{name:"String"}},message:{serializedName:"message",type:{name:"String"}}}}},J={serializedName:"ImageUrl",type:{name:"Composite",className:"ImageUrl",modelProperties:{url:{required:!0,serializedName:"url",type:{name:"String"}}}}},K={serializedName:"snapshot-take-headers",type:{name:"Composite",className:"SnapshotTakeHeaders",modelProperties:{operationLocation:{serializedName:"operation-location",type:{name:"String"}}}}},X={serializedName:"snapshot-apply-headers",type:{name:"Composite",className:"SnapshotApplyHeaders",modelProperties:{operationLocation:{serializedName:"operation-location",type:{name:"String"}}}}},Y=Object.freeze({__proto__:null,ErrorModel:i,APIError:p,FaceRectangle:n,Coordinate:d,FaceLandmarks:l,FacialHair:m,HeadPose:u,Emotion:c,HairColor:y,Hair:h,Makeup:N,Occlusion:f,Accessory:g,Blur:P,Exposure:z,Noise:I,FaceAttributes:q,DetectedFace:M,FindSimilarRequest:b,SimilarFace:F,GroupRequest:L,GroupResult:C,IdentifyRequest:R,IdentifyCandidate:S,IdentifyResult:G,VerifyFaceToPersonRequest:O,VerifyFaceToFaceRequest:T,VerifyResult:E,PersistedFace:D,NameAndUserDataContract:A,MetaDataContract:_,FaceList:U,PersonGroup:x,Person:w,LargeFaceList:B,LargePersonGroup:v,UpdateFaceRequest:H,TrainingStatus:V,ApplySnapshotRequest:k,Snapshot:j,TakeSnapshotRequest:$,UpdateSnapshotRequest:Q,OperationStatus:W,ImageUrl:J,SnapshotTakeHeaders:K,SnapshotApplyHeaders:X}),Z=Object.freeze({__proto__:null,Accessory:g,APIError:p,Blur:P,Coordinate:d,DetectedFace:M,Emotion:c,ErrorModel:i,Exposure:z,FaceAttributes:q,FaceLandmarks:l,FaceRectangle:n,FacialHair:m,FindSimilarRequest:b,GroupRequest:L,GroupResult:C,Hair:h,HairColor:y,HeadPose:u,IdentifyCandidate:S,IdentifyRequest:R,IdentifyResult:G,ImageUrl:J,Makeup:N,Noise:I,Occlusion:f,SimilarFace:F,VerifyFaceToFaceRequest:T,VerifyFaceToPersonRequest:O,VerifyResult:E}),ee={parameterPath:["options","applyScope"],mapper:{serializedName:"applyScope",type:{name:"Sequence",element:{type:{name:"Uuid"}}}},collectionFormat:o.QueryCollectionFormat.Csv},ae={parameterPath:["options","detectionModel"],mapper:{serializedName:"detectionModel",defaultValue:"detection_01",type:{name:"String"}}},re={parameterPath:"endpoint",mapper:{required:!0,serializedName:"Endpoint",defaultValue:"",type:{name:"String"}},skipEncoding:!0},te={parameterPath:"faceListId",mapper:{required:!0,serializedName:"faceListId",constraints:{MaxLength:64,Pattern:/^[a-z0-9-_]+$/},type:{name:"String"}}},se={parameterPath:"largeFaceListId",mapper:{required:!0,serializedName:"largeFaceListId",constraints:{MaxLength:64,Pattern:/^[a-z0-9-_]+$/},type:{name:"String"}}},oe={parameterPath:"largePersonGroupId",mapper:{required:!0,serializedName:"largePersonGroupId",constraints:{MaxLength:64,Pattern:/^[a-z0-9-_]+$/},type:{name:"String"}}},ie={parameterPath:"persistedFaceId",mapper:{required:!0,serializedName:"persistedFaceId",type:{name:"Uuid"}}},pe={parameterPath:"personGroupId",mapper:{required:!0,serializedName:"personGroupId",constraints:{MaxLength:64,Pattern:/^[a-z0-9-_]+$/},type:{name:"String"}}},ne={parameterPath:"personId",mapper:{required:!0,serializedName:"personId",type:{name:"Uuid"}}},de={parameterPath:["options","recognitionModel"],mapper:{serializedName:"recognitionModel",defaultValue:"recognition_01",type:{name:"String"}}},le={parameterPath:["options","returnFaceAttributes"],mapper:{serializedName:"returnFaceAttributes",type:{name:"Sequence",element:{type:{name:"Enum",allowedValues:["age","gender","headPose","smile","facialHair","glasses","emotion","hair","makeup","occlusion","accessories","blur","exposure","noise"]}}}},collectionFormat:o.QueryCollectionFormat.Csv},me={parameterPath:["options","returnFaceId"],mapper:{serializedName:"returnFaceId",defaultValue:!0,type:{name:"Boolean"}}},ue={parameterPath:["options","returnFaceLandmarks"],mapper:{serializedName:"returnFaceLandmarks",defaultValue:!1,type:{name:"Boolean"}}},ce={parameterPath:["options","returnRecognitionModel"],mapper:{serializedName:"returnRecognitionModel",defaultValue:!1,type:{name:"Boolean"}}},ye={parameterPath:"snapshotId",mapper:{required:!0,serializedName:"snapshotId",type:{name:"Uuid"}}},he={parameterPath:["options","start"],mapper:{serializedName:"start",type:{name:"String"}}},Ne={parameterPath:["options","start"],mapper:{serializedName:"start",constraints:{MaxLength:64},type:{name:"String"}}},fe={parameterPath:["options","targetFace"],mapper:{serializedName:"targetFace",type:{name:"Sequence",element:{type:{name:"Number"}}}},collectionFormat:o.QueryCollectionFormat.Csv},ge={parameterPath:["options","top"],mapper:{serializedName:"top",constraints:{InclusiveMaximum:1e3,InclusiveMinimum:1},type:{name:"Number"}}},Pe={parameterPath:["options","top"],mapper:{serializedName:"top",defaultValue:1e3,constraints:{InclusiveMaximum:1e3,InclusiveMinimum:1},type:{name:"Number"}}},ze={parameterPath:["options","userData"],mapper:{serializedName:"userData",constraints:{MaxLength:1024},type:{name:"String"}}},Ie=(qe.prototype.findSimilar=function(e,a,r){return this.client.sendOperationRequest({faceId:e,options:a},be,r)},qe.prototype.group=function(e,a,r){return this.client.sendOperationRequest({faceIds:e,options:a},Fe,r)},qe.prototype.identify=function(e,a,r){return this.client.sendOperationRequest({faceIds:e,options:a},Le,r)},qe.prototype.verifyFaceToFace=function(e,a,r,t){return this.client.sendOperationRequest({faceId1:e,faceId2:a,options:r},Ce,t)},qe.prototype.detectWithUrl=function(e,a,r){return this.client.sendOperationRequest({url:e,options:a},Re,r)},qe.prototype.verifyFaceToPerson=function(e,a,r,t){return this.client.sendOperationRequest({faceId:e,personId:a,options:r},Se,t)},qe.prototype.detectWithStream=function(e,a,r){return this.client.sendOperationRequest({image:e,options:a},Ge,r)},qe);function qe(e){this.client=e}var Me=new o.Serializer(Z),be={httpMethod:"POST",path:"findsimilars",urlParameters:[re],requestBody:{parameterPath:{faceId:"faceId",faceListId:["options","faceListId"],largeFaceListId:["options","largeFaceListId"],faceIds:["options","faceIds"],maxNumOfCandidatesReturned:["options","maxNumOfCandidatesReturned"],mode:["options","mode"]},mapper:r(r({},b),{required:!0})},responses:{200:{bodyMapper:{serializedName:"parsedResponse",type:{name:"Sequence",element:{type:{name:"Composite",className:"SimilarFace"}}}}},default:{bodyMapper:p}},serializer:Me},Fe={httpMethod:"POST",path:"group",urlParameters:[re],requestBody:{parameterPath:{faceIds:"faceIds"},mapper:r(r({},L),{required:!0})},responses:{200:{bodyMapper:C},default:{bodyMapper:p}},serializer:Me},Le={httpMethod:"POST",path:"identify",urlParameters:[re],requestBody:{parameterPath:{faceIds:"faceIds",personGroupId:["options","personGroupId"],largePersonGroupId:["options","largePersonGroupId"],maxNumOfCandidatesReturned:["options","maxNumOfCandidatesReturned"],confidenceThreshold:["options","confidenceThreshold"]},mapper:r(r({},R),{required:!0})},responses:{200:{bodyMapper:{serializedName:"parsedResponse",type:{name:"Sequence",element:{type:{name:"Composite",className:"IdentifyResult"}}}}},default:{bodyMapper:p}},serializer:Me},Ce={httpMethod:"POST",path:"verify",urlParameters:[re],requestBody:{parameterPath:{faceId1:"faceId1",faceId2:"faceId2"},mapper:r(r({},T),{required:!0})},responses:{200:{bodyMapper:E},default:{bodyMapper:p}},serializer:Me},Re={httpMethod:"POST",path:"detect",urlParameters:[re],queryParameters:[me,ue,le,de,ce,ae],requestBody:{parameterPath:{url:"url"},mapper:r(r({},J),{required:!0})},responses:{200:{bodyMapper:{serializedName:"parsedResponse",type:{name:"Sequence",element:{type:{name:"Composite",className:"DetectedFace"}}}}},default:{bodyMapper:p}},serializer:Me},Se={httpMethod:"POST",path:"verify",urlParameters:[re],requestBody:{parameterPath:{faceId:"faceId",personGroupId:["options","personGroupId"],largePersonGroupId:["options","largePersonGroupId"],personId:"personId"},mapper:r(r({},O),{required:!0})},responses:{200:{bodyMapper:E},default:{bodyMapper:p}},serializer:Me},Ge={httpMethod:"POST",path:"detect",urlParameters:[re],queryParameters:[me,ue,le,de,ce,ae],requestBody:{parameterPath:"image",mapper:{required:!0,serializedName:"Image",type:{name:"Stream"}}},contentType:"application/octet-stream",responses:{200:{bodyMapper:{serializedName:"parsedResponse",type:{name:"Sequence",element:{type:{name:"Composite",className:"DetectedFace"}}}}},default:{bodyMapper:p}},serializer:Me},Oe=Object.freeze({__proto__:null,APIError:p,ErrorModel:i,FaceList:U,ImageUrl:J,LargeFaceList:B,LargePersonGroup:v,MetaDataContract:_,NameAndUserDataContract:A,PersistedFace:D,Person:w,PersonGroup:x,UpdateFaceRequest:H}),Te=(Ee.prototype.create=function(e,a,r){return this.client.sendOperationRequest({personGroupId:e,options:a},Ae,r)},Ee.prototype.list=function(e,a,r){return this.client.sendOperationRequest({personGroupId:e,options:a},_e,r)},Ee.prototype.deleteMethod=function(e,a,r,t){return this.client.sendOperationRequest({personGroupId:e,personId:a,options:r},Ue,t)},Ee.prototype.get=function(e,a,r,t){return this.client.sendOperationRequest({personGroupId:e,personId:a,options:r},xe,t)},Ee.prototype.update=function(e,a,r,t){return this.client.sendOperationRequest({personGroupId:e,personId:a,options:r},we,t)},Ee.prototype.deleteFace=function(e,a,r,t,s){return this.client.sendOperationRequest({personGroupId:e,personId:a,persistedFaceId:r,options:t},Be,s)},Ee.prototype.getFace=function(e,a,r,t,s){return this.client.sendOperationRequest({personGroupId:e,personId:a,persistedFaceId:r,options:t},ve,s)},Ee.prototype.updateFace=function(e,a,r,t,s){return this.client.sendOperationRequest({personGroupId:e,personId:a,persistedFaceId:r,options:t},He,s)},Ee.prototype.addFaceFromUrl=function(e,a,r,t,s){return this.client.sendOperationRequest({personGroupId:e,personId:a,url:r,options:t},Ve,s)},Ee.prototype.addFaceFromStream=function(e,a,r,t,s){return this.client.sendOperationRequest({personGroupId:e,personId:a,image:r,options:t},ke,s)},Ee);function Ee(e){this.client=e}var De=new o.Serializer(Oe),Ae={httpMethod:"POST",path:"persongroups/{personGroupId}/persons",urlParameters:[re,pe],requestBody:{parameterPath:{name:["options","name"],userData:["options","userData"]},mapper:r(r({},A),{required:!0})},responses:{200:{bodyMapper:w},default:{bodyMapper:p}},serializer:De},_e={httpMethod:"GET",path:"persongroups/{personGroupId}/persons",urlParameters:[re,pe],queryParameters:[he,ge],responses:{200:{bodyMapper:{serializedName:"parsedResponse",type:{name:"Sequence",element:{type:{name:"Composite",className:"Person"}}}}},default:{bodyMapper:p}},serializer:De},Ue={httpMethod:"DELETE",path:"persongroups/{personGroupId}/persons/{personId}",urlParameters:[re,pe,ne],responses:{200:{},default:{bodyMapper:p}},serializer:De},xe={httpMethod:"GET",path:"persongroups/{personGroupId}/persons/{personId}",urlParameters:[re,pe,ne],responses:{200:{bodyMapper:w},default:{bodyMapper:p}},serializer:De},we={httpMethod:"PATCH",path:"persongroups/{personGroupId}/persons/{personId}",urlParameters:[re,pe,ne],requestBody:{parameterPath:{name:["options","name"],userData:["options","userData"]},mapper:r(r({},A),{required:!0})},responses:{200:{},default:{bodyMapper:p}},serializer:De},Be={httpMethod:"DELETE",path:"persongroups/{personGroupId}/persons/{personId}/persistedfaces/{persistedFaceId}",urlParameters:[re,pe,ne,ie],responses:{200:{},default:{bodyMapper:p}},serializer:De},ve={httpMethod:"GET",path:"persongroups/{personGroupId}/persons/{personId}/persistedfaces/{persistedFaceId}",urlParameters:[re,pe,ne,ie],responses:{200:{bodyMapper:D},default:{bodyMapper:p}},serializer:De},He={httpMethod:"PATCH",path:"persongroups/{personGroupId}/persons/{personId}/persistedfaces/{persistedFaceId}",urlParameters:[re,pe,ne,ie],requestBody:{parameterPath:{userData:["options","userData"]},mapper:r(r({},H),{required:!0})},responses:{200:{},default:{bodyMapper:p}},serializer:De},Ve={httpMethod:"POST",path:"persongroups/{personGroupId}/persons/{personId}/persistedfaces",urlParameters:[re,pe,ne],queryParameters:[ze,fe,ae],requestBody:{parameterPath:{url:"url"},mapper:r(r({},J),{required:!0})},responses:{200:{bodyMapper:D},default:{bodyMapper:p}},serializer:De},ke={httpMethod:"POST",path:"persongroups/{personGroupId}/persons/{personId}/persistedfaces",urlParameters:[re,pe,ne],queryParameters:[ze,fe,ae],requestBody:{parameterPath:"image",mapper:{required:!0,serializedName:"Image",type:{name:"Stream"}}},contentType:"application/octet-stream",responses:{200:{bodyMapper:D},default:{bodyMapper:p}},serializer:De},je=Object.freeze({__proto__:null,APIError:p,ErrorModel:i,FaceList:U,LargeFaceList:B,LargePersonGroup:v,MetaDataContract:_,NameAndUserDataContract:A,PersistedFace:D,Person:w,PersonGroup:x,TrainingStatus:V}),$e=(Qe.prototype.create=function(e,a,r){return this.client.sendOperationRequest({personGroupId:e,options:a},Je,r)},Qe.prototype.deleteMethod=function(e,a,r){return this.client.sendOperationRequest({personGroupId:e,options:a},Ke,r)},Qe.prototype.get=function(e,a,r){return this.client.sendOperationRequest({personGroupId:e,options:a},Xe,r)},Qe.prototype.update=function(e,a,r){return this.client.sendOperationRequest({personGroupId:e,options:a},Ye,r)},Qe.prototype.getTrainingStatus=function(e,a,r){return this.client.sendOperationRequest({personGroupId:e,options:a},Ze,r)},Qe.prototype.list=function(e,a){return this.client.sendOperationRequest({options:e},ea,a)},Qe.prototype.train=function(e,a,r){return this.client.sendOperationRequest({personGroupId:e,options:a},aa,r)},Qe);function Qe(e){this.client=e}var We=new o.Serializer(je),Je={httpMethod:"PUT",path:"persongroups/{personGroupId}",urlParameters:[re,pe],requestBody:{parameterPath:{name:["options","name"],userData:["options","userData"],recognitionModel:["options","recognitionModel"]},mapper:r(r({},_),{required:!0})},responses:{200:{},default:{bodyMapper:p}},serializer:We},Ke={httpMethod:"DELETE",path:"persongroups/{personGroupId}",urlParameters:[re,pe],responses:{200:{},default:{bodyMapper:p}},serializer:We},Xe={httpMethod:"GET",path:"persongroups/{personGroupId}",urlParameters:[re,pe],queryParameters:[ce],responses:{200:{bodyMapper:x},default:{bodyMapper:p}},serializer:We},Ye={httpMethod:"PATCH",path:"persongroups/{personGroupId}",urlParameters:[re,pe],requestBody:{parameterPath:{name:["options","name"],userData:["options","userData"]},mapper:r(r({},A),{required:!0})},responses:{200:{},default:{bodyMapper:p}},serializer:We},Ze={httpMethod:"GET",path:"persongroups/{personGroupId}/training",urlParameters:[re,pe],responses:{200:{bodyMapper:V},default:{bodyMapper:p}},serializer:We},ea={httpMethod:"GET",path:"persongroups",urlParameters:[re],queryParameters:[Ne,Pe,ce],responses:{200:{bodyMapper:{serializedName:"parsedResponse",type:{name:"Sequence",element:{type:{name:"Composite",className:"PersonGroup"}}}}},default:{bodyMapper:p}},serializer:We},aa={httpMethod:"POST",path:"persongroups/{personGroupId}/train",urlParameters:[re,pe],responses:{202:{},default:{bodyMapper:p}},serializer:We},ra=Object.freeze({__proto__:null,APIError:p,ErrorModel:i,FaceList:U,ImageUrl:J,LargeFaceList:B,LargePersonGroup:v,MetaDataContract:_,NameAndUserDataContract:A,PersistedFace:D,Person:w,PersonGroup:x}),ta=(sa.prototype.create=function(e,a,r){return this.client.sendOperationRequest({faceListId:e,options:a},ia,r)},sa.prototype.get=function(e,a,r){return this.client.sendOperationRequest({faceListId:e,options:a},pa,r)},sa.prototype.update=function(e,a,r){return this.client.sendOperationRequest({faceListId:e,options:a},na,r)},sa.prototype.deleteMethod=function(e,a,r){return this.client.sendOperationRequest({faceListId:e,options:a},da,r)},sa.prototype.list=function(e,a){return this.client.sendOperationRequest({options:e},la,a)},sa.prototype.deleteFace=function(e,a,r,t){return this.client.sendOperationRequest({faceListId:e,persistedFaceId:a,options:r},ma,t)},sa.prototype.addFaceFromUrl=function(e,a,r,t){return this.client.sendOperationRequest({faceListId:e,url:a,options:r},ua,t)},sa.prototype.addFaceFromStream=function(e,a,r,t){return this.client.sendOperationRequest({faceListId:e,image:a,options:r},ca,t)},sa);function sa(e){this.client=e}var oa=new o.Serializer(ra),ia={httpMethod:"PUT",path:"facelists/{faceListId}",urlParameters:[re,te],requestBody:{parameterPath:{name:["options","name"],userData:["options","userData"],recognitionModel:["options","recognitionModel"]},mapper:r(r({},_),{required:!0})},responses:{200:{},default:{bodyMapper:p}},serializer:oa},pa={httpMethod:"GET",path:"facelists/{faceListId}",urlParameters:[re,te],queryParameters:[ce],responses:{200:{bodyMapper:U},default:{bodyMapper:p}},serializer:oa},na={httpMethod:"PATCH",path:"facelists/{faceListId}",urlParameters:[re,te],requestBody:{parameterPath:{name:["options","name"],userData:["options","userData"]},mapper:r(r({},A),{required:!0})},responses:{200:{},default:{bodyMapper:p}},serializer:oa},da={httpMethod:"DELETE",path:"facelists/{faceListId}",urlParameters:[re,te],responses:{200:{},default:{bodyMapper:p}},serializer:oa},la={httpMethod:"GET",path:"facelists",urlParameters:[re],queryParameters:[ce],responses:{200:{bodyMapper:{serializedName:"parsedResponse",type:{name:"Sequence",element:{type:{name:"Composite",className:"FaceList"}}}}},default:{bodyMapper:p}},serializer:oa},ma={httpMethod:"DELETE",path:"facelists/{faceListId}/persistedfaces/{persistedFaceId}",urlParameters:[re,te,ie],responses:{200:{},default:{bodyMapper:p}},serializer:oa},ua={httpMethod:"POST",path:"facelists/{faceListId}/persistedfaces",urlParameters:[re,te],queryParameters:[ze,fe,ae],requestBody:{parameterPath:{url:"url"},mapper:r(r({},J),{required:!0})},responses:{200:{bodyMapper:D},default:{bodyMapper:p}},serializer:oa},ca={httpMethod:"POST",path:"facelists/{faceListId}/persistedfaces",urlParameters:[re,te],queryParameters:[ze,fe,ae],requestBody:{parameterPath:"image",mapper:{required:!0,serializedName:"Image",type:{name:"Stream"}}},contentType:"application/octet-stream",responses:{200:{bodyMapper:D},default:{bodyMapper:p}},serializer:oa},ya=Object.freeze({__proto__:null,APIError:p,ErrorModel:i,FaceList:U,ImageUrl:J,LargeFaceList:B,LargePersonGroup:v,MetaDataContract:_,NameAndUserDataContract:A,PersistedFace:D,Person:w,PersonGroup:x,UpdateFaceRequest:H}),ha=(Na.prototype.create=function(e,a,r){return this.client.sendOperationRequest({largePersonGroupId:e,options:a},ga,r)},Na.prototype.list=function(e,a,r){return this.client.sendOperationRequest({largePersonGroupId:e,options:a},Pa,r)},Na.prototype.deleteMethod=function(e,a,r,t){return this.client.sendOperationRequest({largePersonGroupId:e,personId:a,options:r},za,t)},Na.prototype.get=function(e,a,r,t){return this.client.sendOperationRequest({largePersonGroupId:e,personId:a,options:r},Ia,t)},Na.prototype.update=function(e,a,r,t){return this.client.sendOperationRequest({largePersonGroupId:e,personId:a,options:r},qa,t)},Na.prototype.deleteFace=function(e,a,r,t,s){return this.client.sendOperationRequest({largePersonGroupId:e,personId:a,persistedFaceId:r,options:t},Ma,s)},Na.prototype.getFace=function(e,a,r,t,s){return this.client.sendOperationRequest({largePersonGroupId:e,personId:a,persistedFaceId:r,options:t},ba,s)},Na.prototype.updateFace=function(e,a,r,t,s){return this.client.sendOperationRequest({largePersonGroupId:e,personId:a,persistedFaceId:r,options:t},Fa,s)},Na.prototype.addFaceFromUrl=function(e,a,r,t,s){return this.client.sendOperationRequest({largePersonGroupId:e,personId:a,url:r,options:t},La,s)},Na.prototype.addFaceFromStream=function(e,a,r,t,s){return this.client.sendOperationRequest({largePersonGroupId:e,personId:a,image:r,options:t},Ca,s)},Na);function Na(e){this.client=e}var fa=new o.Serializer(ya),ga={httpMethod:"POST",path:"largepersongroups/{largePersonGroupId}/persons",urlParameters:[re,oe],requestBody:{parameterPath:{name:["options","name"],userData:["options","userData"]},mapper:r(r({},A),{required:!0})},responses:{200:{bodyMapper:w},default:{bodyMapper:p}},serializer:fa},Pa={httpMethod:"GET",path:"largepersongroups/{largePersonGroupId}/persons",urlParameters:[re,oe],queryParameters:[he,ge],responses:{200:{bodyMapper:{serializedName:"parsedResponse",type:{name:"Sequence",element:{type:{name:"Composite",className:"Person"}}}}},default:{bodyMapper:p}},serializer:fa},za={httpMethod:"DELETE",path:"largepersongroups/{largePersonGroupId}/persons/{personId}",urlParameters:[re,oe,ne],responses:{200:{},default:{bodyMapper:p}},serializer:fa},Ia={httpMethod:"GET",path:"largepersongroups/{largePersonGroupId}/persons/{personId}",urlParameters:[re,oe,ne],responses:{200:{bodyMapper:w},default:{bodyMapper:p}},serializer:fa},qa={httpMethod:"PATCH",path:"largepersongroups/{largePersonGroupId}/persons/{personId}",urlParameters:[re,oe,ne],requestBody:{parameterPath:{name:["options","name"],userData:["options","userData"]},mapper:r(r({},A),{required:!0})},responses:{200:{},default:{bodyMapper:p}},serializer:fa},Ma={httpMethod:"DELETE",path:"largepersongroups/{largePersonGroupId}/persons/{personId}/persistedfaces/{persistedFaceId}",urlParameters:[re,oe,ne,ie],responses:{200:{},default:{bodyMapper:p}},serializer:fa},ba={httpMethod:"GET",path:"largepersongroups/{largePersonGroupId}/persons/{personId}/persistedfaces/{persistedFaceId}",urlParameters:[re,oe,ne,ie],responses:{200:{bodyMapper:D},default:{bodyMapper:p}},serializer:fa},Fa={httpMethod:"PATCH",path:"largepersongroups/{largePersonGroupId}/persons/{personId}/persistedfaces/{persistedFaceId}",urlParameters:[re,oe,ne,ie],requestBody:{parameterPath:{userData:["options","userData"]},mapper:r(r({},H),{required:!0})},responses:{200:{},default:{bodyMapper:p}},serializer:fa},La={httpMethod:"POST",path:"largepersongroups/{largePersonGroupId}/persons/{personId}/persistedfaces",urlParameters:[re,oe,ne],queryParameters:[ze,fe,ae],requestBody:{parameterPath:{url:"url"},mapper:r(r({},J),{required:!0})},responses:{200:{bodyMapper:D},default:{bodyMapper:p}},serializer:fa},Ca={httpMethod:"POST",path:"largepersongroups/{largePersonGroupId}/persons/{personId}/persistedfaces",urlParameters:[re,oe,ne],queryParameters:[ze,fe,ae],requestBody:{parameterPath:"image",mapper:{required:!0,serializedName:"Image",type:{name:"Stream"}}},contentType:"application/octet-stream",responses:{200:{bodyMapper:D},default:{bodyMapper:p}},serializer:fa},Ra=Object.freeze({__proto__:null,APIError:p,ErrorModel:i,FaceList:U,LargeFaceList:B,LargePersonGroup:v,MetaDataContract:_,NameAndUserDataContract:A,PersistedFace:D,Person:w,PersonGroup:x,TrainingStatus:V}),Sa=(Ga.prototype.create=function(e,a,r){return this.client.sendOperationRequest({largePersonGroupId:e,options:a},Ta,r)},Ga.prototype.deleteMethod=function(e,a,r){return this.client.sendOperationRequest({largePersonGroupId:e,options:a},Ea,r)},Ga.prototype.get=function(e,a,r){return this.client.sendOperationRequest({largePersonGroupId:e,options:a},Da,r)},Ga.prototype.update=function(e,a,r){return this.client.sendOperationRequest({largePersonGroupId:e,options:a},Aa,r)},Ga.prototype.getTrainingStatus=function(e,a,r){return this.client.sendOperationRequest({largePersonGroupId:e,options:a},_a,r)},Ga.prototype.list=function(e,a){return this.client.sendOperationRequest({options:e},Ua,a)},Ga.prototype.train=function(e,a,r){return this.client.sendOperationRequest({largePersonGroupId:e,options:a},xa,r)},Ga);function Ga(e){this.client=e}var Oa=new o.Serializer(Ra),Ta={httpMethod:"PUT",path:"largepersongroups/{largePersonGroupId}",urlParameters:[re,oe],requestBody:{parameterPath:{name:["options","name"],userData:["options","userData"],recognitionModel:["options","recognitionModel"]},mapper:r(r({},_),{required:!0})},responses:{200:{},default:{bodyMapper:p}},serializer:Oa},Ea={httpMethod:"DELETE",path:"largepersongroups/{largePersonGroupId}",urlParameters:[re,oe],responses:{200:{},default:{bodyMapper:p}},serializer:Oa},Da={httpMethod:"GET",path:"largepersongroups/{largePersonGroupId}",urlParameters:[re,oe],queryParameters:[ce],responses:{200:{bodyMapper:v},default:{bodyMapper:p}},serializer:Oa},Aa={httpMethod:"PATCH",path:"largepersongroups/{largePersonGroupId}",urlParameters:[re,oe],requestBody:{parameterPath:{name:["options","name"],userData:["options","userData"]},mapper:r(r({},A),{required:!0})},responses:{200:{},default:{bodyMapper:p}},serializer:Oa},_a={httpMethod:"GET",path:"largepersongroups/{largePersonGroupId}/training",urlParameters:[re,oe],responses:{200:{bodyMapper:V},default:{bodyMapper:p}},serializer:Oa},Ua={httpMethod:"GET",path:"largepersongroups",urlParameters:[re],queryParameters:[Ne,Pe,ce],responses:{200:{bodyMapper:{serializedName:"parsedResponse",type:{name:"Sequence",element:{type:{name:"Composite",className:"LargePersonGroup"}}}}},default:{bodyMapper:p}},serializer:Oa},xa={httpMethod:"POST",path:"largepersongroups/{largePersonGroupId}/train",urlParameters:[re,oe],responses:{202:{},default:{bodyMapper:p}},serializer:Oa},wa=Object.freeze({__proto__:null,APIError:p,ErrorModel:i,FaceList:U,ImageUrl:J,LargeFaceList:B,LargePersonGroup:v,MetaDataContract:_,NameAndUserDataContract:A,PersistedFace:D,Person:w,PersonGroup:x,TrainingStatus:V,UpdateFaceRequest:H}),Ba=(va.prototype.create=function(e,a,r){return this.client.sendOperationRequest({largeFaceListId:e,options:a},Va,r)},va.prototype.get=function(e,a,r){return this.client.sendOperationRequest({largeFaceListId:e,options:a},ka,r)},va.prototype.update=function(e,a,r){return this.client.sendOperationRequest({largeFaceListId:e,options:a},ja,r)},va.prototype.deleteMethod=function(e,a,r){return this.client.sendOperationRequest({largeFaceListId:e,options:a},$a,r)},va.prototype.getTrainingStatus=function(e,a,r){return this.client.sendOperationRequest({largeFaceListId:e,options:a},Qa,r)},va.prototype.list=function(e,a){return this.client.sendOperationRequest({options:e},Wa,a)},va.prototype.train=function(e,a,r){return this.client.sendOperationRequest({largeFaceListId:e,options:a},Ja,r)},va.prototype.deleteFace=function(e,a,r,t){return this.client.sendOperationRequest({largeFaceListId:e,persistedFaceId:a,options:r},Ka,t)},va.prototype.getFace=function(e,a,r,t){return this.client.sendOperationRequest({largeFaceListId:e,persistedFaceId:a,options:r},Xa,t)},va.prototype.updateFace=function(e,a,r,t){return this.client.sendOperationRequest({largeFaceListId:e,persistedFaceId:a,options:r},Ya,t)},va.prototype.addFaceFromUrl=function(e,a,r,t){return this.client.sendOperationRequest({largeFaceListId:e,url:a,options:r},Za,t)},va.prototype.listFaces=function(e,a,r){return this.client.sendOperationRequest({largeFaceListId:e,options:a},er,r)},va.prototype.addFaceFromStream=function(e,a,r,t){return this.client.sendOperationRequest({largeFaceListId:e,image:a,options:r},ar,t)},va);function va(e){this.client=e}var Ha=new o.Serializer(wa),Va={httpMethod:"PUT",path:"largefacelists/{largeFaceListId}",urlParameters:[re,se],requestBody:{parameterPath:{name:["options","name"],userData:["options","userData"],recognitionModel:["options","recognitionModel"]},mapper:r(r({},_),{required:!0})},responses:{200:{},default:{bodyMapper:p}},serializer:Ha},ka={httpMethod:"GET",path:"largefacelists/{largeFaceListId}",urlParameters:[re,se],queryParameters:[ce],responses:{200:{bodyMapper:B},default:{bodyMapper:p}},serializer:Ha},ja={httpMethod:"PATCH",path:"largefacelists/{largeFaceListId}",urlParameters:[re,se],requestBody:{parameterPath:{name:["options","name"],userData:["options","userData"]},mapper:r(r({},A),{required:!0})},responses:{200:{},default:{bodyMapper:p}},serializer:Ha},$a={httpMethod:"DELETE",path:"largefacelists/{largeFaceListId}",urlParameters:[re,se],responses:{200:{},default:{bodyMapper:p}},serializer:Ha},Qa={httpMethod:"GET",path:"largefacelists/{largeFaceListId}/training",urlParameters:[re,se],responses:{200:{bodyMapper:V},default:{bodyMapper:p}},serializer:Ha},Wa={httpMethod:"GET",path:"largefacelists",urlParameters:[re],queryParameters:[ce],responses:{200:{bodyMapper:{serializedName:"parsedResponse",type:{name:"Sequence",element:{type:{name:"Composite",className:"LargeFaceList"}}}}},default:{bodyMapper:p}},serializer:Ha},Ja={httpMethod:"POST",path:"largefacelists/{largeFaceListId}/train",urlParameters:[re,se],responses:{202:{},default:{bodyMapper:p}},serializer:Ha},Ka={httpMethod:"DELETE",path:"largefacelists/{largeFaceListId}/persistedfaces/{persistedFaceId}",urlParameters:[re,se,ie],responses:{200:{},default:{bodyMapper:p}},serializer:Ha},Xa={httpMethod:"GET",path:"largefacelists/{largeFaceListId}/persistedfaces/{persistedFaceId}",urlParameters:[re,se,ie],responses:{200:{bodyMapper:D},default:{bodyMapper:p}},serializer:Ha},Ya={httpMethod:"PATCH",path:"largefacelists/{largeFaceListId}/persistedfaces/{persistedFaceId}",urlParameters:[re,se,ie],requestBody:{parameterPath:{userData:["options","userData"]},mapper:r(r({},H),{required:!0})},responses:{200:{},default:{bodyMapper:p}},serializer:Ha},Za={httpMethod:"POST",path:"largefacelists/{largeFaceListId}/persistedfaces",urlParameters:[re,se],queryParameters:[ze,fe,ae],requestBody:{parameterPath:{url:"url"},mapper:r(r({},J),{required:!0})},responses:{200:{bodyMapper:D},default:{bodyMapper:p}},serializer:Ha},er={httpMethod:"GET",path:"largefacelists/{largeFaceListId}/persistedfaces",urlParameters:[re,se],queryParameters:[he,ge],responses:{200:{bodyMapper:{serializedName:"parsedResponse",type:{name:"Sequence",element:{type:{name:"Composite",className:"PersistedFace"}}}}},default:{bodyMapper:p}},serializer:Ha},ar={httpMethod:"POST",path:"largefacelists/{largeFaceListId}/persistedfaces",urlParameters:[re,se],queryParameters:[ze,fe,ae],requestBody:{parameterPath:"image",mapper:{required:!0,serializedName:"Image",type:{name:"Stream"}}},contentType:"application/octet-stream",responses:{200:{bodyMapper:D},default:{bodyMapper:p}},serializer:Ha},rr=Object.freeze({__proto__:null,APIError:p,ApplySnapshotRequest:k,ErrorModel:i,OperationStatus:W,Snapshot:j,SnapshotApplyHeaders:X,SnapshotTakeHeaders:K,TakeSnapshotRequest:$,UpdateSnapshotRequest:Q}),tr=(sr.prototype.take=function(e,a,r,t,s){return this.client.sendOperationRequest({type:e,objectId:a,applyScope:r,options:t},pr,s)},sr.prototype.list=function(e,a){return this.client.sendOperationRequest({options:e},nr,a)},sr.prototype.get=function(e,a,r){return this.client.sendOperationRequest({snapshotId:e,options:a},dr,r)},sr.prototype.update=function(e,a,r){return this.client.sendOperationRequest({snapshotId:e,options:a},lr,r)},sr.prototype.deleteMethod=function(e,a,r){return this.client.sendOperationRequest({snapshotId:e,options:a},mr,r)},sr.prototype.apply=function(e,a,r,t){return this.client.sendOperationRequest({snapshotId:e,objectId:a,options:r},ur,t)},sr.prototype.getOperationStatus=function(e,a,r){return this.client.sendOperationRequest({operationId:e,options:a},cr,r)},sr);function sr(e){this.client=e}var or,ir=new o.Serializer(rr),pr={httpMethod:"POST",path:"snapshots",urlParameters:[re],requestBody:{parameterPath:{type:"type",objectId:"objectId",applyScope:"applyScope",userData:["options","userData"]},mapper:r(r({},$),{required:!0})},responses:{202:{headersMapper:K},default:{bodyMapper:p}},serializer:ir},nr={httpMethod:"GET",path:"snapshots",urlParameters:[re],queryParameters:[{parameterPath:["options","type"],mapper:{serializedName:"type",type:{name:"Enum",allowedValues:["FaceList","LargeFaceList","LargePersonGroup","PersonGroup"]}}},ee],responses:{200:{bodyMapper:{serializedName:"parsedResponse",type:{name:"Sequence",element:{type:{name:"Composite",className:"Snapshot"}}}}},default:{bodyMapper:p}},serializer:ir},dr={httpMethod:"GET",path:"snapshots/{snapshotId}",urlParameters:[re,ye],responses:{200:{bodyMapper:j},default:{bodyMapper:p}},serializer:ir},lr={httpMethod:"PATCH",path:"snapshots/{snapshotId}",urlParameters:[re,ye],requestBody:{parameterPath:{applyScope:["options","applyScope"],userData:["options","userData"]},mapper:r(r({},Q),{required:!0})},responses:{200:{},default:{bodyMapper:p}},serializer:ir},mr={httpMethod:"DELETE",path:"snapshots/{snapshotId}",urlParameters:[re,ye],responses:{200:{},default:{bodyMapper:p}},serializer:ir},ur={httpMethod:"POST",path:"snapshots/{snapshotId}/apply",urlParameters:[re,ye],requestBody:{parameterPath:{objectId:"objectId",mode:["options","mode"]},mapper:r(r({},k),{required:!0})},responses:{202:{headersMapper:X},default:{bodyMapper:p}},serializer:ir},cr={httpMethod:"GET",path:"operations/{operationId}",urlParameters:[re,{parameterPath:"operationId",mapper:{required:!0,serializedName:"operationId",type:{name:"Uuid"}}}],responses:{200:{bodyMapper:W},default:{bodyMapper:p}},serializer:ir},yr=(a(hr,or=o.ServiceClient),hr);function hr(e,a,r){var t,s=this;if(null==a)throw new Error("'endpoint' cannot be null.");if(null==e)throw new Error("'credentials' cannot be null.");return(r=r||{}).userAgent||(t=o.getDefaultUserAgentValue(),r.userAgent="@azure/cognitiveservices-face/4.1.0 "+t),(s=or.call(this,e,r)||this).baseUri="{Endpoint}/face/v1.0",s.requestContentType="application/json; charset=utf-8",s.endpoint=a,s.credentials=e,s}var Nr,fr=(a(gr,Nr=yr),gr);function gr(e,a,r){var t=Nr.call(this,e,a,r)||this;return t.face=new Ie(t),t.personGroupPerson=new Te(t),t.personGroup=new $e(t),t.faceList=new ta(t),t.largePersonGroupPerson=new ha(t),t.largePersonGroup=new Sa(t),t.largeFaceList=new Ba(t),t.snapshot=new tr(t),t}e.Face=Ie,e.FaceClient=fr,e.FaceClientContext=yr,e.FaceListOperations=ta,e.FaceMappers=Y,e.FaceModels=s,e.LargeFaceListOperations=Ba,e.LargePersonGroupOperations=Sa,e.LargePersonGroupPerson=ha,e.PersonGroupOperations=$e,e.PersonGroupPerson=Te,e.SnapshotOperations=tr,Object.defineProperty(e,"__esModule",{value:!0})});

@@ -13,3 +13,3 @@ /*

var packageName = "@azure/cognitiveservices-face";
var packageVersion = "4.0.0";
var packageVersion = "4.1.0";
var FaceClientContext = /** @class */ (function (_super) {

@@ -16,0 +16,0 @@ __extends(FaceClientContext, _super);

@@ -15,9 +15,9 @@ import * as msRest from "@azure/ms-rest-js";

* or a large face list. faceId array contains the faces created by [Face -
* Detect](/docs/services/563879b61984550e40cbbe8d/operations/563879b61984550f30395236), which will
* expire 24 hours after creation. A "faceListId" is created by [FaceList -
* Create](/docs/services/563879b61984550e40cbbe8d/operations/563879b61984550f3039524b) containing
* Detect](https://docs.microsoft.com/rest/api/cognitiveservices/face/face/detectwithurl), which
* will expire 24 hours after creation. A "faceListId" is created by [FaceList -
* Create](https://docs.microsoft.com/rest/api/cognitiveservices/face/facelist/create) containing
* persistedFaceIds that will not expire. And a "largeFaceListId" is created by [LargeFaceList -
* Create](/docs/services/563879b61984550e40cbbe8d/operations/5a157b68d2de3616c086f2cc) containing
* persistedFaceIds that will also not expire. Depending on the input the returned similar faces
* list contains faceIds or persistedFaceIds ranked by similarity.
* Create](https://docs.microsoft.com/rest/api/cognitiveservices/face/largefacelist/create)
* containing persistedFaceIds that will also not expire. Depending on the input the returned
* similar faces list contains faceIds or persistedFaceIds ranked by similarity.
* <br/>Find similar has two working modes, "matchPerson" and "matchFace". "matchPerson" is the

@@ -60,4 +60,4 @@ * default mode that it tries to find faces of the same person as possible by using internal

* * Group API needs at least 2 candidate faces and 1000 at most. We suggest to try [Face -
* Verify](/docs/services/563879b61984550e40cbbe8d/operations/563879b61984550f3039523a) when you
* only have 2 candidate faces.
* Verify](https://docs.microsoft.com/rest/api/cognitiveservices/face/face/verifyfacetoface) when
* you only have 2 candidate faces.
* * The 'recognitionModel' associated with the query faces' faceIds should be the same.

@@ -88,5 +88,5 @@ * @param faceIds Array of candidate faceId created by Face - Detect. The maximum is 1000 faces

* identification. See more in [PersonGroup -
* Train](/docs/services/563879b61984550e40cbbe8d/operations/563879b61984550f30395249) and
* Train](https://docs.microsoft.com/rest/api/cognitiveservices/face/persongroup/train) and
* [LargePersonGroup -
* Train](/docs/services/563879b61984550e40cbbe8d/operations/599ae2d16ac60f11b48b5aa4).
* Train](https://docs.microsoft.com/rest/api/cognitiveservices/face/largepersongroup/train).
* <br/>

@@ -104,3 +104,3 @@ *

* * Try [Face - Find
* Similar](/docs/services/563879b61984550e40cbbe8d/operations/563879b61984550f30395237) when you
* Similar](https://docs.microsoft.com/rest/api/cognitiveservices/face/face/findsimilar) when you
* need to find similar faces from a face list/large face list instead of a person group/large

@@ -162,7 +162,7 @@ * person group.

* is an identifier of the face feature and will be used in [Face -
* Identify](/docs/services/563879b61984550e40cbbe8d/operations/563879b61984550f30395239), [Face -
* Verify](/docs/services/563879b61984550e40cbbe8d/operations/563879b61984550f3039523a), and [Face
* - Find Similar](/docs/services/563879b61984550e40cbbe8d/operations/563879b61984550f30395237).
* The stored face feature(s) will expire and be deleted 24 hours after the original detection
* call.
* Identify](https://docs.microsoft.com/rest/api/cognitiveservices/face/face/identify), [Face -
* Verify](https://docs.microsoft.com/rest/api/cognitiveservices/face/face/verifyfacetoface), and
* [Face - Find
* Similar](https://docs.microsoft.com/rest/api/cognitiveservices/face/face/findsimilar). The
* stored face feature(s) will expire and be deleted 24 hours after the original detection call.
* * Optional parameters include faceId, landmarks, and attributes. Attributes include age, gender,

@@ -177,5 +177,6 @@ * headPose, smile, facialHair, glasses, emotion, hair, makeup, occlusion, accessories, blur,

* * For optimal results when querying [Face -
* Identify](/docs/services/563879b61984550e40cbbe8d/operations/563879b61984550f30395239), [Face -
* Verify](/docs/services/563879b61984550e40cbbe8d/operations/563879b61984550f3039523a), and [Face
* - Find Similar](/docs/services/563879b61984550e40cbbe8d/operations/563879b61984550f30395237)
* Identify](https://docs.microsoft.com/rest/api/cognitiveservices/face/face/identify), [Face -
* Verify](https://docs.microsoft.com/rest/api/cognitiveservices/face/face/verifyfacetoface), and
* [Face - Find
* Similar](https://docs.microsoft.com/rest/api/cognitiveservices/face/face/findsimilar)
* ('returnFaceId' is true), please use faces that are: frontal, clear, and with a minimum size of

@@ -188,9 +189,10 @@ * 200x200 pixels (100 pixels between eyes).

* models, please refer to [How to specify a detection
* model](https://docs.microsoft.com/en-us/azure/cognitive-services/face/face-api-how-to-topics/specify-detection-model)
* model](https://docs.microsoft.com/azure/cognitive-services/face/face-api-how-to-topics/specify-detection-model)
* | Model | Recommended use-case(s) |
* | ---------- | -------- |
* | 'detection_01': | The default detection model for [Face -
* Detect](/docs/services/563879b61984550e40cbbe8d/operations/563879b61984550f30395236). Recommend
* for near frontal face detection. For scenarios with exceptionally large angle (head-pose) faces,
* occluded faces or wrong image orientation, the faces in such cases may not be detected. |
* Detect](https://docs.microsoft.com/rest/api/cognitiveservices/face/face/detectwithurl).
* Recommend for near frontal face detection. For scenarios with exceptionally large angle
* (head-pose) faces, occluded faces or wrong image orientation, the faces in such cases may not be
* detected. |
* | 'detection_02': | Detection model released in 2019 May with improved accuracy especially on

@@ -205,10 +207,11 @@ * small, side and blurry faces. |

* [How to specify a recognition
* model](https://docs.microsoft.com/en-us/azure/cognitive-services/face/face-api-how-to-topics/specify-recognition-model)
* model](https://docs.microsoft.com/azure/cognitive-services/face/face-api-how-to-topics/specify-recognition-model)
* | Model | Recommended use-case(s) |
* | ---------- | -------- |
* | 'recognition_01': | The default recognition model for [Face -
* Detect](/docs/services/563879b61984550e40cbbe8d/operations/563879b61984550f30395236). All those
* faceIds created before 2019 March are bonded with this recognition model. |
* | 'recognition_02': | Recognition model released in 2019 March. 'recognition_02' is recommended
* since its overall accuracy is improved compared with 'recognition_01'. |
* Detect](https://docs.microsoft.com/rest/api/cognitiveservices/face/face/detectwithurl). All
* those faceIds created before 2019 March are bonded with this recognition model. |
* | 'recognition_02': | Recognition model released in 2019 March. |
* | 'recognition_03': | Recognition model released in 2020 May. 'recognition_03' is recommended
* since its overall accuracy is improved compared with 'recognition_01' and 'recognition_02'. |
* @param url Publicly reachable URL of an image

@@ -259,7 +262,7 @@ * @param [options] The optional parameters

* is an identifier of the face feature and will be used in [Face -
* Identify](/docs/services/563879b61984550e40cbbe8d/operations/563879b61984550f30395239), [Face -
* Verify](/docs/services/563879b61984550e40cbbe8d/operations/563879b61984550f3039523a), and [Face
* - Find Similar](/docs/services/563879b61984550e40cbbe8d/operations/563879b61984550f30395237).
* The stored face feature(s) will expire and be deleted 24 hours after the original detection
* call.
* Identify](https://docs.microsoft.com/rest/api/cognitiveservices/face/face/identify), [Face -
* Verify](https://docs.microsoft.com/rest/api/cognitiveservices/face/face/verifyfacetoface), and
* [Face - Find
* Similar](https://docs.microsoft.com/rest/api/cognitiveservices/face/face/findsimilar). The
* stored face feature(s) will expire and be deleted 24 hours after the original detection call.
* * Optional parameters include faceId, landmarks, and attributes. Attributes include age, gender,

@@ -274,5 +277,6 @@ * headPose, smile, facialHair, glasses, emotion, hair, makeup, occlusion, accessories, blur,

* * For optimal results when querying [Face -
* Identify](/docs/services/563879b61984550e40cbbe8d/operations/563879b61984550f30395239), [Face -
* Verify](/docs/services/563879b61984550e40cbbe8d/operations/563879b61984550f3039523a), and [Face
* - Find Similar](/docs/services/563879b61984550e40cbbe8d/operations/563879b61984550f30395237)
* Identify](https://docs.microsoft.com/rest/api/cognitiveservices/face/face/identify), [Face -
* Verify](https://docs.microsoft.com/rest/api/cognitiveservices/face/face/verifyfacetoface), and
* [Face - Find
* Similar](https://docs.microsoft.com/rest/api/cognitiveservices/face/face/findsimilar)
* ('returnFaceId' is true), please use faces that are: frontal, clear, and with a minimum size of

@@ -285,9 +289,10 @@ * 200x200 pixels (100 pixels between eyes).

* models, please refer to [How to specify a detection
* model](https://docs.microsoft.com/en-us/azure/cognitive-services/face/face-api-how-to-topics/specify-detection-model)
* model](https://docs.microsoft.com/azure/cognitive-services/face/face-api-how-to-topics/specify-detection-model)
* | Model | Recommended use-case(s) |
* | ---------- | -------- |
* | 'detection_01': | The default detection model for [Face -
* Detect](/docs/services/563879b61984550e40cbbe8d/operations/563879b61984550f30395236). Recommend
* for near frontal face detection. For scenarios with exceptionally large angle (head-pose) faces,
* occluded faces or wrong image orientation, the faces in such cases may not be detected. |
* Detect](https://docs.microsoft.com/rest/api/cognitiveservices/face/face/detectwithurl).
* Recommend for near frontal face detection. For scenarios with exceptionally large angle
* (head-pose) faces, occluded faces or wrong image orientation, the faces in such cases may not be
* detected. |
* | 'detection_02': | Detection model released in 2019 May with improved accuracy especially on

@@ -302,10 +307,11 @@ * small, side and blurry faces. |

* [How to specify a recognition
* model](https://docs.microsoft.com/en-us/azure/cognitive-services/face/face-api-how-to-topics/specify-recognition-model)
* model](https://docs.microsoft.com/azure/cognitive-services/face/face-api-how-to-topics/specify-recognition-model)
* | Model | Recommended use-case(s) |
* | ---------- | -------- |
* | 'recognition_01': | The default recognition model for [Face -
* Detect](/docs/services/563879b61984550e40cbbe8d/operations/563879b61984550f30395236). All those
* faceIds created before 2019 March are bonded with this recognition model. |
* | 'recognition_02': | Recognition model released in 2019 March. 'recognition_02' is recommended
* since its overall accuracy is improved compared with 'recognition_01'. |
* Detect](https://docs.microsoft.com/rest/api/cognitiveservices/face/face/detectwithurl). All
* those faceIds created before 2019 March are bonded with this recognition model. |
* | 'recognition_02': | Recognition model released in 2019 March. |
* | 'recognition_03': | Recognition model released in 2020 May. 'recognition_03' is recommended
* since its overall accuracy is improved compared with 'recognition_01' and 'recognition_02'. |
* @param image An image stream.

@@ -312,0 +318,0 @@ * @param [options] The optional parameters

@@ -16,18 +16,17 @@ import * as msRest from "@azure/ms-rest-js";

* <br /> Face list is a list of faces, up to 1,000 faces, and used by [Face - Find
* Similar](/docs/services/563879b61984550e40cbbe8d/operations/563879b61984550f30395237).
* Similar](https://docs.microsoft.com/rest/api/cognitiveservices/face/face/findsimilar).
* <br /> After creation, user should use [FaceList - Add
* Face](/docs/services/563879b61984550e40cbbe8d/operations/563879b61984550f30395250) to import the
* faces. No image will be stored. Only the extracted face features are stored on server until
* [FaceList - Delete](/docs/services/563879b61984550e40cbbe8d/operations/563879b61984550f3039524f)
* is called.
* Face](https://docs.microsoft.com/rest/api/cognitiveservices/face/facelist/addfacefromurl) to
* import the faces. No image will be stored. Only the extracted face features are stored on server
* until [FaceList -
* Delete](https://docs.microsoft.com/rest/api/cognitiveservices/face/facelist/delete) is called.
* <br /> Find Similar is used for scenario like finding celebrity-like faces, similar face
* filtering, or as a light way face identification. But if the actual use is to identify person,
* please use
* [PersonGroup](/docs/services/563879b61984550e40cbbe8d/operations/563879b61984550f30395244) /
* [LargePersonGroup](/docs/services/563879b61984550e40cbbe8d/operations/599acdee6ac60f11b48b5a9d)
* and [Face -
* Identify](/docs/services/563879b61984550e40cbbe8d/operations/563879b61984550f30395239).
* please use [PersonGroup](https://docs.microsoft.com/rest/api/cognitiveservices/face/persongroup)
* /
* [LargePersonGroup](https://docs.microsoft.com/rest/api/cognitiveservices/face/largepersongroup)
* and [Face - Identify](https://docs.microsoft.com/rest/api/cognitiveservices/face/face/identify).
* <br /> Please consider
* [LargeFaceList](/docs/services/563879b61984550e40cbbe8d/operations/5a157b68d2de3616c086f2cc)
* when the face number is large. It can support up to 1,000,000 faces.
* [LargeFaceList](https://docs.microsoft.com/rest/api/cognitiveservices/face/largefacelist) when
* the face number is large. It can support up to 1,000,000 faces.
* <br />'recognitionModel' should be specified to associate with this face list. The default value

@@ -40,6 +39,7 @@ * for 'recognitionModel' is 'recognition_01', if the latest model needed, please explicitly

* * 'recognition_01': The default recognition model for [FaceList-
* Create](/docs/services/563879b61984550e40cbbe8d/operations/563879b61984550f3039524b). All those
* Create](https://docs.microsoft.com/rest/api/cognitiveservices/face/facelist/create). All those
* face lists created before 2019 March are bonded with this recognition model.
* * 'recognition_02': Recognition model released in 2019 March. 'recognition_02' is recommended
* since its overall accuracy is improved compared with 'recognition_01'.
* * 'recognition_02': Recognition model released in 2019 March.
* * 'recognition_03': Recognition model released in 2020 May. 'recognition_03' is recommended
* since its overall accuracy is improved compared with 'recognition_01' and 'recognition_02'.
* @param faceListId Id referencing a particular face list.

@@ -118,3 +118,3 @@ * @param [options] The optional parameters

* To get face information inside faceList use [FaceList -
* Get](/docs/services/563879b61984550e40cbbe8d/operations/563879b61984550f3039524c)
* Get](https://docs.microsoft.com/rest/api/cognitiveservices/face/facelist/get)
* @param [options] The optional parameters

@@ -161,7 +161,7 @@ * @returns Promise<Models.FaceListListResponse>

* will be stored. Only the extracted face feature will be stored on server until [FaceList -
* Delete Face](/docs/services/563879b61984550e40cbbe8d/operations/563879b61984550f30395251) or
* [FaceList - Delete](/docs/services/563879b61984550e40cbbe8d/operations/563879b61984550f3039524f)
* Delete Face](https://docs.microsoft.com/rest/api/cognitiveservices/face/facelist/deleteface) or
* [FaceList - Delete](https://docs.microsoft.com/rest/api/cognitiveservices/face/facelist/delete)
* is called.
* <br /> Note persistedFaceId is different from faceId generated by [Face -
* Detect](/docs/services/563879b61984550e40cbbe8d/operations/563879b61984550f30395236).
* Detect](https://docs.microsoft.com/rest/api/cognitiveservices/face/face/detectwithurl).
* * Higher face image quality means better detection and recognition precision. Please consider

@@ -174,4 +174,4 @@ * high-quality faces: frontal, clear, and face size is 200x200 pixels (100 pixels between eyes) or

* error. If the provided "targetFace" rectangle is not returned from [Face -
* Detect](/docs/services/563879b61984550e40cbbe8d/operations/563879b61984550f30395236), there’s no
* guarantee to detect and add the face successfully.
* Detect](https://docs.microsoft.com/rest/api/cognitiveservices/face/face/detectwithurl), there’s
* no guarantee to detect and add the face successfully.
* * Out of detectable face size (36x36 - 4096x4096 pixels), large head-pose, or large occlusions

@@ -186,9 +186,10 @@ * will cause failures.

* models, please refer to [How to specify a detection
* model](https://docs.microsoft.com/en-us/azure/cognitive-services/face/face-api-how-to-topics/specify-detection-model)
* model](https://docs.microsoft.com/azure/cognitive-services/face/face-api-how-to-topics/specify-detection-model)
* | Model | Recommended use-case(s) |
* | ---------- | -------- |
* | 'detection_01': | The default detection model for [FaceList - Add
* Face](/docs/services/563879b61984550e40cbbe8d/operations/563879b61984550f30395250). Recommend
* for near frontal face detection. For scenarios with exceptionally large angle (head-pose) faces,
* occluded faces or wrong image orientation, the faces in such cases may not be detected. |
* Face](https://docs.microsoft.com/rest/api/cognitiveservices/face/facelist/addfacefromurl).
* Recommend for near frontal face detection. For scenarios with exceptionally large angle
* (head-pose) faces, occluded faces or wrong image orientation, the faces in such cases may not be
* detected. |
* | 'detection_02': | Detection model released in 2019 May with improved accuracy especially on

@@ -220,7 +221,7 @@ * small, side and blurry faces. |

* will be stored. Only the extracted face feature will be stored on server until [FaceList -
* Delete Face](/docs/services/563879b61984550e40cbbe8d/operations/563879b61984550f30395251) or
* [FaceList - Delete](/docs/services/563879b61984550e40cbbe8d/operations/563879b61984550f3039524f)
* Delete Face](https://docs.microsoft.com/rest/api/cognitiveservices/face/facelist/deleteface) or
* [FaceList - Delete](https://docs.microsoft.com/rest/api/cognitiveservices/face/facelist/delete)
* is called.
* <br /> Note persistedFaceId is different from faceId generated by [Face -
* Detect](/docs/services/563879b61984550e40cbbe8d/operations/563879b61984550f30395236).
* Detect](https://docs.microsoft.com/rest/api/cognitiveservices/face/face/detectwithurl).
* * Higher face image quality means better detection and recognition precision. Please consider

@@ -233,4 +234,4 @@ * high-quality faces: frontal, clear, and face size is 200x200 pixels (100 pixels between eyes) or

* error. If the provided "targetFace" rectangle is not returned from [Face -
* Detect](/docs/services/563879b61984550e40cbbe8d/operations/563879b61984550f30395236), there’s no
* guarantee to detect and add the face successfully.
* Detect](https://docs.microsoft.com/rest/api/cognitiveservices/face/face/detectwithurl), there’s
* no guarantee to detect and add the face successfully.
* * Out of detectable face size (36x36 - 4096x4096 pixels), large head-pose, or large occlusions

@@ -245,9 +246,10 @@ * will cause failures.

* models, please refer to [How to specify a detection
* model](https://docs.microsoft.com/en-us/azure/cognitive-services/face/face-api-how-to-topics/specify-detection-model)
* model](https://docs.microsoft.com/azure/cognitive-services/face/face-api-how-to-topics/specify-detection-model)
* | Model | Recommended use-case(s) |
* | ---------- | -------- |
* | 'detection_01': | The default detection model for [FaceList - Add
* Face](/docs/services/563879b61984550e40cbbe8d/operations/563879b61984550f30395250). Recommend
* for near frontal face detection. For scenarios with exceptionally large angle (head-pose) faces,
* occluded faces or wrong image orientation, the faces in such cases may not be detected. |
* Face](https://docs.microsoft.com/rest/api/cognitiveservices/face/facelist/addfacefromurl).
* Recommend for near frontal face detection. For scenarios with exceptionally large angle
* (head-pose) faces, occluded faces or wrong image orientation, the faces in such cases may not be
* detected. |
* | 'detection_02': | Detection model released in 2019 May with improved accuracy especially on

@@ -254,0 +256,0 @@ * small, side and blurry faces. |

@@ -16,18 +16,18 @@ import * as msRest from "@azure/ms-rest-js";

* <br /> Large face list is a list of faces, up to 1,000,000 faces, and used by [Face - Find
* Similar](/docs/services/563879b61984550e40cbbe8d/operations/563879b61984550f30395237).
* Similar](https://docs.microsoft.com/rest/api/cognitiveservices/face/face/findsimilar).
* <br /> After creation, user should use [LargeFaceList Face -
* Add](/docs/services/563879b61984550e40cbbe8d/operations/5a158c10d2de3616c086f2d3) to import the
* faces and [LargeFaceList -
* Train](/docs/services/563879b61984550e40cbbe8d/operations/5a158422d2de3616c086f2d1) to make it
* ready for [Face - Find
* Similar](/docs/services/563879b61984550e40cbbe8d/operations/563879b61984550f30395237). No image
* Add](https://docs.microsoft.com/rest/api/cognitiveservices/face/largefacelist/addfacefromurl) to
* import the faces and [LargeFaceList -
* Train](https://docs.microsoft.com/rest/api/cognitiveservices/face/largefacelist/train) to make
* it ready for [Face - Find
* Similar](https://docs.microsoft.com/rest/api/cognitiveservices/face/face/findsimilar). No image
* will be stored. Only the extracted face features are stored on server until [LargeFaceList -
* Delete](/docs/services/563879b61984550e40cbbe8d/operations/5a1580d5d2de3616c086f2cd) is called.
* Delete](https://docs.microsoft.com/rest/api/cognitiveservices/face/largefacelist/delete) is
* called.
* <br /> Find Similar is used for scenario like finding celebrity-like faces, similar face
* filtering, or as a light way face identification. But if the actual use is to identify person,
* please use
* [PersonGroup](/docs/services/563879b61984550e40cbbe8d/operations/563879b61984550f30395244) /
* [LargePersonGroup](/docs/services/563879b61984550e40cbbe8d/operations/599acdee6ac60f11b48b5a9d)
* and [Face -
* Identify](/docs/services/563879b61984550e40cbbe8d/operations/563879b61984550f30395239).
* please use [PersonGroup](https://docs.microsoft.com/rest/api/cognitiveservices/face/persongroup)
* /
* [LargePersonGroup](https://docs.microsoft.com/rest/api/cognitiveservices/face/largepersongroup)
* and [Face - Identify](https://docs.microsoft.com/rest/api/cognitiveservices/face/face/identify).
* <br/>'recognitionModel' should be specified to associate with this large face list. The default

@@ -40,6 +40,7 @@ * value for 'recognitionModel' is 'recognition_01', if the latest model needed, please explicitly

* * 'recognition_01': The default recognition model for [LargeFaceList-
* Create](/docs/services/563879b61984550e40cbbe8d/operations/5a157b68d2de3616c086f2cc). All those
* large face lists created before 2019 March are bonded with this recognition model.
* * 'recognition_02': Recognition model released in 2019 March. 'recognition_02' is recommended
* since its overall accuracy is improved compared with 'recognition_01'.
* Create](https://docs.microsoft.com/rest/api/cognitiveservices/face/largefacelist/create). All
* those large face lists created before 2019 March are bonded with this recognition model.
* * 'recognition_02': Recognition model released in 2019 March.
* * 'recognition_03': Recognition model released in 2020 May. 'recognition_03' is recommended
* since its overall accuracy is improved compared with 'recognition_01' and 'recognition_02'.
*

@@ -141,3 +142,3 @@ * Large face list quota:

* To get face information inside largeFaceList use [LargeFaceList Face -
* Get](/docs/services/563879b61984550e40cbbe8d/operations/5a158cf2d2de3616c086f2d5)<br />
* Get](https://docs.microsoft.com/rest/api/cognitiveservices/face/largefacelist/getface)<br />
* * Large face lists are stored in alphabetical order of largeFaceListId.

@@ -257,7 +258,9 @@ * * "start" parameter (string, optional) is a user-provided largeFaceListId value that returned

* will be stored. Only the extracted face feature will be stored on server until [LargeFaceList
* Face - Delete](/docs/services/563879b61984550e40cbbe8d/operations/5a158c8ad2de3616c086f2d4) or
* Face -
* Delete](https://docs.microsoft.com/rest/api/cognitiveservices/face/largefacelist/deleteface) or
* [LargeFaceList -
* Delete](/docs/services/563879b61984550e40cbbe8d/operations/5a1580d5d2de3616c086f2cd) is called.
* Delete](https://docs.microsoft.com/rest/api/cognitiveservices/face/largefacelist/delete) is
* called.
* <br /> Note persistedFaceId is different from faceId generated by [Face -
* Detect](/docs/services/563879b61984550e40cbbe8d/operations/563879b61984550f30395236).
* Detect](https://docs.microsoft.com/rest/api/cognitiveservices/face/face/detectwithurl).
* * Higher face image quality means better recognition precision. Please consider high-quality

@@ -269,4 +272,4 @@ * faces: frontal, clear, and face size is 200x200 pixels (100 pixels between eyes) or bigger.

* error. If the provided "targetFace" rectangle is not returned from [Face -
* Detect](/docs/services/563879b61984550e40cbbe8d/operations/563879b61984550f30395236), there’s no
* guarantee to detect and add the face successfully.
* Detect](https://docs.microsoft.com/rest/api/cognitiveservices/face/face/detectwithurl), there’s
* no guarantee to detect and add the face successfully.
* * Out of detectable face size (36x36 - 4096x4096 pixels), large head-pose, or large occlusions

@@ -281,9 +284,10 @@ * will cause failures.

* models, please refer to [How to specify a detection
* model](https://docs.microsoft.com/en-us/azure/cognitive-services/face/face-api-how-to-topics/specify-detection-model)
* model](https://docs.microsoft.com/azure/cognitive-services/face/face-api-how-to-topics/specify-detection-model)
* | Model | Recommended use-case(s) |
* | ---------- | -------- |
* | 'detection_01': | The default detection model for [LargeFaceList - Add
* Face](/docs/services/563879b61984550e40cbbe8d/operations/5a158c10d2de3616c086f2d3). Recommend
* for near frontal face detection. For scenarios with exceptionally large angle (head-pose) faces,
* occluded faces or wrong image orientation, the faces in such cases may not be detected. |
* Face](https://docs.microsoft.com/rest/api/cognitiveservices/face/largefacelist/addfacefromurl).
* Recommend for near frontal face detection. For scenarios with exceptionally large angle
* (head-pose) faces, occluded faces or wrong image orientation, the faces in such cases may not be
* detected. |
* | 'detection_02': | Detection model released in 2019 May with improved accuracy especially on

@@ -338,7 +342,9 @@ * small, side and blurry faces. |

* will be stored. Only the extracted face feature will be stored on server until [LargeFaceList
* Face - Delete](/docs/services/563879b61984550e40cbbe8d/operations/5a158c8ad2de3616c086f2d4) or
* Face -
* Delete](https://docs.microsoft.com/rest/api/cognitiveservices/face/largefacelist/deleteface) or
* [LargeFaceList -
* Delete](/docs/services/563879b61984550e40cbbe8d/operations/5a1580d5d2de3616c086f2cd) is called.
* Delete](https://docs.microsoft.com/rest/api/cognitiveservices/face/largefacelist/delete) is
* called.
* <br /> Note persistedFaceId is different from faceId generated by [Face -
* Detect](/docs/services/563879b61984550e40cbbe8d/operations/563879b61984550f30395236).
* Detect](https://docs.microsoft.com/rest/api/cognitiveservices/face/face/detectwithurl).
* * Higher face image quality means better recognition precision. Please consider high-quality

@@ -350,4 +356,4 @@ * faces: frontal, clear, and face size is 200x200 pixels (100 pixels between eyes) or bigger.

* error. If the provided "targetFace" rectangle is not returned from [Face -
* Detect](/docs/services/563879b61984550e40cbbe8d/operations/563879b61984550f30395236), there’s no
* guarantee to detect and add the face successfully.
* Detect](https://docs.microsoft.com/rest/api/cognitiveservices/face/face/detectwithurl), there’s
* no guarantee to detect and add the face successfully.
* * Out of detectable face size (36x36 - 4096x4096 pixels), large head-pose, or large occlusions

@@ -362,9 +368,10 @@ * will cause failures.

* models, please refer to [How to specify a detection
* model](https://docs.microsoft.com/en-us/azure/cognitive-services/face/face-api-how-to-topics/specify-detection-model)
* model](https://docs.microsoft.com/azure/cognitive-services/face/face-api-how-to-topics/specify-detection-model)
* | Model | Recommended use-case(s) |
* | ---------- | -------- |
* | 'detection_01': | The default detection model for [LargeFaceList - Add
* Face](/docs/services/563879b61984550e40cbbe8d/operations/5a158c10d2de3616c086f2d3). Recommend
* for near frontal face detection. For scenarios with exceptionally large angle (head-pose) faces,
* occluded faces or wrong image orientation, the faces in such cases may not be detected. |
* Face](https://docs.microsoft.com/rest/api/cognitiveservices/face/largefacelist/addfacefromurl).
* Recommend for near frontal face detection. For scenarios with exceptionally large angle
* (head-pose) faces, occluded faces or wrong image orientation, the faces in such cases may not be
* detected. |
* | 'detection_02': | Detection model released in 2019 May with improved accuracy especially on

@@ -371,0 +378,0 @@ * small, side and blurry faces. |

@@ -19,12 +19,13 @@ import * as msRest from "@azure/ms-rest-js";

* <br /> After creation, use [LargePersonGroup Person -
* Create](/docs/services/563879b61984550e40cbbe8d/operations/599adcba3a7b9412a4d53f40) to add
* person into the group, and call [LargePersonGroup -
* Train](/docs/services/563879b61984550e40cbbe8d/operations/599ae2d16ac60f11b48b5aa4) to get this
* group ready for [Face -
* Identify](/docs/services/563879b61984550e40cbbe8d/operations/563879b61984550f30395239).
* Create](https://docs.microsoft.com/rest/api/cognitiveservices/face/largepersongroupperson/create)
* to add person into the group, and call [LargePersonGroup -
* Train](https://docs.microsoft.com/rest/api/cognitiveservices/face/largepersongroup/train) to get
* this group ready for [Face -
* Identify](https://docs.microsoft.com/rest/api/cognitiveservices/face/face/identify).
* <br /> No image will be stored. Only the person's extracted face features and userData will be
* stored on server until [LargePersonGroup Person -
* Delete](/docs/services/563879b61984550e40cbbe8d/operations/599ade5c6ac60f11b48b5aa2) or
* [LargePersonGroup -
* Delete](/docs/services/563879b61984550e40cbbe8d/operations/599adc216ac60f11b48b5a9f) is called.
* Delete](https://docs.microsoft.com/rest/api/cognitiveservices/face/largepersongroupperson/delete)
* or [LargePersonGroup -
* Delete](https://docs.microsoft.com/rest/api/cognitiveservices/face/largepersongroup/delete) is
* called.
* <br/>'recognitionModel' should be specified to associate with this large person group. The

@@ -37,6 +38,7 @@ * default value for 'recognitionModel' is 'recognition_01', if the latest model needed, please

* * 'recognition_01': The default recognition model for [LargePersonGroup -
* Create](/docs/services/563879b61984550e40cbbe8d/operations/599acdee6ac60f11b48b5a9d). All those
* large person groups created before 2019 March are bonded with this recognition model.
* * 'recognition_02': Recognition model released in 2019 March. 'recognition_02' is recommended
* since its overall accuracy is improved compared with 'recognition_01'.
* Create](https://docs.microsoft.com/rest/api/cognitiveservices/face/largepersongroup/create). All
* those large person groups created before 2019 March are bonded with this recognition model.
* * 'recognition_02': Recognition model released in 2019 March.
* * 'recognition_03': Recognition model released in 2020 May. 'recognition_03' is recommended
* since its overall accuracy is improved compared with 'recognition_01' and 'recognition_02'.
*

@@ -84,3 +86,4 @@ * Large person group quota:

* recognitionModel. This API returns large person group information only, use [LargePersonGroup
* Person - List](/docs/services/563879b61984550e40cbbe8d/operations/599adda06ac60f11b48b5aa1)
* Person -
* List](https://docs.microsoft.com/rest/api/cognitiveservices/face/largepersongroupperson/list)
* instead to retrieve person information under the large person group.

@@ -87,0 +90,0 @@ * @param largePersonGroupId Id referencing a particular large person group.

@@ -196,9 +196,10 @@ import * as msRest from "@azure/ms-rest-js";

* PersonFace -
* Delete](/docs/services/563879b61984550e40cbbe8d/operations/599ae2966ac60f11b48b5aa3),
* Delete](https://docs.microsoft.com/rest/api/cognitiveservices/face/largepersongroupperson/deleteface),
* [LargePersonGroup Person -
* Delete](/docs/services/563879b61984550e40cbbe8d/operations/599ade5c6ac60f11b48b5aa2) or
* [LargePersonGroup -
* Delete](/docs/services/563879b61984550e40cbbe8d/operations/599adc216ac60f11b48b5a9f) is called.
* Delete](https://docs.microsoft.com/rest/api/cognitiveservices/face/largepersongroupperson/delete)
* or [LargePersonGroup -
* Delete](https://docs.microsoft.com/rest/api/cognitiveservices/face/largepersongroup/delete) is
* called.
* <br /> Note persistedFaceId is different from faceId generated by [Face -
* Detect](/docs/services/563879b61984550e40cbbe8d/operations/563879b61984550f30395236).
* Detect](https://docs.microsoft.com/rest/api/cognitiveservices/face/face/detectwithurl).
* * Higher face image quality means better recognition precision. Please consider high-quality

@@ -211,4 +212,4 @@ * faces: frontal, clear, and face size is 200x200 pixels (100 pixels between eyes) or bigger.

* error. If the provided "targetFace" rectangle is not returned from [Face -
* Detect](/docs/services/563879b61984550e40cbbe8d/operations/563879b61984550f30395236), there’s no
* guarantee to detect and add the face successfully.
* Detect](https://docs.microsoft.com/rest/api/cognitiveservices/face/face/detectwithurl), there’s
* no guarantee to detect and add the face successfully.
* * Out of detectable face size (36x36 - 4096x4096 pixels), large head-pose, or large occlusions

@@ -223,9 +224,10 @@ * will cause failures.

* models, please refer to [How to specify a detection
* model](https://docs.microsoft.com/en-us/azure/cognitive-services/face/face-api-how-to-topics/specify-detection-model)
* model](https://docs.microsoft.com/azure/cognitive-services/face/face-api-how-to-topics/specify-detection-model)
* | Model | Recommended use-case(s) |
* | ---------- | -------- |
* | 'detection_01': | The default detection model for [LargePersonGroup Person - Add
* Face](/docs/services/563879b61984550e40cbbe8d/operations/599adf2a3a7b9412a4d53f42). Recommend
* for near frontal face detection. For scenarios with exceptionally large angle (head-pose) faces,
* occluded faces or wrong image orientation, the faces in such cases may not be detected. |
* Face](https://docs.microsoft.com/rest/api/cognitiveservices/face/largepersongroupperson/addfacefromurl).
* Recommend for near frontal face detection. For scenarios with exceptionally large angle
* (head-pose) faces, occluded faces or wrong image orientation, the faces in such cases may not be
* detected. |
* | 'detection_02': | Detection model released in 2019 May with improved accuracy especially on

@@ -261,9 +263,10 @@ * small, side and blurry faces. |

* PersonFace -
* Delete](/docs/services/563879b61984550e40cbbe8d/operations/599ae2966ac60f11b48b5aa3),
* Delete](https://docs.microsoft.com/rest/api/cognitiveservices/face/largepersongroupperson/deleteface),
* [LargePersonGroup Person -
* Delete](/docs/services/563879b61984550e40cbbe8d/operations/599ade5c6ac60f11b48b5aa2) or
* [LargePersonGroup -
* Delete](/docs/services/563879b61984550e40cbbe8d/operations/599adc216ac60f11b48b5a9f) is called.
* Delete](https://docs.microsoft.com/rest/api/cognitiveservices/face/largepersongroupperson/delete)
* or [LargePersonGroup -
* Delete](https://docs.microsoft.com/rest/api/cognitiveservices/face/largepersongroup/delete) is
* called.
* <br /> Note persistedFaceId is different from faceId generated by [Face -
* Detect](/docs/services/563879b61984550e40cbbe8d/operations/563879b61984550f30395236).
* Detect](https://docs.microsoft.com/rest/api/cognitiveservices/face/face/detectwithurl).
* * Higher face image quality means better recognition precision. Please consider high-quality

@@ -276,4 +279,4 @@ * faces: frontal, clear, and face size is 200x200 pixels (100 pixels between eyes) or bigger.

* error. If the provided "targetFace" rectangle is not returned from [Face -
* Detect](/docs/services/563879b61984550e40cbbe8d/operations/563879b61984550f30395236), there’s no
* guarantee to detect and add the face successfully.
* Detect](https://docs.microsoft.com/rest/api/cognitiveservices/face/face/detectwithurl), there’s
* no guarantee to detect and add the face successfully.
* * Out of detectable face size (36x36 - 4096x4096 pixels), large head-pose, or large occlusions

@@ -288,9 +291,10 @@ * will cause failures.

* models, please refer to [How to specify a detection
* model](https://docs.microsoft.com/en-us/azure/cognitive-services/face/face-api-how-to-topics/specify-detection-model)
* model](https://docs.microsoft.com/azure/cognitive-services/face/face-api-how-to-topics/specify-detection-model)
* | Model | Recommended use-case(s) |
* | ---------- | -------- |
* | 'detection_01': | The default detection model for [LargePersonGroup Person - Add
* Face](/docs/services/563879b61984550e40cbbe8d/operations/599adf2a3a7b9412a4d53f42). Recommend
* for near frontal face detection. For scenarios with exceptionally large angle (head-pose) faces,
* occluded faces or wrong image orientation, the faces in such cases may not be detected. |
* Face](https://docs.microsoft.com/rest/api/cognitiveservices/face/largepersongroupperson/addfacefromurl).
* Recommend for near frontal face detection. For scenarios with exceptionally large angle
* (head-pose) faces, occluded faces or wrong image orientation, the faces in such cases may not be
* detected. |
* | 'detection_02': | Detection model released in 2019 May with improved accuracy especially on

@@ -297,0 +301,0 @@ * small, side and blurry faces. |

@@ -18,12 +18,13 @@ import * as msRest from "@azure/ms-rest-js";

* <br /> After creation, use [PersonGroup Person -
* Create](/docs/services/563879b61984550e40cbbe8d/operations/563879b61984550f3039523c) to add
* persons into the group, and then call [PersonGroup -
* Train](/docs/services/563879b61984550e40cbbe8d/operations/563879b61984550f30395249) to get this
* Create](https://docs.microsoft.com/rest/api/cognitiveservices/face/persongroupperson/create) to
* add persons into the group, and then call [PersonGroup -
* Train](https://docs.microsoft.com/rest/api/cognitiveservices/face/persongroup/train) to get this
* group ready for [Face -
* Identify](/docs/services/563879b61984550e40cbbe8d/operations/563879b61984550f30395239).
* Identify](https://docs.microsoft.com/rest/api/cognitiveservices/face/face/identify).
* <br /> No image will be stored. Only the person's extracted face features and userData will be
* stored on server until [PersonGroup Person -
* Delete](/docs/services/563879b61984550e40cbbe8d/operations/563879b61984550f3039523d) or
* Delete](https://docs.microsoft.com/rest/api/cognitiveservices/face/persongroupperson/delete) or
* [PersonGroup -
* Delete](/docs/services/563879b61984550e40cbbe8d/operations/563879b61984550f30395245) is called.
* Delete](https://docs.microsoft.com/rest/api/cognitiveservices/face/persongroup/delete) is
* called.
* <br/>'recognitionModel' should be specified to associate with this person group. The default

@@ -36,6 +37,7 @@ * value for 'recognitionModel' is 'recognition_01', if the latest model needed, please explicitly

* * 'recognition_01': The default recognition model for [PersonGroup -
* Create](/docs/services/563879b61984550e40cbbe8d/operations/563879b61984550f30395244). All those
* person groups created before 2019 March are bonded with this recognition model.
* * 'recognition_02': Recognition model released in 2019 March. 'recognition_02' is recommended
* since its overall accuracy is improved compared with 'recognition_01'.
* Create](https://docs.microsoft.com/rest/api/cognitiveservices/face/persongroup/create). All
* those person groups created before 2019 March are bonded with this recognition model.
* * 'recognition_02': Recognition model released in 2019 March.
* * 'recognition_03': Recognition model released in 2020 May. 'recognition_03' is recommended
* since its overall accuracy is improved compared with 'recognition_01' and 'recognition_02'.
*

@@ -46,3 +48,3 @@ * Person group quota:

* * to handle larger scale face identification problem, please consider using
* [LargePersonGroup](/docs/services/563879b61984550e40cbbe8d/operations/599acdee6ac60f11b48b5a9d).
* [LargePersonGroup](https://docs.microsoft.com/rest/api/cognitiveservices/face/largepersongroup).
* @param personGroupId Id referencing a particular person group.

@@ -86,3 +88,3 @@ * @param [options] The optional parameters

* personGroup, use [PersonGroup Person -
* List](/docs/services/563879b61984550e40cbbe8d/operations/563879b61984550f30395241).
* List](https://docs.microsoft.com/rest/api/cognitiveservices/face/persongroupperson/list).
* @param personGroupId Id referencing a particular person group.

@@ -89,0 +91,0 @@ * @param [options] The optional parameters

@@ -170,9 +170,10 @@ import * as msRest from "@azure/ms-rest-js";

* Only the extracted face feature will be stored on server until [PersonGroup PersonFace -
* Delete](/docs/services/563879b61984550e40cbbe8d/operations/563879b61984550f3039523e),
* Delete](https://docs.microsoft.com/rest/api/cognitiveservices/face/persongroupperson/deleteface),
* [PersonGroup Person -
* Delete](/docs/services/563879b61984550e40cbbe8d/operations/563879b61984550f3039523d) or
* Delete](https://docs.microsoft.com/rest/api/cognitiveservices/face/persongroupperson/delete) or
* [PersonGroup -
* Delete](/docs/services/563879b61984550e40cbbe8d/operations/563879b61984550f30395245) is called.
* Delete](https://docs.microsoft.com/rest/api/cognitiveservices/face/persongroup/delete) is
* called.
* <br /> Note persistedFaceId is different from faceId generated by [Face -
* Detect](/docs/services/563879b61984550e40cbbe8d/operations/563879b61984550f30395236).
* Detect](https://docs.microsoft.com/rest/api/cognitiveservices/face/face/detectwithurl).
* * Higher face image quality means better recognition precision. Please consider high-quality

@@ -185,4 +186,4 @@ * faces: frontal, clear, and face size is 200x200 pixels (100 pixels between eyes) or bigger.

* error. If the provided "targetFace" rectangle is not returned from [Face -
* Detect](/docs/services/563879b61984550e40cbbe8d/operations/563879b61984550f30395236), there’s no
* guarantee to detect and add the face successfully.
* Detect](https://docs.microsoft.com/rest/api/cognitiveservices/face/face/detectwithurl), there’s
* no guarantee to detect and add the face successfully.
* * Out of detectable face size (36x36 - 4096x4096 pixels), large head-pose, or large occlusions

@@ -219,9 +220,10 @@ * will cause failures.

* Only the extracted face feature will be stored on server until [PersonGroup PersonFace -
* Delete](/docs/services/563879b61984550e40cbbe8d/operations/563879b61984550f3039523e),
* Delete](https://docs.microsoft.com/rest/api/cognitiveservices/face/persongroupperson/deleteface),
* [PersonGroup Person -
* Delete](/docs/services/563879b61984550e40cbbe8d/operations/563879b61984550f3039523d) or
* Delete](https://docs.microsoft.com/rest/api/cognitiveservices/face/persongroupperson/delete) or
* [PersonGroup -
* Delete](/docs/services/563879b61984550e40cbbe8d/operations/563879b61984550f30395245) is called.
* Delete](https://docs.microsoft.com/rest/api/cognitiveservices/face/persongroup/delete) is
* called.
* <br /> Note persistedFaceId is different from faceId generated by [Face -
* Detect](/docs/services/563879b61984550e40cbbe8d/operations/563879b61984550f30395236).
* Detect](https://docs.microsoft.com/rest/api/cognitiveservices/face/face/detectwithurl).
* * Higher face image quality means better recognition precision. Please consider high-quality

@@ -234,4 +236,4 @@ * faces: frontal, clear, and face size is 200x200 pixels (100 pixels between eyes) or bigger.

* an error. If the provided "targetFace" rectangle is not returned from [Face -
* Detect](/docs/services/563879b61984550e40cbbe8d/operations/563879b61984550f30395236), there’s no
* guarantee to detect and add the face successfully.
* Detect](https://docs.microsoft.com/rest/api/cognitiveservices/face/face/detectwithurl), there’s
* no guarantee to detect and add the face successfully.
* * Out of detectable face size (36x36 - 4096x4096 pixels), large head-pose, or large occlusions

@@ -246,9 +248,10 @@ * will cause failures.

* models, please refer to [How to specify a detection
* model](https://docs.microsoft.com/en-us/azure/cognitive-services/face/face-api-how-to-topics/specify-detection-model)
* model](https://docs.microsoft.com/azure/cognitive-services/face/face-api-how-to-topics/specify-detection-model)
* | Model | Recommended use-case(s) |
* | ---------- | -------- |
* | 'detection_01': | The default detection model for [PersonGroup Person - Add
* Face](/docs/services/563879b61984550e40cbbe8d/operations/563879b61984550f3039523b). Recommend
* for near frontal face detection. For scenarios with exceptionally large angle (head-pose) faces,
* occluded faces or wrong image orientation, the faces in such cases may not be detected. |
* Face](https://docs.microsoft.com/rest/api/cognitiveservices/face/persongroupperson/addfacefromurl).
* Recommend for near frontal face detection. For scenarios with exceptionally large angle
* (head-pose) faces, occluded faces or wrong image orientation, the faces in such cases may not be
* detected. |
* | 'detection_02': | Detection model released in 2019 May with improved accuracy especially on

@@ -283,9 +286,10 @@ * small, side and blurry faces. |

* Only the extracted face feature will be stored on server until [PersonGroup PersonFace -
* Delete](/docs/services/563879b61984550e40cbbe8d/operations/563879b61984550f3039523e),
* Delete](https://docs.microsoft.com/rest/api/cognitiveservices/face/persongroupperson/deleteface),
* [PersonGroup Person -
* Delete](/docs/services/563879b61984550e40cbbe8d/operations/563879b61984550f3039523d) or
* Delete](https://docs.microsoft.com/rest/api/cognitiveservices/face/persongroupperson/delete) or
* [PersonGroup -
* Delete](/docs/services/563879b61984550e40cbbe8d/operations/563879b61984550f30395245) is called.
* Delete](https://docs.microsoft.com/rest/api/cognitiveservices/face/persongroup/delete) is
* called.
* <br /> Note persistedFaceId is different from faceId generated by [Face -
* Detect](/docs/services/563879b61984550e40cbbe8d/operations/563879b61984550f30395236).
* Detect](https://docs.microsoft.com/rest/api/cognitiveservices/face/face/detectwithurl).
* * Higher face image quality means better recognition precision. Please consider high-quality

@@ -298,4 +302,4 @@ * faces: frontal, clear, and face size is 200x200 pixels (100 pixels between eyes) or bigger.

* an error. If the provided "targetFace" rectangle is not returned from [Face -
* Detect](/docs/services/563879b61984550e40cbbe8d/operations/563879b61984550f30395236), there’s no
* guarantee to detect and add the face successfully.
* Detect](https://docs.microsoft.com/rest/api/cognitiveservices/face/face/detectwithurl), there’s
* no guarantee to detect and add the face successfully.
* * Out of detectable face size (36x36 - 4096x4096 pixels), large head-pose, or large occlusions

@@ -310,9 +314,10 @@ * will cause failures.

* models, please refer to [How to specify a detection
* model](https://docs.microsoft.com/en-us/azure/cognitive-services/face/face-api-how-to-topics/specify-detection-model)
* model](https://docs.microsoft.com/azure/cognitive-services/face/face-api-how-to-topics/specify-detection-model)
* | Model | Recommended use-case(s) |
* | ---------- | -------- |
* | 'detection_01': | The default detection model for [PersonGroup Person - Add
* Face](/docs/services/563879b61984550e40cbbe8d/operations/563879b61984550f3039523b). Recommend
* for near frontal face detection. For scenarios with exceptionally large angle (head-pose) faces,
* occluded faces or wrong image orientation, the faces in such cases may not be detected. |
* Face](https://docs.microsoft.com/rest/api/cognitiveservices/face/persongroupperson/addfacefromurl).
* Recommend for near frontal face detection. For scenarios with exceptionally large angle
* (head-pose) faces, occluded faces or wrong image orientation, the faces in such cases may not be
* detected. |
* | 'detection_02': | Detection model released in 2019 May with improved accuracy especially on

@@ -319,0 +324,0 @@ * small, side and blurry faces. |

The MIT License (MIT)
Copyright (c) 2019 Microsoft
Copyright (c) 2020 Microsoft

@@ -5,0 +5,0 @@ Permission is hereby granted, free of charge, to any person obtaining a copy

@@ -5,3 +5,3 @@ {

"description": "FaceClient Library with typescript type definitions for node.js and browser.",
"version": "4.0.0",
"version": "4.1.0",
"dependencies": {

@@ -8,0 +8,0 @@ "@azure/ms-rest-js": "^2.0.4",

@@ -29,7 +29,7 @@ ## An isomorphic javascript sdk for - FaceClient

```typescript
import { FaceClient, FaceModels } from "@azure/cognitiveservices-face";
import { CognitiveServicesCredentials } from "@azure/ms-rest-azure-js";
```javascript
const { FaceClient, FaceModels } = require("@azure/cognitiveservices-face");
const { CognitiveServicesCredentials } = require("@azure/ms-rest-azure-js");
async function main(): Promise<void> {
async function main() {
const faceKey = process.env["faceKey"] || "<faceKey>";

@@ -41,3 +41,3 @@ const faceEndPoint = process.env["faceEndPoint"] || "<faceEndPoint>";

"https://pbs.twimg.com/profile_images/3354326900/3a5168f2b45c07d0965098be1a4e3007.jpeg";
const options: FaceModels.FaceDetectWithUrlOptionalParams = {
const options = {
returnFaceLandmarks: true

@@ -110,2 +110,2 @@ };

![Impressions](https://azure-sdk-impressions.azurewebsites.net/api/impressions/azure-sdk-for-js/sdk/cognitiveservices/cognitiveservices-face/README.png)
![Impressions](https://azure-sdk-impressions.azurewebsites.net/api/impressions/azure-sdk-for-js%2Fsdk%2Fcognitiveservices%2Fcognitiveservices-face%2FREADME.png)

@@ -14,3 +14,3 @@ /*

const packageName = "@azure/cognitiveservices-face";
const packageVersion = "4.0.0";
const packageVersion = "4.1.0";

@@ -17,0 +17,0 @@ export class FaceClientContext extends msRest.ServiceClient {

@@ -32,9 +32,9 @@ /*

* or a large face list. faceId array contains the faces created by [Face -
* Detect](/docs/services/563879b61984550e40cbbe8d/operations/563879b61984550f30395236), which will
* expire 24 hours after creation. A "faceListId" is created by [FaceList -
* Create](/docs/services/563879b61984550e40cbbe8d/operations/563879b61984550f3039524b) containing
* Detect](https://docs.microsoft.com/rest/api/cognitiveservices/face/face/detectwithurl), which
* will expire 24 hours after creation. A "faceListId" is created by [FaceList -
* Create](https://docs.microsoft.com/rest/api/cognitiveservices/face/facelist/create) containing
* persistedFaceIds that will not expire. And a "largeFaceListId" is created by [LargeFaceList -
* Create](/docs/services/563879b61984550e40cbbe8d/operations/5a157b68d2de3616c086f2cc) containing
* persistedFaceIds that will also not expire. Depending on the input the returned similar faces
* list contains faceIds or persistedFaceIds ranked by similarity.
* Create](https://docs.microsoft.com/rest/api/cognitiveservices/face/largefacelist/create)
* containing persistedFaceIds that will also not expire. Depending on the input the returned
* similar faces list contains faceIds or persistedFaceIds ranked by similarity.
* <br/>Find similar has two working modes, "matchPerson" and "matchFace". "matchPerson" is the

@@ -87,4 +87,4 @@ * default mode that it tries to find faces of the same person as possible by using internal

* * Group API needs at least 2 candidate faces and 1000 at most. We suggest to try [Face -
* Verify](/docs/services/563879b61984550e40cbbe8d/operations/563879b61984550f3039523a) when you
* only have 2 candidate faces.
* Verify](https://docs.microsoft.com/rest/api/cognitiveservices/face/face/verifyfacetoface) when
* you only have 2 candidate faces.
* * The 'recognitionModel' associated with the query faces' faceIds should be the same.

@@ -125,5 +125,5 @@ * @param faceIds Array of candidate faceId created by Face - Detect. The maximum is 1000 faces

* identification. See more in [PersonGroup -
* Train](/docs/services/563879b61984550e40cbbe8d/operations/563879b61984550f30395249) and
* Train](https://docs.microsoft.com/rest/api/cognitiveservices/face/persongroup/train) and
* [LargePersonGroup -
* Train](/docs/services/563879b61984550e40cbbe8d/operations/599ae2d16ac60f11b48b5aa4).
* Train](https://docs.microsoft.com/rest/api/cognitiveservices/face/largepersongroup/train).
* <br/>

@@ -141,3 +141,3 @@ *

* * Try [Face - Find
* Similar](/docs/services/563879b61984550e40cbbe8d/operations/563879b61984550f30395237) when you
* Similar](https://docs.microsoft.com/rest/api/cognitiveservices/face/face/findsimilar) when you
* need to find similar faces from a face list/large face list instead of a person group/large

@@ -220,7 +220,7 @@ * person group.

* is an identifier of the face feature and will be used in [Face -
* Identify](/docs/services/563879b61984550e40cbbe8d/operations/563879b61984550f30395239), [Face -
* Verify](/docs/services/563879b61984550e40cbbe8d/operations/563879b61984550f3039523a), and [Face
* - Find Similar](/docs/services/563879b61984550e40cbbe8d/operations/563879b61984550f30395237).
* The stored face feature(s) will expire and be deleted 24 hours after the original detection
* call.
* Identify](https://docs.microsoft.com/rest/api/cognitiveservices/face/face/identify), [Face -
* Verify](https://docs.microsoft.com/rest/api/cognitiveservices/face/face/verifyfacetoface), and
* [Face - Find
* Similar](https://docs.microsoft.com/rest/api/cognitiveservices/face/face/findsimilar). The
* stored face feature(s) will expire and be deleted 24 hours after the original detection call.
* * Optional parameters include faceId, landmarks, and attributes. Attributes include age, gender,

@@ -235,5 +235,6 @@ * headPose, smile, facialHair, glasses, emotion, hair, makeup, occlusion, accessories, blur,

* * For optimal results when querying [Face -
* Identify](/docs/services/563879b61984550e40cbbe8d/operations/563879b61984550f30395239), [Face -
* Verify](/docs/services/563879b61984550e40cbbe8d/operations/563879b61984550f3039523a), and [Face
* - Find Similar](/docs/services/563879b61984550e40cbbe8d/operations/563879b61984550f30395237)
* Identify](https://docs.microsoft.com/rest/api/cognitiveservices/face/face/identify), [Face -
* Verify](https://docs.microsoft.com/rest/api/cognitiveservices/face/face/verifyfacetoface), and
* [Face - Find
* Similar](https://docs.microsoft.com/rest/api/cognitiveservices/face/face/findsimilar)
* ('returnFaceId' is true), please use faces that are: frontal, clear, and with a minimum size of

@@ -246,9 +247,10 @@ * 200x200 pixels (100 pixels between eyes).

* models, please refer to [How to specify a detection
* model](https://docs.microsoft.com/en-us/azure/cognitive-services/face/face-api-how-to-topics/specify-detection-model)
* model](https://docs.microsoft.com/azure/cognitive-services/face/face-api-how-to-topics/specify-detection-model)
* | Model | Recommended use-case(s) |
* | ---------- | -------- |
* | 'detection_01': | The default detection model for [Face -
* Detect](/docs/services/563879b61984550e40cbbe8d/operations/563879b61984550f30395236). Recommend
* for near frontal face detection. For scenarios with exceptionally large angle (head-pose) faces,
* occluded faces or wrong image orientation, the faces in such cases may not be detected. |
* Detect](https://docs.microsoft.com/rest/api/cognitiveservices/face/face/detectwithurl).
* Recommend for near frontal face detection. For scenarios with exceptionally large angle
* (head-pose) faces, occluded faces or wrong image orientation, the faces in such cases may not be
* detected. |
* | 'detection_02': | Detection model released in 2019 May with improved accuracy especially on

@@ -263,10 +265,11 @@ * small, side and blurry faces. |

* [How to specify a recognition
* model](https://docs.microsoft.com/en-us/azure/cognitive-services/face/face-api-how-to-topics/specify-recognition-model)
* model](https://docs.microsoft.com/azure/cognitive-services/face/face-api-how-to-topics/specify-recognition-model)
* | Model | Recommended use-case(s) |
* | ---------- | -------- |
* | 'recognition_01': | The default recognition model for [Face -
* Detect](/docs/services/563879b61984550e40cbbe8d/operations/563879b61984550f30395236). All those
* faceIds created before 2019 March are bonded with this recognition model. |
* | 'recognition_02': | Recognition model released in 2019 March. 'recognition_02' is recommended
* since its overall accuracy is improved compared with 'recognition_01'. |
* Detect](https://docs.microsoft.com/rest/api/cognitiveservices/face/face/detectwithurl). All
* those faceIds created before 2019 March are bonded with this recognition model. |
* | 'recognition_02': | Recognition model released in 2019 March. |
* | 'recognition_03': | Recognition model released in 2020 May. 'recognition_03' is recommended
* since its overall accuracy is improved compared with 'recognition_01' and 'recognition_02'. |
* @param url Publicly reachable URL of an image

@@ -338,7 +341,7 @@ * @param [options] The optional parameters

* is an identifier of the face feature and will be used in [Face -
* Identify](/docs/services/563879b61984550e40cbbe8d/operations/563879b61984550f30395239), [Face -
* Verify](/docs/services/563879b61984550e40cbbe8d/operations/563879b61984550f3039523a), and [Face
* - Find Similar](/docs/services/563879b61984550e40cbbe8d/operations/563879b61984550f30395237).
* The stored face feature(s) will expire and be deleted 24 hours after the original detection
* call.
* Identify](https://docs.microsoft.com/rest/api/cognitiveservices/face/face/identify), [Face -
* Verify](https://docs.microsoft.com/rest/api/cognitiveservices/face/face/verifyfacetoface), and
* [Face - Find
* Similar](https://docs.microsoft.com/rest/api/cognitiveservices/face/face/findsimilar). The
* stored face feature(s) will expire and be deleted 24 hours after the original detection call.
* * Optional parameters include faceId, landmarks, and attributes. Attributes include age, gender,

@@ -353,5 +356,6 @@ * headPose, smile, facialHair, glasses, emotion, hair, makeup, occlusion, accessories, blur,

* * For optimal results when querying [Face -
* Identify](/docs/services/563879b61984550e40cbbe8d/operations/563879b61984550f30395239), [Face -
* Verify](/docs/services/563879b61984550e40cbbe8d/operations/563879b61984550f3039523a), and [Face
* - Find Similar](/docs/services/563879b61984550e40cbbe8d/operations/563879b61984550f30395237)
* Identify](https://docs.microsoft.com/rest/api/cognitiveservices/face/face/identify), [Face -
* Verify](https://docs.microsoft.com/rest/api/cognitiveservices/face/face/verifyfacetoface), and
* [Face - Find
* Similar](https://docs.microsoft.com/rest/api/cognitiveservices/face/face/findsimilar)
* ('returnFaceId' is true), please use faces that are: frontal, clear, and with a minimum size of

@@ -364,9 +368,10 @@ * 200x200 pixels (100 pixels between eyes).

* models, please refer to [How to specify a detection
* model](https://docs.microsoft.com/en-us/azure/cognitive-services/face/face-api-how-to-topics/specify-detection-model)
* model](https://docs.microsoft.com/azure/cognitive-services/face/face-api-how-to-topics/specify-detection-model)
* | Model | Recommended use-case(s) |
* | ---------- | -------- |
* | 'detection_01': | The default detection model for [Face -
* Detect](/docs/services/563879b61984550e40cbbe8d/operations/563879b61984550f30395236). Recommend
* for near frontal face detection. For scenarios with exceptionally large angle (head-pose) faces,
* occluded faces or wrong image orientation, the faces in such cases may not be detected. |
* Detect](https://docs.microsoft.com/rest/api/cognitiveservices/face/face/detectwithurl).
* Recommend for near frontal face detection. For scenarios with exceptionally large angle
* (head-pose) faces, occluded faces or wrong image orientation, the faces in such cases may not be
* detected. |
* | 'detection_02': | Detection model released in 2019 May with improved accuracy especially on

@@ -381,10 +386,11 @@ * small, side and blurry faces. |

* [How to specify a recognition
* model](https://docs.microsoft.com/en-us/azure/cognitive-services/face/face-api-how-to-topics/specify-recognition-model)
* model](https://docs.microsoft.com/azure/cognitive-services/face/face-api-how-to-topics/specify-recognition-model)
* | Model | Recommended use-case(s) |
* | ---------- | -------- |
* | 'recognition_01': | The default recognition model for [Face -
* Detect](/docs/services/563879b61984550e40cbbe8d/operations/563879b61984550f30395236). All those
* faceIds created before 2019 March are bonded with this recognition model. |
* | 'recognition_02': | Recognition model released in 2019 March. 'recognition_02' is recommended
* since its overall accuracy is improved compared with 'recognition_01'. |
* Detect](https://docs.microsoft.com/rest/api/cognitiveservices/face/face/detectwithurl). All
* those faceIds created before 2019 March are bonded with this recognition model. |
* | 'recognition_02': | Recognition model released in 2019 March. |
* | 'recognition_03': | Recognition model released in 2020 May. 'recognition_03' is recommended
* since its overall accuracy is improved compared with 'recognition_01' and 'recognition_02'. |
* @param image An image stream.

@@ -391,0 +397,0 @@ * @param [options] The optional parameters

@@ -33,18 +33,17 @@ /*

* <br /> Face list is a list of faces, up to 1,000 faces, and used by [Face - Find
* Similar](/docs/services/563879b61984550e40cbbe8d/operations/563879b61984550f30395237).
* Similar](https://docs.microsoft.com/rest/api/cognitiveservices/face/face/findsimilar).
* <br /> After creation, user should use [FaceList - Add
* Face](/docs/services/563879b61984550e40cbbe8d/operations/563879b61984550f30395250) to import the
* faces. No image will be stored. Only the extracted face features are stored on server until
* [FaceList - Delete](/docs/services/563879b61984550e40cbbe8d/operations/563879b61984550f3039524f)
* is called.
* Face](https://docs.microsoft.com/rest/api/cognitiveservices/face/facelist/addfacefromurl) to
* import the faces. No image will be stored. Only the extracted face features are stored on server
* until [FaceList -
* Delete](https://docs.microsoft.com/rest/api/cognitiveservices/face/facelist/delete) is called.
* <br /> Find Similar is used for scenario like finding celebrity-like faces, similar face
* filtering, or as a light way face identification. But if the actual use is to identify person,
* please use
* [PersonGroup](/docs/services/563879b61984550e40cbbe8d/operations/563879b61984550f30395244) /
* [LargePersonGroup](/docs/services/563879b61984550e40cbbe8d/operations/599acdee6ac60f11b48b5a9d)
* and [Face -
* Identify](/docs/services/563879b61984550e40cbbe8d/operations/563879b61984550f30395239).
* please use [PersonGroup](https://docs.microsoft.com/rest/api/cognitiveservices/face/persongroup)
* /
* [LargePersonGroup](https://docs.microsoft.com/rest/api/cognitiveservices/face/largepersongroup)
* and [Face - Identify](https://docs.microsoft.com/rest/api/cognitiveservices/face/face/identify).
* <br /> Please consider
* [LargeFaceList](/docs/services/563879b61984550e40cbbe8d/operations/5a157b68d2de3616c086f2cc)
* when the face number is large. It can support up to 1,000,000 faces.
* [LargeFaceList](https://docs.microsoft.com/rest/api/cognitiveservices/face/largefacelist) when
* the face number is large. It can support up to 1,000,000 faces.
* <br />'recognitionModel' should be specified to associate with this face list. The default value

@@ -57,6 +56,7 @@ * for 'recognitionModel' is 'recognition_01', if the latest model needed, please explicitly

* * 'recognition_01': The default recognition model for [FaceList-
* Create](/docs/services/563879b61984550e40cbbe8d/operations/563879b61984550f3039524b). All those
* Create](https://docs.microsoft.com/rest/api/cognitiveservices/face/facelist/create). All those
* face lists created before 2019 March are bonded with this recognition model.
* * 'recognition_02': Recognition model released in 2019 March. 'recognition_02' is recommended
* since its overall accuracy is improved compared with 'recognition_01'.
* * 'recognition_02': Recognition model released in 2019 March.
* * 'recognition_03': Recognition model released in 2020 May. 'recognition_03' is recommended
* since its overall accuracy is improved compared with 'recognition_01' and 'recognition_02'.
* @param faceListId Id referencing a particular face list.

@@ -175,3 +175,3 @@ * @param [options] The optional parameters

* To get face information inside faceList use [FaceList -
* Get](/docs/services/563879b61984550e40cbbe8d/operations/563879b61984550f3039524c)
* Get](https://docs.microsoft.com/rest/api/cognitiveservices/face/facelist/get)
* @param [options] The optional parameters

@@ -238,7 +238,7 @@ * @returns Promise<Models.FaceListListResponse>

* will be stored. Only the extracted face feature will be stored on server until [FaceList -
* Delete Face](/docs/services/563879b61984550e40cbbe8d/operations/563879b61984550f30395251) or
* [FaceList - Delete](/docs/services/563879b61984550e40cbbe8d/operations/563879b61984550f3039524f)
* Delete Face](https://docs.microsoft.com/rest/api/cognitiveservices/face/facelist/deleteface) or
* [FaceList - Delete](https://docs.microsoft.com/rest/api/cognitiveservices/face/facelist/delete)
* is called.
* <br /> Note persistedFaceId is different from faceId generated by [Face -
* Detect](/docs/services/563879b61984550e40cbbe8d/operations/563879b61984550f30395236).
* Detect](https://docs.microsoft.com/rest/api/cognitiveservices/face/face/detectwithurl).
* * Higher face image quality means better detection and recognition precision. Please consider

@@ -251,4 +251,4 @@ * high-quality faces: frontal, clear, and face size is 200x200 pixels (100 pixels between eyes) or

* error. If the provided "targetFace" rectangle is not returned from [Face -
* Detect](/docs/services/563879b61984550e40cbbe8d/operations/563879b61984550f30395236), there’s no
* guarantee to detect and add the face successfully.
* Detect](https://docs.microsoft.com/rest/api/cognitiveservices/face/face/detectwithurl), there’s
* no guarantee to detect and add the face successfully.
* * Out of detectable face size (36x36 - 4096x4096 pixels), large head-pose, or large occlusions

@@ -263,9 +263,10 @@ * will cause failures.

* models, please refer to [How to specify a detection
* model](https://docs.microsoft.com/en-us/azure/cognitive-services/face/face-api-how-to-topics/specify-detection-model)
* model](https://docs.microsoft.com/azure/cognitive-services/face/face-api-how-to-topics/specify-detection-model)
* | Model | Recommended use-case(s) |
* | ---------- | -------- |
* | 'detection_01': | The default detection model for [FaceList - Add
* Face](/docs/services/563879b61984550e40cbbe8d/operations/563879b61984550f30395250). Recommend
* for near frontal face detection. For scenarios with exceptionally large angle (head-pose) faces,
* occluded faces or wrong image orientation, the faces in such cases may not be detected. |
* Face](https://docs.microsoft.com/rest/api/cognitiveservices/face/facelist/addfacefromurl).
* Recommend for near frontal face detection. For scenarios with exceptionally large angle
* (head-pose) faces, occluded faces or wrong image orientation, the faces in such cases may not be
* detected. |
* | 'detection_02': | Detection model released in 2019 May with improved accuracy especially on

@@ -308,7 +309,7 @@ * small, side and blurry faces. |

* will be stored. Only the extracted face feature will be stored on server until [FaceList -
* Delete Face](/docs/services/563879b61984550e40cbbe8d/operations/563879b61984550f30395251) or
* [FaceList - Delete](/docs/services/563879b61984550e40cbbe8d/operations/563879b61984550f3039524f)
* Delete Face](https://docs.microsoft.com/rest/api/cognitiveservices/face/facelist/deleteface) or
* [FaceList - Delete](https://docs.microsoft.com/rest/api/cognitiveservices/face/facelist/delete)
* is called.
* <br /> Note persistedFaceId is different from faceId generated by [Face -
* Detect](/docs/services/563879b61984550e40cbbe8d/operations/563879b61984550f30395236).
* Detect](https://docs.microsoft.com/rest/api/cognitiveservices/face/face/detectwithurl).
* * Higher face image quality means better detection and recognition precision. Please consider

@@ -321,4 +322,4 @@ * high-quality faces: frontal, clear, and face size is 200x200 pixels (100 pixels between eyes) or

* error. If the provided "targetFace" rectangle is not returned from [Face -
* Detect](/docs/services/563879b61984550e40cbbe8d/operations/563879b61984550f30395236), there’s no
* guarantee to detect and add the face successfully.
* Detect](https://docs.microsoft.com/rest/api/cognitiveservices/face/face/detectwithurl), there’s
* no guarantee to detect and add the face successfully.
* * Out of detectable face size (36x36 - 4096x4096 pixels), large head-pose, or large occlusions

@@ -333,9 +334,10 @@ * will cause failures.

* models, please refer to [How to specify a detection
* model](https://docs.microsoft.com/en-us/azure/cognitive-services/face/face-api-how-to-topics/specify-detection-model)
* model](https://docs.microsoft.com/azure/cognitive-services/face/face-api-how-to-topics/specify-detection-model)
* | Model | Recommended use-case(s) |
* | ---------- | -------- |
* | 'detection_01': | The default detection model for [FaceList - Add
* Face](/docs/services/563879b61984550e40cbbe8d/operations/563879b61984550f30395250). Recommend
* for near frontal face detection. For scenarios with exceptionally large angle (head-pose) faces,
* occluded faces or wrong image orientation, the faces in such cases may not be detected. |
* Face](https://docs.microsoft.com/rest/api/cognitiveservices/face/facelist/addfacefromurl).
* Recommend for near frontal face detection. For scenarios with exceptionally large angle
* (head-pose) faces, occluded faces or wrong image orientation, the faces in such cases may not be
* detected. |
* | 'detection_02': | Detection model released in 2019 May with improved accuracy especially on

@@ -342,0 +344,0 @@ * small, side and blurry faces. |

@@ -33,18 +33,18 @@ /*

* <br /> Large face list is a list of faces, up to 1,000,000 faces, and used by [Face - Find
* Similar](/docs/services/563879b61984550e40cbbe8d/operations/563879b61984550f30395237).
* Similar](https://docs.microsoft.com/rest/api/cognitiveservices/face/face/findsimilar).
* <br /> After creation, user should use [LargeFaceList Face -
* Add](/docs/services/563879b61984550e40cbbe8d/operations/5a158c10d2de3616c086f2d3) to import the
* faces and [LargeFaceList -
* Train](/docs/services/563879b61984550e40cbbe8d/operations/5a158422d2de3616c086f2d1) to make it
* ready for [Face - Find
* Similar](/docs/services/563879b61984550e40cbbe8d/operations/563879b61984550f30395237). No image
* Add](https://docs.microsoft.com/rest/api/cognitiveservices/face/largefacelist/addfacefromurl) to
* import the faces and [LargeFaceList -
* Train](https://docs.microsoft.com/rest/api/cognitiveservices/face/largefacelist/train) to make
* it ready for [Face - Find
* Similar](https://docs.microsoft.com/rest/api/cognitiveservices/face/face/findsimilar). No image
* will be stored. Only the extracted face features are stored on server until [LargeFaceList -
* Delete](/docs/services/563879b61984550e40cbbe8d/operations/5a1580d5d2de3616c086f2cd) is called.
* Delete](https://docs.microsoft.com/rest/api/cognitiveservices/face/largefacelist/delete) is
* called.
* <br /> Find Similar is used for scenario like finding celebrity-like faces, similar face
* filtering, or as a light way face identification. But if the actual use is to identify person,
* please use
* [PersonGroup](/docs/services/563879b61984550e40cbbe8d/operations/563879b61984550f30395244) /
* [LargePersonGroup](/docs/services/563879b61984550e40cbbe8d/operations/599acdee6ac60f11b48b5a9d)
* and [Face -
* Identify](/docs/services/563879b61984550e40cbbe8d/operations/563879b61984550f30395239).
* please use [PersonGroup](https://docs.microsoft.com/rest/api/cognitiveservices/face/persongroup)
* /
* [LargePersonGroup](https://docs.microsoft.com/rest/api/cognitiveservices/face/largepersongroup)
* and [Face - Identify](https://docs.microsoft.com/rest/api/cognitiveservices/face/face/identify).
* <br/>'recognitionModel' should be specified to associate with this large face list. The default

@@ -57,6 +57,7 @@ * value for 'recognitionModel' is 'recognition_01', if the latest model needed, please explicitly

* * 'recognition_01': The default recognition model for [LargeFaceList-
* Create](/docs/services/563879b61984550e40cbbe8d/operations/5a157b68d2de3616c086f2cc). All those
* large face lists created before 2019 March are bonded with this recognition model.
* * 'recognition_02': Recognition model released in 2019 March. 'recognition_02' is recommended
* since its overall accuracy is improved compared with 'recognition_01'.
* Create](https://docs.microsoft.com/rest/api/cognitiveservices/face/largefacelist/create). All
* those large face lists created before 2019 March are bonded with this recognition model.
* * 'recognition_02': Recognition model released in 2019 March.
* * 'recognition_03': Recognition model released in 2020 May. 'recognition_03' is recommended
* since its overall accuracy is improved compared with 'recognition_01' and 'recognition_02'.
*

@@ -208,3 +209,3 @@ * Large face list quota:

* To get face information inside largeFaceList use [LargeFaceList Face -
* Get](/docs/services/563879b61984550e40cbbe8d/operations/5a158cf2d2de3616c086f2d5)<br />
* Get](https://docs.microsoft.com/rest/api/cognitiveservices/face/largefacelist/getface)<br />
* * Large face lists are stored in alphabetical order of largeFaceListId.

@@ -376,7 +377,9 @@ * * "start" parameter (string, optional) is a user-provided largeFaceListId value that returned

* will be stored. Only the extracted face feature will be stored on server until [LargeFaceList
* Face - Delete](/docs/services/563879b61984550e40cbbe8d/operations/5a158c8ad2de3616c086f2d4) or
* Face -
* Delete](https://docs.microsoft.com/rest/api/cognitiveservices/face/largefacelist/deleteface) or
* [LargeFaceList -
* Delete](/docs/services/563879b61984550e40cbbe8d/operations/5a1580d5d2de3616c086f2cd) is called.
* Delete](https://docs.microsoft.com/rest/api/cognitiveservices/face/largefacelist/delete) is
* called.
* <br /> Note persistedFaceId is different from faceId generated by [Face -
* Detect](/docs/services/563879b61984550e40cbbe8d/operations/563879b61984550f30395236).
* Detect](https://docs.microsoft.com/rest/api/cognitiveservices/face/face/detectwithurl).
* * Higher face image quality means better recognition precision. Please consider high-quality

@@ -388,4 +391,4 @@ * faces: frontal, clear, and face size is 200x200 pixels (100 pixels between eyes) or bigger.

* error. If the provided "targetFace" rectangle is not returned from [Face -
* Detect](/docs/services/563879b61984550e40cbbe8d/operations/563879b61984550f30395236), there’s no
* guarantee to detect and add the face successfully.
* Detect](https://docs.microsoft.com/rest/api/cognitiveservices/face/face/detectwithurl), there’s
* no guarantee to detect and add the face successfully.
* * Out of detectable face size (36x36 - 4096x4096 pixels), large head-pose, or large occlusions

@@ -400,9 +403,10 @@ * will cause failures.

* models, please refer to [How to specify a detection
* model](https://docs.microsoft.com/en-us/azure/cognitive-services/face/face-api-how-to-topics/specify-detection-model)
* model](https://docs.microsoft.com/azure/cognitive-services/face/face-api-how-to-topics/specify-detection-model)
* | Model | Recommended use-case(s) |
* | ---------- | -------- |
* | 'detection_01': | The default detection model for [LargeFaceList - Add
* Face](/docs/services/563879b61984550e40cbbe8d/operations/5a158c10d2de3616c086f2d3). Recommend
* for near frontal face detection. For scenarios with exceptionally large angle (head-pose) faces,
* occluded faces or wrong image orientation, the faces in such cases may not be detected. |
* Face](https://docs.microsoft.com/rest/api/cognitiveservices/face/largefacelist/addfacefromurl).
* Recommend for near frontal face detection. For scenarios with exceptionally large angle
* (head-pose) faces, occluded faces or wrong image orientation, the faces in such cases may not be
* detected. |
* | 'detection_02': | Detection model released in 2019 May with improved accuracy especially on

@@ -478,7 +482,9 @@ * small, side and blurry faces. |

* will be stored. Only the extracted face feature will be stored on server until [LargeFaceList
* Face - Delete](/docs/services/563879b61984550e40cbbe8d/operations/5a158c8ad2de3616c086f2d4) or
* Face -
* Delete](https://docs.microsoft.com/rest/api/cognitiveservices/face/largefacelist/deleteface) or
* [LargeFaceList -
* Delete](/docs/services/563879b61984550e40cbbe8d/operations/5a1580d5d2de3616c086f2cd) is called.
* Delete](https://docs.microsoft.com/rest/api/cognitiveservices/face/largefacelist/delete) is
* called.
* <br /> Note persistedFaceId is different from faceId generated by [Face -
* Detect](/docs/services/563879b61984550e40cbbe8d/operations/563879b61984550f30395236).
* Detect](https://docs.microsoft.com/rest/api/cognitiveservices/face/face/detectwithurl).
* * Higher face image quality means better recognition precision. Please consider high-quality

@@ -490,4 +496,4 @@ * faces: frontal, clear, and face size is 200x200 pixels (100 pixels between eyes) or bigger.

* error. If the provided "targetFace" rectangle is not returned from [Face -
* Detect](/docs/services/563879b61984550e40cbbe8d/operations/563879b61984550f30395236), there’s no
* guarantee to detect and add the face successfully.
* Detect](https://docs.microsoft.com/rest/api/cognitiveservices/face/face/detectwithurl), there’s
* no guarantee to detect and add the face successfully.
* * Out of detectable face size (36x36 - 4096x4096 pixels), large head-pose, or large occlusions

@@ -502,9 +508,10 @@ * will cause failures.

* models, please refer to [How to specify a detection
* model](https://docs.microsoft.com/en-us/azure/cognitive-services/face/face-api-how-to-topics/specify-detection-model)
* model](https://docs.microsoft.com/azure/cognitive-services/face/face-api-how-to-topics/specify-detection-model)
* | Model | Recommended use-case(s) |
* | ---------- | -------- |
* | 'detection_01': | The default detection model for [LargeFaceList - Add
* Face](/docs/services/563879b61984550e40cbbe8d/operations/5a158c10d2de3616c086f2d3). Recommend
* for near frontal face detection. For scenarios with exceptionally large angle (head-pose) faces,
* occluded faces or wrong image orientation, the faces in such cases may not be detected. |
* Face](https://docs.microsoft.com/rest/api/cognitiveservices/face/largefacelist/addfacefromurl).
* Recommend for near frontal face detection. For scenarios with exceptionally large angle
* (head-pose) faces, occluded faces or wrong image orientation, the faces in such cases may not be
* detected. |
* | 'detection_02': | Detection model released in 2019 May with improved accuracy especially on

@@ -511,0 +518,0 @@ * small, side and blurry faces. |

@@ -36,12 +36,13 @@ /*

* <br /> After creation, use [LargePersonGroup Person -
* Create](/docs/services/563879b61984550e40cbbe8d/operations/599adcba3a7b9412a4d53f40) to add
* person into the group, and call [LargePersonGroup -
* Train](/docs/services/563879b61984550e40cbbe8d/operations/599ae2d16ac60f11b48b5aa4) to get this
* group ready for [Face -
* Identify](/docs/services/563879b61984550e40cbbe8d/operations/563879b61984550f30395239).
* Create](https://docs.microsoft.com/rest/api/cognitiveservices/face/largepersongroupperson/create)
* to add person into the group, and call [LargePersonGroup -
* Train](https://docs.microsoft.com/rest/api/cognitiveservices/face/largepersongroup/train) to get
* this group ready for [Face -
* Identify](https://docs.microsoft.com/rest/api/cognitiveservices/face/face/identify).
* <br /> No image will be stored. Only the person's extracted face features and userData will be
* stored on server until [LargePersonGroup Person -
* Delete](/docs/services/563879b61984550e40cbbe8d/operations/599ade5c6ac60f11b48b5aa2) or
* [LargePersonGroup -
* Delete](/docs/services/563879b61984550e40cbbe8d/operations/599adc216ac60f11b48b5a9f) is called.
* Delete](https://docs.microsoft.com/rest/api/cognitiveservices/face/largepersongroupperson/delete)
* or [LargePersonGroup -
* Delete](https://docs.microsoft.com/rest/api/cognitiveservices/face/largepersongroup/delete) is
* called.
* <br/>'recognitionModel' should be specified to associate with this large person group. The

@@ -54,6 +55,7 @@ * default value for 'recognitionModel' is 'recognition_01', if the latest model needed, please

* * 'recognition_01': The default recognition model for [LargePersonGroup -
* Create](/docs/services/563879b61984550e40cbbe8d/operations/599acdee6ac60f11b48b5a9d). All those
* large person groups created before 2019 March are bonded with this recognition model.
* * 'recognition_02': Recognition model released in 2019 March. 'recognition_02' is recommended
* since its overall accuracy is improved compared with 'recognition_01'.
* Create](https://docs.microsoft.com/rest/api/cognitiveservices/face/largepersongroup/create). All
* those large person groups created before 2019 March are bonded with this recognition model.
* * 'recognition_02': Recognition model released in 2019 March.
* * 'recognition_03': Recognition model released in 2020 May. 'recognition_03' is recommended
* since its overall accuracy is improved compared with 'recognition_01' and 'recognition_02'.
*

@@ -121,3 +123,4 @@ * Large person group quota:

* recognitionModel. This API returns large person group information only, use [LargePersonGroup
* Person - List](/docs/services/563879b61984550e40cbbe8d/operations/599adda06ac60f11b48b5aa1)
* Person -
* List](https://docs.microsoft.com/rest/api/cognitiveservices/face/largepersongroupperson/list)
* instead to retrieve person information under the large person group.

@@ -124,0 +127,0 @@ * @param largePersonGroupId Id referencing a particular large person group.

@@ -302,9 +302,10 @@ /*

* PersonFace -
* Delete](/docs/services/563879b61984550e40cbbe8d/operations/599ae2966ac60f11b48b5aa3),
* Delete](https://docs.microsoft.com/rest/api/cognitiveservices/face/largepersongroupperson/deleteface),
* [LargePersonGroup Person -
* Delete](/docs/services/563879b61984550e40cbbe8d/operations/599ade5c6ac60f11b48b5aa2) or
* [LargePersonGroup -
* Delete](/docs/services/563879b61984550e40cbbe8d/operations/599adc216ac60f11b48b5a9f) is called.
* Delete](https://docs.microsoft.com/rest/api/cognitiveservices/face/largepersongroupperson/delete)
* or [LargePersonGroup -
* Delete](https://docs.microsoft.com/rest/api/cognitiveservices/face/largepersongroup/delete) is
* called.
* <br /> Note persistedFaceId is different from faceId generated by [Face -
* Detect](/docs/services/563879b61984550e40cbbe8d/operations/563879b61984550f30395236).
* Detect](https://docs.microsoft.com/rest/api/cognitiveservices/face/face/detectwithurl).
* * Higher face image quality means better recognition precision. Please consider high-quality

@@ -317,4 +318,4 @@ * faces: frontal, clear, and face size is 200x200 pixels (100 pixels between eyes) or bigger.

* error. If the provided "targetFace" rectangle is not returned from [Face -
* Detect](/docs/services/563879b61984550e40cbbe8d/operations/563879b61984550f30395236), there’s no
* guarantee to detect and add the face successfully.
* Detect](https://docs.microsoft.com/rest/api/cognitiveservices/face/face/detectwithurl), there’s
* no guarantee to detect and add the face successfully.
* * Out of detectable face size (36x36 - 4096x4096 pixels), large head-pose, or large occlusions

@@ -329,9 +330,10 @@ * will cause failures.

* models, please refer to [How to specify a detection
* model](https://docs.microsoft.com/en-us/azure/cognitive-services/face/face-api-how-to-topics/specify-detection-model)
* model](https://docs.microsoft.com/azure/cognitive-services/face/face-api-how-to-topics/specify-detection-model)
* | Model | Recommended use-case(s) |
* | ---------- | -------- |
* | 'detection_01': | The default detection model for [LargePersonGroup Person - Add
* Face](/docs/services/563879b61984550e40cbbe8d/operations/599adf2a3a7b9412a4d53f42). Recommend
* for near frontal face detection. For scenarios with exceptionally large angle (head-pose) faces,
* occluded faces or wrong image orientation, the faces in such cases may not be detected. |
* Face](https://docs.microsoft.com/rest/api/cognitiveservices/face/largepersongroupperson/addfacefromurl).
* Recommend for near frontal face detection. For scenarios with exceptionally large angle
* (head-pose) faces, occluded faces or wrong image orientation, the faces in such cases may not be
* detected. |
* | 'detection_02': | Detection model released in 2019 May with improved accuracy especially on

@@ -379,9 +381,10 @@ * small, side and blurry faces. |

* PersonFace -
* Delete](/docs/services/563879b61984550e40cbbe8d/operations/599ae2966ac60f11b48b5aa3),
* Delete](https://docs.microsoft.com/rest/api/cognitiveservices/face/largepersongroupperson/deleteface),
* [LargePersonGroup Person -
* Delete](/docs/services/563879b61984550e40cbbe8d/operations/599ade5c6ac60f11b48b5aa2) or
* [LargePersonGroup -
* Delete](/docs/services/563879b61984550e40cbbe8d/operations/599adc216ac60f11b48b5a9f) is called.
* Delete](https://docs.microsoft.com/rest/api/cognitiveservices/face/largepersongroupperson/delete)
* or [LargePersonGroup -
* Delete](https://docs.microsoft.com/rest/api/cognitiveservices/face/largepersongroup/delete) is
* called.
* <br /> Note persistedFaceId is different from faceId generated by [Face -
* Detect](/docs/services/563879b61984550e40cbbe8d/operations/563879b61984550f30395236).
* Detect](https://docs.microsoft.com/rest/api/cognitiveservices/face/face/detectwithurl).
* * Higher face image quality means better recognition precision. Please consider high-quality

@@ -394,4 +397,4 @@ * faces: frontal, clear, and face size is 200x200 pixels (100 pixels between eyes) or bigger.

* error. If the provided "targetFace" rectangle is not returned from [Face -
* Detect](/docs/services/563879b61984550e40cbbe8d/operations/563879b61984550f30395236), there’s no
* guarantee to detect and add the face successfully.
* Detect](https://docs.microsoft.com/rest/api/cognitiveservices/face/face/detectwithurl), there’s
* no guarantee to detect and add the face successfully.
* * Out of detectable face size (36x36 - 4096x4096 pixels), large head-pose, or large occlusions

@@ -406,9 +409,10 @@ * will cause failures.

* models, please refer to [How to specify a detection
* model](https://docs.microsoft.com/en-us/azure/cognitive-services/face/face-api-how-to-topics/specify-detection-model)
* model](https://docs.microsoft.com/azure/cognitive-services/face/face-api-how-to-topics/specify-detection-model)
* | Model | Recommended use-case(s) |
* | ---------- | -------- |
* | 'detection_01': | The default detection model for [LargePersonGroup Person - Add
* Face](/docs/services/563879b61984550e40cbbe8d/operations/599adf2a3a7b9412a4d53f42). Recommend
* for near frontal face detection. For scenarios with exceptionally large angle (head-pose) faces,
* occluded faces or wrong image orientation, the faces in such cases may not be detected. |
* Face](https://docs.microsoft.com/rest/api/cognitiveservices/face/largepersongroupperson/addfacefromurl).
* Recommend for near frontal face detection. For scenarios with exceptionally large angle
* (head-pose) faces, occluded faces or wrong image orientation, the faces in such cases may not be
* detected. |
* | 'detection_02': | Detection model released in 2019 May with improved accuracy especially on

@@ -415,0 +419,0 @@ * small, side and blurry faces. |

@@ -35,12 +35,13 @@ /*

* <br /> After creation, use [PersonGroup Person -
* Create](/docs/services/563879b61984550e40cbbe8d/operations/563879b61984550f3039523c) to add
* persons into the group, and then call [PersonGroup -
* Train](/docs/services/563879b61984550e40cbbe8d/operations/563879b61984550f30395249) to get this
* Create](https://docs.microsoft.com/rest/api/cognitiveservices/face/persongroupperson/create) to
* add persons into the group, and then call [PersonGroup -
* Train](https://docs.microsoft.com/rest/api/cognitiveservices/face/persongroup/train) to get this
* group ready for [Face -
* Identify](/docs/services/563879b61984550e40cbbe8d/operations/563879b61984550f30395239).
* Identify](https://docs.microsoft.com/rest/api/cognitiveservices/face/face/identify).
* <br /> No image will be stored. Only the person's extracted face features and userData will be
* stored on server until [PersonGroup Person -
* Delete](/docs/services/563879b61984550e40cbbe8d/operations/563879b61984550f3039523d) or
* Delete](https://docs.microsoft.com/rest/api/cognitiveservices/face/persongroupperson/delete) or
* [PersonGroup -
* Delete](/docs/services/563879b61984550e40cbbe8d/operations/563879b61984550f30395245) is called.
* Delete](https://docs.microsoft.com/rest/api/cognitiveservices/face/persongroup/delete) is
* called.
* <br/>'recognitionModel' should be specified to associate with this person group. The default

@@ -53,6 +54,7 @@ * value for 'recognitionModel' is 'recognition_01', if the latest model needed, please explicitly

* * 'recognition_01': The default recognition model for [PersonGroup -
* Create](/docs/services/563879b61984550e40cbbe8d/operations/563879b61984550f30395244). All those
* person groups created before 2019 March are bonded with this recognition model.
* * 'recognition_02': Recognition model released in 2019 March. 'recognition_02' is recommended
* since its overall accuracy is improved compared with 'recognition_01'.
* Create](https://docs.microsoft.com/rest/api/cognitiveservices/face/persongroup/create). All
* those person groups created before 2019 March are bonded with this recognition model.
* * 'recognition_02': Recognition model released in 2019 March.
* * 'recognition_03': Recognition model released in 2020 May. 'recognition_03' is recommended
* since its overall accuracy is improved compared with 'recognition_01' and 'recognition_02'.
*

@@ -63,3 +65,3 @@ * Person group quota:

* * to handle larger scale face identification problem, please consider using
* [LargePersonGroup](/docs/services/563879b61984550e40cbbe8d/operations/599acdee6ac60f11b48b5a9d).
* [LargePersonGroup](https://docs.microsoft.com/rest/api/cognitiveservices/face/largepersongroup).
* @param personGroupId Id referencing a particular person group.

@@ -123,3 +125,3 @@ * @param [options] The optional parameters

* personGroup, use [PersonGroup Person -
* List](/docs/services/563879b61984550e40cbbe8d/operations/563879b61984550f30395241).
* List](https://docs.microsoft.com/rest/api/cognitiveservices/face/persongroupperson/list).
* @param personGroupId Id referencing a particular person group.

@@ -126,0 +128,0 @@ * @param [options] The optional parameters

@@ -264,9 +264,10 @@ /*

* Only the extracted face feature will be stored on server until [PersonGroup PersonFace -
* Delete](/docs/services/563879b61984550e40cbbe8d/operations/563879b61984550f3039523e),
* Delete](https://docs.microsoft.com/rest/api/cognitiveservices/face/persongroupperson/deleteface),
* [PersonGroup Person -
* Delete](/docs/services/563879b61984550e40cbbe8d/operations/563879b61984550f3039523d) or
* Delete](https://docs.microsoft.com/rest/api/cognitiveservices/face/persongroupperson/delete) or
* [PersonGroup -
* Delete](/docs/services/563879b61984550e40cbbe8d/operations/563879b61984550f30395245) is called.
* Delete](https://docs.microsoft.com/rest/api/cognitiveservices/face/persongroup/delete) is
* called.
* <br /> Note persistedFaceId is different from faceId generated by [Face -
* Detect](/docs/services/563879b61984550e40cbbe8d/operations/563879b61984550f30395236).
* Detect](https://docs.microsoft.com/rest/api/cognitiveservices/face/face/detectwithurl).
* * Higher face image quality means better recognition precision. Please consider high-quality

@@ -279,4 +280,4 @@ * faces: frontal, clear, and face size is 200x200 pixels (100 pixels between eyes) or bigger.

* error. If the provided "targetFace" rectangle is not returned from [Face -
* Detect](/docs/services/563879b61984550e40cbbe8d/operations/563879b61984550f30395236), there’s no
* guarantee to detect and add the face successfully.
* Detect](https://docs.microsoft.com/rest/api/cognitiveservices/face/face/detectwithurl), there’s
* no guarantee to detect and add the face successfully.
* * Out of detectable face size (36x36 - 4096x4096 pixels), large head-pose, or large occlusions

@@ -325,9 +326,10 @@ * will cause failures.

* Only the extracted face feature will be stored on server until [PersonGroup PersonFace -
* Delete](/docs/services/563879b61984550e40cbbe8d/operations/563879b61984550f3039523e),
* Delete](https://docs.microsoft.com/rest/api/cognitiveservices/face/persongroupperson/deleteface),
* [PersonGroup Person -
* Delete](/docs/services/563879b61984550e40cbbe8d/operations/563879b61984550f3039523d) or
* Delete](https://docs.microsoft.com/rest/api/cognitiveservices/face/persongroupperson/delete) or
* [PersonGroup -
* Delete](/docs/services/563879b61984550e40cbbe8d/operations/563879b61984550f30395245) is called.
* Delete](https://docs.microsoft.com/rest/api/cognitiveservices/face/persongroup/delete) is
* called.
* <br /> Note persistedFaceId is different from faceId generated by [Face -
* Detect](/docs/services/563879b61984550e40cbbe8d/operations/563879b61984550f30395236).
* Detect](https://docs.microsoft.com/rest/api/cognitiveservices/face/face/detectwithurl).
* * Higher face image quality means better recognition precision. Please consider high-quality

@@ -340,4 +342,4 @@ * faces: frontal, clear, and face size is 200x200 pixels (100 pixels between eyes) or bigger.

* an error. If the provided "targetFace" rectangle is not returned from [Face -
* Detect](/docs/services/563879b61984550e40cbbe8d/operations/563879b61984550f30395236), there’s no
* guarantee to detect and add the face successfully.
* Detect](https://docs.microsoft.com/rest/api/cognitiveservices/face/face/detectwithurl), there’s
* no guarantee to detect and add the face successfully.
* * Out of detectable face size (36x36 - 4096x4096 pixels), large head-pose, or large occlusions

@@ -352,9 +354,10 @@ * will cause failures.

* models, please refer to [How to specify a detection
* model](https://docs.microsoft.com/en-us/azure/cognitive-services/face/face-api-how-to-topics/specify-detection-model)
* model](https://docs.microsoft.com/azure/cognitive-services/face/face-api-how-to-topics/specify-detection-model)
* | Model | Recommended use-case(s) |
* | ---------- | -------- |
* | 'detection_01': | The default detection model for [PersonGroup Person - Add
* Face](/docs/services/563879b61984550e40cbbe8d/operations/563879b61984550f3039523b). Recommend
* for near frontal face detection. For scenarios with exceptionally large angle (head-pose) faces,
* occluded faces or wrong image orientation, the faces in such cases may not be detected. |
* Face](https://docs.microsoft.com/rest/api/cognitiveservices/face/persongroupperson/addfacefromurl).
* Recommend for near frontal face detection. For scenarios with exceptionally large angle
* (head-pose) faces, occluded faces or wrong image orientation, the faces in such cases may not be
* detected. |
* | 'detection_02': | Detection model released in 2019 May with improved accuracy especially on

@@ -401,9 +404,10 @@ * small, side and blurry faces. |

* Only the extracted face feature will be stored on server until [PersonGroup PersonFace -
* Delete](/docs/services/563879b61984550e40cbbe8d/operations/563879b61984550f3039523e),
* Delete](https://docs.microsoft.com/rest/api/cognitiveservices/face/persongroupperson/deleteface),
* [PersonGroup Person -
* Delete](/docs/services/563879b61984550e40cbbe8d/operations/563879b61984550f3039523d) or
* Delete](https://docs.microsoft.com/rest/api/cognitiveservices/face/persongroupperson/delete) or
* [PersonGroup -
* Delete](/docs/services/563879b61984550e40cbbe8d/operations/563879b61984550f30395245) is called.
* Delete](https://docs.microsoft.com/rest/api/cognitiveservices/face/persongroup/delete) is
* called.
* <br /> Note persistedFaceId is different from faceId generated by [Face -
* Detect](/docs/services/563879b61984550e40cbbe8d/operations/563879b61984550f30395236).
* Detect](https://docs.microsoft.com/rest/api/cognitiveservices/face/face/detectwithurl).
* * Higher face image quality means better recognition precision. Please consider high-quality

@@ -416,4 +420,4 @@ * faces: frontal, clear, and face size is 200x200 pixels (100 pixels between eyes) or bigger.

* an error. If the provided "targetFace" rectangle is not returned from [Face -
* Detect](/docs/services/563879b61984550e40cbbe8d/operations/563879b61984550f30395236), there’s no
* guarantee to detect and add the face successfully.
* Detect](https://docs.microsoft.com/rest/api/cognitiveservices/face/face/detectwithurl), there’s
* no guarantee to detect and add the face successfully.
* * Out of detectable face size (36x36 - 4096x4096 pixels), large head-pose, or large occlusions

@@ -428,9 +432,10 @@ * will cause failures.

* models, please refer to [How to specify a detection
* model](https://docs.microsoft.com/en-us/azure/cognitive-services/face/face-api-how-to-topics/specify-detection-model)
* model](https://docs.microsoft.com/azure/cognitive-services/face/face-api-how-to-topics/specify-detection-model)
* | Model | Recommended use-case(s) |
* | ---------- | -------- |
* | 'detection_01': | The default detection model for [PersonGroup Person - Add
* Face](/docs/services/563879b61984550e40cbbe8d/operations/563879b61984550f3039523b). Recommend
* for near frontal face detection. For scenarios with exceptionally large angle (head-pose) faces,
* occluded faces or wrong image orientation, the faces in such cases may not be detected. |
* Face](https://docs.microsoft.com/rest/api/cognitiveservices/face/persongroupperson/addfacefromurl).
* Recommend for near frontal face detection. For scenarios with exceptionally large angle
* (head-pose) faces, occluded faces or wrong image orientation, the faces in such cases may not be
* detected. |
* | 'detection_02': | Detection model released in 2019 May with improved accuracy especially on

@@ -437,0 +442,0 @@ * small, side and blurry faces. |

Sorry, the diff of this file is too big to display

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is too big to display

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is too big to display

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc