Skip to main content

large_face_list

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

Overview

Namelarge_face_list
TypeResource
Idazure.ai_vision_face.large_face_list

Fields

The following fields are returned by SELECT queries:

NameDatatypeDescription
persistedFaceIdstringFace ID of the face. Required.
userDatastringUser-provided data attached to the face. The length limit is 1K.

Methods

The following methods are available for this resource:

NameAccessible byRequired ParamsOptional ParamsDescription
get_faceselectlarge_face_list_id, persisted_face_id, endpoint, api_versionPlease refer to https://learn.microsoft.com/rest/api/face/face-list-operations/get-large-face-list-face for more details.
getselectlarge_face_list_id, endpoint, api_versionreturnRecognitionModelPlease refer to https://learn.microsoft.com/rest/api/face/face-list-operations/get-large-face-list for more details.
get_large_face_listsselectendpoint, api_versionstart, top, returnRecognitionModelList Large Face Lists' information of largeFaceListId, name, userData and recognitionModel. Please refer to https://learn.microsoft.com/rest/api/face/face-list-operations/get-large-face-lists for more details.
createinsertlarge_face_list_id, endpoint, api_versionCreate an empty Large Face List with user-specified largeFaceListId, name, an optional userData and recognitionModel. Please refer to https://learn.microsoft.com/rest/api/face/face-list-operations/create-large-face-list for more details.
updateupdatelarge_face_list_id, endpoint, api_versionPlease refer to https://learn.microsoft.com/rest/api/face/face-list-operations/update-large-face-list for more details.
deletedeletelarge_face_list_id, endpoint, api_versionDelete a face from a Large Face List by specified largeFaceListId and persistedFaceId. Please refer to https://learn.microsoft.com/rest/api/face/face-list-operations/delete-large-face-list for more details.
get_training_statusexeclarge_face_list_id, endpoint, api_versionPlease refer to https://learn.microsoft.com/rest/api/face/face-list-operations/get-large-face-list-training-status for more details.
delete_faceexeclarge_face_list_id, persisted_face_id, endpoint, api_versionPlease refer to https://learn.microsoft.com/rest/api/face/face-list-operations/delete-large-face-list-face for more details.
update_faceexeclarge_face_list_id, persisted_face_id, endpoint, api_versionPlease refer to https://learn.microsoft.com/rest/api/face/face-list-operations/update-large-face-list-face for more details.
get_facesexeclarge_face_list_id, endpoint, api_versionstart, topList faces' persistedFaceId and userData in a specified Large Face List. Please refer to https://learn.microsoft.com/rest/api/face/face-list-operations/get-large-face-list-faces for more details.
add_face_from_urlexeclarge_face_list_id, endpoint, api_versiontargetFace, detectionModel, userDataAdd a face to a specified Large Face List, up to 1,000,000 faces. Please refer to https://learn.microsoft.com/rest/api/face/face-list-operations/add-large-face-list-face-from-url for more details.
trainexeclarge_face_list_id, endpoint, api_versionSubmit a Large Face List training task. Please refer to https://learn.microsoft.com/rest/api/face/face-list-operations/train-large-face-list 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: )
large_face_list_idstringValid character is letter in lower case or digit or '-' or '_', maximum length is 64. Required.
persisted_face_idstringFace ID of the face. Required.
detectionModelstringThe 'detectionModel' associated with the detected faceIds. Supported 'detectionModel' values include 'detection_01', 'detection_02' and 'detection_03'. The default value is 'detection_01'. Known values are: "detection_01", "detection_02", and "detection_03". Default value is None.
returnRecognitionModelbooleanReturn 'recognitionModel' or not. The default value is false. Default value is None.
startstringList resources greater than the "start". It contains no more than 64 characters. Default is empty. Default value is None.
targetFacearrayA face rectangle to specify the target face to be added to a person, in the format of 'targetFace=left,top,width,height'. Default value is None.
topintegerThe number of items to list, ranging in [1, 1000]. Default is 1000. Default value is None.
userDatastringUser-provided data attached to the face. The size limit is 1K. Default value is None.

SELECT examples

Please refer to https://learn.microsoft.com/rest/api/face/face-list-operations/get-large-face-list-face for more details.

SELECT
persistedFaceId,
userData
FROM azure.ai_vision_face.large_face_list
WHERE large_face_list_id = '{{ large_face_list_id }}' -- required
AND persisted_face_id = '{{ persisted_face_id }}' -- required
AND endpoint = '{{ endpoint }}' -- required
AND api_version = '{{ api_version }}' -- required
;

INSERT examples

Create an empty Large Face List with user-specified largeFaceListId, name, an optional userData and recognitionModel. Please refer to https://learn.microsoft.com/rest/api/face/face-list-operations/create-large-face-list for more details.

INSERT INTO azure.ai_vision_face.large_face_list (
large_face_list_id,
endpoint,
api_version
)
SELECT
'{{ large_face_list_id }}',
'{{ endpoint }}',
'{{ api_version }}'
;

UPDATE examples

Please refer to https://learn.microsoft.com/rest/api/face/face-list-operations/update-large-face-list for more details.

UPDATE azure.ai_vision_face.large_face_list
SET
-- No updatable properties
WHERE
large_face_list_id = '{{ large_face_list_id }}' --required
AND endpoint = '{{ endpoint }}' --required
AND api_version = '{{ api_version }}' --required;

DELETE examples

Delete a face from a Large Face List by specified largeFaceListId and persistedFaceId. Please refer to https://learn.microsoft.com/rest/api/face/face-list-operations/delete-large-face-list for more details.

DELETE FROM azure.ai_vision_face.large_face_list
WHERE large_face_list_id = '{{ large_face_list_id }}' --required
AND endpoint = '{{ endpoint }}' --required
AND api_version = '{{ api_version }}' --required
;

Lifecycle Methods

Please refer to https://learn.microsoft.com/rest/api/face/face-list-operations/get-large-face-list-training-status for more details.

EXEC azure.ai_vision_face.large_face_list.get_training_status 
@large_face_list_id='{{ large_face_list_id }}' --required,
@endpoint='{{ endpoint }}' --required,
@api_version='{{ api_version }}' --required
;