Build object based image search without manual tagging. The flow finds objects in a photo, crops them into new images, uploads them to a media host, and indexes them for fast lookup. Ideal for ecommerce and media teams that manage large photo libraries.
The run begins with a manual test. A Set node holds the account id, model name, source image link, and the Elasticsearch index. The image is downloaded and sent to a Cloudflare Workers AI vision model for object detection. Results are split so each object is handled on its own. A filter keeps only high confidence items with a score of 0.9 or higher. The source image is downloaded again, then each object is cropped using the exact box coordinates. Each crop gets a clean file name that includes the original name, the label, and the item index. Cropped images are uploaded to Cloudinary, and the returned secure link and metadata are saved as new documents in Elasticsearch.
You need accounts for Cloudflare Workers AI, Cloudinary, and Elasticsearch. Store credentials in n8n and set the variables before testing. Expect big time savings on tagging and faster search across assets. Great for product catalogs, stock photo teams, and any group that wants object level search without manual work.