Library / Image, Video & Audio
Image, Video & Audio
Detect Objects in Images with Cloudflare Workers AI for Elasticsearch Search
Runs on manual trigger to classify objects in a source image with the Detr-Resnet-50 vision model on Cloudflare Workers AI, so images can be indexed in Elasticsearch for object-based search.
What it does
## 2. Use Detr-Resnet-50 Object Classification [Learn more about Cloudflare Workers AI]({{ $env.WEBHOOK_URL }} Not all AI workflows need an LLM! As in this example, we're using a non-LLM vision model to parse the source image and return what objects are contained within. The image search feature we're building will be based on the objects in the image making for a much more granular search via object association. We'll use the Cloudflare Workers AI service which conveniently provides this model via API use.
The steps
- When clicking "Test workflow"
- Fetch Source Image
- Split Out Results Only
- Filter Score >= 0.9
- Crop Object From Image
- Set Variables
- Use Detr-Resnet-50 Object Classification
- Upload to Cloudinary
- Create Docs In Elasticsearch
- Fetch Source Image Again
Similar automations
Image, Video & AudioBuild an Image Search with Object Detection and Elasticsearch10 stepsImage, Video & AudioDetect and Crop Objects in Images with Elasticsearch Scores47 stepsMCP Servers & ToolsCloudflare Zone Certificates as an MCP Server5 stepsCode, Git & Developer ToolsManage Cloudflare Key-Value Storage Through the Full API212 steps