Build your own image search using AI object detection, CDN and ElasticSearch
Ready for 3.0What this workflow does
This workflow has 10 nodes and runs manually, when you click “Execute workflow”. Along the way it connects Elasticsearch. It also calls api.cloudinary.com over HTTP.
How it runs
Trigger: Manually, when you click “Execute workflow”.
- Set Variables (Edit Fields (Set)): sets 4 fields: CLOUDFLARE_ACCOUNT_ID, model, source_image…
- Fetch Source Image (HTTP Request): calls an HTTP API
- Use Detr-Resnet-50 Object Classification (HTTP Request): calls an HTTP API (POST)
- Split Out: splits a list into separate items
- Filter: keeps only the items that match a condition
- Fetch Source Image Again (HTTP Request): calls an HTTP API
- Crop Object From Image (Edit Image): crop
- Upload to Cloudinary (HTTP Request): calls api.cloudinary.com (POST)
- Create Docs In Elasticsearch (Elasticsearch): create
Services it uses
HTTP calls to: api.cloudinary.com
Before you upgrade to n8n 3.0
Nothing in this workflow is removed in n8n 3.0, so it should import and run after the upgrade.
Rarely used nodes in this template: n8n-nodes-base.elasticsearch
Nodes used (7)
- Manual Trigger
n8n-nodes-base.manualTrigger - HTTP Request
n8n-nodes-base.httpRequest - Split Out
n8n-nodes-base.splitOut - Filter
n8n-nodes-base.filter - Edit Image
n8n-nodes-base.editImage - Edit Fields (Set)
n8n-nodes-base.set - Elasticsearch
n8n-nodes-base.elasticsearch
From the author
This n8n workflow demonstrates how to automate indexing of images to build a object-based image search. By utilising a Detr-Resnet-50 Object Classification model, we can identify objects within an image and store these associations in Elasticsearch along with…