跳转到内容
Agentic Workflowdocs
v0.8.2免费安装

节点 / builtin / ai / localai

Caption Image

Describe an image in words, on-device

AI 扩展程序网页应用

此内容尚不支持你的语言。

Describe an image in a short sentence with a model that runs in your browser, so the image never leaves your device.

Caption Image runs the Image through an image-to-text model, such as ViT-GPT2 captioning, and returns one caption, for example “a dog sitting on a couch”. The image can be a web address, a data URL, raw base64, or a file passed from an earlier node. There is no cost per run and no API key.

Captioning models are small: expect a short, plain description, not a detailed analysis.

  • Write draft alt text for images on a page.
  • Turn a screenshot or photo into words that a text step can store, search or summarize.

To get labels with scores, use Classify Image. To count or locate things, use Detect Objects.

设置项类型作用
Model Model pickerAny installed image-captioning model.
Image MediaImage URL, data URL, or $binary from a previous node.

Image has four tabs. From input takes an expression that points to an image from an earlier node, such as {{ $input.dataUrl }} after Screenshot Page or {{ $binary }} for an attached file. URL takes a web address. Upload and Base64 store a fixed image with the node, handy for trying a model.

  • Output

Each output item has these fields:

Field类型What it holds
text Text
Shape of an output item
{
"text": "…"
}

text is the caption. Use it as {{ $input.text }} in the next node.

None. This node needs no connection and has no slots for other nodes.

The Model picker lists your installed models first, then models that download on first use. Manage them on the Local AI page.

Copy alt text for any image you right-click:

  1. Context Menu with Menu Contexts set to Image.
  2. Caption Image with Model ViT-GPT2 captioning and Image (From input) {{ $input.srcUrl }}.
  3. Clipboard Write with Text {{ $input.text }}.
  • “Choose a captioning model.” Model is empty. Pick one.
  • “No image provided. Pass an image URL, a data URL, or a $binary image from a previous node.” Image is empty, or its expression returned nothing. Check that the field you point to exists on the incoming item.
  • The caption is vague or off. Small captioning models miss details. Crop to the subject with Edit Image, or use Classify Image for labels.
  • The first run is slow. The model downloads and loads on first use; later runs are fast.
编辑此页

最近更新:

Was this page useful?
向 Aria 询问“Caption Image”