Posts

Showing posts with the label Face-API

HOW TO scan images in a web page & analyze them with Microsoft Cognitive Services Face API with PowerShell

Image
Head to this sample PowerShell script by Rob Sewell published in the PowerShell Gallery The code for the Get-SpeakerFace function to get the face attributes using the Microsoft Cognitive Services Face API is customized to get the face attributes of  images from a webpage whose URL is hard-coded. With minor tweaks, the same sample can be used to work scan images in any web page & analyze them Face API Some observations & findings from my experience running the script - If you're trying PowerShell ISE on a computer for the first time, use Run as Administrator option &   type this or variations of it into your PowerShell window before you execute the function - Set-ExecutionPolicy RemoteSigned You can choose to direct the output to a CSV file - Get-SpeakerFace | Export-csv -path  C:\PS\results.csv You can choose to specify the access key required to utilize the Face API as an environment variable as in the sample - $apiKey = $En...