Visual Experience Platform
Help CenterRelease NotesBlogWebsite
  • VXP - Visual Experience Platform
    • The VXP
      • Token
    • Settings
      • My Account
        • Profile
        • Support
      • Organisation
        • General Organisation Settings
        • Billing
          • Payment
          • Invoices
          • Plan
        • Users
          • Users
          • Roles
        • Teams
      • Project
        • Branding
        • Subscription
        • Analytics
          • Standard Dashboards
            • Multi tenants
            • User Dashboard
            • DAM Storage
            • Workflows Monitoring
            • Traffic Origin
            • Caching (Volumetry)
            • CDN performance
          • Custom Dashboard
        • Access
          • API keys
          • Security templates
          • OAuth2
  • Digital Asset Management (DAM)
    • Library
      • Assets
        • Asset Details window
          • Asset actions
            • Regional settings
            • Context menu ("..." button)
            • Add to My favorites (heart icon)
            • Edit media (image, video, etc)
              • Edit image
              • Edit video
              • Edit design template (coming soon)
            • Share
          • Asset information tabs
            • General
            • Metadata
            • Variations
            • Comments
            • Approvals
            • History
      • Folders
      • Collections
      • Labels
      • Products
      • My favorites
      • Help
      • Sharebox
      • Airbox
      • Search and Filters
        • Faceted Search
    • Plugins & Connectors
      • Plugins
        • Adobe Creative Cloud
        • Adobe Commerce (Magento)
        • Canva
        • Contentful
        • Contentstack
        • Directus
        • Drupal
        • Opencart
          • Opencart (v4)
        • Prestashop
        • Shopware
        • Storyblok
        • Strapi (v4)
        • Sylius
        • Uniform CMS
        • WordPress - VXP [Beta]
        • Wordpress
      • Connectors
        • Akeneo PIM
          • Akeneo Community PIM Connector
          • Akeneo Enterprise PIM App
        • Canva App
        • CI-Hub
        • Commercetools FaaS App
        • Hygraph app
        • Kontent.ai
        • OneTeg
        • Pabbly Connect
        • Prismic
        • Shopify / Shopify plus app
        • Zapier automation
    • Settings
      • Library
        • Components
        • Appearance
      • Metadata
        • Metadata Configuration
        • Assets
      • Tags
        • Configuration
        • Dictionary
      • Notifications
      • Automations
        • Post processing
        • Webhooks
        • Workflows
      • Storage
        • Providers
        • Upload
        • Video
        • Listing
        • Retrieval
        • Custom routing
  • Visual AI
    • Welcome
    • Visual AI
      • Images
        • Classification models
          • Auto-tagging
          • Brand detect
          • Dominant color extraction
          • Faces
            • Face analysis
            • Face clustering
          • Image quality
          • OCR
          • Number Plate recognition
          • Product type
          • Property classification
          • Scene Classification
          • Sport Classification
        • Generative AI models
          • Image-to-text
          • Plate blurring
          • Quality improvement (remove artifacts)
          • Remove background
          • Text-to-Image
        • Moderation models
          • Face count
          • NSFW - Not Safe For Work
          • Real estate authenticity
          • Watermark detection
      • Videos
        • Face detection
      • Search & find assets
        • Text Search
        • Similar Assets
  • Portals
    • Welcome
    • Creating a Portal
    • Editing a Portal
      • Pages
      • Sections
      • Design
      • Fonts
    • Managing a Portal
      • Settings
      • Access
      • Users
      • Labeling, Cloning, Archiving
    • Publishing a Portal
  • Dynamic Media Optimization (DMO)
    • Welcome
      • Responsive libraries
      • Native plugins
      • 360° view builder
      • Service status
    • Insights
      • Delivery
      • Optimization
      • Alerts
      • Logs
    • Transformations
      • Image optimization
        • Operations
          • Width and height
          • Prevent enlargement
          • Crop
            • Automatic Gravity Crop
            • Positionable Crop
            • Focal point Crop
            • Face Crop
            • Face hide
            • Aspect ratio crop
          • Fit
          • Cropfit
          • Bound
          • Boundmin
          • Cover
          • Device pixel ratio
          • Flip
          • Rotate
          • Trim
          • Rounded corners
        • Filters
          • Adjustment
            • Brightness
            • Contrast
            • Saturate
          • Color manipulation
            • Color overlay
            • Grayscale
            • Duotone
            • Sepia
            • Invert
          • Blur
          • Pixelate
          • Sharpen
        • Watermarking
          • Static watermark
          • Dynamic watermark
          • Text watermark
        • Image compression
          • Image formats
          • Optipress
      • Video optimization
        • Video API
          • Editing
            • Chapters
            • Combine
            • Trim
          • Optimizing
            • Convert
            • Compress
            • Transcode
        • On-the-fly-video optimization
      • Static content optimization
        • PDF to image
        • JS/CSS optimization
    • Invalidation
    • Settings
      • Asset Origin
        • AWS S3 or any other S3-compatible storage provider
        • Google Cloud storage (GCP)
        • Azure Blob storage
        • Own HTTP-based Storage
      • Images
        • Compression
        • Options
        • Watermark
      • Static content
      • Delivery
        • CNAME
        • URL format
        • Rules
        • Security
        • Caching
        • Default behaviors
  • Developers / Headless
    • Headless DAM
      • DAM APIs
        • API Authentication
        • API Reference
      • Command Line Interface (CLI)
      • Media Asset Widget(MAW)
        • Overview
        • Developer reference
        • V2 End-of-life
Powered by GitBook
LogoLogo

Quick links

  • Go to website
  • Legal Center

©2024 Scaleflex SAS

On this page
  • Overview
  • Use cases
  • API endpoints
  • Example API responses
Export as PDF
  1. Visual AI
  2. Visual AI
  3. Images
  4. Classification models

Dominant color extraction

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

PreviousBrand detectNextFaces

Last updated 7 months ago

Overview

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 image
API response

{
    "status": "success",
    "version": "2.9.3",
    "sha1": "f87f1c2e708b1111aa8aa99640efec02aaeb130b",
    "request_uuid": "0e00fce5-19a5-4411-b161-6894f9a7ff8e",
    "file_downloaded": "grahame-jenkins-p7tai9P7H-s-unsplash.jpg",
    "dominant_colors": [
        {
            "color": "azure",
            "hex": "0980fb",
            "pixels": 402721,
            "ratio": 0.16,
            "all": 2453760
        }
    ],
    "main_colors": [
        "azure"
    ],
    "main_colors_ratio": [
        0.16
    ],
    "main_colors_pixels": [
        402721
    ],
    "main_colors_hex": [
        "0980fb"
    ]
}
{
    "status": "success",
    "version": "2.9.3",
    "sha1": "cb29b29a902db664cb3bcb83a593d5dc7e0ae06f",
    "request_uuid": "e7ca3fd3-5561-4b48-adf3-4df8120e48c3",
    "file_downloaded": "420799-MF-MELON_RED.jpg",
    "dominant_colors": [
        {
            "color": "pink",
            "hex": "ee6893",
            "pixels": 293000,
            "ratio": 0.05,
            "all": 6220800
        }
    ],
    "main_colors": [
        "pink"
    ],
    "main_colors_ratio": [
        0.05
    ],
    "main_colors_pixels": [
        293000
    ],
    "main_colors_hex": [
        "ee6893"
    ]
}
Scaleflex API for Digital Asset Management (DAM), Visual AI and Media OptimizationScaleflex API
Logo