Share via

Difficulty retrieving dense captions with 'denseCaptions' via SDK in NODEJS

Ronald Monteiro 0 Reputation points
2023-07-17T17:22:30.1933333+00:00

I am attempting to retrieve dense captions using 'denseCaptions' via SDK in NODEJS and following the documentation but have been unsuccessful. The code snippet I am using is:

const cognitive = new ComputerVisionClient(credentials, endpoint);
const responseDescribe: any = await cognitive.describeImage(imageUrl, {language: "en",});    

Can someone please guide me on the proper logic for implementing this code and retrieving dense captions? Any tips or suggestions would be greatly appreciated. Thank you!

Azure
Azure

A cloud computing platform and infrastructure for building, deploying and managing applications and services through a worldwide network of Microsoft-managed datacenters.

Foundry Tools
Foundry Tools

Formerly known as Azure AI Services or Azure Cognitive Services is a unified collection of prebuilt AI capabilities within the Microsoft Foundry platform

0 comments No comments

1 answer

Sort by: Most helpful
  1. Ramr-msft 17,836 Reputation points
    2023-07-18T10:52:03+00:00

    @Ronald Monteiro Thanks for the question. Can you please add error/output details that you are getting. Here are the samples for dense captions.

    If you are using the Nodejs your application will need to directly implement REST calls to the Vision service using the Image Analysis REST API v4.0 (preview).

    User's image

    https://github.com/Azure-Samples/azure-ai-vision-sdk

    Was this answer helpful?

    0 comments No comments

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.