Book Image

Learning Microsoft Cognitive Services - Third Edition

By : Leif Larsen
Book Image

Learning Microsoft Cognitive Services - Third Edition

By: Leif Larsen

Overview of this book

Microsoft Cognitive Services is a set of APIs for integrating artificial intelligence in your applications to solve logical business problems. If you’re new to developing applications with AI, Learning Microsoft Cognitive Services will give you a comprehensive introduction to Microsoft’s AI stack and get you up-to-speed in no time. The book introduces you to 24 APIs, including Emotion, Language, Vision, Speech, Knowledge, and Search. Using Visual Studio, you can develop applications with enhanced capabilities for image processing, speech recognition, text processing, and much more. Moving forward, you will work with datasets that enable your applications to process various data in the form of image, video, or text. By the end of the book, you’ll be able to confidently explore Cognitive Services APIs for building intelligent applications that can be deployed for real-world business uses.
Table of Contents (17 chapters)
Learning Microsoft Cognitive Services - Third Edition
Contributors
Acknowledgments
Preface
Index

Searching for visual content using Bing Visual Search


Using the Bing Visual Search API, one can interpret images. This API allows us to gain insights about images. This includes finding visually similar images, searches, and shopping sources. It can also identify people, places, and objects, as well as text.

Sending a request

You will typically upload an image to the API to retrieve insights on it. In addition, you can pass on an URL to an image.

Note

The endpoint you should use to query the Bing Visual Search API is https://api.cognitive.microsoft.com/bing/v7.0/images/visualsearch.

In either scenario, the following query parameters can be added:

  • cc: The two-letter language code of the country where the results should come from.

  • mkt: The market where the results come from. This should always be specified.

  • safeSearch: The filter used to filter adult content. Can be Off, Moderate, or Strict.

  • setLang: The language to use for user interface strings, that is, a two-letter language code.

In addition...