AI识图 icon

AI识图

利用Azure OpenAI进行图片分析、打标

AI识图

AI-generated

Overview

This node performs image analysis using an AI service powered by Azure OpenAI. It takes one or more image URLs and a text prompt as input, then returns the analysis results of the images based on the prompt. This is useful for scenarios such as automatically generating descriptions of images, tagging images with relevant information, or extracting insights from visual content.

Practical examples include:

  • Automatically describing product images in an e-commerce workflow.
  • Analyzing photos uploaded to a social media platform to generate captions or tags.
  • Extracting visual features or metadata from images for digital asset management.

Properties

Name Meaning
Text Input The prompt or question guiding the image analysis. Default is "What's in this image?".
URL(s) One or multiple URLs of images to analyze. Multiple URLs can be separated by commas.

Output

The node outputs a JSON object under the json field containing either:

  • content: The result of the image analysis returned by the AI service, which typically includes descriptive data or labels about the images based on the prompt.
  • error: A string describing any error encountered during the analysis process.

No binary data output is produced by this node.

Dependencies

  • Requires an API key credential for accessing the Azure OpenAI-based image analysis service.
  • The node depends on an internal client class that handles communication with the external image analysis API.
  • Proper configuration of the API credentials within n8n is necessary for successful execution.

Troubleshooting

  • Common issues:

    • Invalid or missing API credentials will cause authentication failures.
    • Incorrectly formatted or inaccessible image URLs may lead to errors or empty results.
    • Network connectivity problems can prevent reaching the external API.
  • Error messages:

    • Errors thrown by the external API are caught and returned as strings in the output's error field.
    • If you receive an error message related to authorization, verify that your API key is correctly configured and has sufficient permissions.
    • For errors about image access, ensure the URLs are publicly accessible and correctly formatted.

Links and References

Discussion