Assigning Tag names from the Image Analasys Quickstart to String Variables in JavaScript

Danagyl 1 Reputation point
2022-11-22T18:50:46.807+00:00

I am new to utilizing Azure for school projects, I understand that in the Image Analasys Quickstart file the Image Tags are being formatted into a JSON file format, what I am trying to understand is how to manipulate the tags that are assigned to the image being analyzed. I am trying to assign a tag to a string variable so that i can compare it to another string in a different JavaScript file. Any help would be appreciated, thanks!

Azure Computer Vision
Azure Computer Vision
An Azure artificial intelligence service that analyzes content in images and video.
311 questions
{count} votes

1 answer

Sort by: Most helpful
  1. romungi-MSFT 41,961 Reputation points Microsoft Employee
    2022-11-23T04:50:28.69+00:00

    @Danagyl Could you add a reference to the document or code file that you are working on? Are you trying to manipulate the tags that are generated from the analyze operation for an image?
    If Yes, then I think the tags returned are based on the analysis of the image by the CV API and the tags in the response cannot be changed nor there is a filter for displaying specific tags in the output. You can however read the tags from the response JSON and display the ones that are suitable in your client application with client-side processing. I hope this helps!!

    If an answer is helpful, please click on 130616-image.png or upvote 130671-image.png which might help other community members reading this thread.

    0 comments No comments