Image main color determination method and device, storage medium and electronic equipment

A determination method and technology of dominant colors, applied in the field of image processing, can solve problems such as single dominant color value
CN111401316APending Publication Date: 2020-07-10NETEASE HANGZHOU NETWORK

Patent Information

Authority / Receiving Office
CN · China
Current Assignee / Owner
NETEASE HANGZHOU NETWORK
Publication Date
2020-07-10

Smart Images

  • Figure 1
    Figure 1
  • Figure 2
    Figure 2
  • Figure 3
    Figure 3
Patent Text Reader

Abstract

The embodiment of the invention relates to an image main color determination method and device, a storage medium and electronic equipment, and relates to the technical field of image processing. The method comprises the steps: based on color subspaces obtained by dividing a color space in advance, performing statistical operation on the color subspaces to which all pixel points in a target image belong, and obtaining the number of the pixel points in all the color subspaces; clustering the representative colors of the color subspaces to obtain a first preset number of color categories, and dividing the color subspaces into the color categories to which the representative colors of the color subspaces belong; respectively weighting the representative color in each color category to obtain amain color of each color category; arranging the main colors of each color category according to the number of the pixel points in each color category, and selecting a second preset number of main colors as the main colors of the target image. The method can improve the accuracy of the main color of the image, and is suitable for images with complex color distribution.
Need to check novelty before this filing date? Find Prior Art

Description

Technical field

[0001] The embodiments of the present invention relate to the field of image processing technology. More specifically, the embodiments of the present invention relate to a method for determining the dominant color of an image, a device for determining the dominant color of an image, a computer-readable storage medium, and an electronic device. Background technique

[0002] This section is intended to provide background or context for the embodiments of the present invention stated in the claims, and the description here is not admitted to be prior art just because it is included in this section.

[0003] The dominant color refers to the most eye-catching color or tone in the image. Determining the dominant color of an image has important applications in image retrieval, image synthesis, and image compression.

[0004] In the prior art, in order to determine the dominant color of an image, a color histogram is generally calculated on the image to obtain the proportion ...

Claims

the structure of the environmentally friendly knitted fabric provided by the present invention; figure 2 Flow chart of the yarn wrapping machine for environmentally friendly knitted fabrics and storage devices; image 3 Is the parameter map of the yarn covering machine
Login to View More