Vision API asks for AuthenticationKind while creating a training data set

Vishal Prabhu H 20 Reputation points
2024-01-17T11:54:37.67+00:00

I am following this article
https://learn.microsoft.com/en-us/azure/ai-services/computer-vision/how-to/model-customization?tabs=rest

As a first step, I am required to make a PUT call curl.exe -v -X PUT "https://<endpoint>/computervision/datasets/<dataset-name>?api-version=2023-02-01-preview" -H "Content-Type: application/json" -H "Ocp-Apim-Subscription-Key: <subscription-key>" --data-ascii " { 'annotationKind':'imageClassification', 'annotationFileUris':['<URI>'] }" When I do make this call by pointing the annotationFileUri to my coco file in blob storage. I end up getting this error.

{"error":{"code":"InvalidRequest","message":"AuthenticationKind is required for registering dataset using AnnotationFileUrls."}}

I tried adding this in the request body - however I still get the same error

"authenticationKind": "AzureBlob",
Computer Vision
Computer Vision
An Azure artificial intelligence service that analyzes content in images and video.
{count} votes

Answer accepted by question author
  1. dupammi 8,615 Reputation points Microsoft External Staff
    2024-01-17T14:00:20.9433333+00:00

    Hi @vishal Prabhu ,

    Thank you for using Microsoft Q&A forum.

    I tried to repro from my end using POSTMAN tool and was successfully able to create a new dataset in the Azure vision studio. Please find below:

    User's image

    Then checked the Azure AI Vision studio.

    User's image

    Kindly ensure that the correct parameters are used. See below:

    "annotationFileUrls" instead of "annotationFileUris"

    "authenticationKind" instead of "AuthenticationKind"

    {
      "annotationKind": "imageClassification",
      "annotationFileUrls": ["YOUR_annotationFileUrl"],
      "authenticationKind": "Key"
    }
    
    

    Hope this helps. Do let us know if you any further queries.


    If this answers your query, do click Accept Answer and Yes for was this answer helpful. And, if you have any further query do let us know.

    1 person found this answer helpful.
    0 comments No comments

0 additional answers

Sort by: Most helpful

Your answer

Answers can be marked as 'Accepted' by the question author and 'Recommended' by moderators, which helps users know the answer solved the author's problem.