azure_cognitiveservices_face 0.18.0 → 0.19.0

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 71a274153c545d2eae6ffe5c0b5e79ad43cd1c7665468d26a6c63049b7617e80
4
- data.tar.gz: d35f06788ba980f34e47ee8ded48464dadd2f1745ae0398c74ec75508415f80b
3
+ metadata.gz: 65cf68a64d6562b0c8348952c2e5c13df274119ebc710bb5c1b094c7a99efc63
4
+ data.tar.gz: 548e82050cd54e6844e0e94ea2723e9ddba2078e91cb8b2e86d3b5926b7c55f8
5
5
  SHA512:
6
- metadata.gz: 482dbc4d7630a580a635e54726493c68c122e5228b406a251d2e87b77558d17ded8a19df77412d915c54ba276e1de40119000826a441a243bee188cea668b80c
7
- data.tar.gz: 4fac96b8fd3f64db9274237255226d5c9e075fe1a980e2933109aecad173e879eb7acc31a0f042889627c348012381bc503a2e15ad77431bd4560fd8c8d06899
6
+ metadata.gz: e63f8d3229a58c522f74cce060e80ce8adac33a51f2082b1b1473e9b8bc3f7d7c0fac6ca817d85d94eafb144633310c37e579b69954f0957227469e87ea2cfef
7
+ data.tar.gz: 99037ab4347dc087cca2ae07f6ab479eb479d18d7875c70e6fab387ec8d56541c1a798b67b738ccb895d1b076e1ef06ab546b4a352a3a5d96824b26904de06a1
@@ -89,5 +89,6 @@ module Azure::CognitiveServices::Face::V1_0
89
89
  autoload :SnapshotObjectType, '1.0/generated/azure_cognitiveservices_face/models/snapshot_object_type.rb'
90
90
  autoload :OperationStatusType, '1.0/generated/azure_cognitiveservices_face/models/operation_status_type.rb'
91
91
  autoload :FaceAttributeType, '1.0/generated/azure_cognitiveservices_face/models/face_attribute_type.rb'
92
+ autoload :DetectionModel, '1.0/generated/azure_cognitiveservices_face/models/detection_model.rb'
92
93
  end
93
94
  end
@@ -248,6 +248,8 @@ module Azure::CognitiveServices::Face::V1_0
248
248
  end
249
249
 
250
250
  result.request_id = http_response['x-ms-request-id'] unless http_response['x-ms-request-id'].nil?
251
+ result.correlation_request_id = http_response['x-ms-correlation-request-id'] unless http_response['x-ms-correlation-request-id'].nil?
252
+ result.client_request_id = http_response['x-ms-client-request-id'] unless http_response['x-ms-client-request-id'].nil?
251
253
  # Deserialize Response
252
254
  if status_code == 200
253
255
  begin
@@ -407,6 +409,8 @@ module Azure::CognitiveServices::Face::V1_0
407
409
  end
408
410
 
409
411
  result.request_id = http_response['x-ms-request-id'] unless http_response['x-ms-request-id'].nil?
412
+ result.correlation_request_id = http_response['x-ms-correlation-request-id'] unless http_response['x-ms-correlation-request-id'].nil?
413
+ result.client_request_id = http_response['x-ms-client-request-id'] unless http_response['x-ms-client-request-id'].nil?
410
414
  # Deserialize Response
411
415
  if status_code == 200
412
416
  begin
@@ -647,6 +651,8 @@ module Azure::CognitiveServices::Face::V1_0
647
651
  end
648
652
 
649
653
  result.request_id = http_response['x-ms-request-id'] unless http_response['x-ms-request-id'].nil?
654
+ result.correlation_request_id = http_response['x-ms-correlation-request-id'] unless http_response['x-ms-correlation-request-id'].nil?
655
+ result.client_request_id = http_response['x-ms-client-request-id'] unless http_response['x-ms-client-request-id'].nil?
650
656
  # Deserialize Response
651
657
  if status_code == 200
652
658
  begin
@@ -801,6 +807,8 @@ module Azure::CognitiveServices::Face::V1_0
801
807
  end
802
808
 
803
809
  result.request_id = http_response['x-ms-request-id'] unless http_response['x-ms-request-id'].nil?
810
+ result.correlation_request_id = http_response['x-ms-correlation-request-id'] unless http_response['x-ms-correlation-request-id'].nil?
811
+ result.client_request_id = http_response['x-ms-client-request-id'] unless http_response['x-ms-client-request-id'].nil?
804
812
  # Deserialize Response
805
813
  if status_code == 200
806
814
  begin
@@ -821,10 +829,7 @@ module Azure::CognitiveServices::Face::V1_0
821
829
  #
822
830
  # Detect human faces in an image, return face rectangles, and optionally with
823
831
  # faceIds, landmarks, and attributes.<br />
824
- # * Optional parameters including faceId, landmarks, and attributes. Attributes
825
- # include age, gender, headPose, smile, facialHair, glasses, emotion, hair,
826
- # makeup, occlusion, accessories, blur, exposure and noise.
827
- # * The extracted face feature, instead of the actual image, will be stored on
832
+ # * No image will be stored. Only the extracted face feature will be stored on
828
833
  # server. The faceId is an identifier of the face feature and will be used in
829
834
  # [Face -
830
835
  # Identify](/docs/services/563879b61984550e40cbbe8d/operations/563879b61984550f30395239),
@@ -832,23 +837,40 @@ module Azure::CognitiveServices::Face::V1_0
832
837
  # Verify](/docs/services/563879b61984550e40cbbe8d/operations/563879b61984550f3039523a),
833
838
  # and [Face - Find
834
839
  # Similar](/docs/services/563879b61984550e40cbbe8d/operations/563879b61984550f30395237).
835
- # It will expire 24 hours after the detection call.
836
- # * Higher face image quality means better detection and recognition precision.
837
- # Please consider high-quality faces: frontal, clear, and face size is 200x200
838
- # pixels (100 pixels between eyes) or bigger.
840
+ # The stored face feature(s) will expire and be deleted 24 hours after the
841
+ # original detection call.
842
+ # * Optional parameters include faceId, landmarks, and attributes. Attributes
843
+ # include age, gender, headPose, smile, facialHair, glasses, emotion, hair,
844
+ # makeup, occlusion, accessories, blur, exposure and noise. Some of the results
845
+ # returned for specific attributes may not be highly accurate.
839
846
  # * JPEG, PNG, GIF (the first frame), and BMP format are supported. The allowed
840
847
  # image file size is from 1KB to 6MB.
841
- # * Faces are detectable when its size is 36x36 to 4096x4096 pixels. If need to
842
- # detect very small but clear faces, please try to enlarge the input image.
843
- # * Up to 64 faces can be returned for an image. Faces are ranked by face
848
+ # * Up to 100 faces can be returned for an image. Faces are ranked by face
844
849
  # rectangle size from large to small.
845
- # * Face detector prefer frontal and near-frontal faces. There are cases that
846
- # faces may not be detected, e.g. exceptionally large face angles (head-pose)
847
- # or being occluded, or wrong image orientation.
848
- # * Attributes (age, gender, headPose, smile, facialHair, glasses, emotion,
849
- # hair, makeup, occlusion, accessories, blur, exposure and noise) may not be
850
- # perfectly accurate. HeadPose's pitch value is a reserved field and will
851
- # always return 0.
850
+ # * For optimal results when querying [Face -
851
+ # Identify](/docs/services/563879b61984550e40cbbe8d/operations/563879b61984550f30395239),
852
+ # [Face -
853
+ # Verify](/docs/services/563879b61984550e40cbbe8d/operations/563879b61984550f3039523a),
854
+ # and [Face - Find
855
+ # Similar](/docs/services/563879b61984550e40cbbe8d/operations/563879b61984550f30395237)
856
+ # ('returnFaceId' is true), please use faces that are: frontal, clear, and with
857
+ # a minimum size of 200x200 pixels (100 pixels between eyes).
858
+ # * The minimum detectable face size is 36x36 pixels in an image no larger than
859
+ # 1920x1080 pixels. Images with dimensions higher than 1920x1080 pixels will
860
+ # need a proportionally larger minimum face size.
861
+ # * Different 'detectionModel' values can be provided. To use and compare
862
+ # different detection models, please refer to [How to specify a detection
863
+ # model](https://docs.microsoft.com/en-us/azure/cognitive-services/face/face-api-how-to-topics/specify-detection-model)
864
+ # | Model | Recommended use-case(s) |
865
+ # | ---------- | -------- |
866
+ # | 'detection_01': | The default detection model for [Face -
867
+ # Detect](/docs/services/563879b61984550e40cbbe8d/operations/563879b61984550f30395236).
868
+ # Recommend for near frontal face detection. For scenarios with exceptionally
869
+ # large angle (head-pose) faces, occluded faces or wrong image orientation, the
870
+ # faces in such cases may not be detected. |
871
+ # | 'detection_02': | Detection model released in 2019 May with improved
872
+ # accuracy especially on small, side and blurry faces. |
873
+ #
852
874
  # * Different 'recognitionModel' values are provided. If follow-up operations
853
875
  # like Verify, Identify, Find Similar are needed, please specify the
854
876
  # recognition model with 'recognitionModel' parameter. The default value for
@@ -857,7 +879,15 @@ module Azure::CognitiveServices::Face::V1_0
857
879
  # detected faceIds will be associated with the specified recognition model.
858
880
  # More details, please refer to [How to specify a recognition
859
881
  # model](https://docs.microsoft.com/en-us/azure/cognitive-services/face/face-api-how-to-topics/specify-recognition-model)
860
- #
882
+ # | Model | Recommended use-case(s) |
883
+ # | ---------- | -------- |
884
+ # | 'recognition_01': | The default recognition model for [Face -
885
+ # Detect](/docs/services/563879b61984550e40cbbe8d/operations/563879b61984550f30395236).
886
+ # All those faceIds created before 2019 March are bonded with this recognition
887
+ # model. |
888
+ # | 'recognition_02': | Recognition model released in 2019 March.
889
+ # 'recognition_02' is recommended since its overall accuracy is improved
890
+ # compared with 'recognition_01'. |
861
891
  #
862
892
  # @param url [String] Publicly reachable URL of an image
863
893
  # @param return_face_id [Boolean] A value indicating whether the operation
@@ -878,23 +908,26 @@ module Azure::CognitiveServices::Face::V1_0
878
908
  # Possible values include: 'recognition_01', 'recognition_02'
879
909
  # @param return_recognition_model [Boolean] A value indicating whether the
880
910
  # operation should return 'recognitionModel' in response.
911
+ # @param detection_model [DetectionModel] Name of detection model. Detection
912
+ # model is used to detect faces in the submitted image. A detection model name
913
+ # can be provided when performing Face - Detect or (Large)FaceList - Add Face
914
+ # or (Large)PersonGroup - Add Face. The default value is 'detection_01', if
915
+ # another model is needed, please explicitly specify it. Possible values
916
+ # include: 'detection_01', 'detection_02'
881
917
  # @param custom_headers [Hash{String => String}] A hash of custom headers that
882
918
  # will be added to the HTTP request.
883
919
  #
884
920
  # @return [Array] operation results.
885
921
  #
886
- def detect_with_url(url, return_face_id:true, return_face_landmarks:false, return_face_attributes:nil, recognition_model:nil, return_recognition_model:false, custom_headers:nil)
887
- response = detect_with_url_async(url, return_face_id:return_face_id, return_face_landmarks:return_face_landmarks, return_face_attributes:return_face_attributes, recognition_model:recognition_model, return_recognition_model:return_recognition_model, custom_headers:custom_headers).value!
922
+ def detect_with_url(url, return_face_id:true, return_face_landmarks:false, return_face_attributes:nil, recognition_model:nil, return_recognition_model:false, detection_model:nil, custom_headers:nil)
923
+ response = detect_with_url_async(url, return_face_id:return_face_id, return_face_landmarks:return_face_landmarks, return_face_attributes:return_face_attributes, recognition_model:recognition_model, return_recognition_model:return_recognition_model, detection_model:detection_model, custom_headers:custom_headers).value!
888
924
  response.body unless response.nil?
889
925
  end
890
926
 
891
927
  #
892
928
  # Detect human faces in an image, return face rectangles, and optionally with
893
929
  # faceIds, landmarks, and attributes.<br />
894
- # * Optional parameters including faceId, landmarks, and attributes. Attributes
895
- # include age, gender, headPose, smile, facialHair, glasses, emotion, hair,
896
- # makeup, occlusion, accessories, blur, exposure and noise.
897
- # * The extracted face feature, instead of the actual image, will be stored on
930
+ # * No image will be stored. Only the extracted face feature will be stored on
898
931
  # server. The faceId is an identifier of the face feature and will be used in
899
932
  # [Face -
900
933
  # Identify](/docs/services/563879b61984550e40cbbe8d/operations/563879b61984550f30395239),
@@ -902,23 +935,40 @@ module Azure::CognitiveServices::Face::V1_0
902
935
  # Verify](/docs/services/563879b61984550e40cbbe8d/operations/563879b61984550f3039523a),
903
936
  # and [Face - Find
904
937
  # Similar](/docs/services/563879b61984550e40cbbe8d/operations/563879b61984550f30395237).
905
- # It will expire 24 hours after the detection call.
906
- # * Higher face image quality means better detection and recognition precision.
907
- # Please consider high-quality faces: frontal, clear, and face size is 200x200
908
- # pixels (100 pixels between eyes) or bigger.
938
+ # The stored face feature(s) will expire and be deleted 24 hours after the
939
+ # original detection call.
940
+ # * Optional parameters include faceId, landmarks, and attributes. Attributes
941
+ # include age, gender, headPose, smile, facialHair, glasses, emotion, hair,
942
+ # makeup, occlusion, accessories, blur, exposure and noise. Some of the results
943
+ # returned for specific attributes may not be highly accurate.
909
944
  # * JPEG, PNG, GIF (the first frame), and BMP format are supported. The allowed
910
945
  # image file size is from 1KB to 6MB.
911
- # * Faces are detectable when its size is 36x36 to 4096x4096 pixels. If need to
912
- # detect very small but clear faces, please try to enlarge the input image.
913
- # * Up to 64 faces can be returned for an image. Faces are ranked by face
946
+ # * Up to 100 faces can be returned for an image. Faces are ranked by face
914
947
  # rectangle size from large to small.
915
- # * Face detector prefer frontal and near-frontal faces. There are cases that
916
- # faces may not be detected, e.g. exceptionally large face angles (head-pose)
917
- # or being occluded, or wrong image orientation.
918
- # * Attributes (age, gender, headPose, smile, facialHair, glasses, emotion,
919
- # hair, makeup, occlusion, accessories, blur, exposure and noise) may not be
920
- # perfectly accurate. HeadPose's pitch value is a reserved field and will
921
- # always return 0.
948
+ # * For optimal results when querying [Face -
949
+ # Identify](/docs/services/563879b61984550e40cbbe8d/operations/563879b61984550f30395239),
950
+ # [Face -
951
+ # Verify](/docs/services/563879b61984550e40cbbe8d/operations/563879b61984550f3039523a),
952
+ # and [Face - Find
953
+ # Similar](/docs/services/563879b61984550e40cbbe8d/operations/563879b61984550f30395237)
954
+ # ('returnFaceId' is true), please use faces that are: frontal, clear, and with
955
+ # a minimum size of 200x200 pixels (100 pixels between eyes).
956
+ # * The minimum detectable face size is 36x36 pixels in an image no larger than
957
+ # 1920x1080 pixels. Images with dimensions higher than 1920x1080 pixels will
958
+ # need a proportionally larger minimum face size.
959
+ # * Different 'detectionModel' values can be provided. To use and compare
960
+ # different detection models, please refer to [How to specify a detection
961
+ # model](https://docs.microsoft.com/en-us/azure/cognitive-services/face/face-api-how-to-topics/specify-detection-model)
962
+ # | Model | Recommended use-case(s) |
963
+ # | ---------- | -------- |
964
+ # | 'detection_01': | The default detection model for [Face -
965
+ # Detect](/docs/services/563879b61984550e40cbbe8d/operations/563879b61984550f30395236).
966
+ # Recommend for near frontal face detection. For scenarios with exceptionally
967
+ # large angle (head-pose) faces, occluded faces or wrong image orientation, the
968
+ # faces in such cases may not be detected. |
969
+ # | 'detection_02': | Detection model released in 2019 May with improved
970
+ # accuracy especially on small, side and blurry faces. |
971
+ #
922
972
  # * Different 'recognitionModel' values are provided. If follow-up operations
923
973
  # like Verify, Identify, Find Similar are needed, please specify the
924
974
  # recognition model with 'recognitionModel' parameter. The default value for
@@ -927,7 +977,15 @@ module Azure::CognitiveServices::Face::V1_0
927
977
  # detected faceIds will be associated with the specified recognition model.
928
978
  # More details, please refer to [How to specify a recognition
929
979
  # model](https://docs.microsoft.com/en-us/azure/cognitive-services/face/face-api-how-to-topics/specify-recognition-model)
930
- #
980
+ # | Model | Recommended use-case(s) |
981
+ # | ---------- | -------- |
982
+ # | 'recognition_01': | The default recognition model for [Face -
983
+ # Detect](/docs/services/563879b61984550e40cbbe8d/operations/563879b61984550f30395236).
984
+ # All those faceIds created before 2019 March are bonded with this recognition
985
+ # model. |
986
+ # | 'recognition_02': | Recognition model released in 2019 March.
987
+ # 'recognition_02' is recommended since its overall accuracy is improved
988
+ # compared with 'recognition_01'. |
931
989
  #
932
990
  # @param url [String] Publicly reachable URL of an image
933
991
  # @param return_face_id [Boolean] A value indicating whether the operation
@@ -948,22 +1006,25 @@ module Azure::CognitiveServices::Face::V1_0
948
1006
  # Possible values include: 'recognition_01', 'recognition_02'
949
1007
  # @param return_recognition_model [Boolean] A value indicating whether the
950
1008
  # operation should return 'recognitionModel' in response.
1009
+ # @param detection_model [DetectionModel] Name of detection model. Detection
1010
+ # model is used to detect faces in the submitted image. A detection model name
1011
+ # can be provided when performing Face - Detect or (Large)FaceList - Add Face
1012
+ # or (Large)PersonGroup - Add Face. The default value is 'detection_01', if
1013
+ # another model is needed, please explicitly specify it. Possible values
1014
+ # include: 'detection_01', 'detection_02'
951
1015
  # @param custom_headers [Hash{String => String}] A hash of custom headers that
952
1016
  # will be added to the HTTP request.
953
1017
  #
954
1018
  # @return [MsRestAzure::AzureOperationResponse] HTTP response information.
955
1019
  #
956
- def detect_with_url_with_http_info(url, return_face_id:true, return_face_landmarks:false, return_face_attributes:nil, recognition_model:nil, return_recognition_model:false, custom_headers:nil)
957
- detect_with_url_async(url, return_face_id:return_face_id, return_face_landmarks:return_face_landmarks, return_face_attributes:return_face_attributes, recognition_model:recognition_model, return_recognition_model:return_recognition_model, custom_headers:custom_headers).value!
1020
+ def detect_with_url_with_http_info(url, return_face_id:true, return_face_landmarks:false, return_face_attributes:nil, recognition_model:nil, return_recognition_model:false, detection_model:nil, custom_headers:nil)
1021
+ detect_with_url_async(url, return_face_id:return_face_id, return_face_landmarks:return_face_landmarks, return_face_attributes:return_face_attributes, recognition_model:recognition_model, return_recognition_model:return_recognition_model, detection_model:detection_model, custom_headers:custom_headers).value!
958
1022
  end
959
1023
 
960
1024
  #
961
1025
  # Detect human faces in an image, return face rectangles, and optionally with
962
1026
  # faceIds, landmarks, and attributes.<br />
963
- # * Optional parameters including faceId, landmarks, and attributes. Attributes
964
- # include age, gender, headPose, smile, facialHair, glasses, emotion, hair,
965
- # makeup, occlusion, accessories, blur, exposure and noise.
966
- # * The extracted face feature, instead of the actual image, will be stored on
1027
+ # * No image will be stored. Only the extracted face feature will be stored on
967
1028
  # server. The faceId is an identifier of the face feature and will be used in
968
1029
  # [Face -
969
1030
  # Identify](/docs/services/563879b61984550e40cbbe8d/operations/563879b61984550f30395239),
@@ -971,23 +1032,40 @@ module Azure::CognitiveServices::Face::V1_0
971
1032
  # Verify](/docs/services/563879b61984550e40cbbe8d/operations/563879b61984550f3039523a),
972
1033
  # and [Face - Find
973
1034
  # Similar](/docs/services/563879b61984550e40cbbe8d/operations/563879b61984550f30395237).
974
- # It will expire 24 hours after the detection call.
975
- # * Higher face image quality means better detection and recognition precision.
976
- # Please consider high-quality faces: frontal, clear, and face size is 200x200
977
- # pixels (100 pixels between eyes) or bigger.
1035
+ # The stored face feature(s) will expire and be deleted 24 hours after the
1036
+ # original detection call.
1037
+ # * Optional parameters include faceId, landmarks, and attributes. Attributes
1038
+ # include age, gender, headPose, smile, facialHair, glasses, emotion, hair,
1039
+ # makeup, occlusion, accessories, blur, exposure and noise. Some of the results
1040
+ # returned for specific attributes may not be highly accurate.
978
1041
  # * JPEG, PNG, GIF (the first frame), and BMP format are supported. The allowed
979
1042
  # image file size is from 1KB to 6MB.
980
- # * Faces are detectable when its size is 36x36 to 4096x4096 pixels. If need to
981
- # detect very small but clear faces, please try to enlarge the input image.
982
- # * Up to 64 faces can be returned for an image. Faces are ranked by face
1043
+ # * Up to 100 faces can be returned for an image. Faces are ranked by face
983
1044
  # rectangle size from large to small.
984
- # * Face detector prefer frontal and near-frontal faces. There are cases that
985
- # faces may not be detected, e.g. exceptionally large face angles (head-pose)
986
- # or being occluded, or wrong image orientation.
987
- # * Attributes (age, gender, headPose, smile, facialHair, glasses, emotion,
988
- # hair, makeup, occlusion, accessories, blur, exposure and noise) may not be
989
- # perfectly accurate. HeadPose's pitch value is a reserved field and will
990
- # always return 0.
1045
+ # * For optimal results when querying [Face -
1046
+ # Identify](/docs/services/563879b61984550e40cbbe8d/operations/563879b61984550f30395239),
1047
+ # [Face -
1048
+ # Verify](/docs/services/563879b61984550e40cbbe8d/operations/563879b61984550f3039523a),
1049
+ # and [Face - Find
1050
+ # Similar](/docs/services/563879b61984550e40cbbe8d/operations/563879b61984550f30395237)
1051
+ # ('returnFaceId' is true), please use faces that are: frontal, clear, and with
1052
+ # a minimum size of 200x200 pixels (100 pixels between eyes).
1053
+ # * The minimum detectable face size is 36x36 pixels in an image no larger than
1054
+ # 1920x1080 pixels. Images with dimensions higher than 1920x1080 pixels will
1055
+ # need a proportionally larger minimum face size.
1056
+ # * Different 'detectionModel' values can be provided. To use and compare
1057
+ # different detection models, please refer to [How to specify a detection
1058
+ # model](https://docs.microsoft.com/en-us/azure/cognitive-services/face/face-api-how-to-topics/specify-detection-model)
1059
+ # | Model | Recommended use-case(s) |
1060
+ # | ---------- | -------- |
1061
+ # | 'detection_01': | The default detection model for [Face -
1062
+ # Detect](/docs/services/563879b61984550e40cbbe8d/operations/563879b61984550f30395236).
1063
+ # Recommend for near frontal face detection. For scenarios with exceptionally
1064
+ # large angle (head-pose) faces, occluded faces or wrong image orientation, the
1065
+ # faces in such cases may not be detected. |
1066
+ # | 'detection_02': | Detection model released in 2019 May with improved
1067
+ # accuracy especially on small, side and blurry faces. |
1068
+ #
991
1069
  # * Different 'recognitionModel' values are provided. If follow-up operations
992
1070
  # like Verify, Identify, Find Similar are needed, please specify the
993
1071
  # recognition model with 'recognitionModel' parameter. The default value for
@@ -996,7 +1074,15 @@ module Azure::CognitiveServices::Face::V1_0
996
1074
  # detected faceIds will be associated with the specified recognition model.
997
1075
  # More details, please refer to [How to specify a recognition
998
1076
  # model](https://docs.microsoft.com/en-us/azure/cognitive-services/face/face-api-how-to-topics/specify-recognition-model)
999
- #
1077
+ # | Model | Recommended use-case(s) |
1078
+ # | ---------- | -------- |
1079
+ # | 'recognition_01': | The default recognition model for [Face -
1080
+ # Detect](/docs/services/563879b61984550e40cbbe8d/operations/563879b61984550f30395236).
1081
+ # All those faceIds created before 2019 March are bonded with this recognition
1082
+ # model. |
1083
+ # | 'recognition_02': | Recognition model released in 2019 March.
1084
+ # 'recognition_02' is recommended since its overall accuracy is improved
1085
+ # compared with 'recognition_01'. |
1000
1086
  #
1001
1087
  # @param url [String] Publicly reachable URL of an image
1002
1088
  # @param return_face_id [Boolean] A value indicating whether the operation
@@ -1017,12 +1103,18 @@ module Azure::CognitiveServices::Face::V1_0
1017
1103
  # Possible values include: 'recognition_01', 'recognition_02'
1018
1104
  # @param return_recognition_model [Boolean] A value indicating whether the
1019
1105
  # operation should return 'recognitionModel' in response.
1106
+ # @param detection_model [DetectionModel] Name of detection model. Detection
1107
+ # model is used to detect faces in the submitted image. A detection model name
1108
+ # can be provided when performing Face - Detect or (Large)FaceList - Add Face
1109
+ # or (Large)PersonGroup - Add Face. The default value is 'detection_01', if
1110
+ # another model is needed, please explicitly specify it. Possible values
1111
+ # include: 'detection_01', 'detection_02'
1020
1112
  # @param [Hash{String => String}] A hash of custom headers that will be added
1021
1113
  # to the HTTP request.
1022
1114
  #
1023
1115
  # @return [Concurrent::Promise] Promise object which holds the HTTP response.
1024
1116
  #
1025
- def detect_with_url_async(url, return_face_id:true, return_face_landmarks:false, return_face_attributes:nil, recognition_model:nil, return_recognition_model:false, custom_headers:nil)
1117
+ def detect_with_url_async(url, return_face_id:true, return_face_landmarks:false, return_face_attributes:nil, recognition_model:nil, return_recognition_model:false, detection_model:nil, custom_headers:nil)
1026
1118
  fail ArgumentError, '@client.endpoint is nil' if @client.endpoint.nil?
1027
1119
  fail ArgumentError, 'url is nil' if url.nil?
1028
1120
 
@@ -1050,7 +1142,7 @@ module Azure::CognitiveServices::Face::V1_0
1050
1142
 
1051
1143
  options = {
1052
1144
  middlewares: [[MsRest::RetryPolicyMiddleware, times: 3, retry: 0.02], [:cookie_jar]],
1053
- query_params: {'returnFaceId' => return_face_id,'returnFaceLandmarks' => return_face_landmarks,'returnFaceAttributes' => return_face_attributes.nil? ? nil : return_face_attributes.join(','),'recognitionModel' => recognition_model,'returnRecognitionModel' => return_recognition_model},
1145
+ query_params: {'returnFaceId' => return_face_id,'returnFaceLandmarks' => return_face_landmarks,'returnFaceAttributes' => return_face_attributes.nil? ? nil : return_face_attributes.join(','),'recognitionModel' => recognition_model,'returnRecognitionModel' => return_recognition_model,'detectionModel' => detection_model},
1054
1146
  body: request_content,
1055
1147
  headers: request_headers.merge(custom_headers || {}),
1056
1148
  base_url: request_url
@@ -1067,6 +1159,8 @@ module Azure::CognitiveServices::Face::V1_0
1067
1159
  end
1068
1160
 
1069
1161
  result.request_id = http_response['x-ms-request-id'] unless http_response['x-ms-request-id'].nil?
1162
+ result.correlation_request_id = http_response['x-ms-correlation-request-id'] unless http_response['x-ms-correlation-request-id'].nil?
1163
+ result.client_request_id = http_response['x-ms-client-request-id'] unless http_response['x-ms-client-request-id'].nil?
1070
1164
  # Deserialize Response
1071
1165
  if status_code == 200
1072
1166
  begin
@@ -1224,6 +1318,8 @@ module Azure::CognitiveServices::Face::V1_0
1224
1318
  end
1225
1319
 
1226
1320
  result.request_id = http_response['x-ms-request-id'] unless http_response['x-ms-request-id'].nil?
1321
+ result.correlation_request_id = http_response['x-ms-correlation-request-id'] unless http_response['x-ms-correlation-request-id'].nil?
1322
+ result.client_request_id = http_response['x-ms-client-request-id'] unless http_response['x-ms-client-request-id'].nil?
1227
1323
  # Deserialize Response
1228
1324
  if status_code == 200
1229
1325
  begin
@@ -1242,8 +1338,67 @@ module Azure::CognitiveServices::Face::V1_0
1242
1338
  end
1243
1339
 
1244
1340
  #
1245
- # Detect human faces in an image and returns face locations, and optionally
1246
- # with faceIds, landmarks, and attributes.
1341
+ # Detect human faces in an image, return face rectangles, and optionally with
1342
+ # faceIds, landmarks, and attributes.<br />
1343
+ # * No image will be stored. Only the extracted face feature will be stored on
1344
+ # server. The faceId is an identifier of the face feature and will be used in
1345
+ # [Face -
1346
+ # Identify](/docs/services/563879b61984550e40cbbe8d/operations/563879b61984550f30395239),
1347
+ # [Face -
1348
+ # Verify](/docs/services/563879b61984550e40cbbe8d/operations/563879b61984550f3039523a),
1349
+ # and [Face - Find
1350
+ # Similar](/docs/services/563879b61984550e40cbbe8d/operations/563879b61984550f30395237).
1351
+ # The stored face feature(s) will expire and be deleted 24 hours after the
1352
+ # original detection call.
1353
+ # * Optional parameters include faceId, landmarks, and attributes. Attributes
1354
+ # include age, gender, headPose, smile, facialHair, glasses, emotion, hair,
1355
+ # makeup, occlusion, accessories, blur, exposure and noise. Some of the results
1356
+ # returned for specific attributes may not be highly accurate.
1357
+ # * JPEG, PNG, GIF (the first frame), and BMP format are supported. The allowed
1358
+ # image file size is from 1KB to 6MB.
1359
+ # * Up to 100 faces can be returned for an image. Faces are ranked by face
1360
+ # rectangle size from large to small.
1361
+ # * For optimal results when querying [Face -
1362
+ # Identify](/docs/services/563879b61984550e40cbbe8d/operations/563879b61984550f30395239),
1363
+ # [Face -
1364
+ # Verify](/docs/services/563879b61984550e40cbbe8d/operations/563879b61984550f3039523a),
1365
+ # and [Face - Find
1366
+ # Similar](/docs/services/563879b61984550e40cbbe8d/operations/563879b61984550f30395237)
1367
+ # ('returnFaceId' is true), please use faces that are: frontal, clear, and with
1368
+ # a minimum size of 200x200 pixels (100 pixels between eyes).
1369
+ # * The minimum detectable face size is 36x36 pixels in an image no larger than
1370
+ # 1920x1080 pixels. Images with dimensions higher than 1920x1080 pixels will
1371
+ # need a proportionally larger minimum face size.
1372
+ # * Different 'detectionModel' values can be provided. To use and compare
1373
+ # different detection models, please refer to [How to specify a detection
1374
+ # model](https://docs.microsoft.com/en-us/azure/cognitive-services/face/face-api-how-to-topics/specify-detection-model)
1375
+ # | Model | Recommended use-case(s) |
1376
+ # | ---------- | -------- |
1377
+ # | 'detection_01': | The default detection model for [Face -
1378
+ # Detect](/docs/services/563879b61984550e40cbbe8d/operations/563879b61984550f30395236).
1379
+ # Recommend for near frontal face detection. For scenarios with exceptionally
1380
+ # large angle (head-pose) faces, occluded faces or wrong image orientation, the
1381
+ # faces in such cases may not be detected. |
1382
+ # | 'detection_02': | Detection model released in 2019 May with improved
1383
+ # accuracy especially on small, side and blurry faces. |
1384
+ #
1385
+ # * Different 'recognitionModel' values are provided. If follow-up operations
1386
+ # like Verify, Identify, Find Similar are needed, please specify the
1387
+ # recognition model with 'recognitionModel' parameter. The default value for
1388
+ # 'recognitionModel' is 'recognition_01', if latest model needed, please
1389
+ # explicitly specify the model you need in this parameter. Once specified, the
1390
+ # detected faceIds will be associated with the specified recognition model.
1391
+ # More details, please refer to [How to specify a recognition
1392
+ # model](https://docs.microsoft.com/en-us/azure/cognitive-services/face/face-api-how-to-topics/specify-recognition-model)
1393
+ # | Model | Recommended use-case(s) |
1394
+ # | ---------- | -------- |
1395
+ # | 'recognition_01': | The default recognition model for [Face -
1396
+ # Detect](/docs/services/563879b61984550e40cbbe8d/operations/563879b61984550f30395236).
1397
+ # All those faceIds created before 2019 March are bonded with this recognition
1398
+ # model. |
1399
+ # | 'recognition_02': | Recognition model released in 2019 March.
1400
+ # 'recognition_02' is recommended since its overall accuracy is improved
1401
+ # compared with 'recognition_01'. |
1247
1402
  #
1248
1403
  # @param image An image stream.
1249
1404
  # @param return_face_id [Boolean] A value indicating whether the operation
@@ -1264,19 +1419,84 @@ module Azure::CognitiveServices::Face::V1_0
1264
1419
  # Possible values include: 'recognition_01', 'recognition_02'
1265
1420
  # @param return_recognition_model [Boolean] A value indicating whether the
1266
1421
  # operation should return 'recognitionModel' in response.
1422
+ # @param detection_model [DetectionModel] Name of detection model. Detection
1423
+ # model is used to detect faces in the submitted image. A detection model name
1424
+ # can be provided when performing Face - Detect or (Large)FaceList - Add Face
1425
+ # or (Large)PersonGroup - Add Face. The default value is 'detection_01', if
1426
+ # another model is needed, please explicitly specify it. Possible values
1427
+ # include: 'detection_01', 'detection_02'
1267
1428
  # @param custom_headers [Hash{String => String}] A hash of custom headers that
1268
1429
  # will be added to the HTTP request.
1269
1430
  #
1270
1431
  # @return [Array] operation results.
1271
1432
  #
1272
- def detect_with_stream(image, return_face_id:true, return_face_landmarks:false, return_face_attributes:nil, recognition_model:nil, return_recognition_model:false, custom_headers:nil)
1273
- response = detect_with_stream_async(image, return_face_id:return_face_id, return_face_landmarks:return_face_landmarks, return_face_attributes:return_face_attributes, recognition_model:recognition_model, return_recognition_model:return_recognition_model, custom_headers:custom_headers).value!
1433
+ def detect_with_stream(image, return_face_id:true, return_face_landmarks:false, return_face_attributes:nil, recognition_model:nil, return_recognition_model:false, detection_model:nil, custom_headers:nil)
1434
+ response = detect_with_stream_async(image, return_face_id:return_face_id, return_face_landmarks:return_face_landmarks, return_face_attributes:return_face_attributes, recognition_model:recognition_model, return_recognition_model:return_recognition_model, detection_model:detection_model, custom_headers:custom_headers).value!
1274
1435
  response.body unless response.nil?
1275
1436
  end
1276
1437
 
1277
1438
  #
1278
- # Detect human faces in an image and returns face locations, and optionally
1279
- # with faceIds, landmarks, and attributes.
1439
+ # Detect human faces in an image, return face rectangles, and optionally with
1440
+ # faceIds, landmarks, and attributes.<br />
1441
+ # * No image will be stored. Only the extracted face feature will be stored on
1442
+ # server. The faceId is an identifier of the face feature and will be used in
1443
+ # [Face -
1444
+ # Identify](/docs/services/563879b61984550e40cbbe8d/operations/563879b61984550f30395239),
1445
+ # [Face -
1446
+ # Verify](/docs/services/563879b61984550e40cbbe8d/operations/563879b61984550f3039523a),
1447
+ # and [Face - Find
1448
+ # Similar](/docs/services/563879b61984550e40cbbe8d/operations/563879b61984550f30395237).
1449
+ # The stored face feature(s) will expire and be deleted 24 hours after the
1450
+ # original detection call.
1451
+ # * Optional parameters include faceId, landmarks, and attributes. Attributes
1452
+ # include age, gender, headPose, smile, facialHair, glasses, emotion, hair,
1453
+ # makeup, occlusion, accessories, blur, exposure and noise. Some of the results
1454
+ # returned for specific attributes may not be highly accurate.
1455
+ # * JPEG, PNG, GIF (the first frame), and BMP format are supported. The allowed
1456
+ # image file size is from 1KB to 6MB.
1457
+ # * Up to 100 faces can be returned for an image. Faces are ranked by face
1458
+ # rectangle size from large to small.
1459
+ # * For optimal results when querying [Face -
1460
+ # Identify](/docs/services/563879b61984550e40cbbe8d/operations/563879b61984550f30395239),
1461
+ # [Face -
1462
+ # Verify](/docs/services/563879b61984550e40cbbe8d/operations/563879b61984550f3039523a),
1463
+ # and [Face - Find
1464
+ # Similar](/docs/services/563879b61984550e40cbbe8d/operations/563879b61984550f30395237)
1465
+ # ('returnFaceId' is true), please use faces that are: frontal, clear, and with
1466
+ # a minimum size of 200x200 pixels (100 pixels between eyes).
1467
+ # * The minimum detectable face size is 36x36 pixels in an image no larger than
1468
+ # 1920x1080 pixels. Images with dimensions higher than 1920x1080 pixels will
1469
+ # need a proportionally larger minimum face size.
1470
+ # * Different 'detectionModel' values can be provided. To use and compare
1471
+ # different detection models, please refer to [How to specify a detection
1472
+ # model](https://docs.microsoft.com/en-us/azure/cognitive-services/face/face-api-how-to-topics/specify-detection-model)
1473
+ # | Model | Recommended use-case(s) |
1474
+ # | ---------- | -------- |
1475
+ # | 'detection_01': | The default detection model for [Face -
1476
+ # Detect](/docs/services/563879b61984550e40cbbe8d/operations/563879b61984550f30395236).
1477
+ # Recommend for near frontal face detection. For scenarios with exceptionally
1478
+ # large angle (head-pose) faces, occluded faces or wrong image orientation, the
1479
+ # faces in such cases may not be detected. |
1480
+ # | 'detection_02': | Detection model released in 2019 May with improved
1481
+ # accuracy especially on small, side and blurry faces. |
1482
+ #
1483
+ # * Different 'recognitionModel' values are provided. If follow-up operations
1484
+ # like Verify, Identify, Find Similar are needed, please specify the
1485
+ # recognition model with 'recognitionModel' parameter. The default value for
1486
+ # 'recognitionModel' is 'recognition_01', if latest model needed, please
1487
+ # explicitly specify the model you need in this parameter. Once specified, the
1488
+ # detected faceIds will be associated with the specified recognition model.
1489
+ # More details, please refer to [How to specify a recognition
1490
+ # model](https://docs.microsoft.com/en-us/azure/cognitive-services/face/face-api-how-to-topics/specify-recognition-model)
1491
+ # | Model | Recommended use-case(s) |
1492
+ # | ---------- | -------- |
1493
+ # | 'recognition_01': | The default recognition model for [Face -
1494
+ # Detect](/docs/services/563879b61984550e40cbbe8d/operations/563879b61984550f30395236).
1495
+ # All those faceIds created before 2019 March are bonded with this recognition
1496
+ # model. |
1497
+ # | 'recognition_02': | Recognition model released in 2019 March.
1498
+ # 'recognition_02' is recommended since its overall accuracy is improved
1499
+ # compared with 'recognition_01'. |
1280
1500
  #
1281
1501
  # @param image An image stream.
1282
1502
  # @param return_face_id [Boolean] A value indicating whether the operation
@@ -1297,18 +1517,83 @@ module Azure::CognitiveServices::Face::V1_0
1297
1517
  # Possible values include: 'recognition_01', 'recognition_02'
1298
1518
  # @param return_recognition_model [Boolean] A value indicating whether the
1299
1519
  # operation should return 'recognitionModel' in response.
1520
+ # @param detection_model [DetectionModel] Name of detection model. Detection
1521
+ # model is used to detect faces in the submitted image. A detection model name
1522
+ # can be provided when performing Face - Detect or (Large)FaceList - Add Face
1523
+ # or (Large)PersonGroup - Add Face. The default value is 'detection_01', if
1524
+ # another model is needed, please explicitly specify it. Possible values
1525
+ # include: 'detection_01', 'detection_02'
1300
1526
  # @param custom_headers [Hash{String => String}] A hash of custom headers that
1301
1527
  # will be added to the HTTP request.
1302
1528
  #
1303
1529
  # @return [MsRestAzure::AzureOperationResponse] HTTP response information.
1304
1530
  #
1305
- def detect_with_stream_with_http_info(image, return_face_id:true, return_face_landmarks:false, return_face_attributes:nil, recognition_model:nil, return_recognition_model:false, custom_headers:nil)
1306
- detect_with_stream_async(image, return_face_id:return_face_id, return_face_landmarks:return_face_landmarks, return_face_attributes:return_face_attributes, recognition_model:recognition_model, return_recognition_model:return_recognition_model, custom_headers:custom_headers).value!
1531
+ def detect_with_stream_with_http_info(image, return_face_id:true, return_face_landmarks:false, return_face_attributes:nil, recognition_model:nil, return_recognition_model:false, detection_model:nil, custom_headers:nil)
1532
+ detect_with_stream_async(image, return_face_id:return_face_id, return_face_landmarks:return_face_landmarks, return_face_attributes:return_face_attributes, recognition_model:recognition_model, return_recognition_model:return_recognition_model, detection_model:detection_model, custom_headers:custom_headers).value!
1307
1533
  end
1308
1534
 
1309
1535
  #
1310
- # Detect human faces in an image and returns face locations, and optionally
1311
- # with faceIds, landmarks, and attributes.
1536
+ # Detect human faces in an image, return face rectangles, and optionally with
1537
+ # faceIds, landmarks, and attributes.<br />
1538
+ # * No image will be stored. Only the extracted face feature will be stored on
1539
+ # server. The faceId is an identifier of the face feature and will be used in
1540
+ # [Face -
1541
+ # Identify](/docs/services/563879b61984550e40cbbe8d/operations/563879b61984550f30395239),
1542
+ # [Face -
1543
+ # Verify](/docs/services/563879b61984550e40cbbe8d/operations/563879b61984550f3039523a),
1544
+ # and [Face - Find
1545
+ # Similar](/docs/services/563879b61984550e40cbbe8d/operations/563879b61984550f30395237).
1546
+ # The stored face feature(s) will expire and be deleted 24 hours after the
1547
+ # original detection call.
1548
+ # * Optional parameters include faceId, landmarks, and attributes. Attributes
1549
+ # include age, gender, headPose, smile, facialHair, glasses, emotion, hair,
1550
+ # makeup, occlusion, accessories, blur, exposure and noise. Some of the results
1551
+ # returned for specific attributes may not be highly accurate.
1552
+ # * JPEG, PNG, GIF (the first frame), and BMP format are supported. The allowed
1553
+ # image file size is from 1KB to 6MB.
1554
+ # * Up to 100 faces can be returned for an image. Faces are ranked by face
1555
+ # rectangle size from large to small.
1556
+ # * For optimal results when querying [Face -
1557
+ # Identify](/docs/services/563879b61984550e40cbbe8d/operations/563879b61984550f30395239),
1558
+ # [Face -
1559
+ # Verify](/docs/services/563879b61984550e40cbbe8d/operations/563879b61984550f3039523a),
1560
+ # and [Face - Find
1561
+ # Similar](/docs/services/563879b61984550e40cbbe8d/operations/563879b61984550f30395237)
1562
+ # ('returnFaceId' is true), please use faces that are: frontal, clear, and with
1563
+ # a minimum size of 200x200 pixels (100 pixels between eyes).
1564
+ # * The minimum detectable face size is 36x36 pixels in an image no larger than
1565
+ # 1920x1080 pixels. Images with dimensions higher than 1920x1080 pixels will
1566
+ # need a proportionally larger minimum face size.
1567
+ # * Different 'detectionModel' values can be provided. To use and compare
1568
+ # different detection models, please refer to [How to specify a detection
1569
+ # model](https://docs.microsoft.com/en-us/azure/cognitive-services/face/face-api-how-to-topics/specify-detection-model)
1570
+ # | Model | Recommended use-case(s) |
1571
+ # | ---------- | -------- |
1572
+ # | 'detection_01': | The default detection model for [Face -
1573
+ # Detect](/docs/services/563879b61984550e40cbbe8d/operations/563879b61984550f30395236).
1574
+ # Recommend for near frontal face detection. For scenarios with exceptionally
1575
+ # large angle (head-pose) faces, occluded faces or wrong image orientation, the
1576
+ # faces in such cases may not be detected. |
1577
+ # | 'detection_02': | Detection model released in 2019 May with improved
1578
+ # accuracy especially on small, side and blurry faces. |
1579
+ #
1580
+ # * Different 'recognitionModel' values are provided. If follow-up operations
1581
+ # like Verify, Identify, Find Similar are needed, please specify the
1582
+ # recognition model with 'recognitionModel' parameter. The default value for
1583
+ # 'recognitionModel' is 'recognition_01', if latest model needed, please
1584
+ # explicitly specify the model you need in this parameter. Once specified, the
1585
+ # detected faceIds will be associated with the specified recognition model.
1586
+ # More details, please refer to [How to specify a recognition
1587
+ # model](https://docs.microsoft.com/en-us/azure/cognitive-services/face/face-api-how-to-topics/specify-recognition-model)
1588
+ # | Model | Recommended use-case(s) |
1589
+ # | ---------- | -------- |
1590
+ # | 'recognition_01': | The default recognition model for [Face -
1591
+ # Detect](/docs/services/563879b61984550e40cbbe8d/operations/563879b61984550f30395236).
1592
+ # All those faceIds created before 2019 March are bonded with this recognition
1593
+ # model. |
1594
+ # | 'recognition_02': | Recognition model released in 2019 March.
1595
+ # 'recognition_02' is recommended since its overall accuracy is improved
1596
+ # compared with 'recognition_01'. |
1312
1597
  #
1313
1598
  # @param image An image stream.
1314
1599
  # @param return_face_id [Boolean] A value indicating whether the operation
@@ -1329,12 +1614,18 @@ module Azure::CognitiveServices::Face::V1_0
1329
1614
  # Possible values include: 'recognition_01', 'recognition_02'
1330
1615
  # @param return_recognition_model [Boolean] A value indicating whether the
1331
1616
  # operation should return 'recognitionModel' in response.
1617
+ # @param detection_model [DetectionModel] Name of detection model. Detection
1618
+ # model is used to detect faces in the submitted image. A detection model name
1619
+ # can be provided when performing Face - Detect or (Large)FaceList - Add Face
1620
+ # or (Large)PersonGroup - Add Face. The default value is 'detection_01', if
1621
+ # another model is needed, please explicitly specify it. Possible values
1622
+ # include: 'detection_01', 'detection_02'
1332
1623
  # @param [Hash{String => String}] A hash of custom headers that will be added
1333
1624
  # to the HTTP request.
1334
1625
  #
1335
1626
  # @return [Concurrent::Promise] Promise object which holds the HTTP response.
1336
1627
  #
1337
- def detect_with_stream_async(image, return_face_id:true, return_face_landmarks:false, return_face_attributes:nil, recognition_model:nil, return_recognition_model:false, custom_headers:nil)
1628
+ def detect_with_stream_async(image, return_face_id:true, return_face_landmarks:false, return_face_attributes:nil, recognition_model:nil, return_recognition_model:false, detection_model:nil, custom_headers:nil)
1338
1629
  fail ArgumentError, '@client.endpoint is nil' if @client.endpoint.nil?
1339
1630
  fail ArgumentError, 'image is nil' if image.nil?
1340
1631
 
@@ -1364,7 +1655,7 @@ module Azure::CognitiveServices::Face::V1_0
1364
1655
 
1365
1656
  options = {
1366
1657
  middlewares: [[MsRest::RetryPolicyMiddleware, times: 3, retry: 0.02], [:cookie_jar]],
1367
- query_params: {'returnFaceId' => return_face_id,'returnFaceLandmarks' => return_face_landmarks,'returnFaceAttributes' => return_face_attributes.nil? ? nil : return_face_attributes.join(','),'recognitionModel' => recognition_model,'returnRecognitionModel' => return_recognition_model},
1658
+ query_params: {'returnFaceId' => return_face_id,'returnFaceLandmarks' => return_face_landmarks,'returnFaceAttributes' => return_face_attributes.nil? ? nil : return_face_attributes.join(','),'recognitionModel' => recognition_model,'returnRecognitionModel' => return_recognition_model,'detectionModel' => detection_model},
1368
1659
  body: request_content,
1369
1660
  headers: request_headers.merge(custom_headers || {}),
1370
1661
  base_url: request_url
@@ -1381,6 +1672,8 @@ module Azure::CognitiveServices::Face::V1_0
1381
1672
  end
1382
1673
 
1383
1674
  result.request_id = http_response['x-ms-request-id'] unless http_response['x-ms-request-id'].nil?
1675
+ result.correlation_request_id = http_response['x-ms-correlation-request-id'] unless http_response['x-ms-correlation-request-id'].nil?
1676
+ result.client_request_id = http_response['x-ms-client-request-id'] unless http_response['x-ms-client-request-id'].nil?
1384
1677
  # Deserialize Response
1385
1678
  if status_code == 200
1386
1679
  begin