/DownloadPersonGroupInformation

This repository contains a python script which allows you to download Person Group information from Azure Face API.

Primary LanguagePython

HoloRekognition

HoloRekognition is a Microsoft HoloLens Facial identification and recognition application. It is an academic project planned and developed in the Winter of 2019 by the following individuals as a part of the capstone requirement for the BYU Marriott School of Business MISM Program:

Additional backend utilities were created through this capstone to interact with Azure Face API:

  • CustomPersonMaker: Created As Convenience Utility For Integrating Project HoloRekognition With Azure Face Resource - Create, train, fetch, update, and delete (people and groups)
  • Project HoloRekognition: Project HoloRekognition

DonwloadPersonGroupInformation

Created As Convenience Utility For Integrating Project HoloRekognition And Azure Face Resource

Download Person Group Information from your Azure Face Resource

Objective(s)

  • Retrieve all People information from a Person Group from an Azure Face Resource and put into a CSV file.

Prerequisite(s)

Execute Script

  • There are three pieces of information at the beginning of the script you will need to input (using a text editor of your choice, my preference is VS Code)
  1. SUBSCRIPTION_KEY (this can be found in your Azure Face Resource)

  2. BASE_URL (if you made your location is "West US" you can use the link below)

  3. PERSON_GROUP_ID (this ID is created when you make your first person group)

Once you have set the defaults for the three variables mentioned above, you will be able to run the script.

To execute the script, use a terminal navigate to where the main.py file is stored.

Enter the following command:

python3 main.py

A .csv file named "person_group_info ” will be created in the same location as the main.py file.

Summary

Whenever you need an updated list of all groups and people from your Azure Face Resource you can run this python script and retrieve it. You can extend this code to add additional functionality.