Book Image

Learning Microsoft Cognitive Services

By : Leif Larsen
Book Image

Learning Microsoft Cognitive Services

By: Leif Larsen

Overview of this book

Take your app development to the next level with Learning Microsoft Cognitive Services. Using Leif's knowledge of each of the powerful APIs, you'll learn how to create smarter apps with more human-like capabilities. ? Discover what each API has to offer and learn how to add it to your app ? Study each AI using theory and practical examples ? Learn current API best practices
Table of Contents (20 chapters)
Learning Microsoft Cognitive Services
About the Author
About the Reviewer
Customer Feedback
Additional Information on Linguistic Analysis

Diving into the Video API

The Video API provides advanced algorithms for video processing. Using this API, you can build more personalized and intelligent applications.

There are four main features of this API, which we will look into. They are:

  • Face detection and tracking

  • Motion detection

  • Stabilizing shaky videos

  • Generating intelligent video thumbnails


If you have not already done so, register for an API key for the Video API at

Microsoft have created a NuGet package, containing the Video API, which allows us to utilize all the features available. Let us start by creating a new project in Visual Studio, based off our MVVM template.

In the newly created project, add Microsoft.ProjectOxford.Video through the NuGet Package Manager.

As this example project will have a lot of common functionality, we just need one View. The example code provided has added a View, VideoView.xaml, to the View folder, and a corresponding view model. You...