Prompt-based object detection with Gemini 2.0
This n8n template demonstrates how to get started with Gemini 2.0's new Bounding Box detection capabilities in your workflows. The key difference being this ...
🔌 Nodes & Integrations Used (2)
📖 Implementation & Setup Guide
This n8n template demonstrates how to get started with Gemini 2.0's new Bounding Box detection capabilities in your workflows.
The key difference being this enables prompt-based object detection for images which is pretty powerful for things like contextual search over an image. eg. "Put a bounding box around all adults with children in this image" or "Put a bounding box around cars parked out of bounds of a parking space".
How it works * An image is downloaded via the HTTP node and an "Edit Image" node is used to extract the file's width and height. * The image is then given to the Gemini 2.0 API to parse and return coordinates of the bounding box of the requested subjects. In this demo, we've asked for the AI to identify all bunnies. * The coordinates are then rescaled with the original image's width and height to correctl align them. * Finally to measure the accuracy of the object detection, we use the "Edit Image" node to draw the bounding boxes onto the original image.
How to use * Really up to the imagination! Perhaps a form of grounding for evidence based workflows or a higher form of image search can be built.
Requirements * Google Gemini for LLM
Customising the workflow * This template is just a demonstration of an experimental version of Gemini 2.0. It is recommended to wait for Gemini 2.0 to come out of this stage before using in production.
⚡ How to import this workflow into n8n:
- Click the Direct Download JSON button above to save
Prompt-based object detection with Gemini 2.0.json. - Log in to your n8n Cloud or self-hosted n8n instance.
- In your workflow canvas, click the menu in top-right and select Import from File (or paste the JSON directly).
- Configure your credentials (e.g. API keys, database URLs) in the corresponding node settings.
- Click Execute Workflow to test and switch to Active!
Related DevOps & GitHub Workflows
View All in DevOps & GitHub →Generate Google Doc Proposal
Production-ready n8n automation template for Generate Google Doc Proposal built by AhiXLight. Seamlessly connects Execute Workflow Trigger, Google Drive, OpenAI with 7 configured nodes.
Add a new lead to Pipedrive once GitHub repo is forked
This workflow automatically adds a new lead to Pipedrive once someone forks your GitHub repository. Prerequisites - Pipedrive account and Pipedrive credentia...
Add the affiliate to a program automatically
This workflow allows you to create an affiliate, add metadata, and add the affiliate to a program. !workflow-screenshot Tapfiliate node: This node allows you...
Add a note to Pipedrive s contact once PR is added on GitHub
This workflow automatically adds a note of the PR from GitHub to the Pipedrive contact if their GitHub email matches a Person in Pipedrive. Prerequisites - P...