LargePersonGroupOperations Class
LargePersonGroupOperations operations.
You should not instantiate directly this class, but create a Client instance that will create it for you and attach it as attribute.
- Inheritance
-
builtins.objectLargePersonGroupOperations
Constructor
LargePersonGroupOperations(client, config, serializer, deserializer)
Parameters
Name | Description |
---|---|
client
Required
|
Client for service requests. |
config
Required
|
Configuration of service client. |
serializer
Required
|
An object model serializer. |
deserializer
Required
|
An object model deserializer. |
Methods
create |
Create a new large person group with user-specified largePersonGroupId,
name, an optional userData and recognitionModel.
|
delete |
Delete an existing large person group. Persisted face features of all people in the large person group will also be deleted. |
get |
Retrieve the information of a large person group, including its name, userData and recognitionModel. This API returns large person group information only, use LargePersonGroup Person - List instead to retrieve person information under the large person group. . |
get_training_status |
Retrieve the training status of a large person group (completed or ongoing). |
list |
List all existing large person groups' largePersonGroupId, name,
userData and recognitionModel.
|
train |
Queue a large person group training task, the training task may not be started immediately. |
update |
Update an existing large person group's display name and userData. The properties which does not appear in request body will not be updated. |
create
Create a new large person group with user-specified largePersonGroupId,
name, an optional userData and recognitionModel.
A large person group is the container of the uploaded person
data, including face recognition feature, and up to 1,000,000
people.
After creation, use LargePersonGroup Person -
Create
to add person into the group, and call LargePersonGroup -
Train
to get this group ready for Face -
Identify.
No image will be stored. Only the person's extracted face
features and userData will be stored on server until LargePersonGroup
Person -
Delete
or LargePersonGroup -
Delete
is called.
'recognitionModel' should be specified to associate with this
large person group. The default value for 'recognitionModel' is
'recognition_01', if the latest model needed, please explicitly specify
the model you need in this parameter. New faces that are added to an
existing large person group will use the recognition model that's
already associated with the collection. Existing face features in a
large person group can't be updated to features extracted by another
version of recognition model. Please refer to Specify a face
recognition
model.
Large person group quota:
- Free-tier subscription quota: 1,000 large person groups.
- S0-tier subscription quota: 1,000,000 large person groups.
create(large_person_group_id, name, user_data=None, recognition_model='recognition_01', custom_headers=None, raw=False, **operation_config)
Parameters
Name | Description |
---|---|
large_person_group_id
Required
|
Id referencing a particular large person group. |
name
Required
|
User defined name, maximum length is 128. |
user_data
|
User specified data. Length should not exceed 16KB. default value: None
|
recognition_model
|
Possible values include: 'recognition_01', 'recognition_02', 'recognition_03', 'recognition_04' default value: recognition_01
|
custom_headers
|
headers that will be added to the request default value: None
|
raw
|
returns the direct response alongside the deserialized response default value: False
|
operation_config
Required
|
Operation configuration overrides. |
Returns
Type | Description |
---|---|
None,
<xref:msrest.pipeline.ClientRawResponse>
|
None or ClientRawResponse if raw=true |
Exceptions
Type | Description |
---|---|
delete
Delete an existing large person group. Persisted face features of all people in the large person group will also be deleted.
delete(large_person_group_id, custom_headers=None, raw=False, **operation_config)
Parameters
Name | Description |
---|---|
large_person_group_id
Required
|
Id referencing a particular large person group. |
custom_headers
|
headers that will be added to the request default value: None
|
raw
|
returns the direct response alongside the deserialized response default value: False
|
operation_config
Required
|
Operation configuration overrides. |
Returns
Type | Description |
---|---|
None,
<xref:msrest.pipeline.ClientRawResponse>
|
None or ClientRawResponse if raw=true |
Exceptions
Type | Description |
---|---|
get
Retrieve the information of a large person group, including its name, userData and recognitionModel. This API returns large person group information only, use LargePersonGroup Person - List instead to retrieve person information under the large person group. .
get(large_person_group_id, return_recognition_model=False, custom_headers=None, raw=False, **operation_config)
Parameters
Name | Description |
---|---|
large_person_group_id
Required
|
Id referencing a particular large person group. |
return_recognition_model
|
A value indicating whether the operation should return 'recognitionModel' in response. default value: False
|
custom_headers
|
headers that will be added to the request default value: None
|
raw
|
returns the direct response alongside the deserialized response default value: False
|
operation_config
Required
|
Operation configuration overrides. |
Returns
Type | Description |
---|---|
<xref:msrest.pipeline.ClientRawResponse>
|
LargePersonGroup or ClientRawResponse if raw=true |
Exceptions
Type | Description |
---|---|
get_training_status
Retrieve the training status of a large person group (completed or ongoing).
get_training_status(large_person_group_id, custom_headers=None, raw=False, **operation_config)
Parameters
Name | Description |
---|---|
large_person_group_id
Required
|
Id referencing a particular large person group. |
custom_headers
|
headers that will be added to the request default value: None
|
raw
|
returns the direct response alongside the deserialized response default value: False
|
operation_config
Required
|
Operation configuration overrides. |
Returns
Type | Description |
---|---|
<xref:msrest.pipeline.ClientRawResponse>
|
TrainingStatus or ClientRawResponse if raw=true |
Exceptions
Type | Description |
---|---|
list
List all existing large person groups' largePersonGroupId, name,
userData and recognitionModel.
- Large person groups are stored in alphabetical order of largePersonGroupId.
- "start" parameter (string, optional) is a user-provided largePersonGroupId value that returned entries have larger ids by string comparison. "start" set to empty to indicate return from the first item.
- "top" parameter (int, optional) specifies the number of entries to
return. A maximal of 1000 entries can be returned in one call. To fetch
more, you can specify "start" with the last returned entry's Id of the
current call.
For example, total 5 large person groups: "group1", ..., "group5".
"start=&top=" will return all 5 groups.
"start=&top=2" will return "group1", "group2".
"start=group2&top=3" will return "group3", "group4", "group5". .
list(start=None, top=1000, return_recognition_model=False, custom_headers=None, raw=False, **operation_config)
Parameters
Name | Description |
---|---|
start
|
List large person groups from the least largePersonGroupId greater than the "start". default value: None
|
top
|
The number of large person groups to list. default value: 1000
|
return_recognition_model
|
A value indicating whether the operation should return 'recognitionModel' in response. default value: False
|
custom_headers
|
headers that will be added to the request default value: None
|
raw
|
returns the direct response alongside the deserialized response default value: False
|
operation_config
Required
|
Operation configuration overrides. |
Returns
Type | Description |
---|---|
<xref:msrest.pipeline.ClientRawResponse>
|
list or ClientRawResponse if raw=true |
Exceptions
Type | Description |
---|---|
train
Queue a large person group training task, the training task may not be started immediately.
train(large_person_group_id, custom_headers=None, raw=False, **operation_config)
Parameters
Name | Description |
---|---|
large_person_group_id
Required
|
Id referencing a particular large person group. |
custom_headers
|
headers that will be added to the request default value: None
|
raw
|
returns the direct response alongside the deserialized response default value: False
|
operation_config
Required
|
Operation configuration overrides. |
Returns
Type | Description |
---|---|
None,
<xref:msrest.pipeline.ClientRawResponse>
|
None or ClientRawResponse if raw=true |
Exceptions
Type | Description |
---|---|
update
Update an existing large person group's display name and userData. The properties which does not appear in request body will not be updated.
update(large_person_group_id, name=None, user_data=None, custom_headers=None, raw=False, **operation_config)
Parameters
Name | Description |
---|---|
large_person_group_id
Required
|
Id referencing a particular large person group. |
name
|
User defined name, maximum length is 128. default value: None
|
user_data
|
User specified data. Length should not exceed 16KB. default value: None
|
custom_headers
|
headers that will be added to the request default value: None
|
raw
|
returns the direct response alongside the deserialized response default value: False
|
operation_config
Required
|
Operation configuration overrides. |
Returns
Type | Description |
---|---|
None,
<xref:msrest.pipeline.ClientRawResponse>
|
None or ClientRawResponse if raw=true |
Exceptions
Type | Description |
---|---|
Attributes
models
models = <module 'azure.cognitiveservices.vision.face.models' from 'C:\\hostedtoolcache\\windows\\Python\\3.11.9\\x64\\Lib\\site-packages\\azure\\cognitiveservices\\vision\\face\\models\\__init__.py'>
Azure SDK for Python
Feedback
https://aka.ms/ContentUserFeedback.
Coming soon: Throughout 2024 we will be phasing out GitHub Issues as the feedback mechanism for content and replacing it with a new feedback system. For more information see:Submit and view feedback for