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)
      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!
    end
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)
      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!
    end
Detect human faces in an image and returns face locations, and optionally
 with faceIds, landmarks, and attributes.

 @param image An image stream.
 @param return_face_id [Boolean] A value indicating whether the operation
 should return faceIds of detected faces.
 @param return_face_landmarks [Boolean] A value indicating whether the
 operation should return landmarks of the detected faces.
 @param return_face_attributes [Array<FaceAttributeType>] Analyze and return
 the one or more specified face attributes in the comma-separated string like
 "returnFaceAttributes=age,gender". Supported face attributes include age,
 gender, headPose, smile, facialHair, glasses and emotion. Note that each face
 attribute analysis has additional computational and time cost.
 @param recognition_model [RecognitionModel] Name of recognition model.
 Recognition model is used when the face features are extracted and associated
 with detected faceIds, (Large)FaceList or (Large)PersonGroup. A recognition
 model name can be provided when performing Face - Detect or (Large)FaceList -
 Create or (Large)PersonGroup - Create. The default value is 'recognition_01',
 if latest model needed, please explicitly specify the model you need.
 Possible values include: 'recognition_01', 'recognition_02'
 @param return_recognition_model [Boolean] A value indicating whether the
 operation should return 'recognitionModel' in response.
 @param custom_headers [Hash{String => String}] A hash of custom headers that
 will be added to the HTTP request.

 @return [MsRestAzure::AzureOperationResponse] HTTP response information.