Share via


DenseCaption Class

Definition

Represents a generated phrase that describes the content of the whole image or a region in the image.

public class DenseCaption : System.ClientModel.Primitives.IJsonModel<Azure.AI.Vision.ImageAnalysis.DenseCaption>, System.ClientModel.Primitives.IPersistableModel<Azure.AI.Vision.ImageAnalysis.DenseCaption>
type DenseCaption = class
    interface IJsonModel<DenseCaption>
    interface IPersistableModel<DenseCaption>
Public Class DenseCaption
Implements IJsonModel(Of DenseCaption), IPersistableModel(Of DenseCaption)
Inheritance
DenseCaption
Implements

Properties

BoundingBox

The image region of which this caption applies.

Confidence

A score, in the range of 0 to 1 (inclusive), representing the confidence that this description is accurate. Higher values indicating higher confidence.

Text

The text of the caption.

Explicit Interface Implementations

IJsonModel<DenseCaption>.Create(Utf8JsonReader, ModelReaderWriterOptions)

Reads one JSON value (including objects or arrays) from the provided reader and converts it to a model.

IJsonModel<DenseCaption>.Write(Utf8JsonWriter, ModelReaderWriterOptions)

Writes the model to the provided Utf8JsonWriter.

IPersistableModel<DenseCaption>.Create(BinaryData, ModelReaderWriterOptions)

Converts the provided BinaryData into a model.

IPersistableModel<DenseCaption>.GetFormatFromOptions(ModelReaderWriterOptions)

Gets the data interchange format (JSON, Xml, etc) that the model uses when communicating with the service.

IPersistableModel<DenseCaption>.Write(ModelReaderWriterOptions)

Writes the model into a BinaryData.

Applies to