CN114565691A - Color matching method, device, equipment and storage medium of thought guide picture - Google Patents

Color matching method, device, equipment and storage medium of thought guide picture Download PDF

Info

Publication number
CN114565691A
CN114565691A CN202210062992.5A CN202210062992A CN114565691A CN 114565691 A CN114565691 A CN 114565691A CN 202210062992 A CN202210062992 A CN 202210062992A CN 114565691 A CN114565691 A CN 114565691A
Authority
CN
China
Prior art keywords
color
node
colors
target
mind map
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
CN202210062992.5A
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.)
Shenzhen Aisi Software Technology Co ltd
Original Assignee
Shenzhen Aisi Software Technology 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 Shenzhen Aisi Software Technology Co ltd filed Critical Shenzhen Aisi Software Technology Co ltd
Priority to CN202210062992.5A priority Critical patent/CN114565691A/en
Publication of CN114565691A publication Critical patent/CN114565691A/en
Pending legal-status Critical Current

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06TIMAGE DATA PROCESSING OR GENERATION, IN GENERAL
    • G06T11/002D [Two Dimensional] image generation
    • G06T11/001Texturing; Colouring; Generation of texture or colour
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06TIMAGE DATA PROCESSING OR GENERATION, IN GENERAL
    • G06T11/002D [Two Dimensional] image generation
    • G06T11/40Filling a planar surface by adding surface attributes, e.g. colour or texture

Abstract

The application discloses a color matching method, a device, equipment and a storage medium of a mind map, wherein the background color of the mind map is determined by comparing a plurality of first colors in a target color plate formed by colors selected by a user so as to meet the requirement of matching any color of the user, and each node does not need to be separately matched, so that the color theme has higher expandability; and generating a target color matching strategy according to the background color, and performing color matching on the thinking guide picture by using the target color matching strategy so that the color collocation between the node color and the background color and among the node colors has more sense of unity and consistency, thereby enhancing the visual effect of the thinking guide picture.

Description

Color matching method, device, equipment and storage medium of thought guide picture
Technical Field
The present application relates to the field of computer technologies, and in particular, to a method, an apparatus, a device, and a storage medium for color matching of a mind map.
Background
In the process of generating the mind map, in order to facilitate the user to consult, intelligent color matching is usually performed on each entity object in the mind map. Specifically, the thought guide picture is subjected to color matching according to a color matching scheme in the color matching theme selected by the user through the preset color matching theme.
However, currently, users can select few color matching themes, and the colors of each set of color matching themes are relatively fixed, so that the expandability is poor. For example, if a user selects a color matching theme from a plurality of color matching themes with fixed colors, and the color scheme of the color matching theme specifies that the background color is yellow and the node color is blue, the color scheme continues to use the background color and the node color in the subsequent color matching process for the mind map no matter what color adjustment occurs, resulting in poor visual effect of the mind map in some cases.
Disclosure of Invention
The application provides a color matching method, a device, equipment and a storage medium of a mind map, which can improve the expandability of a color matching scheme so as to enhance the visual effect of the mind map.
In order to solve the technical problem, in a first aspect, an embodiment of the present application provides a method for color matching of a mind map, including:
comparing the colors of a plurality of first colors in the target color plate, and determining the background color of the mind map, wherein the first color is the color selected by the user;
generating a target color matching strategy according to the background color;
and performing color matching on the thinking guide picture by using the target color matching strategy.
In the embodiment, the background color of the mind map is determined by comparing the colors of a plurality of first colors in a target color plate formed by the colors selected by the user, so as to meet the requirement of the user on matching any color without independently matching colors of each node, and the color theme has higher expandability; and generating a target color matching strategy according to the background color, and performing color matching on the thinking guide picture by using the target color matching strategy so that the color collocation between the node color and the background color and among the node colors has more sense of unity and consistency, thereby enhancing the visual effect of the thinking guide picture.
As a preferred embodiment, comparing a plurality of first colors in a target color palette to determine a background color of a mind map comprises:
calculating a first contrast ratio between the respective first colors based on a preset colorimetric model;
determining a first marker value and a second marker value of each first color according to the corresponding first contrast ratio of each first color, wherein the first marker value is used for representing the number of the first contrast ratios which are larger than the preset contrast ratio, and the second marker value is used for representing the number of the first contrast ratios which are not larger than the preset contrast ratio;
and determining the background color of the mind map according to the first mark value and the second mark value of the first color.
In the embodiment, the color with the largest contrast ratio difference is determined by combining the contrast ratio with the marker value, so that the color difference between the background color and the color of the object such as a node, a line segment and the like is highlighted, and the visual effect is enhanced.
As an alternative embodiment, determining the background color of the mind map according to the first marker value and the second marker value of the first color includes:
selecting a second color with the maximum first marking value from the plurality of first colors;
and if the second mark value of the second color is greater than the preset mark value, judging that the background color is the preset background color.
In the embodiment, when the contrast ratio difference of the target color plate is small, the preset background color is used as the background color for the bottom pocket scheme, so that the visual effect of the mind map can be optimal.
As an alternative embodiment, after selecting the second color with the largest first mark value from the plurality of first colors, the method further includes:
if the second mark value of the second color is not larger than the preset mark value, detecting the color type of the second color;
and if the color type of the second color is light color, judging that the background color is the second color.
As an alternative embodiment, after detecting the color type of the second color, the method further includes:
if the color type of the second color is dark, calculating the difference between the first mark sum and the second mark sum, wherein the first mark sum is the sum of the first mark value corresponding to the case that the color type is light, and the second mark sum is the sum of the first mark value corresponding to the case that the color type is dark;
if the difference value is not smaller than the preset difference value, the background color is judged to be a second color;
if the difference value is smaller than the preset difference value, the background color is judged to be a first color with the color type of light color and the maximum first marking value in the target color plate.
This embodiment is based on the preferred principle of light color to utilize the light color to be close to reality more and write paper colour, the light color can highlight the colour of objects such as node and line segment more as background colour simultaneously, can satisfy user's vision custom and reinforcing visual effect.
As a preferred embodiment, the mind map includes a plurality of node objects and line segment objects for connecting the node objects; generating a target color matching strategy according to the background color, comprising:
determining the node color of the node object and the line segment color of the line segment object according to the background color;
and adding preset color matching conditions to the background color, the node color and the line segment color according to the node hierarchical relation of the node object, and generating a target color matching strategy.
In this embodiment, the colors of the node objects and the line segment objects of each node level are determined by the background color, and a set of complete target color matching strategies is generated by adding color matching conditions, so that when the colors are subsequently modified, the overall adjustment is performed based on the target color matching strategies.
As a preferred embodiment, determining the node color of the node object and the line segment color of the line segment object according to the background color comprises:
comparing the first color in the target color plate with the background color to obtain a second contrast ratio of the first color;
and performing node distribution on the first color according to the second contrast ratio and the node hierarchical relation of the node object to obtain the node color of the node object and the line segment color of the line segment object.
As a preferred embodiment, after the thinking guide graph is color-matched by using the target color matching strategy, the method further comprises the following steps:
acquiring a color modification instruction input by a user, wherein the node color modification instruction carries a target object and a target color, and the target object comprises a node object, a line segment object or a text object;
and responding to the color modification instruction, modifying the target object into the target color according to the target color matching strategy, and adjusting the object color of the associated object of the target object.
The embodiment can automatically perform adaptive adjustment on other objects of the mind map when the color is modified, for example, after the color of the node is changed, the color of the characters is automatically adjusted, the user is not required to manually adjust the other objects, the operation efficiency is improved, and meanwhile, the requirement of enhancing the visual effect is met.
In a second aspect, an embodiment of the present application provides a color matching apparatus for a mind map, including:
the contrast module is used for carrying out color contrast on a plurality of first colors in the target color palette and determining the background color of the mind map, wherein the first colors are colors selected by a user, and the mind map comprises a plurality of node objects and line segment objects used for connecting the node objects;
the determining module is used for determining the node color of the node object and the line segment color of the line segment object according to the background color;
the generating module is used for generating a target color matching strategy based on the background color, the node color and the line segment color;
and the color matching module is used for performing color matching on the thinking guide picture by utilizing the target color matching strategy.
In a third aspect, embodiments of the present application provide a computer device, comprising a processor and a memory, the memory being used for storing a computer program, which when executed by the processor implements the color matching method of the mind map as in the first aspect.
In a fourth aspect, embodiments of the present application provide a computer-readable storage medium, which stores a computer program, and the computer program, when executed by a processor, implements the color matching method of the mind map according to the first aspect.
Please refer to the relevant description of the first aspect for the beneficial effects of the second aspect to the fourth aspect, which are not described herein again.
Drawings
FIG. 1 is a schematic flow chart illustrating a color matching method of a mind map according to an embodiment of the present application;
FIG. 2 is a schematic diagram of a mind map shown in an embodiment of the present application;
FIG. 3 is a schematic diagram of a target panel shown in an embodiment of the present application;
fig. 4 is a schematic diagram illustrating a background color determination process according to an embodiment of the present application;
FIG. 5 is a schematic diagram of another mind map shown in an embodiment of the present application;
FIG. 6 is a schematic diagram illustrating a structure of a color matching apparatus of a mind map according to an embodiment of the present application;
fig. 7 is a schematic structural diagram of a computer device according to an embodiment of the present application.
Detailed Description
The technical solutions in the embodiments of the present application will be clearly and completely described below with reference to the drawings in the embodiments of the present application, and it is obvious that the described embodiments are only a part of the embodiments of the present application, and not all of the embodiments. All other embodiments obtained by a person of ordinary skill in the art based on the embodiments in the present application without making any creative effort belong to the protection scope of the present application.
As described in the related art, the mind map is an effective graphical thinking tool for expressing divergent thinking, such as the mind map shown in fig. 2. Each node on the thought-derivative graph represents a link to a central theme, and each link can become another central theme, and then diverges thousands of nodes outward to present a radioactive three-dimensional structure. The frames where the texts such as Merry Christmas and Maintopic are located are nodes, and the colors of the nodes are matched, so that a user can quickly distinguish different node contents, and browsing efficiency and visual effect are improved. However, the thinking guide diagram shown in fig. 2 has relatively fixed colors of the color matching subject and poor expandability. If the color scheme of the color matching theme specifies that the background color is green and the node color of MerryChristmas is red, the background color and the node color are continuously used by the color scheme no matter what color adjustment is performed in the subsequent color matching process of the mind map, so that the color matching of the mind map is single and the optimal visual effect cannot be achieved.
Therefore, the embodiment of the application provides a color matching method of a direct thought guide picture, which determines the background color of the thought guide picture by comparing a plurality of first colors in a target color plate formed by colors selected by a user so as to meet the requirement of matching any color of the user, and does not need to separately match colors for each node, so that the color theme has higher expandability; and generating a target color matching strategy according to the background color, and performing color matching on the thinking guide picture by using the target color matching strategy so that the color collocation between the node color and the background color and among the node colors has more sense of unity and consistency, thereby enhancing the visual effect of the thinking guide picture.
Referring to fig. 1, fig. 1 is a schematic flowchart illustrating a color matching method of a mind map according to an embodiment of the present application. The color matching method of the thinking guide diagram of the embodiment of the application can be applied to computer equipment, and the computer equipment comprises but is not limited to equipment such as a smart phone, a tablet computer, a notebook computer and a desktop computer which are provided with or externally connected with a display unit. As shown in fig. 1, the color matching method of the mind map of the present embodiment includes steps S101 to S103, which are detailed as follows:
step S101, comparing a plurality of first colors in the target color plate to determine the background color of the mind map, wherein the first colors are colors selected by a user.
In this step, color contrast is the process of comparing multiple colors based on one or more attributes of the color, including, but not limited to, chroma, luminance, contrast, and saturation. For example, the chromaticity a of the color a and the chromaticity B of the color B are calculated, respectively, and the chromaticity difference between the color a and the color B is compared, that is, the chromaticity difference is chromaticity a-chromaticity B. For another example, the chromaticity a of the color a and the luminance L1 are weighted and summed to obtain the composite attribute C of the color a, the chromaticity B of the color B and the luminance L2 are weighted and summed to obtain the composite attribute D of the color B, and the attribute difference between the color a and the color B, that is, the attribute difference is compared with the composite attribute C — the composite attribute D. It is understood that the color contrast may be various, and is not limited herein.
Optionally, the mind map includes, but is not limited to, a plurality of node objects, line segment objects for connecting the node objects, and text objects within the node objects. As shown in fig. 2, a text box in which "Merry Christmas" is located is a node object, "Merry Christmas" is a text object, and a line connecting the "Merry Christmas" box and the "maininterptic" box is a line segment object.
Optionally, as shown in fig. 2, the target color palette includes 6 colors, that is, the target color palette is a color set composed of a plurality of first colors selected by a user from a plurality of selectable colors. Preferably, the number of colors of the target color plate is 6, and 6 colors are enough to form a color matching theme, and the condition that the colors are disordered or similar is not caused, so that the visual perception of a user is more consistent.
Optionally, the user selects a number of colors from the selectable colors, which is the same as the number of colors of the target color plate, and if the number of colors of the target color plate is 6, the number of colors selected by the user is also 6. It can be understood that when the number of the colors selected by the user is less than 6, new colors can be obtained by performing color transformation on the colors selected by the user to complement the number of the 6 colors, or preset colors can be adopted to complement the number of the 6 colors, and the specific color complementing manner is not limited to the above-mentioned manner, and is not described herein again.
And S102, generating a target color matching strategy according to the background color.
In this step, the target color matching scheme is color matching logic for color matching the mind map, which includes, but is not limited to, color matching logic for color matching node objects of different node levels, color matching logic for color matching text objects, color matching logic for color matching line segment objects, and color matching logic for node objects, text objects, or line segment objects of an association relationship. Illustratively, the central node is blue, the first-level node below the central node is green, the node belonging to the same level node with the first-level node is red, the text object in the first-level node is black, and the line segment object connecting the central node and the first-level node is green.
Optionally, with the background color as the center color, determining color matching priorities of other first colors in the target color plate according to the contrast ratios between the colors, and generating the target color matching strategy according to the priorities. For example, the target color palette includes red, green, blue, white, black and yellow, white is used as a background color, and black > red > green > blue > yellow is determined as a priority, so that when the target color matching strategy is generated, the color matching strategy for the center node is a color with the highest priority, that is, black is used as a node color of the center node, and so on, and details are not repeated.
And S103, performing color matching on the thinking guide picture by using the target color matching strategy.
In this step, the target color matching strategy provides expert-level serialized color matching combinations for the thinking guide picture color matching. As shown in FIG. 5, compared with the mind map of FIG. 2, the mind map of FIG. 5 has richer color features and more vivid and varied styles of color subjects, thereby avoiding the tedious feeling of color matching of the mind map and increasing the interest and the inspiration.
As a preferred embodiment, based on the embodiment shown in fig. 1, fig. 4 is a schematic diagram illustrating a process of determining a background color of the present application. It is understood that the same steps as those in the embodiment shown in fig. 1 are not described herein again. As shown in fig. 4, the step S101 includes:
calculating a first contrast ratio between the first colors based on a preset colorimetric model;
determining a first marker value and a second marker value for each of the first colors according to the first contrast ratio corresponding to each of the first colors, wherein the first marker value is used for representing the number of the first contrast ratios larger than a preset contrast ratio, and the second marker value is used for representing the number of the first contrast ratios not larger than the preset contrast ratio;
and determining the background color of the mind map according to the first mark value and the second mark value of the first color.
In this embodiment, the colorimetric model is a comparative model constructed based on colorimetric theory. Optionally, the colorimetric model is deployed in the computer device, and when the computer device executes the colorimetric model, the steps including, but not limited to, format conversion, data linearization, and spectral weighting may be implemented, so as to obtain the color brightness L, and perform pairwise comparison on the color brightness L among the plurality of colors, so as to obtain the first contrast ratio.
Illustratively, an 8-bit integer (int) is converted to a floating point number (float), i.e.: r 'float ═ R' 8bit/255.0, G 'float ═ G' 8bit/255.0, B 'float ═ B' 8 bit/255.0; linearizing the data to remove the encoded transmission curves, namely Rlin ═ srgbtoin (R ' float), Glin ═ srgbtoin (G ' float), Blin ═ srgbtoin (B ' float); the luminance is spectrally weighted using sRGB coefficients, each linearized color channel is multiplied by their coefficients, which are then added to yield the luminance Y, i.e., Y ═ Rlin 0.2126+ Glin 0.7152+ Blin 0.0722.
It should be noted that each first contrast ratio corresponds to two colors, for example, yellow and blue are compared to obtain a contrast ratio X, and the contrast ratio X corresponds to yellow and blue. When the first flag value or the second flag value is counted, if the contrast ratio X is greater than the preset contrast ratio, the yellow first flag value is accumulated by 1, and the blue first flag value is also accumulated by 1. Similarly, if the contrast ratio X is not greater than the preset contrast ratio, the yellow second flag value is accumulated to 1, and the blue second flag value is accumulated to 1. It is understood that the larger the first flag value of a color is, the larger the difference between the color and other colors is, and the larger the second flag value of a color is, the larger the difference between the color and other colors is.
As an alternative embodiment, as shown in fig. 4, the determining the background color of the mind map according to the first and second flag values of the first color includes:
selecting a second color with the largest first marking value from a plurality of first colors;
and if the second marking value of the second color is greater than the preset marking value, judging that the background color is the preset background color.
In this optional embodiment, the second color that is the most different from the other first colors is selected from the plurality of first colors, but if the second flag value of the second color is greater than the preset flag value, it is indicated that the second color is not much different from the other colors in practical situations, so the preset background color is adopted as the pocket bottom color as the background color. Alternatively, the preset flag value may be 1, and the preset background color may be white or black.
As an alternative embodiment, as shown in fig. 4, after selecting a second color with the largest first mark value from the plurality of first colors, the method further includes:
if the second mark value of the second color is not larger than the preset mark value, detecting the color type of the second color;
and if the color type of the second color is light color, judging that the background color is the second color.
In this alternative embodiment, the first color in the target panel is divided into light, dark, and colored colors. Illustratively, for a given color, processing is carried out by using an HSL color space, and the brightness L value of the color is obtained, and if L is greater than or equal to 80, the color is regarded as a light color; if L is less than or equal to 20, the color is considered as dark; if L is between 20 and 80, it is considered colored.
As an alternative embodiment, as shown in fig. 4, after the detecting the color type of the second color, the method further includes:
if the color type of the second color is dark, calculating a difference value between a first mark sum and a second mark sum, wherein the first mark sum is a sum of first mark values corresponding to the light color type, and the second mark sum is a sum of first mark values corresponding to the dark color type;
if the difference value is not smaller than a preset difference value, judging that the background color is the second color;
and if the difference value is smaller than the preset difference value, judging that the background color is a first color with a light color type and a maximum first marking value in the target color plate.
In this alternative embodiment, the second color is further determined using a light-first principle. The reason why the light color is preferred is that the light color is considered as the background color, the color of the whole thinking guide picture is not too dark, so that part of users are not used to, the light color is closer to the color of the writing paper in reality, and the visual habit is more met. Meanwhile, the deep color is used as the embellishing color in the subsequent color matching strategy, so that the node characteristics can be highlighted. Optionally, the preset difference is 1.
As a preferred embodiment, generating a target color matching strategy according to the background color comprises:
determining the node color of the node object and the line segment color of the line segment object according to the background color;
and adding preset color matching conditions to the background color, the node color and the line segment color according to the node hierarchical relation of the node object, and generating a target color matching strategy.
In this embodiment, optionally, color comparison is performed between the first color in the target color plate and the background color to obtain a second contrast ratio of the first color; and performing node distribution on the first color according to the second contrast ratio and the node hierarchical relation of the node object to obtain the node color of the node object and the line segment color of the line segment object.
Illustratively, the color of each branch of the node object follows the color of its segment object, respectively, as shown in fig. 5, the color of "Main Topic" is the same as the color of the segment object segment connecting it with "Merry Christmas", and the text color is black or white. The color of "Subtipic Fill" is also the color of the line segment object, to which color matching conditions are added: the transparency was changed to 20%.
As a preferred embodiment, after performing color matching on the mind map by using the target color matching strategy, the method further includes:
acquiring a color modification instruction input by a user, wherein the node color modification instruction carries a target object and a target color, and the target object comprises the node object, the line segment object or a text object;
and responding to the color modification instruction, modifying the target object into the target color according to the target color matching strategy, and adjusting the object color of the associated object of the target object.
In this embodiment, the automatic font color matching enables a user to automatically change the color of the text into the color matched with the node object after changing the color of the node object, thereby avoiding the trouble of readjusting the font color for the user.
In order to execute the color matching method of the mind map corresponding to the method embodiment, corresponding functions and technical effects are realized. Referring to fig. 6, fig. 6 is a block diagram illustrating a structure of a color matching apparatus of a mind map according to an embodiment of the present application. For convenience of explanation, only the parts related to the present embodiment are shown, and the color matching apparatus of the mind map provided in the embodiment of the present application includes:
a comparison module 601, configured to perform color comparison on a plurality of first colors in a target color palette, and determine a background color of a mind map, where the first color is a color selected by a user, and the mind map includes a plurality of node objects and line segment objects used for connecting the node objects;
a generating module 602, configured to generate a target color matching strategy according to the background color;
and the color matching module 604 is used for performing color matching on the thought guide picture by utilizing the target color matching strategy.
As a preferred embodiment, the comparison module 601 includes:
a calculating unit, configured to calculate a first contrast ratio between the first colors based on a preset colorimetric model;
a first determining unit, configured to determine, according to the first contrast ratio corresponding to each of the first colors, a first flag value and a second flag value for each of the first colors, where the first flag value is used to indicate a number of the first contrast ratios greater than a preset contrast ratio, and the second flag value is used to indicate a number of the first contrast ratios not greater than the preset contrast ratio;
and the second determining unit is used for determining the background color of the mind map according to the first mark value and the second mark value of the first color.
As an alternative embodiment, the second determining unit includes:
the selecting subunit is used for selecting a second color with the maximum first marking value from the plurality of first colors;
and the first judging subunit is configured to judge that the background color is a preset background color if the second mark value of the second color is greater than a preset mark value.
As an optional embodiment, the second determining unit further includes:
the detection subunit is used for detecting the color type of the second color if the second mark value of the second color is not greater than a preset mark value;
and the second judging subunit is configured to judge that the background color is the second color if the color type of the second color is a light color.
As an optional embodiment, the second determining unit further includes:
a calculating subunit, configured to calculate a difference between a first mark and a second mark if the color type of the second color is a dark color, where the first mark is a sum of first mark values corresponding to the light color type, and the second mark is a sum of first mark values corresponding to the dark color type;
a third determining subunit, configured to determine that the background color is the second color if the difference is not smaller than a preset difference;
and the fourth judging subunit is configured to judge that the background color is a first color, in which a color type in the target color palette is a light color and a first mark value is the largest, if the difference is smaller than the preset difference.
As a preferred embodiment, the generating module 602 includes:
a third determining unit, configured to determine a node color of the node object and a line segment color of the line segment object according to the background color;
and the adding unit is used for adding preset color matching conditions to the background color, the node color and the line segment color according to the node hierarchical relationship of the node object to generate a target color matching strategy.
As a preferred embodiment, the third determination unit includes:
the contrast subunit is configured to perform color contrast on the first color in the target color palette and the background color to obtain a second contrast ratio of the first color;
and the distribution subunit is used for carrying out node distribution on the first color according to the second contrast ratio and the node hierarchical relationship of the node object to obtain the node color of the node object and the line segment color of the line segment object.
As a preferred embodiment, the color matching apparatus of the mind map further includes:
an obtaining module, configured to obtain a color modification instruction input by a user, where the node color modification instruction carries a target object and a target color, and the target object includes the node object, the line segment object, or a text object;
and the response module is used for responding to the color modification instruction, modifying the target object into the target color according to the target color matching strategy and adjusting the object color of the associated object of the target object.
The color matching apparatus of the mind map described above may implement the color matching method of the mind map of the above-described method embodiments. The alternatives in the above-described method embodiments are also applicable to this embodiment and will not be described in detail here. The rest of the embodiments of the present application may refer to the contents of the above method embodiments, and in this embodiment, details are not described again.
Fig. 7 is a schematic structural diagram of a computer device according to an embodiment of the present application. As shown in fig. 7, the computer device 7 of this embodiment includes: at least one processor 70 (only one shown in fig. 7), a memory 71, and a computer program 72 stored in the memory 71 and executable on the at least one processor 70, the processor 70 implementing the steps of any of the method embodiments described above when executing the computer program 72.
The computer device 7 may be a computing device such as a smart phone, a tablet computer, a desktop computer, and a cloud server. The computer device may include, but is not limited to, a processor 70, a memory 71. Those skilled in the art will appreciate that fig. 7 is merely an example of the computer device 7, and does not constitute a limitation of the computer device 7, and may include more or less components than those shown, or combine some of the components, or different components, such as input output devices, network access devices, etc.
The Processor 70 may be a Central Processing Unit (CPU), and the Processor 70 may be other general purpose Processor, a Digital Signal Processor (DSP), an Application Specific Integrated Circuit (ASIC), an off-the-shelf Programmable Gate Array (FPGA) or other Programmable logic device, discrete Gate or transistor logic, discrete hardware components, etc. A general purpose processor may be a microprocessor or the processor may be any conventional processor or the like.
The memory 71 may in some embodiments be an internal storage unit of the computer device 7, such as a hard disk or a memory of the computer device 7. The memory 71 may also be an external storage device of the computer device 7 in other embodiments, such as a plug-in hard disk, a Smart Media Card (SMC), a Secure Digital (SD) Card, a Flash memory Card (Flash Card), and the like, which are provided on the computer device 7. Further, the memory 71 may also include both an internal storage unit and an external storage device of the computer device 7. The memory 71 is used for storing an operating system, an application program, a BootLoader (BootLoader), data, and other programs, such as program codes of the computer program. The memory 71 may also be used to temporarily store data that has been output or is to be output.
In addition, an embodiment of the present application further provides a computer-readable storage medium, where a computer program is stored, and when the computer program is executed by a processor, the computer program implements the steps in any of the method embodiments described above.
The embodiments of the present application provide a computer program product, which when executed on a computer device, enables the computer device to implement the steps in the above method embodiments.
In several embodiments provided herein, it will be understood that each block in the flowchart or block diagrams may represent a module, segment, or portion of code, which comprises one or more executable instructions for implementing the specified logical function(s). It should also be noted that, in some alternative implementations, the functions noted in the block may occur out of the order noted in the figures. For example, two blocks shown in succession may, in fact, be executed substantially concurrently, or the blocks may sometimes be executed in the reverse order, depending upon the functionality involved.
The functions, if implemented in the form of software functional modules and sold or used as a stand-alone product, may be stored in a computer readable storage medium. Based on such understanding, the technical solution of the present application or portions thereof that substantially contribute to the prior art may be embodied in the form of a software product stored in a storage medium and including instructions for causing a computer device to perform all or part of the steps of the method according to the embodiments of the present application. And the aforementioned storage medium includes: a U-disk, a removable hard disk, a Read-Only Memory (ROM), a Random Access Memory (RAM), a magnetic disk or an optical disk, and other various media capable of storing program codes.
The above-mentioned embodiments are further detailed to explain the objects, technical solutions and advantages of the present application, and it should be understood that the above-mentioned embodiments are only examples of the present application and are not intended to limit the scope of the present application. It should be understood that any modifications, equivalents, improvements and the like, which come within the spirit and principle of the present application, may occur to those skilled in the art and are intended to be included within the scope of the present application.

Claims (11)

1. A method for matching colors in a mind map, comprising:
comparing a plurality of first colors in the target color plate to determine a background color of the mind map, wherein the first colors are colors selected by a user;
generating a target color matching strategy according to the background color;
and utilizing the target color matching strategy to perform color matching on the thinking guide picture.
2. A color matching method for a mind map according to claim 1, wherein the comparing a plurality of first colors in a target palette to determine a background color of the mind map comprises:
calculating a first contrast ratio between the first colors based on a preset colorimetric model;
determining a first marker value and a second marker value for each of the first colors according to the first contrast ratio corresponding to each of the first colors, wherein the first marker value is used for representing the number of the first contrast ratios larger than a preset contrast ratio, and the second marker value is used for representing the number of the first contrast ratios not larger than the preset contrast ratio;
and determining the background color of the mind map according to the first mark value and the second mark value of the first color.
3. A color matching method for a mind map according to claim 2, wherein the determining a background color of the mind map based on the first labeled value and the second labeled value of the first color comprises:
selecting a second color with the largest first marking value from a plurality of first colors;
and if the second marking value of the second color is greater than the preset marking value, judging that the background color is the preset background color.
4. A color matching method for a mind map according to claim 3, wherein after selecting a second color having a largest value of the first label from among the plurality of first colors, further comprising:
if the second mark value of the second color is not larger than the preset mark value, detecting the color type of the second color;
and if the color type of the second color is light color, judging that the background color is the second color.
5. The method for matching colors of a mind map of claim 4, wherein after detecting the color type of the second color, further comprising:
if the color type of the second color is a dark color, calculating a difference value between a first mark sum and a second mark sum, wherein the first mark sum is a first mark value sum corresponding to the light color type, and the second mark sum is a first mark value sum corresponding to the dark color type;
if the difference value is not smaller than a preset difference value, judging that the background color is the second color;
and if the difference value is smaller than the preset difference value, judging that the background color is a first color with a light color type and a maximum first marking value in the target color plate.
6. The method of color matching of the mind map according to any one of claims 1 to 5, wherein the mind map includes a plurality of node objects and line segment objects for connecting the node objects, and the generating of the target color matching strategy based on the background color includes:
determining the node color of the node object and the line segment color of the line segment object according to the background color;
and adding preset color matching conditions to the background color, the node color and the line segment color according to the node hierarchical relationship of the node object, and generating the target color matching strategy.
7. A color matching method for a mind map according to claim 6, wherein the determining node colors of the node objects and line segment colors of the line segment objects based on the background color comprises:
comparing the first color in the target color plate with the background color to obtain a second contrast ratio of the first color;
and performing node distribution on the first color according to the second contrast ratio and the node hierarchical relation of the node object to obtain the node color of the node object and the line segment color of the line segment object.
8. The method for matching colors of the mind map according to any one of claims 1 to 5, wherein the after the color matching of the mind map using the target color matching strategy, further comprises:
acquiring a color modification instruction input by a user, wherein the node color modification instruction carries a target object and a target color, and the target object comprises a node object, a line segment object or a text object;
and responding to the color modification instruction, modifying the target object into the target color according to the target color matching strategy, and adjusting the object color of the associated object of the target object.
9. A color matching apparatus for a mind map, comprising:
the system comprises a comparison module, a display module and a display module, wherein the comparison module is used for comparing colors of a plurality of first colors in a target color palette and determining a background color of a mind map, the first color is a color selected by a user, and the mind map comprises a plurality of node objects and line segment objects used for connecting the node objects;
the generating module is used for generating a target color matching strategy according to the background color;
and the color matching module is used for performing color matching on the thinking guide picture by utilizing the target color matching strategy.
10. A computer device comprising a processor and a memory for storing a computer program which, when executed by the processor, implements a color matching method of a mind map according to any one of claims 1 to 8.
11. A computer-readable storage medium, characterized in that it stores a computer program which, when executed by a processor, implements the color matching method of the mind map according to any one of claims 1 to 8.
CN202210062992.5A 2022-01-19 2022-01-19 Color matching method, device, equipment and storage medium of thought guide picture Pending CN114565691A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202210062992.5A CN114565691A (en) 2022-01-19 2022-01-19 Color matching method, device, equipment and storage medium of thought guide picture

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202210062992.5A CN114565691A (en) 2022-01-19 2022-01-19 Color matching method, device, equipment and storage medium of thought guide picture

Publications (1)

Publication Number Publication Date
CN114565691A true CN114565691A (en) 2022-05-31

Family

ID=81711598

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202210062992.5A Pending CN114565691A (en) 2022-01-19 2022-01-19 Color matching method, device, equipment and storage medium of thought guide picture

Country Status (1)

Country Link
CN (1) CN114565691A (en)

Similar Documents

Publication Publication Date Title
US10304408B2 (en) Method and apparatus for changing background color of toolbar with dominant color of picture
CN104076928B (en) A kind of method for adjusting text importing image
CN110377860B (en) Page color adjustment method and device and electronic equipment
KR20200133633A (en) A generative adversarial networks(GAN) based system for generating color images from edge images
CN101123669B (en) Method and apparatus for converting images, and image forming apparatus having the same
CN103065338A (en) Method and device providing shadow for foreground image in background image
CN106780635B (en) Picture adaptation method and system of intelligent terminal
US7202873B2 (en) Specific scene image selecting apparatus, computer program and computer readable medium on which the computer program is recorded
WO2021035505A1 (en) Image processing method and device
CN105957125A (en) Icon character processing method and mobile terminal
CN104700442A (en) Image processing method and system for automatic filter and character adding
US8879842B2 (en) Method and non-transitory computer readable medium for HTML file conversion
JP2009081617A (en) Device and method for processing image data
CN111090368B (en) Color matching method and device for determining page characters
CN111736941B (en) Picture processing method and device
CN103744942A (en) Web browsing method, web browsing device and web browsing terminal device
CN108292319B (en) Determining an appearance for an element displayed on a user interface
CN114565691A (en) Color matching method, device, equipment and storage medium of thought guide picture
JP6439211B2 (en) Explanation sentence generation device, explanation document creation method and program
CN111783382A (en) Recommendation method and device for visual effect of document
JP2006113910A (en) Document editing method, program for implementing document editing method, and document editing system
CN114512094B (en) Screen color adjusting method, device, terminal and computer readable storage medium
JP2000030039A (en) Picture processor and picture processing method
US8749842B2 (en) Image processor
JP4772726B2 (en) Color conversion processing program, processing device, and processing method

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