ImageDescriptionCopilot

ImageDescriptionCopilot

개요

ImageDescriptionCopilot은 Aspose.PDF Go용 FOSS의 타입입니다.

ImageDescriptionCopilot은 비전 모델을 사용해 이미지를 설명합니다.

이 타입은 Go 프로그램에서 ImageDescriptionCopilot 객체를 다루기 위한 2개의 메서드를 제공합니다. 사용 가능한 메서드에는 Describe, FillAltTexts이 포함됩니다. Aspose.PDF Go용 FOSS 패키지를 설치하면 모든 공개 멤버를 모든 Go 애플리케이션에서 사용할 수 있습니다.

메서드

시그니처설명
Describe(ctx: context.Context, img: image.Image) → (string, error)Describe는 img에 대한 짧은 자연어 설명을 반환하며, 이는 대체 텍스트로 적합합니다.
FillAltTexts(ctx: context.Context, doc: *pdf.Document) → (int, error)FillAltTexts는 대체 텍스트가 없는 태그된 문서의 모든 /Figure를 찾아 비전 모델로 이미지에 대한 설명을 만든 다음, 그 설명을 해당 figure의 /Alt로 설정합니다 — ValidatePDFUA의 UA_FIGURE_NO_ALT 결과를 한 번의 호출로 해결합니다.

참조

 한국어