Compute a Face Template
Search by a face descriptor (face template) requires a descriptor file in JSON format. An example:
{
"images": [
{
"descriptors": [
{
"data": "TUArOzHEmjr…0PkKwnLw=",
"norm": 27.96321678161621,
"version": {
"alg_type": 2,
"major_version": 20200706,
"minor_version": 1
}
}
],
"detection_score": 0.9999967217445374
}
],
"lib_version": "2.7.0-HEAD-4131dd00",
"version": "1.0.0"
}
Here, data is the computed descriptor value and version is the descriptor version, which the platform checks when the file is uploaded for a search.
To compute a descriptor from a photo, use the Descriptor Extractor utility, a GUI application for Windows.
Install the Program
The utility is supplied as an installation kit that is installed on a computer with the standard Windows tools, guided by the setup wizard. In more detail:
- Run the file
descriptor-extractor-<version_number>.exefrom the installation kit. The setup wizard opens. Click Next. - On the next page, accept the license agreement.
- On the next page, set the program directory on the local disk.
- Set where to place the shortcuts for launching the program.
- Watch the progress indicator until the installation completes.
- Click Finish to complete the installation.
Load Photos and Save the Template
When the application starts, the main window opens.
- Click the load button, marked with a red arrow in the product screenshot, to load a photo into the program. Keep to the restrictions listed on the left side of the window.
- Click the save button, marked with a blue arrow, to save the computed descriptor file to the local disk.
- Click the clear button, marked with a green arrow, to clear the screen and repeat the procedure with the next photos.