You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
curl -v -X POST "https://api.videoindexer.ai/{location}/Accounts/{accountId}/Customization/PersonModels?name={name}&accessToken={accessToken}"
48
-
```
49
-
50
-
[See required parameters and test out using the Video Indexer Developer Portal](https://api-portal.videoindexer.ai/docs/services/operations/operations/Create-Person-Model?).
51
-
52
-
### Request parameters
53
-
54
-
|**Name**|**Type**|**Required**|**Description**|
55
-
|---|---|---|---|
56
-
|location|string|Yes|The Azure region to which the call should be routed. For more information, see [Azure regions and Video Indexer](regions.md).|
57
-
|accountId|string|Yes|Globally unique identifier for the account|
58
-
|name|string|Yes|The name for the Person model|
59
-
|accessToken|string|Yes|Access token (must be of scope [Account Access Token](https://api-portal.videoindexer.ai/docs/services/authorization/operations/Get-Account-Access-Token?)) to authenticate against the call. Access tokens expire within 1 hour.|
60
-
61
-
### Request body
62
-
63
-
There is no further request body required for this call.
64
-
65
-
### Response
34
+
To create a new Person model in the specified account, use the [create a person model](https://api-portal.videoindexer.ai/docs/services/operations/operations/Create-Person-Model?) API.
66
35
67
36
The response provides the name and generated model ID of the Person model that you just created following the format of the example below.
68
37
@@ -77,73 +46,15 @@ You should then use the **id** value for the **personModelId** parameter when [u
77
46
78
47
## Delete a Person model
79
48
80
-
Delete a custom Person model from the specified account.
49
+
To delete a custom Person model from the specified account, use the [delete a person model](https://api-portal.videoindexer.ai/docs/services/operations/operations/Delete-Person-Model?) API.
81
50
82
51
Once the Person model is deleted successfully, the index of your current videos that were using the deleted model will remain unchanged until you reindex them. Upon reindexing, the faces that were named in the deleted model will not be recognized by Video Indexer in your current videos that were indexed using that model; however, those faces will still be detected. Your current videos that were indexed using the deleted model will now use your account's default Person model. If faces from the deleted model are also named in your account's default model, those faces will continue to be recognized in the videos.
[See required parameters and test out using the Video Indexer Developer Portal](https://api-portal.videoindexer.ai/docs/services/operations/operations/Delete-Person-Model?).
96
-
97
-
### Request parameters
98
-
99
-
|**Name**|**Type**|**Required**|**Description**|
100
-
|---|---|---|---|
101
-
|location|string|Yes|The Azure region to which the call should be routed. For more information, see [Azure regions and Video Indexer](regions.md).|
102
-
|accountId|string|Yes|Globally unique identifier for the account|
103
-
|id|string|Yes|The Person model id (generated when the Person model is created)|
104
-
|accessToken|string|Yes|Access token (must be of scope [Account Access Token](https://api-portal.videoindexer.ai/docs/services/authorization/operations/Get-Account-Access-Token?)) to authenticate against the call. Access tokens expire within 1 hour.|
105
-
106
-
### Request body
107
-
108
-
There is no further request body required for this call.
109
-
110
-
### Response
111
-
112
53
There is no returned content when the Person model is deleted successfully.
curl -v -X GET "https://api.videoindexer.ai/{location}/Accounts/{accountId}/Customization/PersonModels?accessToken={accessToken}"
130
-
```
131
-
132
-
[See required parameters and test out using the Video Indexer Developer Portal](https://api-portal.videoindexer.ai/docs/services/operations/operations/Get-Person-Models?).
133
-
134
-
### Request parameters
135
-
136
-
|**Name**|**Type**|**Required**|**Description**|
137
-
|---|---|---|---|
138
-
|location|string|Yes|The Azure region to which the call should be routed. For more information, see [Azure regions and Video Indexer](regions.md).|
139
-
|accountId|string|Yes|Globally unique identifier for the account|
140
-
|accessToken|string|Yes|Access token (must be of scope [Account Access Token](https://api-portal.videoindexer.ai/docs/services/authorization/operations/Get-Account-Access-Token?)) to authenticate against the call. Access tokens expire within 1 hour.|
141
-
142
-
### Request body
143
-
144
-
There is no further request body required for this call.
145
-
146
-
### Response
57
+
To get all Person models in the specified account, use the [get a person model](https://api-portal.videoindexer.ai/docs/services/operations/operations/Get-Person-Models?) API.
147
58
148
59
The response provides a list of all of the Person models in your account (including the default Person model in the specified account) and each of their names and ids following the format of the example below.
149
60
@@ -170,43 +81,10 @@ Once this happens, it recognizes the occurrences of the same face in your other
170
81
171
82
You can update a face that Video Indexer recognized as a celebrity with a new name. The new name that you give will take precedence over the built-in celebrity recognition.
curl -v -X PUT "https://api.videoindexer.ai/{location}/Accounts/{accountId}/Videos/{videoId}/Index/Faces/{faceId}?accessToken={accessToken}&newName={newName}"
185
-
```
186
-
187
-
[See required parameters and test out using the Video Indexer Developer Portal](https://api-portal.videoindexer.ai/docs/services/operations/operations/Update-Video-Face?).
188
-
189
-
### Request parameters
190
-
191
-
|**Name**|**Type**|**Required**|**Description**|
192
-
|---|---|---|---|
193
-
|location|string|Yes|The Azure region to which the call should be routed. For more information, see [Azure regions and Video Indexer](regions.md).|
194
-
|accountId|string|Yes|Globally unique identifier for the account|
195
-
|videoId|string|Yes|Id for the video in which the face that you want to update appears. This is created when the video is uploaded and indexed.|
196
-
|faceId|integer|Yes|Id for the face that will be updated. You can get the faceId from the video index|
197
-
|accessToken|string|Yes|Access token (must be of scope [Account Access Token](https://api-portal.videoindexer.ai/docs/services/authorization/operations/Get-Account-Access-Token?)) to authenticate against the call. Access tokens expire within 1 hour.|
198
-
|name|string|Yes|New name to update the face with.|
84
+
To update the face, use the [update a video face](https://api-portal.videoindexer.ai/docs/services/operations/operations/Update-Video-Face?) API.
199
85
200
86
Names are unique for Person models, so if you give two different faces in the same Person model the same **name** parameter value, Video Indexer views the faces as the same person and converges them once you reindex your video.
201
87
202
-
### Request body
203
-
204
-
There is no further request body required for this call.
205
-
206
-
### Response
207
-
208
-
There is no returned content when the face has been updated successfully.
209
-
210
88
## Next steps
211
89
212
90
[Customize Person model using the Video Indexer website](customize-person-model-with-website.md)
0 commit comments