anaksor-ocr
Sokheng · Kit
Reads Khmer and English text from documents, receipts and photos of signs, using a detector for text lines and a recogniser for each line. Suits developers who…
An n8n workflow that sends a picture and a short prompt to Google Gemini, then draws the boxes it returns on the picture. The prompt names what to find, and the sample asks for rabbits.
Gemini bounding boxes drawn on an image from a prompt is an n8n workflow in the Developer category, listed by Mindket. It is free. This is version 1, last updated on . Download it on this page or copy its JSON, then import it into an n8n canvas. Nothing runs until you activate it in n8n.
Manual run
It starts when you click Test workflow in n8n:
The picture with a box drawn around each match, up to six
What you need before you start.
Vision model
Looks at the picture, finds what the prompt names and returns a box and a label for each match.
NeedsA Google Gemini API key, saved in a Google Gemini(PaLM) API credential
Checked by Mindket on 13 Nov 2026
This n8n workflow finds things in a picture from a plain sentence. It downloads an image and sends it to Google Gemini with a prompt that names what to find, here rabbits. Gemini answers with a box around each match. A Code node turns the boxes into pixel positions, and an Edit Image node draws them on the picture. Seven nodes run it, beside five sticky notes.
Builders who want to try prompt based object detection without training a model. Skip it if you need more than six boxes on a picture, exact outlines instead of rectangles, or a service that runs offline.
| Industry | Who uses it | How they use it | Example |
|---|---|---|---|
| Software | Developers | Test what Gemini finds in their own images | A developer changes the prompt to cars and sees a box on each car in a street photo. |
| E-commerce | Catalogue teams | Mark the items in a product photo | A team asks for shoes and checks that each pair gets a box. |
| Research | Analysts | Check how well a prompt finds a subject | An analyst compares the boxes for two wordings of one prompt. |
| Education | Teachers | Show how a vision model reads a picture | A teacher draws boxes on animals in a classroom photo. |
You need some n8n: import a file, add one credential and paste the address of one picture.
Any n8n that can reach Google’s API and the address of your picture will run it. The result is a picture you open in the Draw Bounding Boxes node.
Download saves a zip with workflow.json and Mindket’s setup notes in your downloads folder. Setup takes one credential and one picture address.
| Need | Detail |
|---|---|
| n8n | On n8n Cloud or on a server of your own |
| Google Gemini | An API key, saved in a Google Gemini(PaLM) API credential |
| A picture | A JPEG file reachable by a web address |
workflow.json.Gemini Object Detection.Get Test Image, replace https://YOUR_IMAGE_HOST/your-image.jpg with your picture’s address.Gemini Object Detection if you want to find something other than rabbits.Draw Bounding Boxes to see the picture.Click Test workflow. After a few seconds the last node holds your picture with the boxes drawn on it. Change the prompt, and run it again to look for something else.
| To change | Where |
|---|---|
| What to find | The prompt in Gemini Object Detection |
| The picture | The address in Get Test Image |
| The model | The model name in the address of Gemini Object Detection |
| The look of a box | The colour in each draw step of Draw Bounding Boxes |
A teacher saves a classroom photo of rabbits at a web address and pastes it into Get Test Image. She clicks Test workflow.
Gemini returns a box and a label for each rabbit it sees. The Code node scales the boxes to the photo’s size, and the last node shows the photo with a box on each rabbit.
If you are new. n8n draws a workflow as boxes joined by lines, and each box, a node, does one job. Here one node asks Gemini, one does the sums and one draws. Start with a clear picture that has two or three subjects.
For experts. Gemini is called through an HTTP Request node with a response schema that asks for a list of objects with a box_2d and a label. There is no Gemini node and no AI Agent.
| Node | What it does | What to know |
|---|---|---|
Gemini Object Detection | Posts the picture and the prompt to the generateContent endpoint | The picture goes in as base64 in the JSON body |
Get Variables | Reads the model’s text as JSON | It uses parseJson, so a reply that is not JSON stops the run |
Scale Normalised Coords | Turns the 0 to 1000 boxes into pixels and pads them to six | The extra boxes beyond six are cut |
Draw Bounding Boxes | Draws six rectangles on the picture | An empty slot becomes a zero size box at the top left corner |
Only six boxes are drawn, and the model name was changed because the original one is not on Google’s current pages.
gemini-2.0-flash-exp, shows the gemini-2.0-flash family shut down on 1 June 2026 and names gemini-3.6-flash as the replacement. This copy uses that[ymin, xmin, ymax, xmax] on a scale of 0 to 1000An n8n workflow that sends one picture and a short prompt to Google's Gemini. Gemini answers with a box around each match,
and the workflow draws those boxes on the picture. The prompt asks for rabbits, and you can change it to ask for anything
you can name.
workflow.json: the workflow as n8n exports it, twelve nodes: seven that do the work and five sticky notes. It holds noREADME.md: these notes.gemini-2.0-flash-exp. Google's deprecations page, read on 12 November 2026, does not list that name, butgemini-2.0-flash family shut down on 1 June 2026 and names gemini-3.6-flash as the replacement. Thegemini-3.6-flash.Gemini 2.0 Object Detection. It is now Gemini Object Detection, since the modelGet Test Image downloaded a picture from the author's own address. It now holds https://YOUR_IMAGE_HOST/your-image.jpg.Draw Bounding Boxes has six fixed draw steps and read a box from each. A picture with fewer than six matches made theworkflow.json.Gemini Object Detection.Get Test Image, replace https://YOUR_IMAGE_HOST/your-image.jpg with the address of your picture.Gemini Object Detection, change the prompt in the JSON body if you want something other than rabbits.Draw Bounding Boxes to see the picture.Get Test Image downloads the picture, and Get Image Info reads its width and height.Gemini Object Detection posts the picture and the prompt, and asks for a JSON list in which each match has a box_2dlabel.Get Variables reads the model's text as JSON, and keeps the picture's width and height next to it.Scale Normalised Coords turns each box into pixel positions and pads the list to six boxes.Draw Bounding Boxes draws the six boxes on the picture it holds.Gemini Object Detection.Get Test Image.Gemini Object Detection.Draw Bounding Boxes.[ymin, xmin, ymax, xmax] on a scale of 0 to 1000. TheGet Variables reads the model's text with parseJson. If the model answers with something that is not JSON, the runGet Test Image, so a change to that node's name needs the same change in thegemini-2.5-pro and gemini-2.5-flash to newer models from 1 December 2026, soNOTICE.md 618 B README.md 4 KB workflow.json 11 KB
Sokheng · Kit
Reads Khmer and English text from documents, receipts and photos of signs, using a detector for text lines and a recogniser for each line. Suits developers who…
Qwen · Kit
Qwen2.5-7B-Instruct as GGUF files in eight quantization sizes, to chat with locally through llama.cpp. For people who want a capable 7.6B model on their own co…
ACE-Step · Kit
Generates music from text with a 4B diffusion decoder, 50 steps and guidance control, aiming for higher audio quality than the base. For creators with a GPU of…
alirezarezvani · Skill
Adds 411 ready-made skills for Claude Code and other coding agents, grouped by role from engineering and product to marketing, finance and compliance. Installs…
block · Kit
Self-hostable workspace where people and AI agents share the same rooms, built on a Nostr relay that logs every action as a signed event. For teams that want t…
backnotprop · Kit
Opens your AI coding agent's plans, specs and code changes in a browser so you can annotate or comment on them and send the feedback straight back to the agent.