Skip to main content

large_person_group

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

Overview

Namelarge_person_group
TypeResource
Idazure.ai_vision_face.large_person_group

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_person_group_id, person_id, persisted_face_id, endpoint, api_versionPlease refer to https://learn.microsoft.com/rest/api/face/person-group-operations/get-large-person-group-person-face for more details.
get_personselectlarge_person_group_id, person_id, endpoint, api_versionPlease refer to https://learn.microsoft.com/rest/api/face/person-group-operations/get-large-person-group-person for more details.
getselectlarge_person_group_id, endpoint, api_versionreturnRecognitionModelPlease refer to https://learn.microsoft.com/rest/api/face/person-group-operations/get-large-person-group for more details.
get_large_person_groupsselectendpoint, api_versionstart, top, returnRecognitionModelList all existing Large Person Groups' largePersonGroupId, name, userData and recognitionModel. Please refer to https://learn.microsoft.com/rest/api/face/person-group-operations/get-large-person-groups for more details.
createinsertlarge_person_group_id, endpoint, api_versionCreate a new Large Person Group with user-specified largePersonGroupId, name, an optional userData and recognitionModel. Please refer to https://learn.microsoft.com/rest/api/face/person-group-operations/create-large-person-group for more details.
updateupdatelarge_person_group_id, endpoint, api_versionPlease refer to https://learn.microsoft.com/rest/api/face/person-group-operations/update-large-person-group for more details.
deletedeletelarge_person_group_id, endpoint, api_versionPlease refer to https://learn.microsoft.com/rest/api/face/person-group-operations/delete-large-person-group for more details.
get_training_statusexeclarge_person_group_id, endpoint, api_versionTo check Large Person Group training status completed or still ongoing. Large Person Group training is an asynchronous operation triggered by "Train Large Person Group" API. Please refer to https://learn.microsoft.com/rest/api/face/person-group-operations/get-large-person-group-training-status for more details.
delete_personexeclarge_person_group_id, person_id, endpoint, api_versionPlease refer to https://learn.microsoft.com/rest/api/face/person-group-operations/delete-large-person-group-person for more details.
update_personexeclarge_person_group_id, person_id, endpoint, api_versionPlease refer to https://learn.microsoft.com/rest/api/face/person-group-operations/update-large-person-group-person for more details.
get_personsexeclarge_person_group_id, endpoint, api_versionstart, topList all persons' information in the specified Large Person Group, including personId, name, userData and persistedFaceIds of registered person faces. Please refer to https://learn.microsoft.com/rest/api/face/person-group-operations/get-large-person-group-persons for more details.
create_personexeclarge_person_group_id, endpoint, api_versionCreate a new person in a specified Large Person Group. To add face to this person, please call "Add Large Person Group Person Face". Please refer to https://learn.microsoft.com/rest/api/face/person-group-operations/create-large-person-group-person for more details.
delete_faceexeclarge_person_group_id, person_id, persisted_face_id, endpoint, api_versionDelete a face from a person in a Large Person Group by specified largePersonGroupId, personId and persistedFaceId. Please refer to https://learn.microsoft.com/rest/api/face/person-group-operations/delete-large-person-group-person-face for more details.
update_faceexeclarge_person_group_id, person_id, persisted_face_id, endpoint, api_versionPlease refer to https://learn.microsoft.com/rest/api/face/person-group-operations/update-large-person-group-person-face for more details.
trainexeclarge_person_group_id, endpoint, api_versionSubmit a Large Person Group training task. Training is a crucial step that only a trained Large Person Group can be used by "Identify From Large Person Group". Please refer to https://learn.microsoft.com/rest/api/face/person-group-operations/train-large-person-group for more details.
add_face_from_urlexeclarge_person_group_id, person_id, endpoint, api_versiontargetFace, detectionModel, userDataAdd a face to a person into a Large Person Group for face identification or verification. Please refer to https://learn.microsoft.com/rest/api/face/person-group-operations/add-large-person-group-person-face-from-url 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_person_group_idstringID of the container. Required.
persisted_face_idstringFace ID of the face. Required.
person_idstringID of the person. 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/person-group-operations/get-large-person-group-person-face for more details.

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

INSERT examples

Create a new Large Person Group with user-specified largePersonGroupId, name, an optional userData and recognitionModel. Please refer to https://learn.microsoft.com/rest/api/face/person-group-operations/create-large-person-group for more details.

INSERT INTO azure.ai_vision_face.large_person_group (
large_person_group_id,
endpoint,
api_version
)
SELECT
'{{ large_person_group_id }}',
'{{ endpoint }}',
'{{ api_version }}'
;

UPDATE examples

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

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

DELETE examples

Please refer to https://learn.microsoft.com/rest/api/face/person-group-operations/delete-large-person-group for more details.

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

Lifecycle Methods

To check Large Person Group training status completed or still ongoing. Large Person Group training is an asynchronous operation triggered by "Train Large Person Group" API. Please refer to https://learn.microsoft.com/rest/api/face/person-group-operations/get-large-person-group-training-status for more details.

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