Customize a person model in Azure AI Video Indexer
Note
Face identification, customization and celebrity recognition features access is limited based on eligibility and usage criteria in order to support our Responsible AI principles. Face identification, customization and celebrity recognition features are only available to Microsoft managed customers and partners. Use the Face Recognition intake form to apply for access.
Faces that aren't recognized by Azure AI Video Indexer are still detected, but are left unnamed. You can build custom person models and enable Azure AI Video Indexer to recognize faces that aren't recognized by default. You can build them by pairing a person's name with image files of the person's face.
You can create multiple person models per account. For example, if the content in your account is meant to be sorted into different channels, you might want to create a separate person model for each channel.
Note
Each person model supports up to 1 million people and each account has a limit of 50 person models.
You can use a person model when uploading/indexing or re-indexing a video by providing the person model ID. Training a new face for a video updates the associated custom model.
If you don't need the multiple person model support, don't assign a person model ID to your video when uploading/indexing or re-indexing. Azure AI Video Indexer will use the default person model in your account.
Prerequisites
- An Azure account
- An Azure AI Video Indexer account
Note
Face identification, customization and celebrity recognition features access is limited based on eligibility and usage criteria in order to support our Responsible AI principles. Face identification, customization and celebrity recognition features are only available to Microsoft managed customers and partners. Use the Face Recognition intake form to apply for access.
Create a new Person model
- Select the + Add model button.
- Enter the name of the model and select the check button.
- Select the list menu button and choose + Add person.
Add a new person to a Person model
- Select the list menu button next to the person model that you want to add the face to.
- Select + Add person from the menu.
- Enter the name of the person and select the check button.
- Choose from your file explorer or drag and drop the face images of the face.
Azure AI Video Indexer allows you to add multiple people with the same name in a person model. However, it's recommended you give unique names to each person in your model for usability and clarity.
Azure AI Video Indexer can detect occurrences of this person in the future videos that you index and the current videos that you had already indexed, using the person model to which you added this new face. Recognition of the person in your current videos might take some time to take effect, as this is a batch process.
Rename a Person model
You can rename any person model in your account including the default person model. Even if you rename your default person model, it still serves as the default person model in your account.
- Select the menu button next to the person model you want to rename.
- Select Rename from the menu.
- Select the current name of the model.
- Enter the new name and select the check button.
Delete a Person model
You can delete any person model except the default person model.
- Select Delete from the menu. You are warned about the permanence of the action.
- If you're sure, select Delete again.
Note
You'll can edit the names of faces in the associated videos only after you reindex them using another person model. If you reindex without specifying a person model, the default model will be used.
Central management of Person models in your account
- Select the content model customization button on the left of the page.
- Select the People tab.
The Default Person model holds any faces you may have edited or changed in the insights of your videos for which you didn't specify a custom person model during indexing. If you created other person models, they are also listed on this page.
Rename a person
- Select the list menu button and choose Rename from the list menu.
- Select the current name of the person and type in the new name.
- Select the check button.
Delete a person
- Select the list menu button and choose Delete from the list menu. A pop-up tells you that this action will delete the person and that this action can't be undone.
- If you're sure, select Delete again.
Check if a person already exists
You can use the search to check if a person already exists in the model.
Manage a person
If you select Manage, you see the Person's details window with all the faces that this person model is being trained from. These faces come from occurrences of that person in videos that use this person model or from images that you've manually uploaded.
Add a face
You can add more faces to the person by selecting Add images.
Delete a face
Select the image you wish to delete and click Delete.
Rename and delete a person
You can use the manage pane to rename the person and to delete the person from the person model.
Use a person model to index a video
You can use a person model to index your new video by assigning the person model during the upload of the video.
To use your person model on a new video, do the following steps:
- Select the Upload button.
- Drag and drop your video file or browse for your file.
- Select the Advanced options arrow.
- Select the drop-down and select the person model that you created.
- Select the Upload option in the bottom of the page.
If you don't specify a Person model during the upload, Azure AI Video Indexer indexes the video using the Default Person model in your account.
Use a person model to reindex a video
To use a person model to reindex a video in your collection, go to your library on the Azure AI Video Indexer home page, and hover over the name of the video that you want to reindex.
You see options to edit, delete, and reindex your video.
- Select the option to reindex your video.
- Select the person model drop-down and select the person model that you want to use.
- Select the Reindex button.
Any new edits that you make to the faces detected and recognized in the video that you just reindexed are saved in the Person model that you used to reindex the video.
Managing people in your videos
You can manage the faces that are detected and people that are recognized in the videos that you index by editing and deleting faces.
Deleting a face removes a specific face from the insights of the video.
Editing a face renames a face that's detected and possibly recognized in your video. When you edit a face in your video, that name is saved as a person entry in the person model that was assigned to the video during upload and indexing.
If you don't assign a person model to the video during upload, your edit is saved in your account's Default person model.
Edit a face
Note
If a Person model has two or more different people with the same name, you won't be able to tag that name within the videos that use that person model. You'll only be able to make changes to people that share that name in the People tab of the content model customization page in Azure AI Video Indexer. For this reason, it's recommended that you give unique names to each person in your Person model.
- Select the video you want to work with from your library.
- Select the Insights tab and select the pencil icon.
- Select any of the detected faces and change their names from "Unknown #X" (or the name that was previously assigned to the face).
- Entering the new name and select the check icon. This action saves the new name and recognizes and names all occurrences of this face in your other current videos and in the future videos that you upload.
Recognition of the face in your other current videos might take some time to take effect as this is a batch process.
If you name a face with the name of an existing person in the person model that the video is using, the detected face images from this video of that person merge with what already exists in the model. If you name a face with a new name, a new person entry is created in the person model that the video is using.
Delete a face
- Select the video you want to work with from your library.
- Select the Insights pane and select the pencil icon.
- Select the Delete option underneath the name of the face. This action removes the detected face from the video. The person's face is still detected in the other videos in which it appears, but you can delete the face from those videos as well after they've been indexed.
If the person was named, they continue to exist in the person model that was used to index the video from which you deleted the face unless you specifically delete the person from the person model.
Get an indication of the quality of your people model
You can get an indication on the quality of your customized people model (poor, fair, good). The quality is determined by the number of images used for labeling with the more images you use to label a person, the higher the probability of identifing the person correctly. For example, the probability of identifying a person with 24 labeled images is higher than the probability of identifying a person with 2 labeled images. You can see the number of images used for labeling each person in your customized people model page.
Choose the custom people model as default
You can choose a customized people model as default on the VI account user level, so you don't have to keep selecting the model name for every video upload. This saves you time and effort when you upload videos that need to be analyzed by your customized people model.
Group unknown people in the video
You can see the unknown people in your videos grouped by their appearance similarity. It helps you label the unknown people easily and quickly, and improves the accuracy of your customized people model. For example, it could help you to label a local celebrity or a local politician. You can see the grouping of unknown people in your customization page. Choose people and then navigate to the unknown people tab.
Search results with max confidence score for identified person name
You can search for the name of an identified person and get the timestamp for when the person appears in the video along with the maximum confidence score. It helps you decide which videos are the most relevant to explore. For example, you can search for “John Smith” and get the videos where John Smith is recognized by your customized people model and the confidence score for each video.
Managing multiple person models
Azure AI Video Indexer supports multiple person models per account through the Azure AI Video Indexer API.
If your account provides different use cases, you might want to create multiple person models per account. For example, if your content is related to sports, you can create a separate person model for each sport (football, basketball, soccer, and so on).
Each account has a limit of 50 person models. If you don't need the multiple person model support, don't assign a person model ID to your video when uploading/indexing or reindexing. In this case, Azure AI Video Indexer uses the default custom person model in your account.
Optimize the ability of your model to recognize a person
To optimize your model ability to recognize the person, upload as many different images as possible and from different angles. To get optimal results, use high resolution images.