Taxonomy for Objects using Analyze Image API

Pooser, Benjamin P 6 Reputation points
2020-10-15T02:15:21.233+00:00

Hello,

My team of college students is trying to use the Analyze Image API. Right now, we have this hierarchy of labels for an object that was analyzed from an image:

   "object": "Strawberry",  
        "confidence": 0.588,  
        "parent": {  
          "object": "Fruit",  
          "confidence": 0.612,  
          "parent": {  
            "object": "Food",  
            "confidence": 0.62  
          }  
        }  

We are wondering if there is a way to see all the other possible labels that this object was considered to be. So we are looking for the taxonomy like below:

32482-screen-shot-2020-10-14-at-101343-pm.png

Thanks!

Azure AI Custom Vision
Azure AI Custom Vision
An Azure artificial intelligence service and end-to-end platform for applying computer vision to specific domains.
233 questions
Azure AI services
Azure AI services
A group of Azure services, SDKs, and APIs designed to make apps more intelligent, engaging, and discoverable.
2,582 questions
0 comments No comments
{count} votes

1 answer

Sort by: Most helpful
  1. GiftA-MSFT 11,161 Reputation points
    2020-10-15T02:47:43.267+00:00

    Hi, thanks for reaching out. The categorization feature is part of the Analyze Image API. You can call this API through a native SDK or through REST calls. Include Categories in the visualFeatures query parameter. Then, when you get the full JSON response, simply parse the string for the contents of the "categories" section. Hope this helps!

    0 comments No comments