Take pictures and passes them through MS Cognitive API to get data about the facial characteristics.
- main.R
- dataProc.R
- pic_functions.R
There's a csv file which contains the Brand Names, their FB page links, and the page ID [this is the key data, you can find it by viewing the source of the FB page and searching for pageID]. You can manually add the brands your interested in here. It then goes to the brand pages and fetches the last n posts and its posts and likes data.
It takes the data from above and gives you an n sample from each brand
Takes the n sample from above and downloads the profile pic for each user. It sources a file named ms_api_access.R which merely sets the API access key.
It then takes each downloaded profile picture and then passes them to the MS Cognitive API and returns smile, and facial hair data.