Automated Object Detection and Image Annotation with Gemini and n8n
detail.loadingPreview
This n8n workflow uses Gemini 2.0 for prompt-based object detection on an image and then annotates the image with bounding boxes using the Edit Image node. It demonstrates automated image analysis and modification.
🚀Ready to Deploy This Workflow?
About This Workflow
Overview
This n8n workflow automates the process of identifying objects within an image using Google's Gemini 2.0 API and then visually annotating those objects with bounding boxes. It starts by downloading a test image, then sends it to Gemini 2.0 with a specific prompt to detect certain objects (e.g., 'rabbits'). The API returns normalized bounding box coordinates, which are then scaled to match the original image dimensions. Finally, the Edit Image node draws these bounding boxes onto the image, creating an annotated output. This workflow is useful for tasks requiring automated image understanding and visual highlighting of detected objects.
Key Features
- Utilizes Gemini 2.0 for advanced, prompt-based object detection.
- Automatically scales normalized bounding box coordinates.
- Draws bounding boxes on the original image using the Edit Image node.
- Integrates HTTP Request for image fetching and API calls.
- Employs a Code node for coordinate manipulation.
How To Use
- Ensure you have a Google Gemini API credential set up in n8n.
- Configure the
Get Test Imagenode with the URL of the image you want to analyze. - Adjust the prompt in the
Gemini 2.0 Object Detectionnode to specify the objects you wish to detect. - Run the workflow. The output will be an image with bounding boxes drawn around the detected objects.
Apps Used
Workflow JSON
{
"id": "3bd66171-5b7a-436e-b064-917356d0b3a9",
"name": "Automated Object Detection and Image Annotation with Gemini and n8n",
"nodes": 0,
"category": "AI and Machine Learning",
"status": "active",
"version": "1.0.0"
}Note: This is a sample preview. The full workflow JSON contains node configurations, credentials placeholders, and execution logic.
Get This Workflow
ID: 3bd66171-5b7a...
About the Author
N8N_Community_Pick
Curator
Hand-picked high quality workflows from the global community.
Statistics
Verification Info
Related Workflows
Discover more workflows you might like
Build a Q&A Bot with Google Drive, OpenAI, and Pinecone
Automate building a question-answering system by loading documents from Google Drive into a Pinecone vector store. This workflow uses OpenAI for embeddings and chat.
Automate OpenAI Model Fine-tuning with Google Drive and AI Agent
This workflow automates the fine-tuning of OpenAI models by leveraging Google Drive for data storage and an AI Agent for conversational interaction. It streamlines the process from data preparation to model deployment.
Automated Image Analysis and Embedding for Search
This workflow analyzes an image by extracting color information and generating descriptive keywords using OpenAI. It then prepares this data for embedding into a vector store, enabling semantic search capabilities. The Google Drive and Edit Image nodes are central to image retrieval and processing.