Skip to main content

detect_from_session_images

Creates, updates, deletes, gets or lists a detect_from_session_images resource.

Overview

Namedetect_from_session_images
TypeResource
Idazure.ai_vision_face.detect_from_session_images

Fields

The following fields are returned by SELECT queries:

SELECT not supported for this resource, use SHOW METHODS to view available operations for the resource.

Methods

The following methods are available for this resource:

NameAccessible byRequired ParamsOptional ParamsDescription
detect_from_session_imageexecendpoint, api_versiondetectionModel, recognitionModel, returnFaceId, returnFaceAttributes, returnFaceLandmarks, returnRecognitionModel, faceIdTimeToLiveDetect human faces in an image, return face rectangles, and optionally with faceIds, landmarks, and attributes. Please refer to https://learn.microsoft.com/rest/api/face/face-detection-operations/detect-from-session-image-id for more details.

Parameters

Parameters can be passed in the WHERE clause of a query. Check the Methods section to see which parameters are required or optional for each operation.

NameDatatypeDescription
api_versionstringThe service endpoint host (no scheme), e.g. myaccount.table.cosmos.azure.com:443 - value of the client apiVersion parameter. (default: )
endpointstringThe service endpoint host (no scheme), e.g. myaccount.table.cosmos.azure.com:443 - value of the client endpoint parameter. (default: )
detectionModelstringThe 'detectionModel' associated with the detected faceIds. Supported 'detectionModel' values include 'detection_01', 'detection_02' and 'detection_03'. The default value is 'detection_01'. 'detection_03' is recommended since its accuracy is improved on smaller faces (64x64 pixels) and rotated face orientations. Known values are: "detection_01", "detection_02", and "detection_03". Default value is None.
faceIdTimeToLiveintegerThe number of seconds for the face ID being cached. Supported range from 60 seconds up to 86400 seconds. The default value is 86400 (24 hours). Default value is None.
recognitionModelstringThe 'recognitionModel' associated with the detected faceIds. Supported 'recognitionModel' values include 'recognition_01', 'recognition_02', 'recognition_03' or 'recognition_04'. The default value is 'recognition_01'. 'recognition_04' is recommended since its accuracy is improved on faces wearing masks compared with 'recognition_03', and its overall accuracy is improved compared with 'recognition_01' and 'recognition_02'. Known values are: "recognition_01", "recognition_02", "recognition_03", and "recognition_04". Default value is None.
returnFaceAttributesarrayAnalyze and return the one or more specified face attributes in the comma-separated string like 'returnFaceAttributes=headPose,glasses'. Face attribute analysis has additional computational and time cost. Default value is None.
returnFaceIdbooleanReturn faceIds of the detected faces or not. The default value is true. Default value is None.
returnFaceLandmarksbooleanReturn face landmarks of the detected faces or not. The default value is false. Default value is None.
returnRecognitionModelbooleanReturn 'recognitionModel' or not. The default value is false. This is only applicable when returnFaceId = true. Default value is None.

Lifecycle Methods

Detect human faces in an image, return face rectangles, and optionally with faceIds, landmarks, and attributes. Please refer to https://learn.microsoft.com/rest/api/face/face-detection-operations/detect-from-session-image-id for more details.

EXEC azure.ai_vision_face.detect_from_session_images.detect_from_session_image 
@endpoint='{{ endpoint }}' --required,
@api_version='{{ api_version }}' --required,
@detectionModel='{{ detectionModel }}',
@recognitionModel='{{ recognitionModel }}',
@returnFaceId={{ returnFaceId }},
@returnFaceAttributes='{{ returnFaceAttributes }}',
@returnFaceLandmarks={{ returnFaceLandmarks }},
@returnRecognitionModel={{ returnRecognitionModel }},
@faceIdTimeToLive='{{ faceIdTimeToLive }}'
;