CN108846879B - Color plate generation method and device - Google Patents

Color plate generation method and device Download PDF

Info

Publication number
CN108846879B
CN108846879B CN201810615613.4A CN201810615613A CN108846879B CN 108846879 B CN108846879 B CN 108846879B CN 201810615613 A CN201810615613 A CN 201810615613A CN 108846879 B CN108846879 B CN 108846879B
Authority
CN
China
Prior art keywords
color
value
hue
target brand
predefined
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Active
Application number
CN201810615613.4A
Other languages
Chinese (zh)
Other versions
CN108846879A (en
Inventor
蒋文钦
刘佳音
周星羽
马飞
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Advanced New Technologies Co Ltd
Advantageous New Technologies Co Ltd
Original Assignee
Advanced New Technologies Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Advanced New Technologies Co Ltd filed Critical Advanced New Technologies Co Ltd
Priority to CN201810615613.4A priority Critical patent/CN108846879B/en
Publication of CN108846879A publication Critical patent/CN108846879A/en
Application granted granted Critical
Publication of CN108846879B publication Critical patent/CN108846879B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06TIMAGE DATA PROCESSING OR GENERATION, IN GENERAL
    • G06T11/002D [Two Dimensional] image generation
    • G06T11/001Texturing; Colouring; Generation of texture or colour
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06TIMAGE DATA PROCESSING OR GENERATION, IN GENERAL
    • G06T11/002D [Two Dimensional] image generation
    • G06T11/60Editing figures and text; Combining figures or text
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06TIMAGE DATA PROCESSING OR GENERATION, IN GENERAL
    • G06T9/00Image coding
    • G06T9/40Tree coding, e.g. quadtree, octree

Landscapes

  • Engineering & Computer Science (AREA)
  • Physics & Mathematics (AREA)
  • General Physics & Mathematics (AREA)
  • Theoretical Computer Science (AREA)
  • Multimedia (AREA)
  • Color Image Communication Systems (AREA)
  • Facsimile Image Signal Circuits (AREA)
  • Processing Or Creating Images (AREA)

Abstract

The embodiment of the specification provides a method and a device for generating a color plate, wherein the method comprises the following steps: obtaining a hue value corresponding to a theme color of a target brand; then generating a color plate corresponding to characters on a product interface of the target brand according to the obtained hue value, a predefined saturation value and a predefined brightness value; the predefined brightness value is used for enabling the contrast ratio of the generated color on the color plate and the set background color to reach a first set value; the predefined saturation value is used to bring the purity of the color on the generated color plate to a second set value.

Description

Color plate generation method and device
Technical Field
The present application relates to the field of color processing, and in particular, to a method and an apparatus for generating a color palette.
Background
Today, with the rapid development of information technology, internet technology has become an indispensable part of people's daily life and work, and network information has become an important channel for people to obtain information. Therefore, nowadays, in order to facilitate the promotion of its products, many companies design the promotion page of the products in addition to some conventional promotion channels so as to conduct network promotion.
Generally, a product page includes a logo, a picture, text content, and the like of a product, and when designing the product page, a color used by the text generally needs to be considered. Therefore, a method for generating a common color palette is required to generate a color palette corresponding to a text on a page.
Disclosure of Invention
An object of an embodiment of the present disclosure is to provide a method and an apparatus for generating a color palette, wherein the color palette corresponding to a text on a product interface of a target brand is generated according to a hue value corresponding to a theme color of the target brand, a predefined saturation value, and a predefined brightness value; when the color plate corresponding to the characters is generated, the brightness value, the saturation value and the hue value of the target brand are taken into consideration, so that the contrast of the color on the generated color plate and the set ground color and the purity of the color on the color plate can meet the requirements, the reading requirement of a user can be met, the theme color of the product can be embodied, and the perception of the user on the theme color of the product is improved; in addition, the method provided by the embodiment of the specification realizes automatic generation of the color plate, so that the color plate is more convenient to generate and simple to operate.
In order to solve the above technical problem, the embodiments of the present specification are implemented as follows:
an embodiment of the present specification provides a method for generating a color plate, including:
obtaining a hue value corresponding to a theme color of a target brand;
generating a color plate corresponding to characters on a product interface of the target brand according to the hue value, the predefined saturation value and the predefined brightness value; wherein the predefined brightness value is used for enabling the contrast of the color on the generated color plate and the set background color to reach a first set value; the predefined saturation value is used to bring the purity of the color on the generated color plate to a second set value.
An embodiment of the present specification further provides a method for generating a color plate, including:
receiving a hue value input by a user; the hue value is a hue value corresponding to the theme color of the target brand;
combining the hue value with a predefined saturation value and a predefined brightness value according to a set combination relationship to generate a color plate corresponding to characters on a product interface of the target brand; wherein the predefined brightness value is used for enabling the contrast of the color on the generated color plate and the set background color to reach a first set value; the predefined saturation value is used for enabling the purity of the color on the generated color plate to reach a second set value; the combination relation stores the corresponding relation between the saturation value and the brightness value.
An embodiment of the present specification further provides a device for generating a color plate, including:
the acquisition module is used for acquiring a hue value corresponding to the theme color of the target brand;
the first generation module is used for generating a color plate corresponding to characters on a product interface of the target brand according to the hue value, the predefined saturation value and the predefined brightness value; wherein the predefined brightness value is used for enabling the contrast of the color on the generated color plate and the set background color to reach a first set value; the predefined saturation value is used to bring the purity of the color on the generated color plate to a second set value.
An embodiment of the present specification further provides a device for generating a color plate, including:
the receiving module is used for receiving the hue value input by the user; the hue value is a hue value corresponding to the theme color of the target brand;
the second generation module is used for combining the hue value with a predefined saturation value and a predefined brightness value according to a set combination relationship to generate a color plate corresponding to characters on a product interface of the target brand; wherein the predefined brightness value is used for enabling the contrast of the color on the generated color plate and the set background color to reach a first set value; the predefined saturation value is used for enabling the purity of the color on the generated color plate to reach a second set value; the combination relation stores the corresponding relation between the saturation value and the brightness value.
An embodiment of the present specification further provides a color plate generation apparatus, including:
a processor; and
a memory arranged to store computer executable instructions that, when executed, cause the processor to:
obtaining a hue value corresponding to a theme color of a target brand;
generating a color plate corresponding to characters on a product interface of the target brand according to the hue value, the predefined saturation value and the predefined brightness value; wherein the predefined brightness value is used for enabling the contrast of the color on the generated color plate and the set background color to reach a first set value; the predefined saturation value is used to bring the purity of the color on the generated color plate to a second set value.
An embodiment of the present specification further provides a color plate generation apparatus, including:
a processor; and
a memory arranged to store computer executable instructions that, when executed, cause the processor to:
receiving a hue value input by a user; the hue value is a hue value corresponding to the theme color of the target brand;
combining the hue value with a predefined saturation value and a predefined brightness value according to a set combination relationship to generate a color plate corresponding to characters on a product interface of the target brand; wherein the predefined brightness value is used for enabling the contrast of the color on the generated color plate and the set background color to reach a first set value; the predefined saturation value is used for enabling the purity of the color on the generated color plate to reach a second set value; the combination relation stores the corresponding relation between the saturation value and the brightness value.
Embodiments of the present specification also provide a storage medium for storing computer-executable instructions, which when executed implement the following processes:
obtaining a hue value corresponding to a theme color of a target brand;
generating a color plate corresponding to characters on a product interface of the target brand according to the hue value, the predefined saturation value and the predefined brightness value; wherein the predefined brightness value is used for enabling the contrast of the color on the generated color plate and the set background color to reach a first set value; the predefined saturation value is used to bring the purity of the color on the generated color plate to a second set value.
Embodiments of the present specification also provide a storage medium for storing computer-executable instructions, which when executed implement the following flow:
receiving a hue value input by a user; the hue value is a hue value corresponding to the theme color of the target brand;
combining the hue value with a predefined saturation value and a predefined brightness value according to a set combination relationship to generate a color plate corresponding to characters on a product interface of the target brand; wherein the predefined brightness value is used for enabling the contrast of the color on the generated color plate and the set background color to reach a first set value; the predefined saturation value is used for enabling the purity of the color on the generated color plate to reach a second set value; the combination relation stores the corresponding relation between the saturation value and the brightness value.
According to the technical scheme in the embodiment, a color palette corresponding to characters on a product interface of the target brand is generated according to the hue value corresponding to the theme color of the target brand, the predefined saturation value and the predefined brightness value; when the color plate corresponding to the characters is generated, the brightness value, the saturation value and the hue value of the target brand are all taken into consideration, so that the contrast between the color on the generated color plate and the set ground color and the purity of the color on the color plate can meet the requirements, the reading requirement of a user can be met, the theme color of the brand can be embodied, and the perception of the user on the theme color of the brand is improved; in addition, the method provided by the embodiment of the specification realizes automatic generation of the color plate, so that the generation of the color plate is more convenient, and the operation is simple.
Drawings
In order to more clearly illustrate the embodiments of the present disclosure or the technical solutions in the prior art, the drawings used in the description of the embodiments or the prior art will be briefly described below, it is obvious that the drawings in the following description are only some embodiments described in the present application, and for those skilled in the art, other drawings can be obtained according to the drawings without any creative effort.
Fig. 1 is a flowchart of a first method of a method for generating a color palette according to an embodiment of the present disclosure;
fig. 2(a) is a schematic diagram of a first interface of a hue value input interface in a color palette generating method provided in an embodiment of the present specification;
fig. 2(b) is a schematic diagram of a second interface of a hue value input interface in the method for generating a color palette provided in the embodiment of the present specification;
fig. 3 is a first schematic view of a color plate generated in the color plate generation method provided in the embodiment of the present specification;
fig. 4 is a flowchart of a second method of a method for generating a color palette according to an embodiment of the present disclosure;
fig. 5 is a flowchart of a third method of a method for generating a color plate according to an embodiment of the present disclosure;
fig. 6 is a flowchart of a fourth method of a method for generating a color palette according to an embodiment of the present disclosure;
fig. 7 is a third schematic diagram of a color plate generated in a color plate generation method provided in an embodiment of the present specification;
fig. 8 is a schematic diagram illustrating a first module composition of an apparatus for generating a color plate according to an embodiment of the present disclosure;
fig. 9 is a schematic diagram illustrating a second module composition of an apparatus for generating a color plate according to an embodiment of the present disclosure;
fig. 10 is a schematic structural diagram of a color plate generation apparatus provided in an embodiment of this specification.
Detailed Description
In order to make those skilled in the art better understand the technical solutions in the present specification, the technical solutions in the embodiments of the present specification will be clearly and completely described below with reference to the drawings in the embodiments of the present specification, and it is obvious that the described embodiments are only a part of the embodiments of the present specification, and not all of the embodiments. All other embodiments obtained by a person skilled in the art based on the embodiments in the present specification without any inventive step should fall within the scope of protection of the present specification.
The embodiment of the specification provides a color palette generation method, which can be applied to terminal equipment and also can be applied to a server. Before or when the product interface is designed, the color palette corresponding to the text on the product interface may be generated by using the method for generating a color palette provided in the embodiment of the present specification, and then the color of the text on the product interface is selected from the generated color palette.
When a color panel is generated by using the color panel generation method provided in the embodiments of the present specification, each color on the color panel is determined using a hue value corresponding to a theme color of a target brand, a predefined saturation value, and a predefined brightness value. The contrast of the color on the color plate generated in the way and the set ground color and the purity of the color on the color plate can meet the requirements, so that the reading requirement of a user can be met, the theme color of a brand can be embodied, and the perception of the user on the theme color of the brand is improved; in addition, the method provided by the embodiment of the specification realizes automatic generation of the color plate, so that the generation of the color plate is more convenient, and the operation is simple.
Fig. 1 is a flowchart of a first method of a method for generating a color palette according to an embodiment of the present disclosure, where the method shown in fig. 1 at least includes the following steps:
and 102, acquiring a hue value corresponding to the theme color of the target brand.
The execution main body of the color palette generation method provided by the embodiment of the specification is a color palette generation device, and the device can be applied to a mobile phone, a tablet computer, a computer and other terminal equipment, and can also be applied to a server.
The target brand refers to a brand corresponding to any product needing to generate the color palette at present, and the product can be a physical product, a network product stand, an application program and the like. The theme color of the target brand refers to the theme color of the target brand, and refers to a color which can reflect the brand identity most. If so, a plurality of colors exist on the target brand, and the color with the largest area ratio can be determined as the theme color of the target brand. For example, for coca cola, there are two colors, red and white, on the package of coca cola, however, the proportion of red is large, and thus, the color of the corresponding theme of coca cola is red; for the product of Pepsi Cola, there are three colors, blue, white and red, on its package, however, the percentage of blue is the greatest, and thus its corresponding theme color is blue.
It should be noted that, the color can be described by using hue, saturation, and brightness (HSB) modes, where H denotes hue, S denotes saturation, and B denotes brightness. That is, when the H value, B value, and S value of a color are determined, the color can be synthesized.
In one or more embodiments of the present specification, the obtaining of the hue value corresponding to the theme color of the target brand in step 102 may be implemented by the following processes:
receiving a hue value input by a user; or extracting a hue value according to a picture of a target brand input by a user.
In a specific implementation manner, when the user generates the color palette by using the method provided by the embodiment of the present specification, the hue value corresponding to the theme color of the target brand may be input on the hue value input interface. In an interface for inputting hue values, as shown in fig. 2(a), a user may input hue values of theme colors of target brands at corresponding positions on the interface shown in fig. 2(a), and the color palette generating device receives hue values input by the user through the interface.
Of course, in the embodiment of the present specification, in addition to receiving the hue value input by the user, the hue value may also be extracted according to the picture of the target brand input by the user.
In a specific implementation manner, when the user generates the color palette by using the method provided by the embodiment of the present specification, a picture of the target brand may be further input on the picture input interface, so that the picture of the target brand is sent to the color palette generation apparatus, so that the color palette generation apparatus extracts the color phase value according to the picture of the target brand.
Specifically, in this embodiment of the present specification, when the picture of the target brand is input in the picture input interface, the picture of the target brand may be obtained locally, or the picture of the target brand may be obtained from a third-party server. The embodiment of the present specification does not limit the specific source of the inputted picture of the target brand.
In this embodiment of the present specification, there may be one color or multiple colors on the picture of the target brand, and how to extract the hue value corresponding to the theme color of the target brand when there is one color and multiple colors on the picture of the target brand will be described below.
In specific implementation, if only one color exists on the picture of the target brand, the hue value extracted from the picture is directly determined as the hue value corresponding to the theme color of the target brand.
In specific implementation, if the picture of the target brand includes multiple colors, the hue value corresponding to the theme color of the target brand may be determined through the following process:
extracting hue values corresponding to a plurality of colors on the picture of the target brand; and determining a hue value corresponding to the theme color of the target brand from a plurality of hue values according to the area ratio of each color on the picture of the target brand.
In a specific embodiment, after the color palette generation device receives the picture of the target brand, the hue values of the colors in the target brand are proposed first, if a plurality of hue values are extracted, the number of pixel points corresponding to each hue value is grouped, the area ratio corresponding to each hue value is determined according to the number of pixel points corresponding to each hue value and the total number of pixel points on the picture of the target brand, and the hue value corresponding to the color with the largest area ratio is determined as the hue value corresponding to the theme color of the target brand. Of course, in the embodiments of the present specification, only two methods for obtaining hue values corresponding to the theme colors of the target brand are described above, and besides, hue values corresponding to the theme colors of the target brand may be obtained through other methods. For example, before the color palette is generated by the method provided in the embodiments of the present specification, mapping relationships between a plurality of brands and hue values may be established in advance, and when the color palette is generated by the method provided in the embodiments of the present specification, a user may directly input a name of a target brand.
Or, in some specific embodiments, a name input box and a hue value input box of the target brand may be simultaneously set on the corresponding interface, and the user may select to input the name or the hue value of the target brand according to the actual situation; alternatively, when the target brand name is input and the color palette cannot be generated, the hue value corresponding to the theme color of the target brand may be input through the hue value input box.
104, generating a color plate corresponding to characters on a product interface of the target brand according to the hue value, the predefined saturation value and the predefined brightness value; wherein the predefined brightness value is used for enabling the contrast of the color on the generated color plate and the set background color to reach a first set value; the predefined brightness value is used to bring the purity of the color on the generated color plate to a second set value.
In the present illustrative embodiment, the set ground color may be white.
In the embodiment of the present specification, the saturation value and the brightness value in step 104 are determined before the method provided by the embodiment of the present specification is executed. Before the color plate is generated by using the method provided in the embodiments of the present specification, a saturation value and a brightness value meeting requirements can be determined through a large number of experiments.
The first setting value and the second setting value may be set according to an actual application scenario, and the specific values of the first setting value and the second setting value are not limited in the embodiments of this specification.
In the embodiment of the present specification, the predefined saturation value may satisfy that the contrast between the color on the generated palette and the set ground color reaches a set value, so that the user can clearly see the text on the product interface when reading, that is, the reading requirement of the user can be satisfied; in addition, the predefined brightness value can meet the requirement that the purity on the generated color plate reaches a second set value, so that the generated color can embody the theme color of the brand by combining the predefined brightness value with the hue value, and the brand identity of the brand is highlighted.
In a specific embodiment, the saturation value may include at least one of the following: 100. 99, 96, 94, 85, 75, 55, 35, 15 and 0;
the luminance value may include at least one of: 0. 1, 2, 5, 15, 25, 45, 65 and 0;
the saturation values and the luminance values are combined in a one-to-one correspondence in the listed order.
That is, in the embodiment of the present specification, if the saturation value is 100, the corresponding brightness value is 0; if the saturation value is 99, the corresponding brightness value is 1; if the saturation value is 96, the corresponding brightness value is 1; if the saturation value is 94, the corresponding saturation value is 2; the saturation values and the brightness values are combined one by one in this order, which is not further listed here.
Of course, the above lists only some possible values of the saturation value and the brightness value, and the values of the saturation value and the brightness value are not limited to these values.
In this embodiment of the present specification, the value of the predefined saturation value may be one or more, and the value of the predefined brightness value may be one or more;
correspondingly, in the step 104, a color palette corresponding to the characters on the product interface of the target brand is generated according to the hue value, the predefined saturation value and the predefined brightness value, and the method specifically includes the following steps (1) and (2);
combining the hue value, the saturation value and the brightness value according to a set combination relation to obtain at least one color; wherein, the corresponding relation between the saturation value and the brightness value is stored in the combination relation;
and (2) generating the color plate according to the obtained at least one color.
In a specific embodiment, the number of specific values of the predefined saturation value is equal to the number of specific values of the predefined brightness value. For example, if there are three predefined saturation values, then correspondingly, there need to be three predefined brightness values; if there are ten predefined saturation values, the corresponding number of predefined luminance values is also ten.
It should be noted that the hue value corresponding to the acquired theme color of the target brand has only one numerical value, and therefore, when the hue value, the predefined saturation value and the predefined brightness value are combined, only the predefined saturation value and the predefined brightness value need to be considered to be combined according to a set combination relationship. For example, in one embodiment, if the preset combination relationship stores the correspondence between the saturation value and the brightness value, the predefined saturation value and the predefined brightness value are combined according to the correspondence to obtain a plurality of combinations of the saturation value and the brightness value, and then the brightness value and the combinations of each of the saturation value and the brightness value are combined to obtain a plurality of colors.
Specifically, in one embodiment, the above combination relationship may be characterized in a table form, and one possible combination relationship is shown in table 1.
Of course, in table 1, only a few possible values of the saturation value and the brightness value are listed, in the corresponding relationship shown in table 1, if the saturation value is 100, the corresponding brightness value is 0, if the saturation value is 99, the corresponding brightness value is 1, and so on.
In this way, in the step (1), when each color is obtained, the saturation value and the luminance value may be combined according to the correspondence relationship shown in table 1.
TABLE 1
Value of saturation Brightness value
100 0
99 1
96 1
94 2
85 5
Of course, in the step (1), when combining the hue value, the saturation value and the brightness value, any two of the three may be combined first, and then combined with another one, and all possible situations of the above combination are not listed.
After each color is obtained in the step (1), the color plate can be obtained by determining each color as the color on the color plate, that is, according to each color obtained in the step (1).
Of course, in this embodiment of the present disclosure, a predefined saturation value and a predefined brightness value may also be stored according to a set corresponding relationship, so that after a hue value of a theme color of a target brand is obtained, the obtained hue value and the corresponding relationship between the saturation value and the brightness value are directly combined to obtain each color.
In the embodiment of the present specification, the number of obtained colors, the number of values of saturation values, and the number of values of brightness values are equal to each other. For example, if the saturation values are 3, and correspondingly, the brightness values are also three, the number of generated colors is also three.
In the step (2), if there are a plurality of obtained colors, the obtained colors may be sorted according to the shades of the colors, and the color palette may be generated in the order of the sorted colors. If the number of the obtained colors is one, the color can be directly determined as the color of the color plate.
In order to facilitate understanding of the color plate generation method provided in the embodiments of the present specification, the generated color plate will be described below by way of example. For example, if the target brand is coca-cola, the schematic diagram of the color plate generated by the method provided in the embodiment of the present specification is shown in fig. 3. In the case shown in fig. 3, the generated color palette comprises ten colors, and in the case shown in fig. 3, the hexadecimal color code corresponding to each color is marked accordingly.
Specifically, in fig. 3, the hexadecimal code corresponding to each color on the color palette represents the color at the corresponding position, specifically, the color represented by the hexadecimal code may be queried by using an existing tool, and the description of the color represented by each hexadecimal code is omitted here.
According to the method for generating the color palette provided by the embodiment of the specification, the color palette corresponding to the characters on the product interface of the target brand is generated according to the hue value corresponding to the theme color of the target brand, the predefined saturation value and the predefined brightness value; when the color plate corresponding to the characters is generated, the brightness value, the saturation value and the hue value of the target brand are all taken into consideration, so that the contrast of the color on the generated color plate and the set ground color and the purity of the color on the color plate can meet the requirements, the reading requirement of a user can be met, the theme color of the brand can be embodied, and the perception of the user on the theme color of the brand is improved; in addition, the method provided by the embodiment of the specification realizes automatic generation of the color plate, so that the generation of the color plate is more convenient, and the operation is simple.
Based on the color palette generation method shown in fig. 1 to fig. 3, an embodiment of the present specification further provides a color palette generation method, fig. 4 shows a second method flowchart of the color palette generation method provided in the embodiment of the present specification, and for the method shown in fig. 4, a difference from the method shown in fig. 1 to fig. 3 is mainly introduced, and the same points may refer to the description of fig. 1 to fig. 3, and are not repeated here. The method as shown in fig. 4, at least comprises the following steps:
step 402, receiving a hue value input by a user; and the hue value is the hue value corresponding to the theme color of the target brand.
The execution main body of the color palette generation method provided by the embodiment of the specification is a color palette generation device, and the device can be applied to a mobile phone, a tablet computer, a computer and other terminal equipment, and can also be applied to a server.
Step 404, combining the hue value with a predefined saturation value and a predefined brightness value according to a set combination relationship to generate a color plate corresponding to characters on a product interface of the target brand; wherein the predefined brightness value is used for enabling the contrast of the color on the generated color plate and the set background color to reach a first set value; the predefined saturation value is used for enabling the purity of the color on the generated color plate to reach a second set value; the combination relationship stores a corresponding relationship between the saturation value and the brightness value.
It should be noted that the specific implementation process of the above step 402 and step 404 is the same as the specific implementation process of the embodiment shown in fig. 1 to fig. 3, and the specific implementation steps may refer to the description of the embodiment shown in fig. 1 to fig. 3, and are not described again here.
In a specific embodiment, the saturation value may include at least one of the following: 100. 99, 96, 94, 85, 75, 55, 35, 15 and 0;
the luminance value may include at least one of: 0. 1, 2, 5, 15, 25, 45, 65 and 0;
the saturation values and the luminance values are combined in a one-to-one correspondence in the listed order.
That is, in the embodiment of the present specification, if the saturation value is 100, the corresponding brightness value is 0; if the saturation value is 99, the corresponding brightness value is 1; if the saturation value is 96, the corresponding brightness value is 1; if the saturation value is 94, the corresponding saturation value is 2; the saturation values and the brightness values are combined one by one in this order, which is not further listed here.
Of course, the above lists only some possible values of the saturation value and the brightness value, and the values of the saturation value and the brightness value are not limited to these values.
In order to facilitate understanding of the method for generating a color plate provided in the embodiments of the present disclosure, the following description will be given by way of example.
For example, the target brand may be coca-cola, with the color of the subject of the coca-cola brand being red. Fig. 5 is a flowchart illustrating a third method of a method for generating a color palette according to an embodiment of the present disclosure, where the method illustrated in fig. 5 at least includes the following steps:
step 502, receiving a hue value input by a user.
The user may input a hue value corresponding to the theme color of the coca-cola brand on the hue value input interface, and the hue value input by the user may be # ED1C16 because the theme color of the coca-cola brand is red.
And step 504, combining the predefined saturation value and the brightness value according to the set combination relation.
Wherein, the set combination relation stores the corresponding relation between the saturation value and the brightness value.
Step 506, combining the received hue value with the combination relationship between each saturation value and the brightness value to obtain each color.
The number of values of the predefined saturation value is equal to the number of values of the predefined brightness value, and the number of colors obtained in step 506 is equal to the number of saturation values or the number of brightness values.
That is, in the embodiments of the present specification, the number of predefined saturation values, the number of predefined luminance values, and the number of resulting colors are equal.
And step 508, arranging the obtained colors according to a set rule to generate a color palette.
In the embodiments of the present specification, the color plates may be obtained by sorting the colors in order of color shades.
Also for example, the target brand is ant blouse, and the theme color corresponding to the ant blouse brand is blue. Fig. 6 shows a fourth method flowchart of a method for generating a color palette provided in an embodiment of the present specification. The method shown in fig. 6, at least comprises the following steps:
step 602, receiving an ant golden suit brand picture input by a user.
And step 604, extracting the hue value corresponding to the theme color of the ant golden suit brand from the ant golden suit brand picture.
And 606, combining the extracted hue value with a predefined saturation value and a predefined brightness value according to a set combination relation to obtain each color.
In step 606, the number of the obtained colors is equal to the number of the predefined saturation values and the number of the predefined brightness values.
And 608, arranging the obtained colors according to a set rule to generate a color plate.
In the embodiments of the present specification, the colors may be sorted in order of color depth to obtain a color palette.
Specifically, in the embodiment shown in fig. 6, a specific schematic diagram of the resulting color plate is shown in fig. 7. In the case shown in fig. 7, the generated color palette includes ten colors, and in the case shown in fig. 7, the hexadecimal color code corresponding to each color is correspondingly marked.
Specifically, in fig. 7, the hexadecimal code corresponding to each color on the color palette represents the color at the corresponding position, specifically, the color represented by the hexadecimal code may be queried by using an existing tool, and the description of the color represented by each hexadecimal code is omitted here.
According to the method for generating the color palette provided by the embodiment of the specification, the color palette corresponding to the characters on the product interface of the target brand is generated according to the hue value corresponding to the theme color of the target brand, the predefined saturation value and the predefined brightness value; when the color plate corresponding to the characters is generated, the brightness value, the saturation value and the hue value of the target brand are all taken into consideration, so that the contrast of the color on the generated color plate and the set ground color and the purity of the color on the color plate can meet the requirements, the reading requirement of a user can be met, the theme color of the brand can be embodied, and the perception of the user on the theme color of the brand is improved; in addition, the method provided by the embodiment of the specification realizes automatic generation of the color plate, so that the generation of the color plate is more convenient, and the operation is simple.
Based on the method for generating a color palette provided in the embodiment of the present specification, an embodiment of the present specification further provides a device for generating a color palette, which is used to execute the method for generating a color palette provided in the embodiment of the present specification, where the device may be applied to a server or may be applied to a terminal device, fig. 8 is a schematic diagram of a first module composition of the device for generating a color palette provided in the embodiment of the present specification, and the device shown in fig. 8 includes:
an obtaining module 801, configured to obtain a hue value corresponding to a theme color of a target brand;
a first generating module 802, configured to generate a color palette corresponding to characters on a product interface of the target brand according to the hue value, the predefined saturation value, and the predefined brightness value; wherein the predefined brightness value is used for enabling the contrast of the color on the generated color plate and the set background color to reach a first set value; the predefined saturation value is used to bring the purity of the color on the generated color plate to a second set value.
Optionally, the predefined saturation values take one or more values, and the predefined brightness values take one or more values;
accordingly, the first generating module 802 includes:
a combination unit for combining the hue value, the saturation value and the brightness value according to a set combination relationship to obtain at least one color; wherein, the corresponding relation between the saturation value and the brightness value is stored in the combination relation;
and a generating unit configured to generate the color palette based on the obtained at least one color.
Optionally, the saturation value includes at least one of: 100. 99, 96, 94, 85, 75, 55, 35, 15 and 0;
the luminance value includes at least one of: 0. 1, 2, 5, 15, 25, 45, 65 and 0;
wherein the saturation values and the luminance values are combined in a one-to-one correspondence in the listed order.
Optionally, the obtaining module 801 includes:
a receiving unit which receives a hue value input by a user;
or,
and the extraction unit is used for extracting the hue value according to the picture of the target brand input by the user.
Optionally, the extracting unit is specifically configured to:
extracting hue values corresponding to the multiple colors on the picture of the target brand respectively; and determining a hue value corresponding to the theme color of the target brand from a plurality of hue values according to the area ratio of each color on the picture of the target brand.
The color palette generating device provided in the embodiment of the present specification generates a color palette corresponding to characters on a product interface of a target brand according to a hue value corresponding to a theme color of the target brand, a predefined saturation value, and a predefined brightness value; when the color plate corresponding to the characters is generated, the brightness value, the saturation value and the hue value of the target brand are all taken into consideration, so that the contrast of the color on the generated color plate and the set ground color and the purity of the color on the color plate can meet the requirements, the reading requirement of a user can be met, the theme color of the brand can be embodied, and the perception of the user on the theme color of the brand is improved; in addition, the method provided by the embodiment of the specification realizes automatic generation of the color plate, so that the generation of the color plate is more convenient, and the operation is simple.
Based on the method for generating a color palette provided in the embodiment of the present specification, an embodiment of the present specification further provides a device for generating a color palette, which is used to execute the method for generating a color palette provided in the embodiment of the present invention, where the device may be applied to a terminal device or may be applied to a server, fig. 9 is a schematic diagram of a second module composition of the device for generating a color palette provided in the embodiment of the present specification, and the device shown in fig. 9 includes:
a receiving module 901, configured to receive a hue value input by a user; wherein, the hue value is the hue value corresponding to the theme color of the target brand;
a second generating module 902, configured to combine the hue value with a predefined saturation value and a predefined brightness value according to a set combination relationship, and generate a color palette corresponding to a character on a product interface of the target brand; wherein the predefined brightness value is used for enabling the contrast of the color on the generated color plate and the set background color to reach a first set value; the predefined saturation value is used for enabling the purity of the color on the generated color plate to reach a second set value; the combination relationship stores a corresponding relationship between the saturation value and the brightness value.
Optionally, the saturation value includes at least one of: 100. 99, 96, 94, 85, 75, 55, 35, 15 and 0;
the luminance value includes at least one of: 0. 1, 2, 5, 15, 25, 45, 65 and 0;
wherein the saturation values and the luminance values are combined in a one-to-one correspondence in the listed order.
The color palette generating device provided in the embodiment of the present specification generates a color palette corresponding to characters on a product interface of a target brand according to a hue value corresponding to a theme color of the target brand, a predefined saturation value, and a predefined brightness value; when the color plate corresponding to the characters is generated, the brightness value, the saturation value and the hue value of the target brand are all taken into consideration, so that the contrast of the color on the generated color plate and the set ground color and the purity of the color on the color plate can meet the requirements, the reading requirement of a user can be met, the theme color of the brand can be embodied, and the perception of the user on the theme color of the brand is improved; in addition, the method provided by the embodiment of the specification realizes automatic generation of the color plate, so that the generation of the color plate is more convenient, and the operation is simple.
Further, based on the methods shown in fig. 1 to fig. 7, an embodiment of the present specification further provides a color plate generation apparatus, as shown in fig. 10.
The apparatus for generating the color palette may have a large difference due to different configurations or performances, and may include one or more processors 1001 and a memory 1002, and the memory 1002 may store one or more stored applications or data. Memory 1002 may be, among other things, transient storage or persistent storage. The application program stored in memory 1002 may include one or more modules (not shown), each of which may include a series of computer-executable instructions in the device for generating the color palette. Still further, the processor 1001 may be configured to communicate with the memory 1002 to execute a series of computer-executable instructions in the memory 1002 on a color panel generation device. The apparatus for generating the palette can also include one or more power supplies 1003, one or more wired or wireless network interfaces 1004, one or more input-output interfaces 1005, one or more keyboards 1006, and the like.
In a particular embodiment, the apparatus for generating a color palette comprises a memory, and one or more programs, wherein the one or more programs are stored in the memory, and the one or more programs may comprise one or more modules, and each module may comprise a series of computer-executable instructions for the apparatus for generating a color palette, and the one or more programs configured to be executed by one or more processors comprise computer-executable instructions for:
obtaining a hue value corresponding to a theme color of a target brand;
generating a color plate corresponding to characters on a product interface of the target brand according to the hue value, the predefined saturation value and the predefined brightness value; wherein the predefined brightness value is used for enabling the contrast of the color on the generated color plate and the set background color to reach a first set value; the predefined saturation value is used to bring the purity of the color on the generated color plate to a second set value.
Optionally, when executed, the computer-executable instructions may cause the predefined saturation value to take one or more values, and the predefined brightness value to take one or more values;
generating a color palette corresponding to the characters on the product interface of the target brand according to the hue value, the predefined saturation value and the predefined brightness value, including:
combining the hue value, the saturation value and the brightness value according to a set combination relationship to obtain at least one color; wherein, the combination relation stores the corresponding relation between the saturation value and the brightness value;
and generating the color plate according to the obtained at least one color.
Optionally, the computer executable instructions, when executed, comprise at least one of: 100. 99, 96, 94, 85, 75, 55, 35, 15 and 0;
the luminance value includes at least one of: 0. 1, 2, 5, 15, 25, 45, 65 and 0;
wherein the saturation values and the luminance values are combined in a one-to-one correspondence in the listed order.
Optionally, when executed, the obtaining a hue value corresponding to a theme color of the target brand includes:
receiving a hue value input by a user;
or,
and extracting the hue value according to the picture of the target brand input by the user.
Optionally, when executed, the computer executable instructions may cause the apparatus to perform the steps of, if the picture of the target brand includes a plurality of colors;
the extracting the hue value according to the picture of the target brand input by the user includes:
extracting hue values corresponding to the multiple colors on the picture of the target brand respectively;
and determining a hue value corresponding to the theme color of the target brand from a plurality of hue values according to the area ratio of each color on the picture of the target brand.
The color palette generating device provided in the embodiment of the present specification generates a color palette corresponding to characters on a product interface of a target brand according to a hue value corresponding to a theme color of the target brand, a predefined saturation value, and a predefined brightness value; when the color plate corresponding to the characters is generated, the brightness value, the saturation value and the hue value of the target brand are all taken into consideration, so that the contrast of the color on the generated color plate and the set ground color and the purity of the color on the color plate can meet the requirements, the reading requirement of a user can be met, the theme color of the brand can be embodied, and the perception of the user on the theme color of the brand is improved; in addition, the method provided by the embodiment of the specification realizes automatic generation of the color plate, so that the generation of the color plate is more convenient, and the operation is simple.
In a particular embodiment, the apparatus for generating a color palette comprises a memory, and one or more programs, wherein the one or more programs are stored in the memory, and the one or more programs may comprise one or more modules, and each module may comprise a series of computer-executable instructions for the apparatus for generating a color palette, and the one or more programs configured to be executed by one or more processors comprise computer-executable instructions for:
receiving a hue value input by a user; wherein, the hue value is the hue value corresponding to the theme color of the target brand;
combining the hue value with a predefined saturation value and a predefined brightness value according to a set combination relationship to generate a color plate corresponding to characters on a product interface of the target brand; the predefined brightness value is used for enabling the contrast of the color on the generated color plate and the set background color to reach a first set value; the predefined saturation value is used for enabling the purity of the color on the generated color plate to reach a second set value; the combination relationship stores a corresponding relationship between the saturation value and the brightness value.
Optionally, the computer executable instructions, when executed, comprise at least one of: 100. 99, 96, 94, 85, 75, 55, 35, 15 and 0;
the luminance value includes at least one of: 0. 1, 2, 5, 15, 25, 45, 65 and 0;
wherein the saturation values and the luminance values are combined in a one-to-one correspondence in the listed order.
The color palette generating device provided in the embodiment of the present specification generates a color palette corresponding to characters on a product interface of a target brand according to a hue value corresponding to a theme color of the target brand, a predefined saturation value, and a predefined brightness value; when the color plate corresponding to the characters is generated, the brightness value, the saturation value and the hue value of the target brand are all taken into consideration, so that the contrast of the color on the generated color plate and the set ground color and the purity of the color on the color plate can meet the requirements, the reading requirement of a user can be met, the theme color of the brand can be embodied, and the perception of the user on the theme color of the brand is improved; in addition, the method provided by the embodiment of the specification realizes automatic generation of the color plate, so that the generation of the color plate is more convenient, and the operation is simple.
Further, based on the methods shown in fig. 1 to fig. 7, in a specific embodiment, the storage medium is a usb disk, an optical disk, a hard disk, or the like, and the storage medium stores computer-executable instructions that, when executed by the processor, implement the following processes:
obtaining a hue value corresponding to a theme color of a target brand;
generating a color plate corresponding to characters on a product interface of the target brand according to the hue value, the predefined saturation value and the predefined brightness value; wherein the predefined brightness value is used for enabling the contrast of the color on the generated color plate and the set background color to reach a first set value; the predefined saturation value is used to bring the purity of the color on the generated color plate to a second set value.
Optionally, the storage medium stores computer-executable instructions that, when executed by the processor, cause the predefined saturation values to take on one or more values and the predefined brightness values to take on one or more values;
generating a color palette corresponding to the characters on the product interface of the target brand according to the hue value, the predefined saturation value and the predefined brightness value, including:
combining the hue value, the saturation value and the brightness value according to a set combination relationship to obtain at least one color; wherein, the combination relation stores the corresponding relation between the saturation value and the brightness value;
and generating the color plate according to the obtained at least one color.
Optionally, the storage medium stores computer-executable instructions that, when executed by the processor, cause the saturation value to include at least one of: 100. 99, 96, 94, 85, 75, 55, 35, 15 and 0;
the luminance value includes at least one of: 0. 1, 2, 5, 15, 25, 45, 65 and 0;
wherein the saturation values and the luminance values are combined in a one-to-one correspondence in the listed order.
Optionally, when executed by a processor, the obtaining a hue value corresponding to a theme color of the target brand includes:
receiving a hue value input by a user;
or,
and extracting the hue value according to the picture of the target brand input by the user.
Optionally, when executed by a processor, the storage medium stores computer-executable instructions for, if the picture of the target brand includes a plurality of colors;
the extracting the hue value according to the picture of the target brand input by the user includes:
extracting hue values corresponding to various colors on the picture of the target brand respectively;
and determining a hue value corresponding to the theme color of the target brand from a plurality of hue values according to the area ratio of each color on the picture of the target brand.
When executed by a processor, the computer-executable instructions stored in the storage medium provided in the embodiments of the present specification generate a palette corresponding to a text on a product interface of a target brand according to a hue value corresponding to a theme color of the target brand, a predefined saturation value, and a predefined brightness value; when the color plate corresponding to the characters is generated, the brightness value, the saturation value and the hue value of the target brand are all taken into consideration, so that the contrast between the color on the generated color plate and the set ground color and the purity of the color on the color plate can meet the requirements, the reading requirement of a user can be met, the theme color of the brand can be embodied, and the perception of the user on the theme color of the brand is improved; in addition, the method provided by the embodiment of the specification realizes automatic generation of the color plate, so that the color plate is more convenient to generate and simple to operate.
Further, the embodiments of the present specification also provide a storage medium for storing computer-executable instructions, and in a specific embodiment, the storage medium may be a usb disk, an optical disk, a hard disk, or the like, and the storage medium stores computer-executable instructions that, when executed by a processor, implement the following processes:
receiving a hue value input by a user; wherein, the hue value is the hue value corresponding to the theme color of the target brand;
combining the hue value with a predefined saturation value and a predefined brightness value according to a set combination relationship to generate a color plate corresponding to characters on a product interface of the target brand; wherein the predefined brightness value is used for enabling the contrast of the color on the generated color plate and the set background color to reach a first set value; the predefined saturation value is used for enabling the purity of the color on the generated color plate to reach a second set value; the combination relationship stores a corresponding relationship between the saturation value and the brightness value.
Optionally, the storage medium stores computer-executable instructions that, when executed by the processor, cause the saturation value to include at least one of: 100. 99, 96, 94, 85, 75, 55, 35, 15 and 0;
the luminance value includes at least one of: 0. 1, 2, 5, 15, 25, 45, 65 and 0;
wherein the saturation values and the luminance values are combined in a one-to-one correspondence in the listed order.
When executed by a processor, the computer-executable instructions stored in the storage medium provided in the embodiments of the present specification generate a palette corresponding to a text on a product interface of a target brand according to a hue value corresponding to a theme color of the target brand, a predefined saturation value, and a predefined brightness value; when the color plate corresponding to the characters is generated, the brightness value, the saturation value and the hue value of the target brand are all taken into consideration, so that the contrast of the color on the generated color plate and the set ground color and the purity of the color on the color plate can meet the requirements, the reading requirement of a user can be met, the theme color of the brand can be embodied, and the perception of the user on the theme color of the brand is improved; in addition, the method provided by the embodiment of the specification realizes automatic generation of the color plate, so that the generation of the color plate is more convenient, and the operation is simple.
In the 90 s of the 20 th century, improvements in a technology could clearly distinguish between improvements in hardware (e.g., improvements in circuit structures such as diodes, transistors, switches, etc.) and improvements in software (improvements in process flow). However, as technology advances, many of today's process flow improvements have been seen as direct improvements in hardware circuit architecture. Designers almost always obtain the corresponding hardware circuit structure by programming an improved method flow into the hardware circuit. Thus, it cannot be said that an improvement in the process flow cannot be realized by hardware physical modules. For example, a Programmable Logic Device (PLD), such as a Field Programmable Gate Array (FPGA), is an integrated circuit whose Logic functions are determined by programming the Device by a user. A digital system is "integrated" on a PLD by the designer's own programming without requiring the chip manufacturer to design and fabricate application-specific integrated circuit chips. Furthermore, nowadays, instead of manually making an Integrated Circuit chip, such Programming is often implemented by "logic compiler" software, which is similar to a software compiler used in program development and writing, but the original code before compiling is also written by a specific Programming Language, which is called Hardware Description Language (HDL), and HDL is not only one but many, such as abel (advanced Boolean Expression Language), ahdl (alternate Hardware Description Language), traffic, pl (core universal Programming Language), HDCal (jhdware Description Language), lang, Lola, HDL, laspam, hardward Description Language (vhr Description Language), vhal (Hardware Description Language), and vhigh-Language, which are currently used in most common. It will also be apparent to those skilled in the art that hardware circuitry that implements the logical method flows can be readily obtained by merely slightly programming the method flows into an integrated circuit using the hardware description languages described above.
The controller may be implemented in any suitable manner, for example, the controller may take the form of, for example, a microprocessor or processor and a computer-readable medium storing computer-readable program code (e.g., software or firmware) executable by the (micro) processor, logic gates, switches, an Application Specific Integrated Circuit (ASIC), a programmable logic controller, and an embedded microcontroller, examples of which include, but are not limited to, the following microcontrollers: ARC 625D, Atmel AT91SAM, Microchip PIC18F26K20, and Silicone Labs C8051F320, the memory controller may also be implemented as part of the control logic for the memory. Those skilled in the art will also appreciate that, in addition to implementing the controller as pure computer readable program code, the same functionality can be implemented by logically programming method steps such that the controller is in the form of logic gates, switches, application specific integrated circuits, programmable logic controllers, embedded microcontrollers and the like. Such a controller may thus be considered a hardware component, and the means included therein for performing the various functions may also be considered as a structure within the hardware component. Or even means for performing the functions may be regarded as being both a software module for performing the method and a structure within a hardware component.
The systems, devices, modules or units illustrated in the above embodiments may be implemented by a computer chip or an entity, or by a product with certain functions. One typical implementation device is a computer. In particular, the computer may be, for example, a personal computer, a laptop computer, a cellular telephone, a camera phone, a smartphone, a personal digital assistant, a media player, a navigation device, an email device, a game console, a tablet computer, a wearable device, or a combination of any of these devices.
For convenience of description, the above devices are described as being divided into various units by function, and are described separately. Of course, the functions of the various elements may be implemented in the same one or more software and/or hardware implementations of the present description.
As will be appreciated by one skilled in the art, embodiments of the present description may be provided as a method, system, or computer program product. Accordingly, the description may take the form of an entirely hardware embodiment, an entirely software embodiment or an embodiment combining software and hardware aspects. Furthermore, the description may take the form of a computer program product embodied on one or more computer-usable storage media (including, but not limited to, disk storage, CD-ROM, optical storage, and the like) having computer-usable program code embodied therein.
The description has been presented with reference to flowchart illustrations and/or block diagrams of methods, apparatus (systems), and computer program products according to embodiments of the description. It will be understood that each flow and/or block of the flow diagrams and/or block diagrams, and combinations of flows and/or blocks in the flow diagrams and/or block diagrams, can be implemented by computer program instructions. These computer program instructions may be provided to a processor of a general purpose computer, special purpose computer, embedded processor, or other programmable data processing apparatus to produce a machine, such that the instructions, which execute via the processor of the computer or other programmable data processing apparatus, create means for implementing the functions specified in the flowchart flow or flows and/or block diagram block or blocks.
These computer program instructions may also be stored in a computer-readable memory that can direct a computer or other programmable data processing apparatus to function in a particular manner, such that the instructions stored in the computer-readable memory produce an article of manufacture including instruction means which implement the function specified in the flowchart flow or flows and/or block diagram block or blocks.
These computer program instructions may also be loaded onto a computer or other programmable data processing apparatus to cause a series of operational steps to be performed on the computer or other programmable apparatus to produce a computer implemented process such that the instructions which execute on the computer or other programmable apparatus provide steps for implementing the functions specified in the flowchart flow or flows and/or block diagram block or blocks.
In a typical configuration, a computing device includes one or more processors (CPUs), input/output interfaces, network interfaces, and memory.
The memory may include forms of volatile memory in a computer readable medium, Random Access Memory (RAM) and/or non-volatile memory, such as Read Only Memory (ROM) or flash memory (flash RAM). Memory is an example of a computer-readable medium.
Computer-readable media, including both non-transitory and non-transitory, removable and non-removable media, may implement information storage by any method or technology. The information may be computer readable instructions, data structures, modules of a program, or other data. Examples of computer storage media include, but are not limited to, phase change memory (PRAM), Static Random Access Memory (SRAM), Dynamic Random Access Memory (DRAM), other types of Random Access Memory (RAM), Read Only Memory (ROM), Electrically Erasable Programmable Read Only Memory (EEPROM), flash memory or other memory technology, compact disc read only memory (CD-ROM), Digital Versatile Discs (DVD) or other optical storage, magnetic cassettes, magnetic tape magnetic disk storage or other magnetic storage devices, or any other non-transmission medium that can be used to store information that can be accessed by a computing device. As defined herein, a computer readable medium does not include a transitory computer readable medium such as a modulated data signal and a carrier wave.
It should also be noted that the terms "comprises," "comprising," or any other variation thereof, are intended to cover a non-exclusive inclusion, such that a process, method, article, or apparatus that comprises a list of elements does not include only those elements but may include other elements not expressly listed or inherent to such process, method, article, or apparatus. Without further limitation, an element defined by the phrase "comprising an … …" does not exclude the presence of other like elements in a process, method, article, or apparatus that comprises the element.
As will be appreciated by one skilled in the art, embodiments of the present description may be provided as a method, system, or computer program product. Accordingly, the description may take the form of an entirely hardware embodiment, an entirely software embodiment or an embodiment combining software and hardware aspects. Furthermore, the description may take the form of a computer program product embodied on one or more computer-usable storage media (including, but not limited to, disk storage, CD-ROM, optical storage, and the like) having computer-usable program code embodied therein.
This description may be described in the general context of computer-executable instructions, such as program modules, being executed by a computer. Generally, program modules include routines, programs, objects, components, data structures, etc. that perform particular tasks or implement particular abstract data types. The specification may also be practiced in distributed computing environments where tasks are performed by remote processing devices that are linked through a communications network. In a distributed computing environment, program modules may be located in both local and remote computer storage media including memory storage devices.
The embodiments in the present specification are described in a progressive manner, and the same and similar parts among the embodiments are referred to each other, and each embodiment focuses on the differences from the other embodiments. In particular, as for the system embodiment, since it is substantially similar to the method embodiment, the description is relatively simple, and reference may be made to the partial description of the method embodiment for relevant points.
The above description is only an example of the present disclosure, and is not intended to limit the present disclosure. Various modifications and alterations to this description will become apparent to those skilled in the art. Any modification, equivalent replacement, improvement or the like made within the spirit and principle of the present specification should be included in the scope of the claims of the present specification.

Claims (6)

1. A method of generating a color palette, comprising:
obtaining a hue value corresponding to a theme color of a target brand, and obtaining at least one predefined saturation value and at least one predefined brightness value; wherein the saturation value and the brightness value are both discrete values; the saturation value and the brightness value have a corresponding relation;
combining the saturation value and the brightness value according to the corresponding relation to obtain a combined relation between the saturation value and the brightness value, combining the hue value and the combined relation to obtain at least one color, and generating a color plate corresponding to characters on a product interface of the target brand according to the obtained at least one color; wherein the predefined brightness value is used for enabling the contrast of the color on the generated color plate and the set background color to reach a first set value; the predefined saturation value is used for enabling the purity of the color on the generated color plate to reach a second set value;
the obtaining of the hue value corresponding to the theme color of the target brand includes: receiving a hue value input by a user; or extracting the hue value according to a picture of a target brand input by a user; or receiving a name of a target brand input by a user, and searching a hue value corresponding to the theme color of the target brand from the mapping relation according to the name and the mapping relation between the pre-established multiple brands and the hue value.
2. The method of claim 1, the saturation value comprising at least one of: 100. 99, 96, 94, 85, 75, 55, 35, 15 and 0;
the luminance values include at least one of: 0. 1, 2, 5, 15, 25, 45, 65 and 0;
wherein the saturation values and the luminance values are in one-to-one correspondence in the listed order.
3. The method of claim 1, if the picture of the target brand comprises multiple colors;
the extracting the hue value according to the picture of the target brand input by the user comprises the following steps:
extracting hue values corresponding to the multiple colors on the picture of the target brand respectively;
and determining a hue value corresponding to the theme color of the target brand from the plurality of hue values according to the area ratio of each color on the picture of the target brand.
4. An apparatus for generating a color panel, comprising:
the acquisition module is used for acquiring a hue value corresponding to the theme color of the target brand, and acquiring at least one predefined saturation value and at least one predefined brightness value; wherein the saturation value and the brightness value are both discrete values; the saturation value and the brightness value have a corresponding relation;
the first generation module is used for combining the saturation value and the brightness value according to the corresponding relation to obtain a combined relation between the saturation value and the brightness value, combining the hue value and the combined relation to obtain at least one color, and generating a color palette corresponding to characters on a product interface of the target brand according to the obtained at least one color; wherein the predefined brightness value is used for enabling the contrast of the color on the generated color plate and the set background color to reach a first set value; the predefined saturation value is used for enabling the purity of the color on the generated color plate to reach a second set value;
the acquisition module receives a hue value input by a user; or extracting the hue value according to a picture of a target brand input by a user; or receiving a name of a target brand input by a user, and searching a hue value corresponding to the theme color of the target brand from the mapping relation according to the name and the mapping relation between the pre-established multiple brands and the hue value.
5. A color panel generation apparatus comprising:
a processor; and
a memory arranged to store computer executable instructions that, when executed, cause the processor to:
obtaining a hue value corresponding to a theme color of a target brand, and obtaining at least one predefined saturation value and at least one predefined brightness value; wherein the saturation value and the brightness value are both discrete values; the saturation value and the brightness value have a corresponding relation;
combining the saturation value and the brightness value according to the corresponding relation to obtain a combined relation between the saturation value and the brightness value, combining the hue value and the combined relation to obtain at least one color, and generating a color plate corresponding to characters on a product interface of the target brand according to the obtained at least one color; wherein the predefined brightness value is used for enabling the contrast of the color on the generated color plate and the set background color to reach a first set value; the predefined saturation value is used for enabling the purity of the color on the generated color plate to reach a second set value;
the obtaining of the hue value corresponding to the theme color of the target brand includes: receiving a hue value input by a user; or extracting the hue value according to a picture of a target brand input by a user; or receiving a name of a target brand input by a user, and searching a hue value corresponding to the theme color of the target brand from the mapping relation according to the name and the mapping relation between the pre-established multiple brands and the hue value.
6. A storage medium storing computer-executable instructions that, when executed, implement the following:
obtaining a hue value corresponding to a theme color of a target brand, and obtaining at least one predefined saturation value and at least one predefined brightness value; wherein the saturation value and the brightness value are both discrete values; the saturation value and the brightness value have a corresponding relation;
combining the saturation value and the brightness value according to the corresponding relation to obtain a combined relation between the saturation value and the brightness value, combining the hue value and the combined relation to obtain at least one color, and generating a color plate corresponding to characters on a product interface of the target brand according to the obtained at least one color; wherein the predefined brightness value is used for enabling the contrast of the color on the generated color plate and the set background color to reach a first set value; the predefined saturation value is used for enabling the purity of the color on the generated color plate to reach a second set value;
the obtaining of the hue value corresponding to the theme color of the target brand includes: receiving a hue value input by a user; or extracting the hue value according to a picture of a target brand input by a user; or receiving a name of a target brand input by a user, and searching a hue value corresponding to the theme color of the target brand from the mapping relation according to the name and the mapping relation between the pre-established multiple brands and the hue value.
CN201810615613.4A 2018-06-14 2018-06-14 Color plate generation method and device Active CN108846879B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201810615613.4A CN108846879B (en) 2018-06-14 2018-06-14 Color plate generation method and device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201810615613.4A CN108846879B (en) 2018-06-14 2018-06-14 Color plate generation method and device

Publications (2)

Publication Number Publication Date
CN108846879A CN108846879A (en) 2018-11-20
CN108846879B true CN108846879B (en) 2022-05-17

Family

ID=64202139

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201810615613.4A Active CN108846879B (en) 2018-06-14 2018-06-14 Color plate generation method and device

Country Status (1)

Country Link
CN (1) CN108846879B (en)

Families Citing this family (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN111381912B (en) * 2018-12-29 2024-02-02 北京金山云网络技术有限公司 UI palette determining method, device, equipment and storage medium
CN112035210B (en) * 2020-09-30 2024-05-07 北京百度网讯科技有限公司 Method, apparatus, device and medium for outputting color information

Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1787010A (en) * 2005-11-24 2006-06-14 北京金山软件有限公司 Method for dynamic changing picture element colour and method for changing image colour
CN104639924A (en) * 2015-03-03 2015-05-20 中山大学花都产业科技研究院 Method for reducing degree of dependence on device pixel to improve color value precision
CN104978189A (en) * 2015-06-19 2015-10-14 深圳天珑无线科技有限公司 Method, device and mobile terminal for changing text color of application description
CN106356035A (en) * 2016-11-25 2017-01-25 广东欧珀移动通信有限公司 Method and device for controlling display of display screen and terminal
CN107241637A (en) * 2017-05-26 2017-10-10 四川长虹电器股份有限公司 The method of application icon intelligent collocation backboard colour table based on HSB color modes
CN107291334A (en) * 2017-06-27 2017-10-24 努比亚技术有限公司 A kind of icon font color determines method and apparatus

Family Cites Families (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN100446464C (en) * 2006-04-29 2008-12-24 华为技术有限公司 Method for correcting video stream gamma characteristic
US8031202B2 (en) * 2008-03-11 2011-10-04 Xerox Corporation Color transfer between images through color palette adaptation
US9199127B2 (en) * 2012-03-26 2015-12-01 Acushnet Company Color golf ball
CN103955332A (en) * 2014-05-15 2014-07-30 深圳市中兴移动通信有限公司 Mobile terminal and arraying method and device for desktop icons of mobile terminal

Patent Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1787010A (en) * 2005-11-24 2006-06-14 北京金山软件有限公司 Method for dynamic changing picture element colour and method for changing image colour
CN104639924A (en) * 2015-03-03 2015-05-20 中山大学花都产业科技研究院 Method for reducing degree of dependence on device pixel to improve color value precision
CN104978189A (en) * 2015-06-19 2015-10-14 深圳天珑无线科技有限公司 Method, device and mobile terminal for changing text color of application description
CN106356035A (en) * 2016-11-25 2017-01-25 广东欧珀移动通信有限公司 Method and device for controlling display of display screen and terminal
CN107241637A (en) * 2017-05-26 2017-10-10 四川长虹电器股份有限公司 The method of application icon intelligent collocation backboard colour table based on HSB color modes
CN107291334A (en) * 2017-06-27 2017-10-24 努比亚技术有限公司 A kind of icon font color determines method and apparatus

Non-Patent Citations (2)

* Cited by examiner, † Cited by third party
Title
Colorgorical: Creating discriminable and preferable color palettes for information visualization;ConnorC.Gramazio等;《IEEE》;20170131;521-530 *
天然牙色与比色板;孟玉坤等;《国外医学.口腔医学分册》;20011130(第06期);366-368 *

Also Published As

Publication number Publication date
CN108846879A (en) 2018-11-20

Similar Documents

Publication Publication Date Title
CN107644286B (en) Workflow processing method and device
CN109213685B (en) Service logic test method and device
CN110912825B (en) Message forwarding method, device, equipment and system
CN109246230B (en) Information pushing method and device
US20210326471A1 (en) Methods and apparatuses for chaining service data
CN110427215A (en) A kind of program version mRNA differential display mRNA method and device applied to front end exploitation
CN108846879B (en) Color plate generation method and device
CN112307509B (en) Desensitization processing method, equipment, medium and electronic equipment
CN108614693B (en) Processing method, device and equipment for page component
CN108846069B (en) Document execution method and device based on markup language
CN109816743A (en) Generate the method and terminal device of identification pattern
CN112214782A (en) Electronic document signature method, device and equipment
CN102314291A (en) Icon processing system and method
CN106293658B (en) Interface component generation method and equipment
CN108920241B (en) Display state adjusting method, device and equipment
CN112732252A (en) Method and device for dynamically generating UI (user interface) and electronic equipment
CN112183181A (en) Information display method
CN110166347B (en) Information sharing method, device and equipment
CN108255486B (en) View conversion method and device for form design and electronic equipment
CN110597429A (en) Desktop icon management method and device
CN113986176A (en) Color display method and device, electronic equipment and readable medium
CN108734556A (en) Recommend the method and device of application
CN114841604A (en) Cooperative task processing method, device and equipment and computer readable storage medium
CN113987242A (en) File picture visualization method, device, equipment and medium
CN108021457A (en) Data migration method and device

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
TA01 Transfer of patent application right
TA01 Transfer of patent application right

Effective date of registration: 20200921

Address after: Cayman Enterprise Centre, 27 Hospital Road, George Town, Grand Cayman, British Islands

Applicant after: Innovative advanced technology Co.,Ltd.

Address before: Cayman Enterprise Centre, 27 Hospital Road, George Town, Grand Cayman, British Islands

Applicant before: Advanced innovation technology Co.,Ltd.

Effective date of registration: 20200921

Address after: Cayman Enterprise Centre, 27 Hospital Road, George Town, Grand Cayman, British Islands

Applicant after: Advanced innovation technology Co.,Ltd.

Address before: A four-storey 847 mailbox in Grand Cayman Capital Building, British Cayman Islands

Applicant before: Alibaba Group Holding Ltd.

GR01 Patent grant
GR01 Patent grant