Automated Object Detection and Image Annotation with Gemini
detail.loadingPreview
Leverage the power of Google Gemini's object detection capabilities to automatically identify and draw bounding boxes around specific objects in your images. This workflow streamlines image analysis and annotation processes.
About This Workflow
This n8n workflow empowers you to automate the process of object detection within images using the advanced capabilities of Google's Gemini 2.0. The workflow begins by downloading a test image. It then utilizes Gemini to identify specific objects, in this case, 'rabbits,' and returns their bounding box coordinates. These coordinates are then processed and scaled to match the image dimensions. Finally, the workflow annotates the original image by drawing clear bounding boxes around each detected object, providing a visually enhanced output for analysis and review. This is an excellent tool for tasks requiring automated image interpretation and data extraction.
Key Features
- AI-Powered Object Detection: Utilize Google Gemini 2.0 for accurate identification of specified objects within images.
- Automated Bounding Box Generation: Automatically generates precise bounding boxes around detected objects.
- Image Annotation: Visually annotates images by drawing bounding boxes for immediate understanding.
- Scalable Coordinates: Handles normalization and scaling of object coordinates for accurate representation.
- Customizable Object Search: Easily adapt the prompt to detect a wide range of objects.
How To Use
- Trigger: The workflow is initiated by clicking the 'Test workflow' button.
- Download Image: The 'Get Test Image' node fetches a sample image from a provided URL.
- Get Image Information: The 'Get Image Info' node extracts metadata like width and height from the downloaded image.
- Object Detection: The 'Gemini 2.0 Object Detection' node sends the image to the Gemini API with a prompt to find specific objects (e.g., 'rabbits') and their bounding boxes.
- Extract and Scale Coordinates: The 'Get Variables' node extracts the detected object coordinates. The 'Scale Normalised Coords' node then scales these coordinates based on the image's width and height.
- Annotate Image: The 'Draw Bounding Boxes' node uses the scaled coordinates to draw bounding boxes on the image, highlighting the detected objects.
Apps Used
Workflow JSON
{
"id": "56a59e02-493b-4b47-9139-64e91f24375a",
"name": "Automated Object Detection and Image Annotation with Gemini",
"nodes": 25,
"category": "DevOps",
"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: 56a59e02-493b...
About the Author
SaaS_Connector
Integration Guru
Connecting CRM, Notion, and Slack to automate your life.
Statistics
Related Workflows
Discover more workflows you might like
Automated PR Merged QA Notifications
Streamline your QA process with this automated workflow that notifies your team upon successful Pull Request merges. Leverage AI and vector stores to enrich notifications and ensure seamless integration into your development pipeline.
Visualize Your n8n Workflows: Interactive Dashboard with Mermaid.js
Gain unparalleled visibility into your n8n automation landscape. This workflow transforms your n8n instance into a dynamic, interactive dashboard, leveraging Mermaid.js to visualize all your workflows in one accessible place.
Effortless Bug Reporting: Slack Slash Command to Linear Issue
Streamline your bug reporting process by instantly creating Linear issues directly from Slack using a simple slash command. This workflow enhances team collaboration by providing immediate feedback and a structured approach to logging defects, saving valuable time for development and QA teams.