Description
π§ Index Image Objects using Cloudflare AI & ElasticSearch
Automatically detect, crop, and index objects in images to build an AI-powered visual search system β powered by Cloudflare Workers AI.
πΈ Tired of manually tagging and organizing image data? β This workflow automatically classifies and crops objects from images, then indexes them in ElasticSearch for advanced visual querying.
π§© What Problem Does It Solve?
Manually detecting and organizing objects in images is tedious and error-prone.
This workflow uses a lightweight AI model to:
-
π Identify multiple objects in images
-
βοΈ Crop each object automatically
-
π§ Classify objects with high confidence
-
ποΈ Index results in ElasticSearch for easy querying
βοΈ How it Works
πΌοΈ Accepts image input via HTTP or other source nodes
π Classifies objects using Detr-Resnet-50 from Cloudflare Workers AI
π’ Filters only high-confidence results (score β₯ 0.9)
βοΈ Crops each object from the image
βοΈ Uploads cropped images to Cloudinary (or any external storage)
π Indexes object metadata + image links in ElasticSearch
β¨ Key Features
π Fully automated object detection pipeline
π€ Non-LLM vision model (Detr-Resnet-50) β fast and cost-efficient
π¦ Crops individual object images from source
π Uploads to external storage (Cloudinary)
π Enables granular object-based image search in ElasticSearch
π§Ή Built-in confidence filtering and data cleanup
π§ What You Need
β Cloudflare account with Workers AI enabled
β ElasticSearch instance (hosted or self-managed)
β (Optional) Cloudinary or any image storage service
β n8n instance running the workflow
π οΈ Setup Instructions
π Set variables or input the image manually via HTTP or UI
π§ Use Cloudflare API to classify the image via Detr-Resnet-50
π§Ή Filter results by confidence score β₯ 0.9
βοΈ Crop the objects using bounding boxes
βοΈ Upload each cropped image to storage
π Create documents in ElasticSearch with metadata & image links
π§ͺ Test with sample image before full deployment
π Integrations
Cloudflare Workers AI
ElasticSearch
Cloudinary (optional)
n8n Core Nodes
ProjectΒ Link:-[https://preview--object-vision-index.lovable.app/]