Method, device and computer-readable storage medium for color matching or color matching assistance
The computer-implemented color matching method, combined with the K-means algorithm and machine learning judgment model, solves the problem of insufficient aesthetics and insufficient number of rules for picture color matching in the existing technology, provides a variety of beautiful color schemes, and improves design efficiency.
Patent Information
- Application Number
- CN201910089902.X
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2019-01-18
- Publication Date
- 2024-09-06
- Estimated Expiration
- 2039-01-18
AI Technical Summary
Existing automatic color matching methods are difficult to achieve beautiful image color matching in the mobile and Internet fields, and the number of color matching rules is limited, requiring the participation of a large number of professional designers, and existing methods often come at the expense of aesthetics.
Through the computer-implemented color matching method, the color matching rules and reference color matching are obtained, the K-means algorithm is used to extract the reference color, the hue distribution is derived and matched, the reference color matching is expanded, the available reference color matching is generated, and the machine learning judgment model is used to determine the feasibility of the pending color matching. Recommended.
It realizes a variety of beautiful color schemes, enriches the color matching options of pictures, provides automated, batch and intelligent color matching solutions for non-professional designers, and improves the efficiency of web design and APP application interface design.
Smart Images

Figure CN110163217B
Abstract
Description
Technical Field
[0001] The present application relates to color matching, and more particularly, to a method, an apparatus, and a computer-readable storage medium for color matching or color matching assistance. Background Art
[0002] To obtain beautiful pictures, the color matching of pictures often requires the direct participation of professional designers, which is time-consuming and labor-intensive. Especially in the mobile and Internet fields, for example, pictures containing subjects, backgrounds, advertising copy, and / or publicity, which appear in large quantities and are frequently updated in mobile APP software and website pages, will require the participation of a large number of professional designers, which is often unrealistic. Existing automatic color matching methods often sacrifice aesthetics, and the number of color matching rules is limited. Summary of the invention
[0003] Embodiments of the present invention provide a method, an apparatus, and a computer-readable storage medium for color matching or color matching assistance, which at least partially solve the above-mentioned problems.
[0004] According to a first aspect of the present invention, there is provided a computer-implemented color matching method, comprising: obtaining at least one color matching rule, wherein each color matching rule comprises an arrangement of N colors represented in a hue-based color space, each color comprising at least a hue value and a value of at least one other component in the color space, wherein N is a positive integer greater than 1; obtaining at least one reference color matching, wherein each reference color matching comprises an arrangement of N reference colors, and at least the hue value of each reference color can be obtained; determining whether the at least one reference color matching matches the at least one color matching rule; in response to determining that the at least one reference color matching matches the at least one color matching rule, expanding each matched reference color matching, comprising: specifying the value of at least one component other than the hue in the color space of each reference color in the matched reference color matching as the value of the corresponding component of the corresponding color in the matched corresponding color matching rule.
[0005] In one embodiment, obtaining at least one reference color scheme further comprises: obtaining at least one color reference picture, wherein each color reference picture has a number of colors not less than N; extracting N colors with the largest components in each color reference picture as the N reference colors, and generating permutation, as The N reference colors are converted to obtain the value of the hue of each reference color.
[0006] In one embodiment, the extraction is based on a K-means algorithm.
[0007] In one embodiment, determining whether the at least one reference color match matches the at least one color match rule further includes: deriving the at least one color match rule based on the hue distribution of the at least one color match rule, which includes: rotating the hue values of N colors in each of the at least one color match rule by one or more degrees zero, one, or multiple times, while keeping other components in the color space unchanged, so as not to add or to add at least one or more color match rules; obtaining the error between each reference color of the at least one reference color match and each color match rule in the derived color match rule; , where the error It is defined as: for each reference color matching, the arrangement of the hue values corresponding to the arrangement of the N reference colors included therein { ,j=0, 1, … N-1} and the arrangement of the colors of the i-th color matching rule { , j=0, 1, … N-1}, the sum of the squares of the shortest distances of the corresponding values of the arrangement of the hue values corresponding to the same hue representation, that is:
[0008] ,in , j=0, 1, … N-1, is the hue of the N colors of the i-th color matching rule, where the value of i is a continuous positive integer, the minimum is 1, and the maximum is the number of derived color matching rules; based on all the errors obtained, determine whether the at least one reference color matching matches the derived color matching rule.
[0009] In one embodiment, the color matching method further comprises: determining M minimum errors among all the errors obtained; and for each of the M minimum errors: determining that its associated reference color matching matches its associated color matching rule.
[0010] In one embodiment, the determining of the available reference color combinations further comprises: selecting the expanded reference color combination, and determining the available reference color combination based on the selected expanded reference color combination.
[0011] In one embodiment, the determining of the available reference color combinations further comprises deriving the selected expanded reference color combinations, which comprises, for each reference color combination in the selected expanded reference color combinations: rotating its N hue values in the color space by one or more degrees simultaneously once or multiple times, while keeping other components in the color space unchanged, to derive one or more new reference color combinations; obtaining a selection of a derived reference color combination; and determining the available reference color combination based on the selected derived reference color combination.
[0012] In one embodiment, color matching the target based on the expanded reference color matching further comprises: for the target, based on a mapping between the target and a position in an arrangement of reference colors of the available reference color matching, retrieving a reference color matching whose reference color at the position matches the target, so as to use the reference color matching the target as the color matching of the target.
[0013] In one embodiment, the color matching method further comprises adaptively adjusting the reference color matching that matches the target, so as to use the adjusted reference color matching as the color matching of the target.
[0014] In one embodiment, the color matching method further includes: using the selected derived reference color matching as a recommendable color matching, and using the unselected derived reference color matching as a non-recommended color matching; using the recommendable color matching and the non-recommended color matching to generate a judgment model based on machine learning, and the judgment model is used to judge the recommendability of the pending color matching; using the judgment model to judge the recommendability of the pending color matching.
[0015] In one embodiment, N is 3, and the arrangement of the N reference colors includes an arrangement of a primary color, an auxiliary color, and a contrasting color.
[0016] In one embodiment, the method further includes: determining an available reference color match based on the expanded reference color match; and matching the target with the available reference color match based on the available reference color match.
[0017] According to a second aspect of the present invention, there is provided a computer-implemented auxiliary color matching method, comprising: obtaining a recommendable color matching; obtaining a non-recommended color matching; using the recommendable color matching and the non-recommended color matching to generate a judgment model based on machine learning, wherein the judgment model is used to judge the recommendability of the pending color matching; using the judgment model to judge the recommendability of the pending color matching; wherein: the recommendable color matching, the non-recommended color matching and the pending color matching are all arrangements of N colors, and the obtaining of the recommendable color matching further comprises: obtaining at least one color matching rule, wherein each color matching rule comprises an arrangement of N colors represented in a hue-based color space, and each color comprises at least a hue value and at least a value in the color space; a value of another component, wherein N is a positive integer greater than 1; obtaining at least one reference color scheme, wherein each reference color scheme includes an arrangement of N reference colors, and at least the value of the hue of each reference color can be obtained; determining whether the at least one reference color scheme matches the at least one color matching rule; in response to determining that the at least one reference color scheme matches the at least one color matching rule, expanding each matching reference color scheme, which includes: specifying the value of at least one component other than the hue in the color space of each reference color in the matching reference color scheme as the value of the corresponding component of the corresponding color in the matching corresponding color matching rule; and obtaining the recommended color scheme based on the expanded reference color scheme.
[0018] In one embodiment, obtaining at least one reference color scheme further comprises: obtaining at least one color reference picture, wherein each color reference picture has a number of colors not less than N; extracting N colors with the largest components in each color reference picture as the N reference colors, and generating permutation, as The N reference colors are converted to obtain the value of the hue of each reference color.
[0019] In one embodiment, the extraction is based on a K-means algorithm.
[0020] In one embodiment, determining whether the at least one reference color match matches the at least one color match rule further includes: deriving the at least one color match rule based on the hue distribution of the at least one color match rule, which includes: rotating the hue values of N colors in each of the at least one color match rule by one or more degrees zero, one, or multiple times, while keeping other components in the color space unchanged, so as not to add or to add at least one or more color match rules; obtaining the error between each reference color of the at least one reference color match and each color match rule in the derived color match rule; , wherein the error is defined as: for each reference color matching, the arrangement of the hue values corresponding to the arrangement of the N reference colors included { ,j=0, 1, … N-1} and the arrangement of the colors of the i-th color matching rule { , j=0, 1, … N-1} under the same hue representation, that is:
[0021]
[0022] in , j=0, 1, … N-1, is the hue of the N colors of the i-th color matching rule, where the value of i is a continuous positive integer, the minimum is 1, and the maximum is the number of the derived color matching rules; based on all the errors obtained, determine whether the at least one reference color matching matches the derived color matching rule.
[0023] In one embodiment, the auxiliary color matching method further comprises: determining M minimum errors among all the errors obtained; and for each of the M minimum errors: determining that its associated reference color matching matches its associated color matching rule.
[0024] In one embodiment, the acquiring of the recommendable color combination further comprises: selecting the expanded reference color combination, and acquiring the recommendable color combination based on the selected expanded reference color combination.
[0025] In one embodiment, the obtaining of the recommendable color scheme further includes deriving the selected expanded reference color scheme, which includes, for each reference color scheme in the selected expanded reference color scheme: rotating its N hue values in the color space by one or more degrees simultaneously once or multiple times, while keeping other components in the color space unchanged, to derive one or more new reference color schemes; obtaining a selection of the derived reference color scheme; and obtaining the recommendable color scheme based on the selected derived reference color scheme.
[0026] In one embodiment, the obtaining of the unrecommended color combination further comprises: obtaining the unrecommended color combination based on an unselected derived reference color combination.
[0027] In one embodiment, the obtaining of the unrecommended color combination further comprises: obtaining the unrecommended color combination based on an unselected expanded reference color combination.
[0028] In one embodiment, the auxiliary color matching method further includes matching the color of the target based on the recommended color matching.
[0029] In one embodiment, the recommended color combinations and the unrecommended color combinations are represented in an LCH color space.
[0030] According to a third aspect of the present invention, there is provided a device related to color matching, comprising: a processor; and a memory configured to store computer executable instructions thereon, wherein when the instructions are executed in the processor, the color matching method as described in any one of the first aspect of the present invention and the auxiliary color matching method as described in any one of the second aspect are implemented.
[0031] According to the above embodiment, the available reference color matching is determined by matching the color matching rules and the reference color matching to match the color of the target. There may be multiple determined color matching schemes, that is, there may be multiple preferred color matching schemes for the same target. For example, the same main color can obtain a variety of beautiful auxiliary colors and contrasting colors, which can greatly enrich the color matching of the picture and provide the possibility for personalized production of the picture. Since the color matching rules and the reference color matching are partially or completely derived, for any target, a relatively matching auxiliary color and contrasting color can be obtained, which greatly expands the color matching range compared to color matching based solely on color matching rules. The judgment model obtained according to the above implementation method provides automatic judgment for the aesthetics of the color matching generated by non-professional designers or any color matching rules, which helps to optimize the color matching. Overall, the above embodiment helps the color matching of pictures to move further towards automation, batching and intelligence. Helps to design web pages or APP application interfaces more efficiently. BRIEF DESCRIPTION OF THE DRAWINGS
[0032] In order to more clearly illustrate the technical solutions in the embodiments of the present invention, the drawings required for use in the description of the embodiments will be briefly introduced below. Obviously, the drawings described below are only some embodiments of the present application. For ordinary technicians in this field, other drawings can be obtained based on these drawings without creative work.
[0033] Figure 1 The figure shows the representation of colors in the LCH color space in the prior art.
[0034] Figure 2 A flowchart of a computer-implemented color matching method according to an embodiment of the present invention is illustrated.
[0035] Figure 3 Another flow chart of a computer-implemented color matching method according to an embodiment of the present invention is illustrated.
[0036] Figure 4 The flowchart of the auxiliary color matching method implemented by a computer according to an embodiment of the present invention is illustrated.
[0037] Figure 5 Another flowchart of a computer-implemented auxiliary color matching method according to an embodiment of the present invention is illustrated.
[0038] Figure 6The figure shows a hardware environment diagram related to color matching according to an embodiment of the present invention. DETAILED DESCRIPTION
[0039] In order to make the objectives, technical solutions and advantages of the present application clearer, the implementation methods of the present application will be further described in detail below with reference to the accompanying drawings.
[0040] Figure 1 The diagram shows a method of representing colors in a color space based on hue. Taking the LCH color space as an example, the LCH color space uses L to represent the lightness value; C to represent the saturation value and H to represent the hue angle value. The original basic hues are red, orange, yellow, green, blue and purple, and one or two intermediate colors are inserted between each color, and the head and tail hues are shown. In the order of the spectrum, they are: red, orange, yellow-orange, yellow, yellow-green, green, green-blue, blue-green, blue, blue-purple, and purple. Adding an intermediate color to red-purple, red and purple can produce twelve basic hues to form a hue map. Saturation is the concentration of the color, or the degree of brightness. The brighter the color, the more saturated it is usually considered. Lightness is also called chromaticity, which refers to the lightness and darkness of the color. Different colors have different lightness, and even the same color has different lightness. If the hue is rotated by an angle, only the color deviation is corrected, and L and C are not affected. The LCH color representation method is user-friendly, and users can easily grasp the color from the lightness, saturation and hue of the color based on visual psychology.
[0041] Figure 2 The flowchart of the computer-implemented color matching method according to an embodiment of the present invention is illustrated. The computer-implemented color matching method according to an embodiment of the present invention starts at step 201. Therein, at least one color matching rule is obtained, wherein each color matching rule includes N (N is a positive integer greater than 1) permutations of colors represented in a hue-based color space, and each color includes at least a hue value and a value of at least one other component in the color space.
[0042] Color space is also called color space, color model, and color model. Its purpose is to describe colors in a generally acceptable way under certain standards. Common color spaces include RGB, CIE CMY, HSV, HSI, HSL, LAB, LCH, etc. The representations of various color spaces can usually be converted to each other. For example, RGB can be converted to LCH through a formula, and so on. The color space with "H" in its name is a color space with a hue component, that is, a color space based on hue.
[0043] The color matching rule can be input by a person through a human-machine interface, can be obtained through a network through a network interface, can be obtained locally through access to a local memory, can be converted from representations of other color spaces, etc., and / or a combination of the above or other methods. The present invention is not limited to these acquisition methods. In one example, the color matching rule includes the setting of the primary color, secondary color, and contrasting color of the picture, where N is 3, and the position of the color in the arrangement corresponds to its meaning, such as primary color, secondary color, or contrasting color. For example, set the arrangement {P0, P1, P2} in which P0 represents the primary color, P1 represents the secondary color, and P2 represents the contrasting color. Then an example color arrangement {{L0, C0, 0}} represented in the LCH color space is o}, {L1,C1,90 o}, {L2,C2,180 o}} means that in this example the hue value is 0 o The color is the primary color, and the hue value is 90 o The color is the secondary color, and the hue value is 180 o The color is a contrasting color. The primary color, the secondary color and the contrasting color can be defined by people in the usual sense, for example, the color of the main body in the picture is the primary color, such as the color of the product in the advertising picture, the similar color or similar color of the primary color is the secondary color, such as the color of the product in the advertisement, wherein the similar color refers to the color with the same hue as the primary color, but with different shades of chroma (the color within the 15° angle in the hue diagram), the similar color refers to the color with the same hue as the primary color, and the chroma is relatively obvious (refers to the color with an angle of about 50° with the primary color in the hue diagram), and the contrasting color refers to the color between 120°-180° from the primary color on the hue diagram. Contrast is a physiological phenomenon produced by human visual senses, and is the balancing effect of the retina on color, such as the color that is usually used as a background to set off the product. Of course, the color matching rules in the present invention are not limited to the settings of the primary color, the secondary color and the contrasting color, but can also include the settings of the color with the first largest component, the color with the second largest component...the color with the Nth largest component, and so on.
[0044] In one example, each color described in this step includes at least the value of the hue and the values of all other components in the color space. In another example, each color described in this step includes at least the value of the hue and the values of some of the components in the color space, and the values of the components not included can be obtained and / or specified in other ways, which is not limited in the present invention.
[0045] In step 202, at least one reference color scheme is obtained, wherein each reference color scheme includes an arrangement of N reference colors, and at least the hue value of each reference color can be obtained. The reference color scheme obtained is not limited to being represented by the color space used to represent the color in the color matching rule, and is not even limited to being represented by a hue-based color space, but only requires that the hue value of each reference color can be obtained. For example, if the reference color scheme obtained is an arrangement of reference colors represented by RGB, it can be converted to be represented by a hue-based color space, so as to obtain the hue value of each reference color.
[0046] refer to Figure 3 Steps 2021-2024 provide further details of step 202 under an example. Of course, step 202 is not limited to this acquisition method, and can also be any other suitable method other than the reference picture, or any combination of all suitable methods.
[0047] In step 2021, at least one color reference picture is obtained, wherein the number of colors of each color reference picture is not less than N, that is, greater than the number of colors in the color matching rule. In a specific embodiment, picture A and picture B are obtained from https: / / dribbble.com / .
[0048] In step 2022, the N colors with the largest components in each color reference image are extracted as the N reference colors, and the N reference colors are generated. permutation, as Reference color matching. In one example, it is necessary to extract three colors: primary color, secondary color and contrasting color, that is, N is 3. Then, for each color reference picture, extract the first color with the largest component, the second color with the second largest component and the third color with the third largest component. However, the number of components does not determine its correspondence with the primary color, secondary color and contrasting color of the reference picture, and the setting of the primary color, secondary color and contrasting color of the color reference picture is not the only preferred color matching of these three colors. What can be determined is that these three colors are more suitable to be combined together. Therefore, these three colors are generated There are 6 permutations.
[0049] In one example, extraction is performed based on the K-means algorithm. The general steps of the K-means algorithm are as follows (assuming there are M samples and K cluster centers):
[0050] Step 1: Randomly select K samples from M samples as the initial K cluster centers … , each cluster center corresponds to a cluster set … ;
[0051] Step 2: For a sample , respectively calculate its to cluster center … The Euclidean distance is calculated, and then the sample is placed in the set corresponding to the center with the smallest distance;
[0052] Step 3: Apply step 2 to all samples;
[0053] Step 4: The samples in the K cluster sets are weighted and averaged to form the new K cluster centers;
[0054] Step 6: Clear the samples in the previous K cluster sets;
[0055] Step 7: Return to step 2 and execute it sequentially until the K cluster centers no longer change.
[0056] In combination with the embodiment of the present invention, the specific steps are as follows:
[0057] First, use the k-means algorithm to extract the colors of all pixels. Assume that a picture has M pixels, that is, M samples, and each pixel represents a three-dimensional vector , where i=1,2,…M.
[0058] Then use the k-means algorithm for clustering. Assume that there are K clusters, each cluster center has a vector, and the K cluster centers have a total of K vectors , where k=1,2,…,K. These K three-dimensional vectors can be considered as the main colors of the image.
[0059] Because we need to extract three colors: primary color, secondary color, and contrasting color, the minimum value of K is 3. The final value of K can be determined based on various factors. For example, each image on the https: / / dribbble.com / website has been marked with the number of primary colors T=1,2,...,10 by the image uploader. The final value of K can be the maximum value between 3 and T. After determining the K vectors of the above K cluster centers, sort them according to the number of samples in each cluster set to obtain the three clusters with the largest number of samples. The three RGB vectors of these three cluster centers are used as the extracted primary color, secondary color, and contrasting color.
[0060] Of course, the present invention is not limited to this algorithm, but can also be based on other data mining algorithms.
[0061] In the above specific embodiment, it is assumed that the primary color, secondary color, and contrasting color extracted from picture A are [#ff7c34, #ffc73d, #0076bd], and the primary color, secondary color, and contrasting color extracted from picture B are: [#78b910, #b9d600, #ffd757], where the colors are represented by hexadecimal color code values, for example, #ff7c34 is converted to RGB representation, i.e., RGB (255, 124, 52), and the conversion between these two representations is well known in the art.
[0062] After 6 arrangements of the extracted colors, we get 6 arrangements of the colors extracted from image A: [#ff7c34, #ffc73d, #0076bd], [#ff7c34, #0076bd, #ffc73d], [#ffc73d, #0076bd, #ff7c34],[#ffc73d, #ff7c34, #0076bd], [#0076bd, #ffc73d, #ff7c34], [#0076bd, #ff7c34,#ffc73d]; and 6 arrangements of the colors extracted from image B: [#78b910, #b9d600, #ffd757], [#78b910,#ffd757, #b9d600], [#b9d600, #ffd757, #78b910], [#b9d600, #78b910, #ffd757], [#ffd757, #78b910, #b9d600], [#ffd757, #b9d600, #78b910].
[0063] Generally, it is not possible to directly extract the hue value, so in step 2023, the extracted N reference colors are converted to a hue-based color space, including but not limited to combining Figure 2 The color space used by the colors representing the color matching rule in step 201 described above only needs to obtain the value of the hue of each reference color therein.
[0064] In the above specific embodiment, the color arrangements extracted from the above pictures A and B are respectively converted into the LCH space, and the color arrangements represented only by hue are obtained. The color arrangement A_H of image A, which is only expressed by hue, is: [52.6,84.1, 268.9], [52.6, 268.9, 84.1], [84.1, 268.9, 52.6], [84.1, 52.6, 268.9],[ 268.9,52.6, 84.1] ,[ 268.9, 84.1, 52.6], and the color arrangement B_H of image B, which is only expressed by hue, is: [122.8, 111.1, 89.6], [122.8, 89.6, 111.1], [111.1, 89.6, 122.8], [111.1,122.8, 89.6], [89.6, 122.8, 111.1], [89.6, 111.1, 122.8].
[0065] Now back to Figure 2 In step 203, it is determined whether the at least one reference color matching matches the at least one color matching rule. Figure 3 Steps 2031-2034 provide a further embodiment of step 203. Of course, step 203 is not limited to this method of determining whether a match is made, and may be any other suitable method, or any combination of all suitable methods. The present invention does not limit this.
[0066] In step 2031, the obtained color matching rules are derived based on the hue distribution of the obtained color matching rules. The derivation includes: rotating the hue values of the N colors in each color matching rule simultaneously by one or more degrees zero times (that is, no derivation), one time or multiple times, while keeping other components in the color space unchanged, thereby not deriving or deriving at least one or multiple new color matching rules. The hue distribution includes the average density of the hue distribution and the uniformity of the hue distribution. After derivation, the average density of the hue distribution at each position in the color arrangement may increase significantly, that is, the number of color matching rules may increase significantly (for example, in the case of multiple rotations), and the uniformity of the hue distribution may also increase significantly, that is, the hue distribution may also tend to be uniform (for example, the hues concentrated in a certain angle range are derived from hues in other angle ranges through rotation). In one example, the hue values of the N colors in each color matching rule are simultaneously rotated by 1 o , and rotate 359 times. After derivation, 359 new color combinations are added, that is, 360 color combinations are obtained after derivation, and the number of color matching rules is expanded to 360 times. Of course, if the average density of the color distribution of the obtained color matching rules is large enough and the distribution is uniform enough, for example, each color is evenly distributed in 360o In step 2032, the error between each reference color matching obtained and each color matching rule in the derived color matching rules is obtained. , wherein the error is defined as: for each reference color matching, the arrangement of the hue values corresponding to the arrangement of the N reference colors included { ,j=0, 1, … N-1} and the arrangement of hue values corresponding to the arrangement of colors in the i-th color matching rule { , j=0, 1, … N-1}, of course, the corresponding values are all values under the same hue representation, which makes sense, and the hue representation is usually in the range of [0,360) degrees, as shown in Figure 1 As shown, that is:
[0067] ,in , j=0, 1, … N-1, is the hue of the N colors of the ith color matching rule, where the value of i is a continuous positive integer, the minimum is 1, and the maximum is the number of derived color matching rules.
[0068] Thus, the number of errors associated with each reference color match is the number of derived color match rules. The total number of errors finally obtained is the product of the number of reference color matches obtained and the number of derived color match rules.
[0069] In the above specific embodiment, assuming there are three color matching rules (all expressed in hue) [45, 77, 261], [0, 10, 20], [300, 100, 200], A_H and B_H are matched with these three rules to obtain the error A_H_E between A_H and the rules:
[0070] 0.97999999999999455, 20519.78000000001, 8537.779999999995;
[0071] 21615.379999999999, 17015.78000000001, 8705.78;
[0072] 12543.379999999994, 18275.78000000001, 2405.78;
[0073] 2016.98, 21149.78000000001, 18617.77999999999;
[0074] 12466.580000000002, 14141.78000000001, 4049.7799999999999;
[0075] 24058.58, 14771.78000000001, 10349.7799999999999;
[0076] And the error between B_H and the rule B_H_E:
[0077] 12685.6099999999995, 1431.20999999999994, 18227.21;
[0078] 20253.6099999999993, 1001.2099999999994, 13927.21;
[0079] 22447.21, 533.2099999999991, 16267.21;
[0080] 11936.809999999998, 1197.2099999999999, 22907.210000000003;
[0081] 18128.809999999994, 337.209999999999964, 27207.21;
[0082] 21071.2099999999995, 103.209999999999987, 24867.21.
[0083] In step 2033, based on all the errors calculated above, M minimum errors are determined. Obviously, M is not greater than the product of the number of reference color matching obtained and the number of derived color matching rules. It should be noted that the "derived color matching rules" here should be understood literally, and should include the color matching rules obtained in step 201 and the color matching rules newly generated by deriving them in step 2031.
[0084] At step 2034 , for each of the determined M minimum errors: determine whether the reference color matching associated with the error matches the color matching rule associated with the error.
[0085] In the above specific embodiment, in the above results, only A_H_E has a relatively small value of 0.97999999999999455, and the corresponding A_H: [52.6, 84.1, 268.9], that is, the primary color, auxiliary color, and contrasting color A_H: [#ff7c34, #ffc73d, #0076bd]. Now go back to Figure 2 If it is determined in step 203 that the at least one reference color match matches the at least one color match rule, then in step 204, each matched reference color is expanded, which includes: the value of at least one component of each reference color in the matched reference color match other than the hue in the color space used to represent the color in the color match rule is designated as the value of the corresponding component of the corresponding color in the matched corresponding color match rule. In one example, all components other than the hue in the above color space of each reference color of the reference color match are assigned according to the corresponding components of the corresponding color in the matched corresponding color match rule. In another example, not all components other than the hue are assigned in the above manner, and there is the possibility of assigning values in any other suitable manner. Therefore, the present invention is not limited to this. If no matching relationship is found in step 203, return to step 201 and start again.
[0086] In step 205, based on the expanded reference color matching, an available reference color matching is determined. In one example, for example, in step 2051, further screening is required in consideration of the influence of other components in the hue-based color matching space. By receiving a selection of the expanded reference color matching, the selected expanded reference color matching is obtained and used as an available reference color matching.
[0087] In the above specific embodiment, the primary color, auxiliary color, and contrasting color A_H:[#ff7c34, #ffc73d, #0076bd] are assigned lightness values and chromaticity values of matching color matching rules, and are handed over to a designer for judgment. If the designer thinks it is beautiful, then this set of primary colors, auxiliary colors, and contrasting colors with hue, lightness, and chromaticity values can be used as a reference color matching.
[0088] In another example, for example, step 2052 is performed after step 2051 to derive the selected expanded reference color scheme obtained above, which includes, for each reference color scheme in the selected expanded reference color scheme: rotating N hue values in the color space used to represent the color in the color matching rule simultaneously by one or more degrees one or more times, while keeping other components in the color space unchanged, so as to derive one or more new reference color schemes as available reference color schemes.
[0089] In the above specific example, the rules [#ff7c34, #ffc73d, #0076bd] stored in the library are converted to the LCH space to obtain: primary color [66.46600498979555, 75.2690758675059, 52.655348392152575], auxiliary color [83.15120451792016, 72.41068553641719, 84.1018368759477], contrast color [47.78894352937216, 44.858821196857676, 268.9219771055188], rotate it 24 degrees respectively to get: primary color [66.46600498979555, 75.2690758675059, 76.655348392152575], auxiliary color [83.15120451792016, 72.41068553641719, 108.1018368759477], contrast color [47.78894352937216, 44.858821196857676, 292.9219771055188], then rotate it 48 degrees in the same way, and so on, until it is rotated 360 degrees, we can get multiple derived color matching rules.
[0090] In yet another example, for example, after step 2052, the process proceeds to step 2053 to obtain a selection of a derived reference color match. Note that the derived reference color match here includes one or more derived new reference color matches and the selected expanded reference color match obtained in step 2051. The selected derived reference color match is used as an available reference color match.
[0091] In step 206, the target is matched based on the available reference color scheme obtained in step 205. In one example, this further includes step 2061, wherein for the target, based on the mapping of the target to the position in the arrangement of reference colors of the available reference color scheme, a reference color scheme whose reference color at the position matches the target is retrieved. For example, in the arrangement of reference colors of the available reference color scheme {P0, P1, P2}, P0 represents the primary color, P1 represents the secondary color, and P2 represents the contrasting color, and the target is the primary color, then the target is retrieved at the position P0 of the arrangement of reference colors of the available reference color scheme, and a reference color scheme whose reference color matches the target is found. The match may be a match within an error range, such as a hue matching error of +0.5. o or -0.5 o, thereby avoiding matching failures as much as possible. The matching reference color schemes determined by this step can be one or more, that is, there may be multiple preferred color schemes for the same target. For example, the same main color can be matched with a variety of beautiful auxiliary colors and contrasting colors, which can greatly enrich the color scheme of the picture and provide the possibility for personalized production of pictures.
[0092] In a further example, step 2062 is further included, in which the reference color matching that matches the target is adaptively adjusted. In one example, the adaptive adjustment is performed on the main color of the target, for example, the hue of the main color of the target is 1 o , and the hue of the main color position P0 of the retrieved reference color {P0, P1, P2} matches the main color of the target is 1.2 o , then you need to adjust the hue of all reference colors corresponding to the reference color {P0, P1, P2}, all reduced by 0.2 o , while keeping the values of other components of the color space of the corresponding reference color unchanged. In another example, the adaptive adjustment is made based on other regulations, such as stipulating that contrasting colors should all be dark, but the matched reference color does not match it, then the contrasting color needs to be adjusted to a dark color.
[0093] In a specific example, suppose there are 2 valid rules in the library. Rule 1 (represented in LCH space): primary color [66.46600498979555, 75.2690758675059, 52.655348392152575], secondary color [83.15120451792016, 72.41068553641719, 84.1018368759477], contrasting color [47.78894352937216, 44.858821196857676, 268.9219771055188]. Rule 2 (representation in LCH space): primary color [66.46600498979555, 75.2690758675059, 76.655348392152575], secondary color [83.15120451792016, 72.41068553641719, 108.1018368759477], contrasting color [47.78894352937216, 44.858821196857676, 292.9219771055188]. When the input primary color hue is 50, it is obvious that the H of the primary color of rule 1 is closer to 50 than that of rule 2, and the difference between 50 and 52.655348392152575 is very small, so we will use rule 1 to get the final color: primary color [66.46600498979555, 75.2690758675059,50], auxiliary color [83.15120451792016, 72.41068553641719, 81.44648848379512], contrasting color [47.78894352937216, 44.858821196857676, 266.26662871336623].
[0094] Optionally, in step 207, the available reference color matching obtained in step 205 may be used to generate a judgment model based on machine learning. Among them, the determined available reference color matching may be used as a recommended color matching, and the reference color matching that is not determined as an available reference color matching may be used as an unrecommended color matching, for example, the selected derived reference color matching in step 2053 may be used as a recommended color matching scikit-learn, and the unselected derived reference color matching may be used as an unrecommended color matching. Then, the judgment model is generated based on machine learning using the recommended color matching and the unrecommended color matching, and the judgment model is used to judge the recommendability of the pending color matching. The recommended color matching and the unrecommended color matching are divided into two parts, training data and test data, and various machine learning algorithm model functions in the field of artificial intelligence may be used, for example, various machine learning algorithm model functions based on the scikit-learn library, including logistic regression, support vector machine, and fully-connected network, which can be referred to https: / / scikit-learn.org / stable / . Among them, fully-connected network has achieved a higher accuracy on the test data. The fully-connected network model has three or four layers, namely an input layer, one or two hidden layers, and an output layer. In an example, the parameters of the fully-connected network model function can be: the vectors of the LCH space of the main color, auxiliary color, and contrasting color can be input in the input layer , only one hidden layer can be used, the number of units in the hidden layer is set to 10, and the output layer uses the softmax binary classification method for output. After experiments, such parameter settings can achieve higher accuracy.
[0095] Optionally, in step 208, the determination model is used to determine the recommendability of the pending color matching. The pending color matching includes Figure 2 The other color matches other than the available color matches obtained by the method are not from the same source as the data based on which the judgment model is generated, so the judgment result has a certain reliability. The pending color match here also includes the reference color match after the reference color match matching the target is adaptively adjusted in step 2062.
[0096] According to the above-mentioned implementation mode, the available reference color matching is determined by matching the color matching rules and the reference color matching to match the color of the target. There may be multiple determined color matching schemes, that is, there may be multiple preferred color matching schemes for the same target. For example, the same main color can obtain a variety of beautiful auxiliary colors and contrasting colors, which can greatly enrich the color matching of the picture and provide the possibility for personalized production of the picture. Since the color matching rules and the reference color matching are partially or completely derived, for any target, a relatively matching auxiliary color and contrasting color can be obtained, which greatly expands the color matching range compared to color matching based solely on color matching rules. The judgment model obtained according to the above-mentioned implementation mode provides automatic judgment for the aesthetics of the color matching generated by non-professional designers or any color matching rules, which helps to optimize the color matching. Overall, the above-mentioned embodiments help the color matching of pictures to move further towards automation, batching and intelligence. Helps the design of web page design or APP application interface to be more efficient.
[0097] Figure 4 The flowchart of the computer-implemented auxiliary color matching method according to an embodiment of the present invention is illustrated. The computer-implemented auxiliary color matching method starts at step 401, in which a recommended color matching is obtained. And in step 402, an unrecommended color matching is obtained. The above-mentioned recommended color matching and unrecommended color matching are both arrangements of N (N is an integer greater than 1) colors. In one example, the recommended color matching and the unrecommended color matching are represented in a color space based on hue, for example, in an LCH color space.
[0098] In one example, reference Figure 5 , the recommended color can be the available reference color obtained in step 205. For the specific acquisition process, i.e., steps 201-205 (including steps 2051-2053), please refer to Figure 2 The description of these steps in 2010 is not repeated here. In one example, the acquisition of the non-recommended color matching (step 205') is associated with the determination of the available reference color matching in step 205. For example, in step 2051', the unselected expanded reference color matching is acquired and used as the non-recommended color matching. For another example, in step 2052', the unselected derived reference color matching is acquired and used as the non-recommended color matching.
[0099] Of course, the present invention is not limited to obtaining the recommended color combinations and the unrecommended color combinations only through the above examples, and may also include any other suitable methods, for example, directly obtaining some color combinations set by professional designers as recommended color combinations, and / or directly obtaining other color combinations set by professional designers as unrecommended color combinations. The acquisition may be in any suitable manner or combination thereof.
[0100] Then, in step 403, a judgment model is generated based on machine learning using the recommended color combinations and the unrecommended color combinations, and the judgment model is used to judge the recommendability of the pending color combinations. The generation of the judgment model is described in the above step 207 and will not be repeated here.
[0101] In step 404, the recommendation of the pending color combination is determined by using the above determination model. This determination step may be the same as the above step 208, and will not be described in detail here.
[0102] Optionally, step 405 is further included, in which the target is matched with a color based on the recommended color obtained in step 401. For further description of this step, please refer to the above Figure 2 The description of step 206 is not repeated here.
[0103] According to a specific example, in step 201, 21 color matching rules set by professional designers are obtained, each rule records the primary color, the secondary color and the contrasting color, which are expressed in the LCH color space as: primary color {l_0, c_0, h_0}, secondary color {l_1, c_1, h_1}, contrasting color {l_2, c_2, h_2}. In step 202, specifically in step 2021, a reference image is obtained from https: / / dribbble.com / , which is a design website that provides many beautiful images. For example, 40,000 reference images are crawled from it, and each reference image has less than 8 color components. In step 2022, the K-means algorithm is used to extract the color with the largest three components from each reference image. In step 2023, the three colors extracted from each image are arranged in 6 ways, so that each arrangement corresponds to a different primary color, secondary color, and contrasting color, that is, each image obtains 6 reference color matchings. In step 2024, each reference color matching is converted to the LCH space. In step 203, it is determined whether the reference color matching matches the 21 rules. The method for determining whether the match is made is detailed in step 203 above (including steps 2031-2034), wherein in step 2031, all the tones of the color matching rules are rotated by 1. o And do this 359 times, so that the hue value of the reference color and the color matching rule differs by 1 oWithin, where 2000 minimum errors are selected in step 2033, which correspond to 2000 reference color matches. In step 204, the 2000 reference color matches are expanded, and in step 2051, based on the scores of the expanded 2000 reference color matches by professional designers, the 900 expanded reference color matches with the highest scores are selected. In step 2052, the hue values of the 900 reference color matches are rotated by integer multiples of 15° in sequence to obtain 13,500 reference color matches, and then in step 2053, based on the scores of professional designers again, the 2600 reference color matches with the highest scores are obtained as available reference color matches. In step 2061, given the hue value of the main color as the target, the 10 color matches closest to the main color are matched. In step 2062, the angle difference between the main color hue value of the 10 color matching and the main color hue value of the target is calculated, so as to correct the angles of the auxiliary colors and contrasting colors of the 10 color matching, and output 10 color matching as the color matching scheme of the target. In addition, in step 207, the 2600 color matching rules obtained are used as recommended color matching, 2300 of which are used for training, 300 are used for testing, and the remaining other color matchings (i.e., 13500-2600=10900 color matchings) in the previously obtained 13500 reference color matchings are used as non-recommended color matchings. According to the same ratio, 9642 are used for training and 1258 are used for testing. The machine learning algorithm model function in the scikit-learn library is used for training, including logistic regression, support vector machine, and fully-connected network, wherein the fully-connected network obtains a higher accuracy on the test set. The value of the output recommendability can be used as a measure of the beauty of the color matching.
[0104] According to the above-mentioned implementation mode, the available reference color matching is determined by matching the color matching rules and the reference color matching to match the color of the target. There may be multiple determined color matching schemes, that is, there may be multiple preferred color matching schemes for the same target. For example, the same main color can obtain a variety of beautiful auxiliary colors and contrasting colors, which can greatly enrich the color matching of the picture and provide the possibility for personalized production of the picture. Since the color matching rules and the reference color matching are partially or completely derived, for any target, a relatively matching auxiliary color and contrasting color can be obtained, which greatly expands the color matching range compared to color matching based solely on color matching rules. The judgment model obtained according to the above-mentioned implementation mode provides automatic judgment for the aesthetics of the color matching generated by non-professional designers or any color matching rules, which helps to optimize the color matching. Overall, the above-mentioned embodiments help the color matching of pictures to move further towards automation, batching and intelligence. Helps the design of web page design or APP application interface to be more efficient.
[0105] See also Figure 6 In an embodiment of the present invention, a device 600 related to color matching includes a processor 604, including a hardware element 610. The processor 604 includes, for example, one or more digital signal processors (DSPs), general-purpose microprocessors, application-specific integrated circuits (ASICs), field programmable logic arrays (FPGAs), or other equivalent integrated or discrete logic circuits. The term "processor" as used herein may refer to any of the above structures or any other structures suitable for implementing the technology described herein. In addition, in some aspects, the functionality described herein may be provided in dedicated hardware and / or software modules configured for color matching and auxiliary color matching, or incorporated in a combined hardware and / or software module. Moreover, the technology may be fully implemented in one or more circuits or logic elements. The method in the present disclosure may be implemented in various components, modules, or units, but it does not necessarily need to be implemented by different hardware units. Instead, as described above, various components, modules, or units may be combined or provided by a collection of interoperable hardware units (including one or more processors as described above) in combination with appropriate software and / or firmware.
[0106] In one or more examples, the above combination Figure 2-Figure 5 The described method steps may be implemented in hardware, software, firmware, or any combination thereof. If implemented in software, the functions may be stored as one or more instructions or codes on a computer-readable medium or transmitted via a computer-readable medium 606 and executed by a hardware-based processor. The computer-readable medium 606 may include a computer-readable storage medium corresponding to a tangible medium such as a data storage medium, or a communication medium including any medium that facilitates the transmission of a computer program from one place to another, such as according to a communication protocol. In this manner, the computer-readable medium 606 may generally correspond to (1) a non-transitory tangible computer-readable storage medium, or (2) a communication medium such as a signal or carrier wave. The data storage medium may be any available medium that can be read by one or more computers or one or more processors to retrieve instructions, codes, and / or data structures for implementing the techniques described in the present disclosure. A computer program product may include the computer-readable medium 606.
[0107] By way of example and not limitation, such computer-readable storage media may include RAM, ROM, EEPROM, CD-ROM or other optical disks, magnetic disk storage or other magnetic storage, flash memory, or any other memory 612 that can be used to store desired program code in the form of instructions or data structures and that can be read by a computer. Moreover, any connection is appropriately referred to as a computer-readable medium 606. For example, if instructions are transmitted from a website, server, or other remote source using a coaxial cable, fiber optic cable, twisted pair, digital subscriber line (DSL), or wireless technologies such as infrared, radio, and microwaves, the coaxial cable, fiber optic cable, twisted pair, DSL, or wireless technologies such as infrared, radio, and microwaves are included in the definition of media. However, it should be understood that computer-readable storage media and data storage media do not include connections, carrier waves, signals, or other transient media, but are directed to non-transient tangible storage media. As used herein, disks and optical disks include compact disks (CDs), laser optical disks, optical optical disks, digital versatile disks (DVDs), floppy disks, and Blu-ray disks, where disks typically reproduce data magnetically, while optical disks use lasers to reproduce data optically. Combinations of the above should also be included within the scope of computer-readable media 606 .
[0108] The device 600 related to color matching may also include an I / O interface for transmitting data, and other functions 614. The device 600 related to color matching may be included in different devices, such as a computer 616, a mobile device 618, and a television 620, etc., for use in mobile, Internet, television, and other fields, such as mobile APP software, website pages, televisions, etc., which contain a large number of pictures containing subjects, backgrounds, advertising copy, and / or publicity, etc. that appear and are frequently updated. Each of these configurations includes devices that may have generally different structures and capabilities, and therefore the device 600 related to color matching may be configured according to one or more of the different device categories. In addition, the technology of the present invention may also be implemented in whole or in part on a "cloud" 622 by using a distributed system, such as a platform 624 as described below.
[0109] Cloud 622 includes and / or represents a platform 624 for resources 626. Platform 624 abstracts the underlying functionality of the hardware (e.g., servers) and software resources of cloud 622. Resources 626 may include applications and / or data that may be used when executing computer processing on a server remote from computing device 602. Resources 626 may also include services provided over the Internet and / or over a subscriber network such as a cellular or Wi-Fi network.
[0110] The platform 624 can abstract resources and functionality to connect the computing device 602 with other computing devices. The platform 624 can also be used to abstract the hierarchy of resources to provide a hierarchy of corresponding levels of demand encountered for resources 626 implemented via the platform 624. Thus, in an interconnected device embodiment, the implementation of the functionality described herein can be distributed throughout the system 600. For example, the functionality can be implemented in part on the computing device 602 and through the platform 624 that abstracts the functionality of the cloud 622.
[0111] It should be noted that the expressions "first", "second" and the like in the present disclosure do not indicate the importance or the order of steps, but are only used to distinguish. In the absence of special instructions or premise constraints (i.e., the execution of one step requires the execution result of another step as a premise), the order of description of the method steps does not represent their execution order, and the described method steps can be executed in any possible and reasonable order.
[0112] Those skilled in the art will readily appreciate other embodiments of the present application after considering the specification and practicing the invention disclosed herein. The present application is intended to cover any modification, use or adaptation of the present application, which follows the general principles of the present application and includes common knowledge or customary techniques in the art that are not disclosed in the present application. The specification and examples are intended to be exemplary only, and the true scope and spirit of the present application are indicated by the claims.
[0113] It should be understood that the present application is not limited to the precise structures that have been described above and shown in the drawings, and that various modifications and changes may be made without departing from the scope thereof. The scope of the present application is limited only by the appended claims.
Claims
1. A computer-implemented color matching method, comprising: Obtain at least one color matching rule, wherein each color matching rule includes an arrangement of N colors represented in a hue-based color space, each color includes at least a hue value and a value of at least one other component in the color space, wherein N is a positive integer greater than 1; Obtain at least one reference color combination, wherein each reference color combination includes an arrangement of N reference colors, and at least a hue value of each reference color can be obtained; Determining whether the at least one reference color match matches the at least one color match rule, comprising: deriving the at least one color match rule based on the hue distribution of the at least one color match rule, which comprises: rotating the hue values of N colors in each color match rule of the at least one color match rule simultaneously by one or more degrees zero, one or more times, while keeping other components in the color space unchanged, so as not to add or to add at least one or more color match rules, obtaining the error between each reference color match of the at least one reference color match and each color match rule in the derived color match rules, wherein the error is defined as: for each reference color match, the sum of the squares of the shortest distances between the arrangement of hue values corresponding to the arrangement of the N reference colors and the arrangement of hue values corresponding to the arrangement of colors of the i-th color match rule in the same hue representation mode, and based on all the errors obtained, determining M minimum errors therein, and for each of the M minimum errors: determining that its associated reference color match matches its associated color match rule; In response to determining that the at least one reference color match matches the at least one color match rule, each matched reference color match is expanded, which includes: specifying the value of at least one component other than hue in the color space of each reference color in the matched reference color match as the value of the corresponding component of the corresponding color in the matched corresponding color match rule.
2. The method according to claim 1, wherein obtaining at least one reference color matching further comprises: Obtain at least one color reference picture, wherein the number of colors of each color reference picture is not less than N; Extract the N colors with the largest components in each color reference image as the N reference colors, and generate permutation, as Reference color matching; as well as The N reference colors are converted to obtain a hue value of each reference color.
3. The method of claim 1, further comprising: selecting the expanded reference color scheme, and Based on the selected expanded reference color match, an available reference color match is determined.
4. The method of claim 3, wherein the determining the available reference color matches further comprises deriving the selected expanded reference color matches, which comprises for each reference color match in the selected expanded reference color matches: rotating N hue values of the reference color match in the color space by one or more degrees at the same time one or more times, while keeping other components in the color space unchanged, to derive one or more new reference color matches; obtaining a selection of a derived reference colorway; The available reference color match is determined based on the selected derived reference color match.
5. The method of claim 1, further comprising: Determining available reference color matches based on the expanded reference color match; as well as For a target, based on a mapping between the target and a position in an arrangement of reference colors of the available reference color combinations, a reference color combination whose reference color at the position matches the target is retrieved, so as to use the reference color combination matching the target as the color combination of the target.
6. The method according to claim 5, The reference color matching that matches the target is adaptively adjusted to use the adjusted reference color matching as the color matching of the target.
7. The method of claim 4, further comprising: The selected derived reference color combinations are used as recommended color combinations, and the unselected derived reference color combinations are used as unrecommended color combinations; Generate a judgment model based on machine learning using the recommendable color combinations and the unrecommended color combinations, wherein the judgment model is used to judge the recommendability of the pending color combinations; as well as The judgment model is used to judge the recommendability of the pending color combination.
8. The method of claim 1, wherein N is 3, and the arrangement of the N reference colors comprises an arrangement of a primary color, an auxiliary color, and a contrasting color.
9. The method of claim 1, further comprising: Determining available reference color matches based on the expanded reference color match; as well as The target is color matched based on the available reference color matches.
10. A computer-implemented auxiliary color matching method, comprising: Get recommended color combinations; Get unrecommended color combinations; Using the recommendable color combinations and the unrecommended color combinations, a judgment model is generated based on machine learning, wherein the judgment model is used to judge the recommendability of the pending color combination; Using the judgment model to judge the recommendability of the pending color matching; in: The recommended color combinations, unrecommended color combinations and pending color combinations are all arrangements of N colors; The recommended color matching is obtained in the following manner: Obtain at least one color matching rule, wherein each color matching rule includes an arrangement of N colors represented in a hue-based color space, each color includes at least a hue value and a value of at least one other component in the color space, wherein N is a positive integer greater than 1; Obtain at least one reference color combination, wherein each reference color combination includes an arrangement of N reference colors, and at least a hue value of each reference color can be obtained; Determining whether the at least one reference color match matches the at least one color match rule, comprising: deriving the at least one color match rule based on the hue distribution of the at least one color match rule, which comprises: rotating the hue values of N colors in each color match rule of the at least one color match rule simultaneously by one or more degrees zero, one or more times, while keeping other components in the color space unchanged, so as not to add or to add at least one or more color match rules, obtaining the error between each reference color match of the at least one reference color match and each color match rule in the derived color match rules, wherein the error is defined as: for each reference color match, the sum of the squares of the shortest distances between the arrangement of hue values corresponding to the arrangement of the N reference colors and the arrangement of hue values corresponding to the arrangement of colors of the i-th color match rule in the same hue representation mode, and based on all the errors obtained, determining M minimum errors therein, and for each of the M minimum errors: determining that its associated reference color match matches its associated color match rule; In response to determining that the at least one reference color match matches the at least one color match rule, expanding each matched reference color match, which includes: assigning a value of at least one component other than hue in the color space of each reference color in the matched reference color match to a value of a corresponding component of a corresponding color in the matched corresponding color match rule; and The recommendable color match is obtained based on the expanded reference color match.
11. The method according to claim 10, wherein obtaining at least one reference color matching further comprises: Obtain at least one color reference picture, wherein the number of colors of each color reference picture is not less than N; Extract the N colors with the largest components in each color reference image as the N reference colors, and generate permutation, as Reference color matching; as well as The N reference colors are converted to obtain a hue value of each reference color.
12. A device related to color matching, comprising: processor; as well as A memory configured to store thereon computer executable instructions, which, when executed in the processor, enable the method according to any one of claims 1 to 11 to be implemented.
13. A computer-readable storage medium, characterized in that: The computer-readable storage medium stores instructions, and when the computer-readable storage medium is executed on a computer, the computer is enabled to implement the method according to any one of claims 1 to 11.
