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.

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.

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.