This sample demonstrates a simple web app with server side Node.js codes for ranking uploaded photos in terms of the happiness using Face API from Microsoft Cognitive Services.
- Node.js
- npm (Node.js package manager)
- Azure Blob Storage with Shared Access Signature
npm install
-
Get Face API key from Microsoft Cognitive Services - Face API
-
Open
server.jsin any code editor (e.g. VSCode), changeAPI_URL,API_KEYandSAS_SIGNATUREto your desired API and the corresponding keys -
Open
index.html(under/publicfolder) in any code editor, changeSTORAGE_ACCOUNT_NAMEandBLOB_CONTAINER_NAMEto specify your desired Azure Storage Account and Blob container -
Start your Node.js server by running
npm start- browse tolocalhost:1337and try to upload your own photos in any modern web browsers!
- jQuery - 1.12.4 - jQuery
- Bootstrap - 3.3.7 - Bootstrap
- Fine Uploader - JavaScript file upload library - fine-uploader
- Aaron Chong - Initial work - aaronchong888
