ImageInsightsImageCaption Class

Defines an image's caption.

All required parameters must be populated in order to send to Azure.

Inheritance
ImageInsightsImageCaption

Constructor

ImageInsightsImageCaption(*, caption: str, data_source_url: str, related_searches, **kwargs)

Parameters

caption
str
Required

Required. A caption about the image.

data_source_url
str
Required

Required. The URL to the website where the caption was found. You must attribute the caption to the source. For example, by displaying the domain name from the URL next to the caption and using the URL to link to the source website.

related_searches
list[Query]
Required

Required. A list of entities found in the caption. Use the contents of the Query object to find the entity in the caption and create a link. The link takes the user to images of the entity.