ImageDescriptionCopilot

ImageDescriptionCopilot

Overview

ImageDescriptionCopilot is a type in Aspose.PDF FOSS for Go.

ImageDescriptionCopilot describes images with a vision model.

This type provides 2 methods for working with ImageDescriptionCopilot objects in Go programs. Available methods include: Describe, FillAltTexts. All public members are accessible to any Go application after installing the Aspose.PDF FOSS for Go package.

Methods

SignatureDescription
Describe(ctx: context.Context, img: image.Image)(string, error)Describe returns a short natural-language description of img, suitable as alternate text.
FillAltTexts(ctx: context.Context, doc: *pdf.Document)(int, error)FillAltTexts finds every /Figure in a tagged document that lacks alternate text, describes its image with the vision model, and sets the description as the figure’s /Alt — turning ValidatePDFUA’s UA_FIGURE_NO_ALT findings into a one-call fix.

See Also