Skip to content
NEWMeet Alaaddin, your AI genie with a voice. trig8n launches 1 January 2027. See what is new

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

  1. When clicking "Test workflow"
  2. Fetch Source Image
  3. Split Out Results Only
  4. Filter Score >= 0.9
  5. Crop Object From Image
  6. Set Variables
  7. Use Detr-Resnet-50 Object Classification
  8. Upload to Cloudinary
  9. Create Docs In Elasticsearch
  10. Fetch Source Image Again

Similar automations