Content APISearchVisual Similarity

Visual Similarity

This method can be particularly useful when you want to find images that have a similar aesthetic, color scheme, or subject matter. It works by comparing the visual characteristics of the images and determining how similar they are.

Syntax

Visual similarity search can be performed on any ‘imageBlock’. Here’s how:

Usage

Example 1 - image blocks

Arguments

NameTypeDefaultDescription
imagestringImage url or base64
certaintyfloatNormalized Distance between the result item and the search vector. Normalized to be between 0 (identical vectors) and 1 (perfect opposite).
distancefloatThe required degree of similarity between an image’s visual characteristics and the provided filter values
©2024 Unbody