Skip to content

Latest commit

 

History

History
72 lines (47 loc) · 2.88 KB

File metadata and controls

72 lines (47 loc) · 2.88 KB

The client library

The Emotion API client library is a thin C# client wrapper for Microsoft Cognitive Services (formerly Project Oxford) Emotion REST APIs.

The easiest way to use this client library is to get microsoft.projectoxford.emotion package from nuget.

Please go to Emotion API Package in nuget for more details.

The sample

This sample is a Windows WPF application to demonstrate the use of Microsoft Cognitive Services Emotion API.

It demonstrates emotion API by specifying a URL or using a stream.

Build the sample

  1. Start Microsoft Visual Studio 2015 and select File > Open > Project/Solution.

  2. Starting in the folder where you clone the repository, go to Emotion > Windows > Sample-WPF Folder.

  3. Double-click the Visual Studio 2015 Solution (.sln) file EmotionAPI-WPF-Samples.

  4. Press Ctrl+Shift+B, or select Build > Build Solution.

Run the sample

After the build is complete, press F5 to run the sample.

First, you must obtain a Emotion API subscription key by following instructions in Microsoft Cognitive Services subscription.

Locate the text edit box saying "Paste your subscription key here to start" on the top right corner. Paste your subscription key. You can choose to persist your subscription key in your machine by clicking "Save Key" button. When you want to delete the subscription key from the machine, click "Delete Key" to remove it from your machine.

Click on "Select Scenario" to use samples of different scenarios, and follow the instructions on screen.

Microsoft will receive the images you upload and may use them to improve Emotion API and related services. By submitting an image, you confirm you have consent from everyone in it.

There are sample images to be used with this sample application. You can find these images under Face > Windows > Data folder. Please note the use of these images is licensed under LICENSE-IMAGE.

Contributing

We welcome contributions and are always looking for new SDKs, input, and suggestions. Feel free to file issues on the repo and we'll address them as we can. You can also learn more about how you can help on the Contribution Rules & Guidelines.

For questions, feedback, or suggestions about Microsoft Cognitive Services, feel free to reach out to us directly.

License

All Microsoft Cognitive Services SDKs and samples are licensed with the MIT License. For more details, see LICENSE.

Sample images are licensed separately, please refer to LICENSE-IMAGE.