Skip to content

Latest commit

 

History

History
74 lines (59 loc) · 2.65 KB

concept-brand-detection.md

File metadata and controls

74 lines (59 loc) · 2.65 KB
title titleSuffix description author manager ms.service ms.topic ms.date ms.author
Brand detection - Azure AI Vision
Azure AI services
Learn about brand and logo detection, a specialized mode of object detection, using the Azure AI Vision API.
PatrickFarley
nitinme
azure-ai-vision
conceptual
01/19/2024
pafarley

Brand detection

Brand detection is a specialized mode of object detection that uses a database of thousands of global logos to identify commercial brands in images or video. You can use this feature, for example, to discover which brands are most popular on social media or most prevalent in media product placement.

The Azure AI Vision service detects whether there are brand logos in a given image. If a brand logo is detected, the service returns the brand name, a confidence score, and the coordinates of a bounding box around the logo.

The built-in logo database covers popular brands in consumer electronics, clothing, and more. If you find that the Vision service doesn't detect the brand you're looking for, you could also try creating and training your own logo detector using the Custom Vision service.

Brand detection example

The following JSON responses illustrate what Azure AI Vision returns when detecting brands in the example images.

:::image type="content" source="images/red-shirt-logo.jpg" alt-text="Photograph of a red shirt with a Microsoft label and logo.":::

"brands":[  
   {  
      "name":"Microsoft",
      "rectangle":{  
         "x":20,
         "y":97,
         "w":62,
         "h":52
      }
   }
]

In some cases, the brand detector picks up both the logo image and the stylized brand name as two separate logos.

:::image type="content" source="images/gray-shirt-logo.jpg" alt-text="Photograph of a gray sweatshirt with a Microsoft label and logo.":::

"brands":[  
   {  
      "name":"Microsoft",
      "rectangle":{  
         "x":58,
         "y":106,
         "w":55,
         "h":46
      }
   },
   {  
      "name":"Microsoft",
      "rectangle":{  
         "x":58,
         "y":86,
         "w":202,
         "h":63
      }
   }
]

Use the API

The brand detection feature is part of the Analyze Image API. You can call this API by using a native SDK or through REST calls. Include Brands in the visualFeatures query parameter. Then, when you get the full JSON response, parse the string for the contents of the "brands" section.