Submit a Person Group training task. Training is a crucial step that only a trained Person Group can be used by "Identify From Person Group".

Changed on

The training task is an asynchronous task. Training time depends on the number of person entries, and their faces in a Person Group. It could be several seconds to minutes. To check training status, please use "Get Person Group Training Status".

post/persongroups/{personGroupId}/train

Request

  • Base URL
    {endpoint}/face/{apiVersion}
  • Auth
    • API key in header Ocp-Apim-Subscription-Key
    • or OAuth 2
      Authorization codehttps://api.example.com/oauth2/authorize
      Token URLhttps://api.example.com/oauth2/token
      Scopeshttps://cognitiveservices.azure.com/.default

Path parameters

personGroupIdstring required

ID of the container.

Response

A successful call returns an empty response body.

Changes

    • info

      api operation id PersonGroup_Train removed and replaced with PersonGroupOperations_TrainPersonGroup