CN114332264A - Method for automatically generating color matching by computer and automatic color matching generation device - Google Patents

Method for automatically generating color matching by computer and automatic color matching generation device Download PDF

Info

Publication number
CN114332264A
CN114332264A CN202111171894.7A CN202111171894A CN114332264A CN 114332264 A CN114332264 A CN 114332264A CN 202111171894 A CN202111171894 A CN 202111171894A CN 114332264 A CN114332264 A CN 114332264A
Authority
CN
China
Prior art keywords
color
matching
scheme
matches
colors
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.)
Pending
Application number
CN202111171894.7A
Other languages
Chinese (zh)
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.)
Tencent Technology Shenzhen Co Ltd
Original Assignee
Tencent Technology Shenzhen 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 Tencent Technology Shenzhen Co Ltd filed Critical Tencent Technology Shenzhen Co Ltd
Priority to CN202111171894.7A priority Critical patent/CN114332264A/en
Publication of CN114332264A publication Critical patent/CN114332264A/en
Pending legal-status Critical Current

Links

Images

Landscapes

  • Image Processing (AREA)

Abstract

The present disclosure relates to a method for automatically generating color matching by a computer, which automatically displays or derives a color matching scheme matched with a main color according to user customization, provides a color matching with flexible number and various colors under the condition of ensuring readability and aesthetic property, can provide suggestions for users to use the color matching, and improves efficiency and automation and intelligentization degree when any operation related to the color matching is performed. In addition, the present disclosure relates to an automatic color matching generation apparatus, which can also automatically display or derive a color matching scheme matching a main color according to a user's customization, can provide a flexible number of color matching, and can also ensure readability and aesthetic property of the provided color matching, thereby improving efficiency and degree of automation and intelligence when any operation involving color matching is performed.

Description

Method for automatically generating color matching by computer and automatic color matching generation device
Technical Field
The present disclosure relates to the field of computer color matching, and more particularly, to a method for automatically generating color matching by a computer, a computer program product, and an automatic color matching generation apparatus.
Background
For example, in the field of data visualization, color matching, particularly chart color matching, has been an inefficient process. For many users, only the color schemes built into the data visualization suite may be used. If one wants to customize for his or her needs (e.g., to obtain a particular color scheme for a particular product color, brand color, etc.), then manual color matching must be performed. For manual color matching, the problems of high design cost, long period and the like exist.
There is therefore a need for a method for automatic computer generation of colour matches and a corresponding automatic colour match generation device which are able to automatically generate complete data visualisation of colour matches according to user customisation, without any restrictions on the number of colours and the number of colour gradations of the colour matches in the colour match.
Disclosure of Invention
The present disclosure therefore provides a method for automatically generating color schemes by a computer, which automatically displays or derives color schemes matching a main color according to a user customization, i.e. for example according to a desired number of color schemes provided by the user and a number of colors of candidate color sets and a main color of the color scheme, wherein the color schemes comprise the number of color schemes and the candidate color sets are provided for each color scheme, respectively, and each candidate color set comprises a different shade of the number of colors.
Furthermore, the present disclosure also provides a computer program product comprising a computer program or instructions which, when executed by a processor, implement the steps of the above-mentioned computer method of automatically generating color schemes to automatically generate color schemes.
In addition, the present disclosure also provides an automatic color matching generation apparatus, which is also capable of automatically displaying or deriving a color matching scheme matched with a main color for a user according to customization by the user, as described above, wherein the color matching scheme includes a color matching number, and candidate color sets each including colors of different color shades in the color matching number are provided for each color matching.
A first aspect of the present disclosure is directed to a method for computer automated generation of color matches, comprising: obtaining a main color for a color scheme to be generated, wherein the main color of the color scheme indicates a reference color of the color scheme; obtaining the number of color matching in the color matching scheme; clustering based on a preset color space according to the color matching number and the main colors to obtain clusters corresponding to the color matching number; and determining a color match for the number of color matches based on the cluster corresponding to the number of color matches, wherein the color scheme includes the main color and includes at least a portion of the number of color matches.
Thus, in the method of automatically generating color matches by a computer according to the present disclosure, with Cluster calculation for a predetermined color space, in the case where the number of color matches is an arbitrary number value given in advance by, for example, a user, by another program, or the like, the predetermined color space, which is usually represented as an irregular three-dimensional solid space, can be uniformly divided into clusters (clusters) whose number corresponds to the number of color matches. In other words, in the case where, for example, the calculated Cluster center (Cluster Centroids), the Cluster center (Cluster media) of each Cluster is determined as the point to which a color match corresponds in the predetermined color space, the color match of the number of color matches is also uniformly determined. Thus, on the one hand, it is ensured that the color differences of the individual color matches remain at a certain distance, since the color matches are determined uniformly. Thus, a good degree of discrimination between the color schemes automatically generated according to the method of the present disclosure is ensured, and good readability of objects to be produced, such as charts, images, etc., is ensured when, for example, a user produces charts, images, etc., using the color schemes. On the other hand, also because the color schemes are uniformly determined, the color differences between the respective color schemes, i.e., the differences between the hues, the lightness, and the saturations, are kept within a certain range. This ensures that the leap between the color schemes automatically generated by the method of the present disclosure is not too great, and ensures the aesthetic appearance of the objects to be created, such as charts and images, when the user creates the charts and images using the color schemes. In summary, the method for automatically generating color matching by a computer according to the present disclosure can automatically provide a color matching scheme including any number of color matching while ensuring readability and aesthetic property, the number of color matching provided is flexible and colors are various, and efficiency, automation and intelligentization degree when any operation related to color matching, such as data visualization processing and appearance design, is performed are improved.
Furthermore, in the method according to the present disclosure, said dominant color, which may be pre-given, for example, by a user, by another program, etc., is also taken into account when clustering based on a predetermined color space. That is, according to a specific clustering algorithm used, for example, a point corresponding to the main color in the predetermined color space is preset as a preset cluster centroid and clustering calculation is performed, and the calculated cluster centroids of the respective clusters calculated are determined as points corresponding to the color matching in the predetermined color space. Thus, the method according to the present disclosure can uniformly divide the predetermined color space in consideration of the main color, resulting in any number of color schemes matching the main color, which are uniformly found from the predetermined color space. In other words, the method of automatically generating color matching by a computer according to the present disclosure enables the possibility of providing user customization, thereby further increasing the degree of automation, intelligence when any operation involving color matching is performed.
According to one embodiment of the method of computer-automatically generating color matches of the present disclosure, the method further comprises: ordering the main colors and color matches in the color scheme, wherein ordering the main colors and color matches in the color scheme further comprises: and taking the main color as the first color of the color scheme, and sequencing the color matching of the color matching number according to the hue of each color matching in the color matching of the color matching number.
Thus, in the method for automatically generating color schemes by a computer according to the present disclosure, the main colors and the determined color schemes are sorted according to hue, so that it is ensured that the leap between color schemes automatically generated by the method according to the present disclosure is not too large, the aesthetic property of a production object such as a chart or an image when a user produces a chart or an image using the color schemes and the aesthetic property when the color scheme is displayed on a user interface are ensured, and the efficiency, automation, and intelligentization degree when any operation related to color schemes, such as data visualization processing, appearance design, UI design, and web page design, is performed are further improved.
In accordance with one embodiment of the computer-implemented method of automatically generating color schemes of the present disclosure, the ranking the main colors and color schemes further comprises: determining a standard neighboring color of a dominant color and a standard complementary color of the dominant color in the predetermined color space; for each of the number of color matches, determining at least one of two color differences, wherein the two color differences include a color difference of the color match from a color adjacent to the standard and a color difference of the color match from a color complementary to the standard; and taking the main color as a first color of the color scheme, and sequencing the color matching of the color matching quantity according to the at least one color difference so as to determine a color matching recommendation sequence of the color matching quantity.
Thus, in the method of automatically generating color schemes by a computer according to the present disclosure, the main color, which may be given in advance, for example, by a user, by another program, or the like, is also considered when sorting the color schemes. Namely, based on the following concept: in ordering color matches, the standard adjacent colors of the main color are preferentially ordered adjacent to the main color and the standard complementary colors of the main color are preferentially ordered away from the main color. Considering that the standard adjacent color and the standard complementary color may not be included in the number of color schemes, the color difference of each color scheme of the number of color schemes from the standard adjacent color and the standard complementary color may first be determined. Here, the ordering of the number of color matches based on the above concept can be achieved by using the main color as the first color of the color scheme, for example, by ordering the number of color matches in an ascending order of the color difference between each color match of the number of color matches and the standard adjacent color, or by ordering the number of color matches in a descending order of the color difference between each color match of the number of color matches and the standard complementary color. Thus, the method of automatically generating color matches by a computer according to the present disclosure enables the determined number of color matches to be ordered in a transitional, natural and aesthetically pleasing manner with some degree of differentiation between adjacent color matches, further improving the aesthetics of the user when using the color matches in the color matching recommended order and the aesthetics of the user when displaying the color scheme, for example, on a user interface; meanwhile, the method for automatically generating the color matching by the computer can also suggest that the user uses the determined color matching according to the color matching recommendation sequence, so that the efficiency of the user in any operation related to the color matching and the automation and intelligentization degree of automatic color matching are further improved.
One embodiment of a method for automatically generating color matching by a computer according to the present disclosure, wherein modifying the color matching recommendation order comprises: determining a color match of the number of color matches that is closest to the standard complementary color; and using the color scheme closest to the standard complementary color in the number of color schemes as the tail color of the color scheme.
Thus, in the method of automatically generating color schemes by a computer according to the present disclosure, when the number of color schemes is sorted in ascending order of color difference of each color scheme of the number of color schemes from the standard adjacent color, the color scheme closest to the standard complementary color among the number of color schemes is further taken as the tail color of the color scheme. The following idea is used to define the color scheme as the tail color of the color scheme, which is the color closest to the standard complementary color: when calculating the color difference of each of the number of color schemes from the standard adjacent color, since the color difference depends not only on the difference between hues but also on the difference between saturations and between lightness, there may occur a case where the color scheme closest to the standard complementary color is ranked close to the main color. Thus, the aesthetics of the use of color matching in the color matching recommendation order and the uniformity of the transitions may be impaired. Therefore, in the method for automatically generating color schemes by a computer according to the present disclosure, the color scheme closest to the standard complementary color among the number of color schemes may be further used as the tail color of the color scheme. Therefore, the damage to the attractiveness and transition uniformity when the color matching is used according to the color matching recommendation sequence can be avoided, and the efficiency of the user in any operation related to the color matching and the automation and intelligentization degree of automatic color matching are further improved.
According to one embodiment of the computer-automated color matching method of the present disclosure, the computer-automated color matching method of the present disclosure further comprises at least one of: displaying the color scheme; and deriving the color scheme, wherein displaying the color scheme further comprises: displaying a palette corresponding to the color scheme, the palette including each color in the color scheme; and displaying the candidate color set of each color in the color scheme.
Thus, in a method of automatically generating color schemes by a computer according to the present disclosure, the color schemes can be displayed, for example, on a user interface, and also derived to facilitate use of the color schemes determined according to the present disclosure by a user, other user, or another program, etc., i.e., the number of color schemes determined in the method according to the present disclosure can be used, for example, in the color scheme recommendation order determined in the method according to the present disclosure, and each color in the color palette and the candidate color set for each color can be conveniently used by the user. Therefore, the method for automatically generating the color matching by the computer is convenient for users to use, and further improves the efficiency during operation and the automation and intelligentization degree of automatic color matching.
According to one embodiment of the method of computer-automatically generating color matches of the present disclosure, the method further comprises: for each color in the color scheme, determining the number of colors of a candidate color set for that color; respectively determining the lightest color and the darkest color of the hue based on the hue of the color; and generating the colors of the number of colors of the hue as the candidate color set based on the brightest color of the hue, the color and the darkest color of the hue.
Thus, in a method of automatically generating color schemes by a computer according to the present disclosure, for each color in the color scheme, a candidate color set can also be generated further based on the lightest color of the hue, the color, and the darkest color of the hue. That is, a set of candidate colors having colors of different lightness is further generated for each color in the color scheme. Also, the number of colors of the candidate color set for the color may be given in advance by the user, by another program, or the like, for example. Therefore, the method for automatically generating the color matching by the computer can provide more color selections according to the customization of the user, and further improves the efficiency in operation and the automation and intelligence degree of automatic color matching.
In accordance with one embodiment of the method for automatically generating color schemes by a computer of the present disclosure, for each color in the color scheme, a hue of a brightest color of the hue is a highest hue and a darkest color of the hue is a lowest hue, and a color level of the color is an intermediate hue between the highest hue and the lowest hue, wherein generating the number of colors of the hue based on the brightest color of the hue, the color, and the darkest color of the hue further comprises: generating a Bezier curve as a color level curve of the hue by taking the highest color level, the lowest color level and the middle color level as control points; and generating the number of colors of the hue based on the bezier curve.
Thus, in a method of automatically generating color schemes in a computer according to the present disclosure, a series of gradations of hue for each color in the color scheme may be used as a set of candidate colors for each color in the color scheme. Here, for the hue of each color in the color scheme, the brightest color of the hue, the color, and the darkest color of the hue are described using a bezier curve as a tone scale curve of the hue, and the bezier curve is divided according to, for example, the number of colors, so that the candidate color set can be generated in a series of tone scales in which colors are uniformly transitioned.
According to one embodiment of the computer-automated color matching method of the present disclosure, the predetermined color space is a commission international lighting system (LAB) color space (CIELab) color space, wherein for a hue of each color in the color scheme, each color in the color scheme is converted to a red, green, and blue color space through color space conversion, and in the red, green, and blue color space, the bezier curve is generated as a scale curve with the highest, lowest, and intermediate scales as control points for the hue of each color in the color scheme; and carrying out color level grading on the color level curves in the red, green and blue color space so as to obtain the colors of the color quantity.
Thus, in the method of automatically generating color matching by a computer according to the present disclosure, by converting the highest gradation, the lowest gradation, and the intermediate gradation in the international commission on illumination LAB color space to the red green blue color space and describing them with the bezier curve as a gradation curve, the candidate color set can be further generated with a series of gradations in which colors are uniformly transitioned, according to experiments.
According to one embodiment of the method of computer-automatically generating color matches of the present disclosure, the method further comprises: obtaining a color matching style; and preprocessing the preset color space based on the color matching style to remove the color part which does not accord with the color matching style in the preset color space.
Thus, in the method for automatically generating color matching by a computer according to the present disclosure, color matching styles such as a bright style and a dark style may also be obtained, for example, via a color matching style entry on a user interface, and preprocessing may be performed based on the color matching styles to remove color portions of the predetermined color space that do not conform to the color matching styles, i.e., to remove color portions of the color space that have lower brightness, for example, in the case of obtaining a color matching style of a bright style. Thus, the possibility of user customization according to the user requirements is further provided, and the automation and intelligence degree of any operation related to color matching is further improved.
According to one embodiment of the method for automatically generating color matching by a computer of the present disclosure, the clustering based on a predetermined color space to obtain clusters corresponding to the number of color matching further comprises: pre-grading the preset color space based on the color matching style to obtain a preset number of color subspaces; and obtaining clusters corresponding to the color matching numbers based on the number relation between the color matching numbers and the preset series.
Thus, in the method for automatically generating color schemes by a computer according to the present disclosure, the predetermined color space may be pre-graded to obtain a predetermined number of color sub-spaces according to a color scheme type or the like that is generally used by a user in a specific color scheme, for example. By taking into account the number relation of the number of color matches to the predetermined number of stages, which is given by the user for example, a more uniform division of the color space can be achieved. Thus, it is ensured that the automatically generated color schemes according to the method of the present disclosure have a good degree of discrimination between the color schemes and that the leap between the individual color schemes is not too great. Therefore, the method for automatically generating the color matching by the computer automatically ensures the readability of the color matching and further automatically ensures the aesthetic property of the color matching, thereby improving the efficiency and the automation and intelligence degree of any operation related to the color matching.
According to one embodiment of the method for automatically generating color matching by a computer of the present disclosure, obtaining a cluster corresponding to the number of color matching based on the number relationship between the number of color matching and the predetermined number of stages further includes: under the condition that the color matching number is less than or equal to the preset number, respectively selecting the color sub-spaces of the color matching number from the color sub-spaces of the preset number, and respectively clustering the color sub-spaces of the color matching number to obtain clusters corresponding to the color matching number; and under the condition that the color matching number is larger than the preset series number, clustering a preset color space to obtain a cluster corresponding to the color matching number.
Thus, in the method of automatically generating color matches by a computer according to the present disclosure, in a case where the number of color matches is less than or equal to the predetermined number of stages, the color sub-spaces of the number of color matches are selected from the color sub-spaces of the predetermined number of stages, respectively, ensuring that a plurality of color matches are not determined from the same color sub-space. Therefore, the color space can be divided more uniformly, and the color matching readability is automatically ensured, and meanwhile, the aesthetic property of color matching is further automatically ensured.
One embodiment of a method for computer automated generation of color matches according to the present disclosure, wherein the clustering calculations are k-means clustering calculations and the color space is an international commission on illumination LAB color space.
Thus, in a method of automatically generating color matches by a computer according to the present disclosure, k-means clustering is performed based on a predetermined color space, for example, according to the number of color matches and the main color. Here, a main color, which is predetermined by a user, by another program, or the like, for example, is used as an initially selected Cluster center of mass, and, for example, in the case where the number of color matches is less than or equal to the predetermined number, the color sub-spaces of the number of color matches are selected from the color sub-spaces of the predetermined number, respectively, and k-means clustering is performed on the color sub-spaces of the number of color matches, respectively, to determine a calculated Cluster center of mass (Cluster centers) of each Cluster as a point corresponding to a color match in the predetermined color space; and performing k-means clustering on a predetermined color space of an International Lighting Commission LAB color space representing an irregular three-dimensional solid, for example, in a case where the number of color schemes is greater than the predetermined number of stages, to uniformly divide the predetermined color space into clusters whose number corresponds to the number of color schemes and to determine a calculated cluster centroid of each cluster as a point corresponding to a color scheme in the predetermined color space. Therefore, the method for automatically generating the color matching by the computer can automatically provide the color matching scheme containing any color matching number under the condition of ensuring readability and aesthetic property, the provided color matching number is flexible and colors are various, and the efficiency, automation and intelligentization degrees when any operation related to the color matching, such as data visualization processing, appearance design and the like are carried out are improved.
Further, a second aspect of the present disclosure is directed to a method of computer-automatically generating color matches, comprising: obtaining a main color for a color scheme to be generated and obtaining a number of color schemes in the color scheme, wherein the main color of a color scheme indicates a reference color of the color scheme; determining a color scheme for the number of color schemes in a predetermined color space based on the number of color schemes, wherein the color scheme includes the main color and includes at least a portion of the number of color schemes; displaying a palette corresponding to the color scheme, the palette including each color in the color scheme, and displaying a set of candidate colors for each color in the color scheme.
Thus, in the method of automatically generating color matching by a computer according to the present disclosure, a user can input a main color and the number of color matching for user customization, for example, according to a product color of a product thereof, a subject color of a design object, and the like; and the color matching of the color matching quantity matched with the main color hue can be automatically generated according to the customization of the user, and for example, the color palette corresponding to the color matching scheme and the candidate color set of each color in the color matching scheme are displayed to the user, so that the user can conveniently use the method when performing data visualization processing, appearance design, UI design, webpage design and other operations. This improves the efficiency, automation, and degree of intelligence when any operation involving color matching, for example, an operation such as data visualization processing and appearance design, is performed.
According to one embodiment of the method for automatically generating color matching by a computer of the present disclosure, the method further comprises: and sequencing the main colors and the color combinations in the color scheme to determine a color combination recommendation sequence of the color combinations aiming at the color combination quantity. Wherein the sorting of the main colors and color matching in the color scheme comprises: taking the main color as a first color of the color scheme, and sequencing the color matching of the color matching number according to the hue of each color matching in the color matching of the color matching number, or determining a standard adjacent color of the main color and a standard complementary color of the main color in the preset color space; for each of the number of color matches, determining at least one of two color differences, wherein the two color differences include a color difference of the color match from a color adjacent to the standard and a color difference of the color match from a color complementary to the standard; and taking the main color as a first color of the color scheme, and sequencing the color matching of the color matching quantity according to the at least one color difference, wherein the color plates corresponding to the color scheme are displayed according to the determined color matching recommendation sequence. Thus, in the method for automatically generating color matches by a computer according to the present disclosure, the determined number of color matches may be sorted in a transition natural and aesthetic manner with a certain degree of distinction between adjacent color matches, further improving the aesthetic appeal of the user when using the color matches in the color matching recommendation order and, for example, the color scheme displayed on the user interface; meanwhile, the color plates corresponding to the color matching schemes are displayed according to the determined color matching recommended sequence, and the user uses the determined color matching according to the sequence of the color matching in the color plates, so that the attractiveness and the clarity of the user can be conveniently ensured when the user performs operations such as data visualization processing, appearance design, UI design and webpage design. Therefore, the efficiency of the user in any operation related to color matching and the automation and intelligence degree of automatic color matching are further improved, and the design cost in manual color matching is obviously reduced.
One embodiment of a method for automatically generating color schemes by a computer according to the present disclosure, wherein determining the number of color schemes in a predetermined color space comprises: clustering in the preset color space to obtain clusters corresponding to the color matching number; and determining the number of colors matched based on the cluster corresponding to the number of colors matched.
Thus, in the method of automatically generating color matching by a computer according to the present disclosure, by clustering in the predetermined color space, the predetermined color space can be uniformly divided into clusters (clusters) whose number corresponds to the number of color matching in a case where the predetermined color space is generally represented as an irregular three-dimensional stereoscopic space. Here, for example, by determining the calculated Cluster center (Cluster centers) and the Cluster center (Cluster media) of each Cluster as the corresponding point of the color scheme in the predetermined color space, the number of color schemes that are uniformly distributed in the predetermined color space with sufficient color difference therebetween to ensure clarity and without jumping therebetween being too large to ensure aesthetics can be obtained. In other words, the method for automatically generating color matching by a computer according to the present disclosure can automatically provide a color matching scheme while ensuring readability and aesthetic appearance, and improves efficiency and degree of automation and intelligence when any operation related to color matching, such as data visualization processing, appearance design, and the like, is performed.
According to one embodiment of the method for automatically generating color schemes by a computer of the present disclosure, the method for automatically generating color schemes by a computer further comprises: for each color in the color scheme, acquiring the number of colors of a candidate color set for the color, and respectively determining the brightest color and the darkest color of the hue based on the hue of the color; and generating the colors of the number of colors of the hue as the candidate color set based on the brightest color of the hue, the color, and the darkest color of the hue.
Thus, in the method of automatically generating color schemes by a computer according to the present disclosure, a candidate color set of colors having different lightness is further generated for each color in the color scheme as described above. Also, the number of colors of the candidate color set for the color may be given in advance by the user, by another program, or the like, for example. Therefore, the method for automatically generating the color matching by the computer can provide more color selections according to the customization of the user, and further improves the efficiency in operation and the automation and intelligence degree of automatic color matching.
Furthermore, a third aspect of the present disclosure relates to a computer program product comprising a computer program or instructions which, when executed by a processor, implement the steps of the computer-automated color matching method described above for automatically generating a color matching scheme. For the sake of brevity, further details of the computer program product according to the present disclosure are not described herein above with reference to the method for automatically generating color schemes by a computer according to the present disclosure.
Further, a fourth aspect of the present disclosure relates to an automatic color matching generation apparatus including: an interface module configured to obtain a main color for a color scheme to be generated and obtain a number of color schemes in the color scheme, wherein the main color of a color scheme indicates a reference color of the color scheme; a color matching generation module configured to perform clustering based on a predetermined color space according to the number of color matches to obtain a cluster corresponding to the number of color matches, and determine color matching of the number of color matches based on the cluster corresponding to the number of color matches, wherein the color scheme includes the main color and includes at least a portion of the number of color matches.
Thus, in accordance with the method for the automatic computer generation of color matches according to the disclosure, the automatic color match generation apparatus according to the disclosure can, on the one hand, provide the user with the possibility of a user customization, i.e. for example of entering a main color for the color scheme to be generated and the number of color matches in said color scheme, by means of the interface module. On the other hand, the color matching generation module uniformly divides the color space by adopting clustering, so that the color space can be uniformly divided based on any number of color matching quantities, and the readability and the aesthetic property of the determined color matching of the color matching quantities are ensured. In summary, since the automatic color matching generation apparatus can automatically determine the number of colors to be matched in accordance with any number of color matching numbers and main colors, which are preset by, for example, a user, by another program, or the like, while ensuring readability and aesthetic appearance, the efficiency and the degree of automation and intelligence when the user performs any operation involving color matching, such as data visualization processing, appearance design, or the like, are improved.
According to one embodiment of the automatic color matching generation apparatus of the present disclosure, the automatic color matching generation apparatus of the present disclosure further includes a color matching ranking module configured to rank the main colors and the color matches in the color matching scheme to determine a color matching recommended order for the number of color matches, including: taking the main color as a first color of the color scheme, and sequencing the color matching of the color matching number according to the hue of each color matching in the color matching of the color matching number, or determining a standard adjacent color of the main color and a standard complementary color of the main color in the preset color space; for each of the number of color matches, determining at least one of two color differences, wherein the two color differences include a color difference of the color match from a color adjacent to the standard and a color difference of the color match from a color complementary to the standard; and taking the main color as a first color of the color scheme, and sequencing the color matching of the color matching quantity according to the at least one color difference.
Thus, the automatic color matching generation apparatus according to the present disclosure can sort the determined number of color matches by means of the color matching sort module. The advantages of the automatic color matching generation apparatus according to the present disclosure are described above in the description of the method for automatically generating color matching by computer according to the present disclosure, and are not described herein again for brevity.
According to one embodiment of the automatic color matching generation apparatus of the present disclosure, the automatic color matching generation apparatus further includes a display module configured to display a palette corresponding to the color scheme, the palette including each color in the color scheme, and display a candidate color set for each color in the color scheme.
Thus, the automatic color scheme generation apparatus according to the present disclosure is capable of displaying the color scheme on a display module, such as a user interface, and is also capable of deriving the color scheme to facilitate use of the color scheme by a user. The advantages of the automatic color matching generation apparatus according to the present disclosure are described above in the description of the method for automatically generating color matching by a computer according to the present disclosure, which displays the color palette corresponding to the color scheme, and are not described herein again for brevity.
In accordance with one embodiment of the color matching automatic generation apparatus of the present disclosure, the interface module is further configured to acquire the number of colors of the candidate color set for the color, and the color matching automatic generation apparatus further includes: a candidate color set generation module configured to determine a brightest color and a darkest color of a hue based on the hue of the color, respectively; and generating the colors of the number of colors of the hue as the candidate color set based on the brightest color of the hue, the color, and the darkest color of the hue.
Therefore, the automatic color matching generation device can provide more color selections, and further improves the operation efficiency and the automation and intelligentization degree of automatic color matching. The advantages of the automatic color matching generation apparatus according to the present disclosure are described above in the description of the method for automatically generating color matching by a computer according to the present disclosure, and are not described herein again for brevity.
In one embodiment of the automatic color matching generation apparatus according to the present disclosure, the candidate color set generation module is further configured to, for each color hue of each color in the color scheme, set a color rank of a brightest color of the hue as a highest color rank, set a color rank of a darkest color of the hue as a lowest color rank, and set a color rank of the color as an intermediate color rank between the highest color rank and the lowest color rank, wherein generating the number of colors of the hue based on the brightest color of the hue, the color, and the darkest color of the hue further comprises: generating a Bezier curve as a color level curve of the hue by taking the highest color level, the lowest color level and the middle color level as control points; and generating the number of colors of the hue based on the bezier curve.
Thus, the automatic color matching generation apparatus according to the present disclosure can describe the brightest color of the hue, the color, and the darkest color of the hue using bezier curves as gradation curves of the hue, and divide the bezier curves according to, for example, the number of colors, thereby realizing generation of the candidate color set in a series of gradations in which colors are uniformly transitioned.
Further, a fifth aspect of the present disclosure relates to an automatic color matching generation apparatus including: the device comprises an input module, a display module and a display module, wherein the input module is used for inputting the main color of a color scheme to be generated, the number of colors in the color scheme and the number of colors used for a candidate color set, and the main color of the color scheme indicates the reference color of the color scheme; a processor; and a memory storing a computer program or instructions which, when executed by the processor, implement the steps of a method of automatically generating color schemes according to the computer of the present disclosure to generate the color scheme.
Thus, the automatic color scheme generation apparatus according to the present disclosure uses the aesthetics of the determined color scheme while ensuring that the color scheme has a certain degree of differentiation. This further improves the efficiency and degree of automation and intelligence when any operation involving color matching is performed. The advantages of the automatic color matching generation apparatus are discussed above with respect to the method for automatically generating color matching by a computer according to the present disclosure, and are not described herein again for brevity.
In summary, the present disclosure provides a method for automatically generating color matching by a computer and an automatic color matching generation apparatus. The method and the device provide the possibility of user customization, can automatically provide the color matching scheme containing any color matching quantity under the condition of ensuring readability and aesthetic property according to the user customization, the provided color matching quantity is flexible and colors are various, and the efficiency, automation and intelligentization degree of any operation related to color matching, such as data visualization processing, appearance design and the like are improved.
Drawings
In order to more clearly illustrate the technical solutions of the embodiments of the present disclosure, the drawings used in the description of the embodiments will be briefly introduced below. It is apparent that the drawings in the following description are only exemplary embodiments of the disclosure, and that other drawings may be derived from those drawings by a person of ordinary skill in the art without inventive effort.
Herein, in the drawings:
FIG. 1A illustrates an embodiment of a method of computer automatically generating color matches in accordance with the present disclosure;
FIG. 1B illustrates an exemplary schematic diagram of a color scheme determined by a method of computer automated color generation according to the present disclosure;
FIG. 2 illustrates a further embodiment of a method of computer automatically generating color matches in accordance with the present disclosure;
FIG. 3 illustrates a further embodiment of a method of computer automatically generating color matches in accordance with the present disclosure;
FIG. 4A illustrates a further embodiment of a method of computer automatically generating color matches in accordance with the present disclosure;
fig. 4B exemplarily shows the correspondence of a dominant color with its standard neighboring colors and standard complementary colors;
FIG. 4C illustrates the color matching of the number N of color matches after sorting;
FIG. 5A illustrates a further embodiment of a method of computer automatically generating color matches in accordance with the present disclosure;
FIG. 5B illustrates an exemplary diagram of a method of computer automatically generating color matches in accordance with the present disclosure;
FIG. 6 illustrates a further embodiment of a method of computer automatically generating color matches in accordance with the present disclosure;
FIG. 7A illustrates a further embodiment of a method of computer automatically generating color matches in accordance with the present disclosure;
FIG. 7B illustrates a set of candidate colors generated in accordance with the data transmission method of the present disclosure;
FIG. 8 illustrates a further embodiment of a method of computer automatically generating color matches in accordance with the present disclosure;
FIG. 9 illustrates a further embodiment of a method of computer automatically generating color matches in accordance with the present disclosure;
FIG. 10 illustrates a further embodiment of a method of computer automatically generating color matches in accordance with the present disclosure;
FIG. 11 illustrates a further embodiment of a method of computer automatically generating color matches in accordance with the present disclosure;
FIG. 12 illustrates an embodiment of a method of computer automatically generating color matches in accordance with the present disclosure;
FIG. 13 illustrates, in a block diagram, an embodiment of an automatic color matching generation apparatus according to the present disclosure;
fig. 14 illustrates, in a block diagram, an automatic color matching generation apparatus according to the present disclosure.
Detailed Description
In order to make the objects, technical solutions and advantages of the present disclosure more apparent, example embodiments according to the present disclosure will be described in detail below with reference to the accompanying drawings. It is to be understood that the described embodiments are merely a subset of the embodiments of the present disclosure and not all embodiments of the present disclosure, with the understanding that the present disclosure is not limited to the example embodiments described herein.
Further, in the present specification and the drawings, steps and elements having substantially the same or similar characteristics are denoted by the same or similar reference numerals, and repeated description of the steps and elements will be omitted.
Furthermore, in the specification and drawings, elements are described in the singular or plural according to the embodiments. However, the singular and plural forms are appropriately selected for the proposed cases only for convenience of explanation and are not intended to limit the present disclosure thereto. Thus, the singular may include the plural and the plural may also include the singular, unless the context clearly dictates otherwise.
Further, in the present specification and drawings, if flowcharts are used to illustrate steps of methods according to embodiments of the present disclosure, it should be understood that the preceding or following steps are not necessarily performed in exact order. Rather, various steps may be processed in reverse order or concurrently, unless explicitly limited by the embodiments of the disclosure. Meanwhile, other operations may be added to the processes, or a certain step or steps may be removed from the processes.
As an example, the present disclosure can be applied to a colorimetry field combined with Artificial Intelligence (AI), particularly a data visualization field, and the like. The artificial intelligence is a theory, a method, a technology and an application system which simulate, extend and expand human intelligence by using a digital computer or a machine controlled by the digital computer, sense the environment, acquire knowledge and obtain the best result by using the knowledge. In other words, artificial intelligence is a comprehensive technique of computer science that attempts to understand the essence of intelligence and produce a new intelligent machine that can react in a manner similar to human intelligence. Artificial intelligence is the research of the design principle and the realization method of various intelligent machines, so that the machines have the functions of perception, reasoning and decision making.
The artificial intelligence technology is a comprehensive subject and relates to the field of extensive technology, namely the technology of a hardware level and the technology of a software level. The artificial intelligence infrastructure generally includes technologies such as sensors, dedicated artificial intelligence chips, cloud computing, distributed storage, big data processing technologies, operation/interaction systems, mechatronics, and the like. The artificial intelligence software technology mainly comprises a computer vision technology, a voice processing technology, a natural language processing technology, machine learning/deep learning and the like.
Currently, with the research and progress of artificial intelligence technology, the artificial intelligence technology is being developed into research and application in a number of fields, such as common virtual assistants, smart speakers, smart marketing, autopilot, unmanned aerial vehicles, smart medicine, smart customer service, and the like. Currently, artificial intelligence has been combined with the fields of colorimetry, particularly data visualization, and applied to any operation involving color matching, such as data visualization processing, appearance design, UI design, web page design, and the like, using the perception, reasoning, and decision making functions of artificial intelligence.
With the continuous development of coloristics, automatic color matching tools are provided in the market. With the automatic color matching tools available on the market, a series of colors may be automatically recommended to the user for use by the user. However, existing automatic color tools do not provide user-customized access on the one hand. That is, for example, for promotional pictures containing a product, brand image, etc., a user typically needs to obtain a particular color scheme that matches the product color, brand color, etc. of the product or brand image. However, existing automatic color matching tools do not provide a user with access to customize particular product colors, brand colors, etc. when generating color matches. With the help of the existing automatic color matching tool, the user can not customize the self requirements. On the other hand, the number of colors and the number of color levels that can be recommended by the existing automatic color matching tools are also very limited. That is, existing automatic color matching tools are typically only capable of providing users with color schemes that include a limited number of color matches (e.g., only 5 color matches) and a limited number of color gradations. Neither the number of color matches nor the number of color levels is sufficient to satisfy the requirements of data visualization. In addition, the existing automatic color matching tools lack the actual effect preview of the color scheme, and users cannot obtain intuitive feedback results when using the tools.
Accordingly, a first aspect of the present disclosure is directed to a method 100 for computer automated generation of color matches. FIG. 1A illustrates an embodiment of a method 100 for computer automated generation of color matches according to the present disclosure. FIG. 1B illustrates a schematic diagram of a color scheme determined by the computer-automated color matching method 100 according to the present disclosure. For clarity, a method 100 for computer-automated generation of color matches in accordance with the present disclosure is described below in conjunction with fig. 1A and 1B.
Here, the method 100 of automatically generating color matching by a computer according to the present disclosure includes: in step S110, a main color PC for a color scheme CS to be generated is obtained, where the main color PC of the color scheme CS indicates a reference color of the color scheme; in step S120, obtaining the number N of color matching in the color scheme CS, which may be any integer greater than zero, for example; in step S130, according to the number N of color matches and the main color PC, clustering is performed based on a predetermined color space to obtain a cluster corresponding to the number N of color matches; and in step S140, determining a color match mc1.. MCN for the number of color matches based on the cluster corresponding to the number of color matches N, wherein the color scheme CS includes the main color PC and includes at least a portion of the number of color matches mc1.. MCN.
It should be noted that, the manner of obtaining the color matching number N is not limited herein. In one aspect, the number of color matches N may be manually preset, i.e., a user may input the number of color matches he desires to generate through an input window, a pull-down menu, etc., on a user interface. Thereby, the acquisition of the color matching number N in the color matching scheme CS can be achieved. On the other hand, the color matching number N may also be preset non-artificially. For example, in the case where the present invention is used in the field of data visualization, that is, for example, a plurality of kinds of data need to be represented in a chart (e.g., a histogram or a sector), the method according to the present disclosure can acquire the number of kinds of data to be visualized or the number of data groups in a chart to be colored (e.g., the number of columns in a histogram or the number of sector areas in a sector to be colored) via a software interface or the like to obtain the number of colors N in the color scheme CS. For another example, in the case where the present invention is used in an appearance design, i.e., a webpage color matching field, for example, the optimal/most beautiful number of colors may be predetermined in advance by machine learning or the like. Then, in the method according to the present disclosure, the optimal/most attractive color matching number is obtained as the color matching number N according to the method of the present disclosure, and the predetermined color space is clustered according to the color matching number N and the main color PC, so that the optimal/most attractive color matching number of color matching mc1.. MCN can be obtained for the color matching of the web page.
It should be noted that the manner of obtaining the main color PC of the color scheme CS to be generated is also not limited herein. On one hand, the dominant color PC may be manually preset, that is, a user may input an HEX color code of the dominant color PC or select the dominant color PC through an input window, a pull-down menu, or the like on a user interface, for example, to achieve acquisition of the dominant color PC. On the other hand, the dominant color PC may also be preset non-artificially. That is, for example, where the present invention is used in the field of appearance design (e.g., the field of web page color matching, the field of advertisement color matching, the field of product color matching, etc.), an initial design of an appearance design may first be color identified to determine the colors contained in the initial design; then, the color coverage area of each color in the initial design can be determined; then, the color corresponding to the maximum color coverage area or the color having a color coverage area greater than a certain threshold (e.g., greater than 50% of the overall area of the initial design) may be determined as the dominant color of the design. Then, the method according to the present disclosure can obtain the main color as a main color PC according to the present disclosure via a software interface or the like, and cluster the predetermined color space according to the number of color matches N and the main color PC, so that a number of color matches mc1.. MCN matching the main color PC can be obtained for use in web page color matching, advertisement color matching, product color matching, and the like. Thus, in one aspect, in the method 100 for automatically generating color matches by a computer according to the present disclosure, the number N of color matches can be determined aesthetically and clearly without limitation to the number N of color matches (i.e., without limitation to only 5 color matches, for example, but any number of color matches desired by a user can be generated). Here, with the Cluster calculation for a predetermined color space, in the case where the number of color schemes N is an arbitrary number given in advance by, for example, a user, by another program, or the like, the predetermined color space, which is usually represented as an irregular three-dimensional stereoscopic space, can be uniformly divided into clusters (clusters) whose number corresponds to the number of color schemes N. In case, for example, the calculated Cluster center (Cluster Centroids), Cluster center (Cluster media) of each Cluster is determined as the point to which the color matching corresponds in the predetermined color space, then the color matching mc1.. MCN of the number N of color matching is also uniformly determined. Thus, on the one hand, it is ensured that the color differences of the individual color schemes mc1.. MCN remain at a certain distance, since the color schemes are determined uniformly. Thus, a good degree of distinction between color schemes mc1.. MCN automatically generated according to the method of the present disclosure is ensured, and good readability of objects to be produced such as charts and images is ensured when, for example, a user produces the charts and images using the color schemes mc1.. MCN. On the other hand, also since the color schemes mc1.. MCN are uniformly determined, the color differences between the respective color schemes mc1.. MCN, that is, the differences between the hues, the lightness, and the saturations, are kept within a certain range. Thus, it is ensured that the jump between color schemes mc1.. MCNs automatically generated according to the method of the present disclosure is not too large, and the beauty of a production object such as a chart or an image is ensured when, for example, a user produces a chart or an image using the color schemes mc1.. MCN. In summary, the method for automatically generating color matching mc1.. MCN according to the present disclosure can automatically provide a color matching scheme CS including any number of color matching while ensuring readability and aesthetic appearance, the number of color matching N provided is flexible and various in color, and efficiency, automation, and degree of intelligence when any operation related to color matching, such as data visualization processing, appearance design, and the like, is performed are improved.
Furthermore, on the other hand, in the method 100 for automatically generating color matches in a computer according to the present disclosure, the possibility of user customization can be provided, i.e. the number N of color matches mc1.. MCN matching the main color can also be generated according to the number N of color matches desired to be obtained in the color scheme CS, taking into account the main color PC (e.g. product color, brand color, etc. of the product), which may be pre-given, for example, by the user, by another program, etc. That is, according to a specific clustering algorithm used, for example, a point corresponding to the dominant color PC in a predetermined color space is preset as a preset cluster centroid and clustering calculation is performed, and the calculated cluster centroid of each cluster is determined as a point corresponding to the color matching mc1.. MCN in the predetermined color space. Thus, the method 100 according to the present disclosure is able to divide the predetermined color space uniformly, taking into account a main color PC, which may be predefined, for example, by a user, by another program, or the like, resulting in a color match mc1.. MCN of an arbitrary number N of color matches uniformly found from the predetermined color space, which match the main color PC. In other words, the method 100 of automatically generating color matches by a computer according to the present disclosure enables the possibility of providing user customization, thereby further increasing the degree of automation, intelligence, when any operation involving color matching.
FIG. 2 illustrates an additional embodiment of a method 200 for computer automated generation of color matches according to the present disclosure. Steps S210, S220, S230, and S240 in the method 200 for automatically generating color matches by a computer according to another embodiment are the same as steps S110, S120, S130, and S140 in the method 100 for automatically generating color matches by a computer, and thus are not described again for brevity. Here, the method for automatically generating color matching by a computer according to the present disclosure further includes sorting the main colors and the color matching in the color matching scheme to determine a color matching recommendation order for the number of color matching in step S250.
Fig. 3 shows a more detailed embodiment of the ordering of the main colors and color schemes in the color scheme. Steps S310, S320, S330 and S340 in the method 300 for automatically generating color matching by a computer according to a more detailed embodiment are the same as steps S210, S220, S230 and S240 in the method 200 for automatically generating color matching by a computer, and thus are not described again for brevity. Here, the step S350 of sorting the main colors and the color combinations in the color scheme further includes taking the main color as a first color of the color scheme, and sorting the number of color combinations according to the hue of each of the number of color combinations to determine a color combination recommendation order for the number of color combinations.
Thus, in the method 300 for automatically generating color matches by a computer according to the present disclosure, the main color PC and the determined color matches mc1.. MCN are ordered according to hue so that the jump of hue between each adjacent color match mc1.. MCN is not too large, and, in the case where a certain distinction degree of hue is ensured between adjacent color matches, for example, the aesthetic property of a production object when a user uses the color matches in the order of the color match recommended order, for example, filling up production objects such as charts, images, and the like in the order of the color match recommended order, and the aesthetic property when the color scheme CS is displayed on a user interface, for example, are further improved, and thus the efficiency and the degree of automation and intelligence when any operation involving color matches is performed are further improved.
FIG. 4A illustrates an additional embodiment of a method 400 for computer automated generation of color matches according to the present disclosure. Fig. 4B schematically shows the correspondence of the dominant color PC with its standard neighboring color AC and the standard complementary color CC. Fig. 4C schematically illustrates the color matching mc1.. MCN for the number of color matches N after sorting. For clarity, a method 400 for computer-automated generation of color matches in accordance with the present disclosure is collectively described below in conjunction with fig. 4A-4C.
Steps S410, S420, S430 and S440 in the method 400 for automatically generating color matching by a computer according to another embodiment are the same as steps S210, S220, S230 and S240 in the method 200 for automatically generating color matching by a computer, and thus are not described again for brevity. Here, the step S450 of ordering the main colors and color schemes in the color scheme further includes the sub-steps of: in sub-step S451, in the predetermined color space, a standard adjacent color AC of the dominant color PC and a standard complementary color CC of the dominant color are determined; in sub-step S452, for each of the number N of color matches mc1.. MCN, determining at least one of two color differences, wherein the two color differences comprise a color difference DE of the color match from the standard adjacent color AC and a color difference of the color match from the standard complementary color CC; and in sub-step S453, the main color PC is used as the first color of the color scheme, and the number of color matches is sorted according to the at least one color difference.
As shown in fig. 4B, in the case where, for example, the primary color PC is given in advance as blue, then the standard complementary color CC of the primary color PC is orange, and the standard adjacent color AC is cyan. When ordering color pairs mc1.. MCN, to ensure that the leap between each adjacent color pair mc1.. MCN is not too great, the standard adjacent colors AC of the main color PC are preferentially ordered adjacent to the main color PC and the standard complementary colors CC of the main color PC are ordered away from the main color.
Considering that the standard adjacent color AC and the standard complementary color CC of the main color PC may not be included in the color schemes mc1.. MCN of the number N of color schemes, the color difference of each color scheme mc1.. MCN of the number N of color schemes from the standard adjacent color and the standard complementary color may first be determined here. Here, the main color is used as the first color of the color scheme, and as shown in fig. 4C, the color matching mc1.. MCN of the number N of color matches is sorted, for example, in ascending order of the color difference DE of each color matching of the color matching mc1.. MCN with the standard adjacent color AC, so that the color matching mc1.. MCN of the number N of color matches can be sorted without an excessively large jump. Thus, the method 400 of computer automated generation of color matches according to the present disclosure enables the determined number of color matches to be ordered in a transitional, natural and aesthetically pleasing manner with some degree of differentiation between adjacent color matches, further improving the aesthetics of the user when using the color matches MC1.. times MCN in the color matching recommendation order and the aesthetics of the color scheme CS, for example, displayed on a user interface; meanwhile, the method 400 for automatically generating the color matching by the computer according to the disclosure can also suggest that the user uses the determined color matching MC1.
FIG. 5A illustrates an additional embodiment of a method 500 for computer automated generation of color matches according to the present disclosure. FIG. 5B illustrates an exemplary diagram of a method 500 for computer-automated generation of color matches according to the present disclosure. For clarity, a method 500 for computer-automated generation of color matches in accordance with the present disclosure is described below in conjunction with fig. 5A and 5B.
Steps S510, S520, S530 and S540 in the method 500 for automatically generating color matching by a computer according to another embodiment are the same as steps S410, S420, S430 and S440 in the method 400 for automatically generating color matching by a computer, and thus are not described again for brevity. Here, the step S550 of ordering the main colors and color schemes in the color scheme further includes the sub-steps of: in sub-step S554, the color match closest to the standard complementary color among the number of color matches is determined; and in sub-step S555, the color scheme closest to the standard complementary color among the number of color schemes is used as the tail color of the color scheme.
As shown in fig. 5B, the dominant color PC is given here, for example, as blue. As shown in the upper part of fig. 5B, after sorting the color matches mc1.. MCN of the number N of color matches, for example, in an ascending order of the color difference DE of each of the color matches mc1.. MCN with the standard adjacent color AC, it may be determined that the color match MCX of the color match mc1.. MCN of the number N of color matches, which is identified by a dashed circle, is the smallest, i.e., closest, color difference to the standard complementary color CC of the main color PC. Thus, for example, as shown in the lower portion of FIG. 5B, in a method 500 for automatically generating color schemes by a computer according to another embodiment, the color scheme MCX closest to the standard complementary color CC of the main color PC may be taken as the tail color of the color scheme. Here, the concept of using the color scheme MCX closest to the standard complementary color CC as the tail color of the color scheme is based on: when calculating the color difference DE of each of the color schemes mc1.. MCN of the number N of color schemes from the standard adjacent color AC, since the color difference DE depends not only on the difference between hues but also on the difference between saturations and between lightness, there may occur a case where the color scheme MCX closest to the standard complementary color is ordered close to the main color PC. The aesthetics of the ordering of the color matching mc1.. MCN and the uniformity of the transition will thus be destroyed for the number N of color matches. Therefore, in the method 500 for automatically generating color matches by a computer according to the present disclosure, the color match MCX closest to the standard complementary color CC in the color match number N of color matches mc1.. MCN may be further used as the tail color of the color scheme. Thus, the color matching MCX closest to the standard complementary color CC can be prevented from damaging the aesthetic property of the sequencing of the color matching MCN 1.. MCN of the color matching number N and the uniformity of the transition, and the efficiency of any operation related to color matching by a user and the automation and intelligence degree of automatic color matching are further improved.
FIG. 6 illustrates a further embodiment of a method for computer automated generation of color matches according to the present disclosure. Here, the method for automatically generating color matching by a computer according to the present disclosure further includes a step S670 of including at least one of: displaying the color scheme; and deriving the color scheme, wherein displaying the color scheme further comprises: displaying a palette corresponding to the color scheme, the palette including each color in the color scheme; and displaying the candidate color set of each color in the color scheme.
Thus, in the method for automatically generating color schemes in a computer according to the present disclosure, the color scheme CS can be displayed, for example, on a user interface in the form of a palette corresponding to the color scheme, in order to facilitate the user's use of the color scheme CS, i.e., the number of color schemes determined in the method according to the present disclosure, for example, in the order determined in the method according to the present disclosure. And can also derive the color scheme CS to facilitate use of the color scheme generated according to the present disclosure by another user or another computer program or the like. Thus, the method for automatically generating color matching by a computer according to the present disclosure further improves the efficiency of the user in performing any operation related to color matching and the degree of automation and intelligence of automatic color matching.
FIG. 7A illustrates an additional embodiment of a method 700 for computer automated generation of color matches according to the present disclosure. Fig. 7B shows a candidate color set SC generated according to the data transmission method of the present disclosure. For clarity, a method 700 for computer automated generation of color matches in accordance with the present disclosure is set forth below in conjunction with fig. 7A and 7B.
Here, the method for automatically generating color matching by a computer according to the present disclosure generates a candidate color set for each color C in the color scheme in step S760, that is, the method 700 for automatically generating color matching by a computer according to the present disclosure further includes: in sub-step S761, for each color C in the color scheme (i.e., the main color PC and the number N of color matches mc1.. MCN), determining a number M of colors of the candidate color set SC for that color C; in sub-step S762, based on the hue of the color C, determining a lightest color OC and a darkest color DC of the hue, respectively; and in sub-step S763, generating the color of the number M of colors of the hue as the candidate color set SC based on the lightest color OC of the hue, the color C, and the darkest color DC of the hue.
Thus, in the method 700 for automatically generating color schemes in a computer according to the present disclosure, for each color C in the color scheme, a candidate color set SC can also be generated further based on the lightest color OC of the hue, the color C, and the darkest color DC of the hue. That is, a candidate color set of colors having different lightness is further generated for each color C in the color scheme CS. Also, the number of colors M of the candidate color set SC for that color may be given in advance by the user, by another program, or the like, for example. Therefore, the method for automatically generating the color matching by the computer can provide more color selections according to the customization of the user, and further improves the efficiency in operation and the automation and intelligence degree of automatic color matching.
FIG. 8 illustrates an additional embodiment of a method 800 for computer automated generation of color matches according to the present disclosure. Here, in the method 800 of automatically generating color matches by a computer according to the present disclosure, further comprising in sub-step S862, for each hue of a color C in the color scheme, a level of a brightest color OC of the hue as a highest level, a level of a darkest color DC of the hue as a lowest level, a level of the color C as an intermediate level between the highest level and the lowest level, and sub-step 863 of generating the number of colors of the hue based on the brightest color OC of the hue, the color C, and the darkest color DC of the hue, further comprises: in sub-step 8631, a bezier curve is generated as a tone scale curve of the hue with the highest tone scale, the lowest tone scale, and the intermediate tone scale as control points; and in sub-step 8632, generating the number M of colors for the hue based on the bezier curve.
Thus, in the method 800 of automatically generating color schemes according to the present disclosure, a series of gradations of hue for each color C in the color scheme CS may be used as a candidate color set SC for each color in the color scheme. Here, for the hue of each color C in the color scheme CS, the brightest color of the hue, the color, and the darkest color of the hue are described using a bezier curve as a tone scale curve of the hue C, and the bezier curve is divided according to, for example, the number of colors, so that the candidate color set SC can be generated in a series of tones in which colors are uniformly transitioned.
Further, in a further embodiment of the method of computer automatic generation of color matching according to the present disclosure, the predetermined color space is an international commission on illumination LAB color space in which each color C in the color scheme CS is converted into a red, green and blue color space by color space conversion for its hue, and the bezier curve is generated as a gradation curve with the highest gradation, the lowest gradation, and the intermediate gradation as control points for its hue in the red, green and blue color space; and carrying out color level grading on the color level curves in the red, green and blue color space to obtain the colors with the color quantity M.
Thus, in the method of automatically generating color matching by a computer according to the present disclosure, by converting the highest gradation, the lowest gradation, and the intermediate gradation in the international commission on illumination LAB color space to the red green blue color space and describing them with the bezier curve as a gradation curve, the candidate color set can be further generated with a series of gradations in which colors are uniformly transitioned, according to experiments.
FIG. 9 illustrates an additional embodiment of a method 900 for computer automated generation of color matches according to the present disclosure. Here, the method 900 for automatically generating color schemes by a computer according to the present disclosure further includes obtaining a color scheme style in step S910', and determining the predetermined color space based on the color scheme style.
Thus, in the method for automatically generating color matches in a computer according to the present disclosure, color matching styles such as bright styles and dark styles may also be obtained, for example, via a color matching style entry on a user interface, and based on the color matching styles, the predetermined color space may be preprocessed to remove color portions of the predetermined color space that do not conform to the color matching styles, i.e., in the case of obtaining a color matching style of a bright style, for example, the predetermined color space may be preprocessed to remove color portions of the predetermined color space that do not conform to the color matching styles. That is, for example, in the case where the obtained color matching style is a bright style, the color portion of the predetermined color space having lower lightness is removed. And in the case that the obtained color matching style is a dark style, removing the color part with higher brightness in the preset color space. Thus, the possibility of user customization according to the user requirements is further provided, and the automation and intelligence degree of any operation related to color matching is further improved.
FIG. 10 illustrates an additional embodiment of a method 1000 of computer-automated generation of color matches according to the present disclosure. Here, the step S1030 of clustering based on a predetermined color space to obtain clusters corresponding to the number of color matches further includes: in sub-step S1031, pre-grading the predetermined color space based on the color matching style to obtain a predetermined number of color sub-spaces; and in sub-step S1032, obtaining a cluster corresponding to the color matching number based on the number relation between the color matching number and the predetermined series.
Thus, in the method 1000 for automatically generating color schemes by a computer according to the present disclosure, the predetermined color space can be pre-graded to obtain a predetermined number of color sub-spaces according to a color scheme type or the like that is generally used by a user in a specific color scheme, for example. By taking into account the number relation of the number of color matches to the predetermined number of stages, which is given by the user for example, a more uniform division of the color space can be achieved. Therefore, the method for automatically generating the color matching by the computer automatically ensures the readability of the color matching and further automatically ensures the aesthetic property of the color matching, thereby improving the efficiency and the automation and intelligence degree of any operation related to the color matching.
FIG. 11 illustrates a further embodiment of a method for computer automated generation of color matches according to the present disclosure. Here, the sub-step S1032 of deriving a cluster corresponding to the number of color matches based on the number relationship between the number of color matches and the predetermined number of series further includes: in sub-step S10321, it is determined whether the number of color matches is less than or equal to a predetermined number of levels. When the number of color matches is less than or equal to the predetermined number of stages, in sub-step S10322, selecting the color sub-spaces of the number of color matches from the color sub-spaces of the predetermined number of stages, and clustering the color sub-spaces of the number of color matches to obtain clusters corresponding to the number of color matches; and in the event that the number of color matches is greater than the predetermined number of levels, then in sub-step S10323, the predetermined color space is clustered to obtain a cluster corresponding to the number of color matches.
Thus, in the method of automatically generating color matches by a computer according to the present disclosure, in a case where the number of color matches is less than or equal to the predetermined number of stages, the color sub-spaces of the number of color matches are selected from the color sub-spaces of the predetermined number of stages, respectively, ensuring that a plurality of color matches are not determined from the same color sub-space. Therefore, the color space can be divided more uniformly, and the color matching readability is automatically ensured, and meanwhile, the aesthetic property of color matching is further automatically ensured.
Further, in a further embodiment of the method of computer automated generation of color matches according to the present disclosure, the clustering calculations are k-means clustering calculations and the color space is an international commission on illumination LAB color space.
Thus, in a method of automatically generating color matches by a computer according to the present disclosure, k-means clustering is performed based on a predetermined color space, for example, according to the number of color matches and the main color. Here, a main color, which is predetermined, for example, by a user, by another program, or the like, is used as an initially selected Cluster center of mass (Cluster centers), and, for example, in the case where the number of color matches is less than or equal to the predetermined number of stages, the color sub-spaces of the number of color matches are selected from the color sub-spaces of the predetermined number of stages, respectively, and k-means clustering is performed on the color sub-spaces of the number of color matches, respectively, to determine the calculated Cluster center of mass of each Cluster as a point corresponding to a color match in the predetermined color space; and performing k-means clustering on a predetermined color space of an International Lighting Commission LAB color space representing an irregular three-dimensional solid, for example, in a case where the number of color schemes is greater than the predetermined number of stages, to uniformly divide the predetermined color space into clusters whose number corresponds to the number of color schemes and to determine a calculated cluster centroid of each cluster as a point corresponding to a color scheme in the predetermined color space. Therefore, the method for automatically generating the color matching by the computer can automatically provide the color matching scheme containing any color matching number under the condition of ensuring readability and aesthetic property, the provided color matching number is flexible and colors are various, and the efficiency, automation and intelligentization degrees when any operation related to the color matching, such as data visualization processing, appearance design and the like are carried out are improved.
It is also conceivable here to use other kinds of clustering calculations, for example k-medoids clustering. For example, in the case of using k-Medoids clustering, a main color, which is predetermined, for example, by a user, by another program, or the like, is used as an initially selected Cluster center (Cluster media), and the calculated Cluster center of each Cluster is determined as the point to which the color scheme corresponds in the predetermined color space. Therefore, the method for automatically generating the color matching by the computer can automatically provide the color matching scheme containing any color matching number under the condition of ensuring readability and aesthetic property, and improves the efficiency and the degree of automation and intelligence when any operation related to color matching is carried out.
In summary, in one aspect, the method for automatically generating color matching by a computer according to the present disclosure provides the possibility of user customization, and can automatically provide a color matching scheme containing any number of color matching according to the user customization under the condition of ensuring readability and aesthetic property; on the other hand, the method for automatically generating the color matching by the computer according to the present disclosure provides a flexible number of colors and a variety of colors, and can provide suggestions for users to use the color matching, thereby improving efficiency, automation, and intelligence when any operation related to the color matching, such as data visualization processing, appearance design, and the like, is performed.
A second aspect of the present disclosure is directed to a method for computer automated generation of color matches. FIG. 12 illustrates one embodiment of a method 1200 of computer-automatically generating color matches according to the present disclosure. Here, the displayed palette and candidate color set are shown in fig. 7B. A method 1200 for computer automated generation of color matches in accordance with the present disclosure is set forth below in conjunction with fig. 7B.
As shown in fig. 12, a method of automatically generating color matching by a computer according to the present disclosure includes: in step S1210, a main color for a color scheme to be generated and a number of color schemes in the color scheme are obtained, wherein the main color of the color scheme indicates a reference color of the color scheme; in step S1220, determining a color scheme of the number of color schemes in a predetermined color space according to the number of color schemes, wherein the color scheme includes the main color and includes at least a portion of the number of color schemes; in step S1230, a palette corresponding to the color scheme is displayed, the palette including each color in the color scheme, and a set of candidate colors for each color in the color scheme is displayed.
Thus, in the method of automatically generating color matching by a computer according to the present disclosure, a user can input a main color PC and the number of color matching N for user customization, for example, according to a product color of his product, a subject color of a design object, and the like; and can automatically generate the color matching MC1 … MCN of the color matching number N with the main color according to the customization of the user, and for example, display the color plate corresponding to the color matching scheme and the candidate color set SC of each color in the color matching scheme for the user, so as to facilitate the use of the user when performing data visualization processing, appearance design, UI design, webpage design and other operations. This improves the efficiency, automation, and degree of intelligence when any operation involving color matching, for example, an operation such as data visualization processing and appearance design, is performed.
According to further embodiments of the computer automated color matching method 1200 of the present disclosure, the computer automated color matching method 1200 further comprises a step S1240 of sorting the main colors PC and the color matching MC1 … MCN in the color scheme to determine a color matching recommendation order for the number of color matches in step S1240 of sorting the main colors PC and the color matching MC1 … MCN in the color scheme, comprising: with the main color PC as a first color of the color scheme, and according to the hue of each color match in the N-number of color matches MC1 … MCN, sorting the N-number of color matches MC1 … MCN, or determining a standard adjacent color of the main color PC and a standard complementary color of the main color in the predetermined color space; for each of the N number of color matches MC1 … MCN, determining at least one of two color differences, wherein the two color differences include a color difference of the color match from the standard adjacent color and a color difference of the color match from the standard complementary color; and taking the main color PC as a first color of the color scheme, and sorting the color matching MC1 … MCN of the color matching number N according to the at least one color difference, wherein the color plates corresponding to the color scheme CS are displayed according to the determined color matching recommendation sequence. Here, the step S1240 of sorting the main colors and color schemes in the color scheme is described with reference to the step S450 in fig. 4A, and is not repeated herein for brevity.
Thus, in the method 1200 of automatically generating color schemes in accordance with the present disclosure, the color schemes MC1 … MCN of the determined number N of color schemes can be sorted in a transitional natural and aesthetically pleasing manner with some degree of distinction between adjacent color schemes, further improving the aesthetics of the user when using the color schemes MC1 … MCN in the color scheme recommendation order and the aesthetics of the user when displaying the color scheme CS, for example, on a user interface; meanwhile, as the color plates corresponding to the color scheme CS are displayed according to the determined color matching recommended sequence, the user can conveniently ensure the attractiveness and the clarity of the operation such as data visualization processing, appearance design, UI design, webpage design and the like by referring to the sequence of the color matching MC1 … MCN in the color plates and using the determined color matching. Therefore, the efficiency of the user in any operation related to color matching and the automation and intelligence degree of automatic color matching are further improved, and the design cost in manual color matching is obviously reduced.
In accordance with further embodiments of the computer-automated method 1200 of generating color schemes according to the present disclosure, wherein determining the color scheme MC1 … MCN for the number N of color schemes in a predetermined color space comprises: in step S1220 of determining the number N of color-matching MC1 … MCN, clustering is performed in the predetermined color space to obtain a cluster corresponding to the number N of color-matching, and the number N of color-matching MC1 … MCN is determined based on the cluster corresponding to the number N of color-matching.
Thus, in the method 1200 for automatically generating color matching by a computer according to the present disclosure, by clustering in the predetermined color space, the predetermined color space can be uniformly divided into clusters (clusters) whose number corresponds to the number N of color matching in a case where the predetermined color space is generally represented as an irregular three-dimensional stereoscopic space. Here, for example, by determining the calculated Cluster center (Cluster centers) and the Cluster center (Cluster media) of each Cluster as the corresponding point of the color scheme in the predetermined color space, the color scheme MC1 … MCN of the number N of color schemes that are uniformly distributed in the predetermined color space with sufficient color difference therebetween to ensure clarity and without jumping therebetween being too large to ensure aesthetics can be obtained. In other words, the method 1200 for automatically generating color schemes by a computer according to the present disclosure can automatically provide color schemes while ensuring readability and aesthetic appearance, and improves efficiency and degree of automation and intelligence when any operation related to color schemes, such as data visualization processing, appearance design, and the like, is performed.
According to further embodiments of the method 1200 of computer automatically generating color matches of the present disclosure, the method of computer automatically generating color matches further comprises: in step S1250, for each color C in the color scheme, obtaining the number M of colors of the candidate color set SC for the color C, and in step S1260, respectively determining the lightest color OC and the darkest color DC of the hue C based on the hue of the color C; and generating the color C of the number M of colors of the hue as the candidate color set SC based on the lightest color OC of the hue, the color C, and the darkest color DC of the hue in step S1270.
Thus, in the method 1200 of automatically generating color schemes according to the present disclosure, a candidate color set SC of colors having different lightness is further generated for each color in the color scheme CS, as described above. Also, the number of colors M of the candidate color set SC for that color may be given in advance by the user, by another program, or the like, for example. Thus, the method 1200 for automatically generating color matching by a computer according to the present disclosure can provide more color selections according to the user customization, further improving the efficiency in operation and the degree of automation and intelligence of automatic color matching.
Furthermore, a third aspect of the present disclosure relates to a computer program product comprising a computer program or instructions which, when executed by a processor, implement the steps of the computer-automated color matching method described above for automatically generating a color matching scheme. For the sake of brevity, further details of the computer program product according to the present disclosure are not described herein above with reference to the method for automatically generating color schemes by a computer according to the present disclosure.
A fourth aspect of the present disclosure relates to an automatic color matching generation apparatus 1300. Fig. 13 illustrates, in a block diagram, an automatic color matching generation apparatus 1300 according to the present disclosure.
Here, according to an embodiment of the color matching automatic generation apparatus 1300 of the present disclosure, the color matching automatic generation apparatus 1300 includes: an interface module 1301 configured to obtain a main color for a color scheme to be generated and obtain a number of color schemes in the color scheme, wherein the main color of a color scheme indicates a reference color of the color scheme; and a color scheme generation module 1302 configured to perform clustering based on a predetermined color space according to the number of color schemes to obtain a cluster corresponding to the number of color schemes, and determine the number of color schemes of the number of color schemes based on the cluster corresponding to the number of color schemes, wherein the color scheme includes the main color and includes at least a portion of the number of color schemes.
Here, in correspondence with the method of computer automatic generation of color matches according to the present disclosure, in one aspect, the automatic color match generation apparatus 1300 according to the present disclosure is able to provide the user with the possibility of user customization, i.e., for example, of entering a main color for the color scheme to be generated and the number of color matches in said color scheme, by means of the interface module 1301. On the other hand, since the color matching generation module 1302 uniformly divides the color space by clustering, the color space can be uniformly divided based on any number of color matching numbers, thereby ensuring readability and aesthetic property of the determined color matching of the color matching numbers. In summary, since the automatic color matching generation apparatus can automatically determine the number of colors to be matched in accordance with any number of color matching numbers and main colors, which are preset by, for example, a user, by another program, or the like, while ensuring readability and aesthetic appearance, the efficiency and the degree of automation and intelligence when the user performs any operation involving color matching, such as data visualization processing, appearance design, or the like, are improved.
In addition to the interface module 1301 and the color scheme generation module 1302, the automatic color scheme generation apparatus 1300 according to the present disclosure further includes a color scheme ranking module 1303 configured to rank the main colors and the color schemes in the color scheme to determine a color scheme recommendation order for the number of color schemes, including: taking the main color as a first color of the color scheme, and sequencing the color matching of the color matching number according to the hue of each color matching in the color matching of the color matching number, or determining a standard adjacent color of the main color and a standard complementary color of the main color in the preset color space; for each of the number of color matches, determining at least one of two color differences, wherein the two color differences include a color difference of the color match from a color adjacent to the standard and a color difference of the color match from a color complementary to the standard; and taking the main color as a first color of the color scheme, and sequencing the color matching of the color matching quantity according to the at least one color difference.
Thus, the automatic color matching generation apparatus according to the present disclosure can sort the determined number of color matches by means of the color matching sort module. Here, specific details of the automatic color matching generation apparatus 1300 according to the present disclosure are described above with reference to fig. 4A to 4C, and are not described again for brevity.
According to further embodiments of the automatic color matching generation apparatus 1300 of the present disclosure, herein, in addition to the interface module 1301, the color matching generation module 1302, and the color matching ranking module 1303, the automatic color matching generation apparatus 1300 of the present disclosure further includes a display module 1304 configured to display a palette corresponding to the color scheme, the palette including each color in the color scheme, and displaying a candidate color set for each color in the color scheme.
Thus, an automatic color scheme generation apparatus according to the present disclosure is able to display the color schemes on a display module 1304, such as a user interface, and is also able to derive the color schemes to facilitate user access to the color schemes. Here, specific details of the automatic color matching generation apparatus according to the present disclosure are described above with reference to fig. 6, and are not described herein again for brevity.
According to another embodiment of the automatic color matching generation apparatus 1300 of the present disclosure, here, the interface module 1301 is further configured to obtain the number of colors of the candidate color set for the color, and the automatic color matching generation apparatus 1300 further includes a candidate color set generation module 1305 configured to determine the lightest color and the darkest color of the hue, respectively, based on the hue of the color; and generating the colors of the number of colors of the hue as the candidate color set based on the brightest color of the hue, the color, and the darkest color of the hue.
Thus, the automatic color matching generation apparatus 1300 according to the present disclosure can provide more color selections, and further improve the efficiency in operation and the degree of automation and intelligence of automatic color matching. Here, specific details of the automatic color matching generation apparatus according to the present disclosure are described above with reference to fig. 7A and 7B, and are not described again for brevity.
According to another embodiment of the automatic color matching generation apparatus 1300 of the present disclosure, here, the candidate color set generation module 1305 is further configured to, for each hue of each color in the color scheme, set a level of a brightest color of the hue as a highest level, set a level of a darkest color of the hue as a lowest level, and set a level of the color as an intermediate level between the highest level and the lowest level, wherein generating the number of colors of the hue based on the brightest color of the hue, the color, and the darkest color of the hue further comprises: generating a Bezier curve as a color level curve of the hue by taking the highest color level, the lowest color level and the middle color level as control points; and generating the number of colors of the hue based on the bezier curve.
Thus, the automatic color matching generation apparatus according to the present disclosure can describe the brightest color of the hue, the color, and the darkest color of the hue using bezier curves as gradation curves of the hue, and divide the bezier curves according to, for example, the number of colors, thereby realizing generation of the candidate color set in a series of gradations in which colors are uniformly transitioned. Here, specific details of the automatic color matching generation apparatus according to the present disclosure are described above with reference to fig. 8, and are not described herein again for brevity.
In summary, according to the method for automatically generating color matching by a computer according to the present disclosure, the automatic color matching generation apparatus according to the present disclosure can automatically provide a color matching scheme including an arbitrary number of color matches according to user customization while ensuring readability and aesthetic property, and the number of color matches provided is flexible and colors are various, and it is possible to provide suggestions for users to use color matching, thereby improving efficiency and degree of automation and intelligence when performing arbitrary operations related to color matching, such as data visualization processing and appearance design.
A fifth aspect of the present disclosure relates to an automatic color matching generation apparatus. An automatic color matching generation apparatus 1400 according to the present disclosure is schematically illustrated in a block diagram in fig. 14. Wherein, the automatic color matching generation device 1400 comprises: input module 1401, processor 1402, and memory 1403.
As shown in fig. 7B, the input module 1401 is configured to input a main color PC of a color scheme to be generated, a number N of colors in the color scheme, and a number M of colors for a candidate color set, where the main color PC of the color scheme indicates a reference color of the color scheme.
Wherein the memory 1403 is configured to store computer programs or instructions for implementing the steps in the methods described in fig. 1A to 12. The computer program or instructions, when executed by the processor 1402, cause the processor 1402 to be configured to perform the steps of the methods described in fig. 1A-12, generating the color scheme. Here, the processor 1402 may be configured as a device capable of executing each step in the method described in fig. 1A to fig. 12, including but not limited to an FPGA, a DSP, an ARM single chip, a CPU, and the like, which is not described again for brevity, and further details may refer to the explanation given above for fig. 1A to fig. 12.
In summary, in one aspect, the automatic color matching generation apparatus according to the present disclosure has a user-customized entrance, which can automatically provide a color matching scheme including any number of color matches according to the user-customization while ensuring readability and aesthetic appearance; on the other hand, the automatic color matching generation device according to the present disclosure provides a flexible number of colors and a variety of colors, and can provide suggestions to the user for using the colors, thereby improving the efficiency, automation, and intelligence when performing any operation related to the color matching, for example, data visualization processing, appearance design, and the like.
The exemplary embodiments of the present disclosure described in detail above are merely illustrative, and not restrictive. It will be appreciated by those skilled in the art that various modifications and combinations of these embodiments or features thereof may be made without departing from the principles and spirit of the disclosure, and that such modifications are intended to be within the scope of the disclosure.

Claims (17)

1. A method for computer automated generation of color matches, comprising:
obtaining a main color for a color scheme to be generated, wherein the main color of the color scheme indicates a reference color of the color scheme;
obtaining the number of color matching in the color matching scheme;
clustering based on a preset color space according to the color matching number and the main colors to obtain clusters corresponding to the color matching number; and
determining a color match for the number of color matches based on the cluster corresponding to the number of color matches,
wherein the color scheme includes the main color and includes at least a portion of the number of color schemes.
2. The method of claim 1, further comprising:
ordering the dominant colors and color matches in the color scheme, wherein ordering the dominant colors and color matches in the color scheme comprises:
and taking the main color as the first color of the color scheme, and sequencing the color matching of the number of color matches according to the hue of each color match in the number of color matches to determine a color matching recommendation sequence for the number of color matches.
3. The method of claim 1, further comprising:
ordering the dominant colors and color matches in the color scheme, wherein ordering the dominant colors and color matches in the color scheme comprises:
determining a standard neighboring color of a dominant color and a standard complementary color of the dominant color in the predetermined color space;
for each of the number of color matches, determining at least one of two color differences, wherein the two color differences include a color difference of the color match from a color adjacent to the standard and a color difference of the color match from a color complementary to the standard; and
and taking the main color as a first color of the color scheme, and sequencing the color matching of the color matching quantity according to the at least one color difference so as to determine a color matching recommendation sequence of the color matching quantity.
4. The method of claim 3, wherein ordering the number of color matches further comprises:
determining a color match of the number of color matches that is closest to the standard complementary color; and
and utilizing the color matching which is closest to the standard complementary color in the color matching of the color matching number as the tail color of the color matching scheme.
5. The method of any of claims 1 to 4, further comprising at least one of:
displaying the color scheme; and deriving the color scheme from the color space,
wherein displaying the color scheme further comprises:
displaying a palette corresponding to the color scheme, the palette including each color in the color scheme;
and displaying the candidate color set of each color in the color scheme.
6. The method of claim 5, further comprising: for each color in the color scheme,
determining a number of colors of a set of candidate colors for the color;
respectively determining the lightest color and the darkest color of the hue based on the hue of the color;
and generating the colors of the number of colors of the hue as the candidate color set based on the brightest color of the hue, the color and the darkest color of the hue.
7. The method of claim 6, wherein for each color in the color scheme, the color rank of the lightest color of the hue is the highest color rank, the color rank of the darkest color of the hue is the lowest color rank, the color rank of the color is an intermediate color rank between the highest color rank and the lowest color rank,
wherein generating the number of colors of the hue based on the lightest color of the hue, the color, and the darkest color of the hue further comprises:
generating a Bezier curve as a color level curve of the hue by taking the highest color level, the lowest color level and the middle color level as control points; and
generating the number of colors of the hue based on the Bezier curve.
8. The method of claim 7, wherein the predetermined color space is an International Lighting Commission (LAB) color space, wherein each color in the color scheme is converted to a red, green, and blue color space by color space conversion, and in the red, green, and blue color space, the Bezier curve is generated as a tone scale curve with the highest tone scale, the lowest tone scale, and the intermediate tone scale as control points for a hue of each color in the color scheme; and gradation curves in the red, green and blue color spaces to obtain the colors of the color number.
9. The method of any of claims 1 to 4, further comprising:
obtaining a color matching style; and
and preprocessing the preset color space based on the color matching style so as to remove the color part which does not accord with the color matching style in the preset color space.
10. The method of claim 9, wherein clustering based on a predetermined color space to obtain clusters corresponding to the number of color matches, further comprises:
pre-grading the preset color space based on the color matching style to obtain a preset number of color subspaces; and
and obtaining clusters corresponding to the color matching numbers based on the number relation between the color matching numbers and the preset series.
11. The method of claim 10, wherein deriving the cluster corresponding to the number of color matches based on a quantitative relationship between the number of color matches and the predetermined number of series further comprises:
under the condition that the color matching number is less than or equal to the preset number, respectively selecting the color sub-spaces of the color matching number from the color sub-spaces of the preset number, and respectively clustering the color sub-spaces of the color matching number to obtain clusters corresponding to the color matching number; and
and under the condition that the color matching number is greater than the preset series, clustering a preset color space to obtain a cluster corresponding to the color matching number.
12. A method for computer automated generation of color matches, comprising:
obtaining a main color for a color scheme to be generated and obtaining a number of color schemes in the color scheme, wherein the main color of a color scheme indicates a reference color of the color scheme;
determining a color scheme for the number of color schemes in a predetermined color space based on the number of color schemes, wherein the color scheme includes the main color and includes at least a portion of the number of color schemes;
displaying a palette corresponding to the color scheme, the palette including each color in the color scheme, an
And displaying the candidate color set of each color in the color scheme.
13. The method of claim 12, further comprising:
ordering the main colors and color schemes in the color scheme,
wherein sorting the main colors and color matches in the color scheme to determine a color matching recommended order for the number of color matches comprises:
the main color is used as the first color of the color scheme, and the color matching of the color matching number is sorted according to the hue of each color matching in the color matching of the color matching number, or
Determining a standard neighboring color of a dominant color and a standard complementary color of the dominant color in the predetermined color space; for each of the number of color matches, determining at least one of two color differences, wherein the two color differences include a color difference of the color match from a color adjacent to the standard and a color difference of the color match from a color complementary to the standard; and ordering the number of color matches by the at least one color difference with the main color as a first color of the color scheme,
wherein the color palette corresponding to the color scheme is displayed in the determined color matching recommendation order.
14. The method of claim 12, wherein determining the number of color matches in a predetermined color space comprises:
clustering in the preset color space to obtain clusters corresponding to the color matching number; and
determining the number of colors matched based on the cluster corresponding to the number of colors matched.
15. The method of claim 12, further comprising: for each color in the color scheme,
the number of colors of the candidate color set for that color is obtained,
respectively determining the lightest color and the darkest color of the hue based on the hue of the color; and
and generating the colors of the number of colors of the hue as the candidate color set based on the brightest color of the hue, the color and the darkest color of the hue.
16. A computer program product comprising a computer program or instructions which, when executed by a processor, implement the steps of the method according to any one of claims 1 to 15 for automatically generating a color scheme.
17. An automatic color matching generation apparatus comprising:
an input module for inputting a main color of a color scheme to be generated, a number of color schemes in the color scheme, and a number of colors for a candidate set of colors, wherein the main color of a color scheme indicates a base color of the color scheme,
a processor for processing the received data, wherein the processor is used for processing the received data,
a memory storing a computer program or instructions which, when executed by the processor, implement the steps of the method according to any one of claims 1 to 15 to automatically generate the color scheme.
CN202111171894.7A 2021-10-08 2021-10-08 Method for automatically generating color matching by computer and automatic color matching generation device Pending CN114332264A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202111171894.7A CN114332264A (en) 2021-10-08 2021-10-08 Method for automatically generating color matching by computer and automatic color matching generation device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202111171894.7A CN114332264A (en) 2021-10-08 2021-10-08 Method for automatically generating color matching by computer and automatic color matching generation device

Publications (1)

Publication Number Publication Date
CN114332264A true CN114332264A (en) 2022-04-12

Family

ID=81044603

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202111171894.7A Pending CN114332264A (en) 2021-10-08 2021-10-08 Method for automatically generating color matching by computer and automatic color matching generation device

Country Status (1)

Country Link
CN (1) CN114332264A (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN117315172A (en) * 2023-09-22 2023-12-29 鲸数科技(北京)有限公司 Map page configuration method, map page configuration device, electronic equipment and computer readable medium

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN117315172A (en) * 2023-09-22 2023-12-29 鲸数科技(北京)有限公司 Map page configuration method, map page configuration device, electronic equipment and computer readable medium
CN117315172B (en) * 2023-09-22 2024-04-12 鲸数科技(北京)有限公司 Map page configuration method, map page configuration device, electronic equipment and computer readable medium

Similar Documents

Publication Publication Date Title
JP2022532040A (en) Machine image color extraction and machine image construction using the extracted colors
Huang et al. Image recolorization for the colorblind
Mittelstädt et al. Colorcat: Guided design of colormaps for combined analysis tasks
CN112287958A (en) Classifying colors of objects in digital images
CN108052765A (en) Scheme of colour automatic generation method and device based on personality impression
KR102405613B1 (en) Apparatus and method for recommending color combination based on analysis of space image
CN114332264A (en) Method for automatically generating color matching by computer and automatic color matching generation device
CN104952067A (en) Method for segmenting color images on basis of NSGA-II (non-dominated sorting genetic algorithm-II) evolution algorithms
CN114638026A (en) Block dividing method and device in shoe body design process
Murray et al. Towards automatic concept transfer
JP6052277B2 (en) Color arrangement determination device, color arrangement determination method, and color arrangement determination program
CN113139557A (en) Feature extraction method based on two-dimensional multivariate empirical mode decomposition
CN102930289B (en) Method for generating mosaic picture
CN113342291B (en) Lamp effect control method and lamp effect control system
CN113743109B (en) Product intelligent color matching design system based on user emotion
Solli et al. Color harmony for image indexing
CN114611170B (en) Shoe body generation method and device based on associated data
Birtolo et al. Evolving colors in user interfaces by interactive genetic algorithm
Troiano et al. Interactive Genetic Algorithm for choosing suitable colors in User Interface
Machado et al. Learning to colour greyscale images
Yamashita et al. A color scheme method by interactive evolutionary computing considering contrast of luminance and design property
CN115034841B (en) Intelligent shoe color matching method and device based on block positions and areas
CN117689768B (en) Natural scene driven garment template coloring method and system
CN115024561B (en) Automatic adjustment method and device for associated color matching in shoe body design process
Yamashita et al. An interactive method for color scheme considering difference of luminance

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