Dominant color extraction

An ML model that extracts the most prominent colors in an image


The model analyzes the colors present in the input image and determines if they fall into several predefined ranges. It then compares the number of pixels in those ranges and outputs color names that were detected as visually dominant.

The pixels of the image are examined to identify the most prominent colors present. Multiple factors such as the distribution and frequency of different color values are taken into account to determine the dominant colors.

To find the color of a pixel, all values in the image are converted to an alternative color representation that is designed to be more closely aligned with the way human vision perceives colors. This enures high-quality results.

Use cases

Some typical use cases for this model include:

  • Visual search and filtering - Users can search for images based on specific dominant color criteria. For example, they can search for images dominated by a particular color to find assets that align with a specific theme or aesthetic.

  • Color-based categorization - The feature facilitates the automatic categorization of images based on their dominant colors. This allows for easier location and grouping of images with similar color schemes.

  • Branding Enhancement - Teams can utilize the dominant color information to ensure consistent branding and visual coherence. They can search for images that match their brand identity and integrate them into their campaigns.

API endpoints

An up-to-date reference with all API endpoints is available here:

Example API responses

Product imageAPI response

Last updated