Skip to main content
Compute an L2-normalized embedding for a single RGB image.

Parameters

ImageInput
required
RGB image as file path, URL, PIL Image, or numpy array.
float | None
Optional timeout in seconds for the HTTP request.

Returns

np.ndarray: Embedding as numpy array of shape (D,), dtype float32, L2-normalized so dot products give cosine similarity directly.

Example