A mind map rendering method, device, computer equipment and storage medium

By introducing hand-drawn style rendering methods in mind map software, using preset hand-drawn algorithm to process map element paths, the problem that existing software cannot realize hand-drawn style display is solved, real-time editing and modification functions are realized, and visual improvement is improved Effects and personalized expression skills.

CN112991488BActive Publication Date: 2025-02-21SHENZHEN EDRAW SOFTWARE CO LTD
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202110276413.2
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2021-03-15
Publication Date
2025-02-21
Estimated Expiration
2041-03-15

AI Technical Summary

Technical Problem

Existing mind map software does not support displaying mind maps in a hand-drawn style, and the functions of real-time rendering, editing and modification cannot be realized.

Method used

Provide a mind map rendering method based on hand-drawn style. By generating an initial mind map and entering a hand-drawn mode, the element path of the map element is hand-drawn using the preset hand-drawn algorithm, the hand-drawn path is generated, and the hand-drawn path is rendered , generate a mind map with hand-drawn effects.

Benefits of technology

It realizes the real-time hand-drawn effects on mind maps that can be viewed, edited and modified in real time, enriches the display level of mind maps, meets personalized expression needs, and brings better visual effects.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN112991488B_ABST
    Figure CN112991488B_ABST
Patent Text Reader

Abstract

The embodiment of the present invention discloses a method, device, computer equipment and storage medium for rendering a mind map. The method includes generating an initial mind map and entering a hand-drawing mode; using a preset hand-drawing algorithm to perform hand-drawing processing on the element paths of the map elements in the mind map to generate a hand-drawn path; rendering the hand-drawn path and generating a mind map with a hand-drawn effect. The embodiment of the present invention obtains a hand-drawn path based on a hand-drawn style effect by hand-drawing the element paths of the map elements, thereby obtaining a mind map with a hand-drawn effect; it has the ability to generate a hand-drawn effect on the mind map that can be viewed, edited and modified in real time, which can enrich the richness of the mind map product at the display level, meet people's increasing demand for personalized expression, and bring better visual effects.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The embodiments of the present invention relate to the field of mind mapping, and in particular to a mind mapping rendering method, device, computer equipment and storage medium. Background Art

[0002] Mind mapping is a method of visualizing thinking and is an auxiliary tool for visual thinking. It uses a central keyword or idea to evoke the idea of ​​visual construction and classification, and uses a central keyword or idea to radiate and connect all ideas, sentences, tasks or other related items in a graphical way. It can establish memory links between subject keywords and images, colors, etc.

[0003] In the application areas of mind mapping, such as image rendering, it uses corresponding simulation algorithms to comprehensively realize the effects of graphics drawing and rendering, and can simulate the typical artistic effects of Chinese ink painting images; but the application areas of mind mapping can be further expanded, such as supporting the display of mind maps in a hand-drawn style. Because there are concepts of graphics and connecting lines in mind maps, it is necessary to support continued editing and modification, and be able to display the latest rendering effects in real time. However, the current mind mapping software does not provide real-time rendering editing and modification technology based on hand-drawn style. Summary of the invention

[0004] The purpose of the embodiments of the present invention is to provide a mind map rendering method, apparatus, computer equipment and storage medium, aiming to solve the problem that existing mind map software does not support the display of mind maps in a hand-drawn style.

[0005] In order to solve the above technical problems, the object of the present invention is to achieve the following technical solutions: provide a rendering method of a mind map based on a hand-drawn style, comprising:

[0006] Generate the initial mind map and enter the hand-drawing mode;

[0007] Using a preset hand-drawing algorithm to perform hand-drawing processing on the element paths of the map elements in the mind map to generate a hand-drawn path;

[0008] The hand-drawn path is rendered and a mind map with a hand-drawn effect is generated.

[0009] In addition, the technical problem to be solved by the present invention is to provide a rendering device for a mind map based on a hand-drawn style, comprising:

[0010] The generation unit is used to generate the initial mind map and enter the hand-drawing mode;

[0011] A calculation unit, used for performing hand-drawing processing on the element paths of the map elements in the mind map by using a preset hand-drawing algorithm to generate a hand-drawn path;

[0012] A rendering unit is used to render the hand-drawn path and generate a mind map with a hand-drawn effect.

[0013] In addition, an embodiment of the present invention further provides a computer device, which includes a memory, a processor, and a computer program stored in the memory and executable on the processor, wherein when the processor executes the computer program, the method for rendering a mind map based on a hand-drawn style as described in the first aspect above is implemented.

[0014] In addition, an embodiment of the present invention further provides a computer-readable storage medium, wherein the computer-readable storage medium stores a computer program, and when the computer program is executed by a processor, the processor executes the method for rendering a mind map based on a hand-drawn style as described in the first aspect above.

[0015] The embodiment of the present invention discloses a method, device, computer equipment and storage medium for rendering a mind map. The method includes generating an initial mind map and entering a hand-drawing mode; using a preset hand-drawing algorithm to perform hand-drawing processing on the element paths of the map elements in the mind map to generate a hand-drawn path; rendering the hand-drawn path and generating a mind map with a hand-drawn effect. The embodiment of the present invention obtains a hand-drawn path based on a hand-drawn style effect by hand-drawing the element paths of the map elements, thereby obtaining a mind map with a hand-drawn effect; it has the ability to generate a hand-drawn effect on the mind map that can be viewed, edited and modified in real time, which can enrich the richness of the mind map product at the display level, meet people's increasing demand for personalized expression, and bring better visual effects. BRIEF DESCRIPTION OF THE DRAWINGS

[0016] In order to more clearly illustrate the technical solutions of the embodiments of the present invention, the accompanying drawings required for use in the description of the embodiments will be briefly introduced below. Obviously, the accompanying drawings described below are some embodiments of the present invention. For ordinary technicians in this field, other accompanying drawings can be obtained based on these accompanying drawings without paying any creative work.

[0017] Figure 1 A schematic diagram of a flow chart of a method for rendering a mind map based on a hand-drawn style provided by an embodiment of the present invention;

[0018] Figure 2 A schematic diagram of a sub-process of a method for rendering a mind map based on a hand-drawn style provided by an embodiment of the present invention;

[0019] Figure 3 A schematic diagram of another sub-process of a method for rendering a mind map based on a hand-drawn style provided by an embodiment of the present invention;

[0020] Figure 4 A schematic block diagram of a rendering device for a hand-drawn style mind map provided in an embodiment of the present invention. DETAILED DESCRIPTION

[0021] The following will be combined with the drawings in the embodiments of the present invention to clearly and completely describe the technical solutions in the embodiments of the present invention. Obviously, the described embodiments are part of the embodiments of the present invention, not all of the embodiments. Based on the embodiments of the present invention, all other embodiments obtained by ordinary technicians in this field without creative work are within the scope of protection of the embodiments of the present invention.

[0022] It should be understood that when used in this specification and the appended claims, the terms "include" and "comprises" indicate the presence of described features, integers, steps, operations, elements and / or components, but do not exclude the presence or addition of one or more other features, integers, steps, operations, elements, components and / or combinations thereof.

[0023] It should also be understood that the terms used in the description of the embodiment of the present invention are only for the purpose of describing a specific embodiment and are not intended to limit the embodiment of the present invention. As used in the description of the embodiment of the present invention and the appended claims, unless the context clearly indicates otherwise, the singular forms of "a", "an" and "the" are intended to include plural forms.

[0024] It should be further understood that the term “and / or” used in the description of the embodiments of the present invention and the appended claims refers to any combination and all possible combinations of one or more of the associated listed items, and includes these combinations.

[0025] See also Figure 1 , Figure 1 A schematic diagram of a flow chart of a method for rendering a mind map provided in an embodiment of the present invention.

[0026] like Figure 1 As shown, the method includes steps S101 to S103.

[0027] S101. Generate an initial mind map and enter the hand-drawing mode.

[0028] In this embodiment, in the mind map software application, an initial mind map is generated, and the hand-drawing mode is selected to implement hand-drawn style editing, modification, rendering and other processing of the mind map.

[0029] S102: Use a preset hand-drawing algorithm to perform hand-drawing processing on the element paths of the map elements in the mind map to generate a hand-drawn path.

[0030] In this embodiment, the map elements of the mind map include theme shapes, branches, connecting lines, outer frames and outlines, etc. The element paths of these map elements are usually composed of very regular graphics and lines, and are very lacking in novelty in appearance. The embodiment of the present invention uses a preset hand-drawing algorithm to hand-draw the element paths of the map elements and generate a hand-drawn path, and then renders the hand-drawn path to obtain a mind map with a hand-drawn effect.

[0031] In one embodiment, if Figure 2 As shown, step S102 includes:

[0032] S201, input the element path of the map element;

[0033] S202, for each element path of the map element, extract multiple segments from the element path according to a preset interval, calculate the segments by using a Perlin noise function, and obtain style parameters of the segments;

[0034] S203, for each segment, using first-order linear interpolation sampling to process the style parameters to obtain the end noise point of the segment;

[0035] S204, connecting the noise points at the end of each segment to construct a hand-drawn path of the corresponding map element.

[0036] In this embodiment, first, taking the connecting lines in the map elements as an example, after inputting the element path of the connecting lines, multiple segments are cut out from the element path according to the preset spacing. The preset spacing here can be set according to the length of the element path and the number of segments. For example, if the length of the element path is 100 and the number of segments is 20 or 30, the preset spacing is adjusted according to the specific length of the element path and the number of segments.

[0037] Secondly, after obtaining multiple fragments in an element path, each fragment is calculated through the Perlin noise function to obtain the style parameters such as the shape and fluctuation amplitude of the fragment; then the first-order linear interpolation sampling is used to initialize, normalize and interpolate the style parameters to obtain the end noise point of the fragment.

[0038] Finally, by connecting the noise points at the end of each segment, the hand-drawn path of the corresponding map element can be obtained; thus, the hand-drawn paths of all map elements can be calculated and obtained, thereby constructing a mind map based on the hand-drawn style.

[0039] In one embodiment, if Figure 3 As shown, step S203 includes:

[0040] S301, for each segment, initializing the frequency and amplitude within the segment;

[0041] S302, respectively normalizing the frequency and amplitude values ​​of the initialized segment to obtain a frequency normalized value and an amplitude normalized value;

[0042] S303 , interpolating the frequency normalized value and the amplitude normalized value of the segment, and superimposing the interpolation result with the style parameter of the segment to obtain the end noise point of the segment.

[0043] In this embodiment, first, the frequency and amplitude of the fragment are initialized, that is, the frequency and amplitude of the fragment are randomly assigned within a preset range, and the assigned values ​​are adjusted by multiples to adjust the effect, so that the style of the fragment is closer to a hand-painted effect.

[0044] Secondly, the frequency and amplitude values ​​of the initialized fragments are normalized respectively, in order to make the calculated data indicators in the same order of magnitude, that is, the frequency and amplitude values ​​of the fragments are transformed and uniformly mapped to the [0, 1] interval, and the frequency normalized value and the amplitude normalized value are obtained.

[0045] Finally, the frequency normalized value and amplitude normalized value of the fragment are interpolated to obtain the cosine difference, and then the style parameters of the fragment are superimposed to obtain the end noise of the fragment.

[0046] In one embodiment, step S204 includes:

[0047] The end noise points of the first and last segments in the element path are removed, and the original starting coordinate points of the first and last segments are used as the position points connected with other end noise points to obtain the final hand-painted path.

[0048] In this embodiment, in a complete element path, such as a closed outer frame, the first segment and the last segment of the outer frame are closed and connected, that is, it is necessary to ensure that the end noise points of the first segment and the last segment can overlap or be close to each other to achieve the smoothness of the connection; for example, a connecting line, the first segment and the last segment of the connecting line are respectively the positions where they connect with other element paths, and it is also necessary to ensure the smoothness of the connection, that is, it is necessary to ensure that the positions of the first segment and the last segment cannot fluctuate or offset.

[0049] Therefore, this embodiment removes the terminal noise points of the first segment and the last segment in the element path, and uses the original starting coordinate points of the first segment and the last segment as the position points where the first segment and the last segment are connected to other terminal noise points, thereby ensuring the smoothness of the connection between the first segment and the last segment, or the smoothness of the connection between the first segment and the last segment and other element paths respectively; it can be understood that in the process of calculating and processing the segments and obtaining the terminal noise points, it is also possible to not calculate the terminal noise points of the first segment and the last segment in the element path, and use the original starting coordinate points of the first segment and the last segment as the position points where the first segment and the last segment are connected to other terminal noise points respectively from the beginning.

[0050] It should be noted that the original starting coordinate point here refers to the process of "cutting out multiple fragments from the element path at preset intervals", in which the leading end point of the first fragment is taken as the original starting coordinate point of the first fragment, and the end position of the last fragment is taken as the original starting coordinate point of the last fragment. In this way, the shape fluctuations of the first fragment and the last fragment will not change excessively, thereby achieving better smoothness at the connection between the element path itself or with other element paths, and a hand-drawn path with smooth paths can be obtained.

[0051] S103, rendering the hand-drawn path and generating a mind map with a hand-drawn effect.

[0052] In this embodiment, all hand-drawn paths are connected and then rendered to obtain a mind map with a hand-drawn effect.

[0053] The embodiment of the present invention further provides a rendering device for a mind map based on a hand-drawn style, and the rendering device for a mind map based on a hand-drawn style is used to execute any embodiment of the aforementioned mind map rendering method. Figure 4 , Figure 4 It is a schematic block diagram of a rendering device for a mind map based on a hand-drawn style provided by an embodiment of the present invention.

[0054] like Figure 4 As shown, a rendering device 400 based on a hand-drawn mind map includes: a generating unit 401 , a calculating unit 402 and a rendering unit 403 .

[0055] A generating unit 401 is used to generate an initial mind map and enter a hand-drawing mode;

[0056] The calculation unit 402 is used to perform hand-drawing processing on the element paths of the map elements in the mind map by using a preset hand-drawing algorithm to generate a hand-drawn path;

[0057] The rendering unit 403 is used to render the hand-drawn path and generate a mind map with a hand-drawn effect.

[0058] In one embodiment, the calculation unit 402 includes:

[0059] An input unit, used to input the element path of a map element;

[0060] The interception unit is used to intercept multiple segments from the element path of each map element according to a preset interval, calculate the segments by using the Perlin noise function, and obtain the style parameters of the segments;

[0061] A processing unit, for processing the style parameters by first-order linear interpolation sampling for each segment, to obtain the end noise point of the segment;

[0062] The construction unit is used to connect the noise points at the end of each segment to construct a hand-drawn path of the corresponding map element.

[0063] In one embodiment, the processing unit includes:

[0064] An initialization unit, used for initializing the frequency and amplitude within each segment;

[0065] A normalization unit, used to normalize the frequency and amplitude values ​​of the initialized fragments respectively to obtain a frequency normalization value and an amplitude normalization value;

[0066] The interpolation operation unit is used to perform interpolation operation on the frequency normalized value and the amplitude normalized value of the fragment, and superimpose the interpolation operation result on the style parameter of the fragment to obtain the end noise point of the fragment.

[0067] In one embodiment, the building block comprises:

[0068] The path acquisition unit is used to remove the tail noise points of the first segment and the last segment in the element path, and use the original starting coordinate points of the first segment and the last segment as the position points connected with other tail noise points to obtain the final hand-drawn path.

[0069] In one embodiment, the initialization unit includes:

[0070] The value assignment adjustment unit is used to randomly assign values ​​to the frequency and amplitude of the fragment within a preset range, and adjust the effect of the assignment by adjusting the value in multiples.

[0071] In one embodiment, the normalization unit comprises:

[0072] The data conversion unit is used to normalize the frequency and amplitude values ​​of the initialized fragments, so that the frequency and amplitude values ​​are transformed and uniformly mapped to the [0, 1] interval, and obtain the frequency normalization value and the amplitude normalization value.

[0073] An embodiment of the present invention further provides a computer device, including a memory, a processor, and a computer program stored in the memory and executable on the processor. When the processor executes the computer program, the above-mentioned method for rendering a mind map based on a hand-drawn style is implemented.

[0074] An embodiment of the present invention further provides a computer-readable storage medium, on which a computer program is stored. When the computer program is executed by a processor, the above-mentioned method for rendering a mind map based on a hand-drawn style is implemented.

[0075] Those skilled in the art can clearly understand that, for the convenience and brevity of description, the specific working processes of the above-described equipment, devices and units can refer to the corresponding processes in the aforementioned method embodiments and will not be repeated here.

[0076] The above is only a specific implementation of the embodiment of the present invention, but the protection scope of the embodiment of the present invention is not limited thereto. Any technician familiar with the technical field can easily think of various equivalent modifications or replacements within the technical scope disclosed in the embodiment of the present invention, and these modifications or replacements should be included in the protection scope of the embodiment of the present invention. Therefore, the protection scope of the embodiment of the present invention shall be based on the protection scope of the claims.

Claims

1. A rendering method of a mind map based on a hand-drawn style, characterized in that: include: Generate the initial mind map and enter the hand-drawing mode; Using a preset hand-drawing algorithm to perform hand-drawing processing on the element paths of the map elements in the mind map to generate a hand-drawn path; Rendering the hand-drawn path and generating a mind map with a hand-drawn effect; Among them, the method of using a preset hand-drawing algorithm to hand-draw the element path of the mind map elements in the mind map to generate a hand-drawn path includes: inputting the element path of the mind map element; for each element path of the mind map element, cutting out multiple segments from the element path at a preset interval, calculating the segments by a Perlin noise function, and obtaining style parameters of the segments; for each segment, processing the style parameters by first-order linear interpolation sampling to obtain the end noise point of the segment; connecting the end noise points of each segment to construct a hand-drawn path corresponding to the mind map element.

2. The rendering method of a mind map based on a hand-drawn style according to claim 1, characterized in that: For each of the segments, the style parameters are processed by first-order linear interpolation sampling to obtain the end noise of the segment, including: For each of the segments, initializing the frequency and amplitude within the segment; Normalizing the frequency and amplitude of the initialized fragments to obtain a frequency normalized value and an amplitude normalized value; An interpolation operation is performed on the frequency normalized value and the amplitude normalized value of the segment, and the interpolation operation result is superimposed on the style parameter of the segment to obtain the end noise point of the segment.

3. The rendering method of a mind map based on a hand-drawn style according to claim 1, characterized in that: The step of connecting the end noise points of each segment to construct a hand-drawn path corresponding to the map element includes: The tail noise points of the first segment and the last segment in the element path are removed, and the original starting coordinate points of the first segment and the last segment are used as the position points connected with other tail noise points to obtain the final hand-painted path.

4. The rendering method of a mind map based on a hand-drawn style according to claim 2, characterized in that: For each of the segments, initializing the frequency and amplitude within the segment includes: Randomly assign values ​​to the frequency and amplitude of the segment within a preset range, and adjust the effect of the assigned values ​​by adjusting the values ​​in multiples.

5. The method for rendering a mind map based on a hand-drawn style according to claim 2, characterized in that: The step of normalizing the frequency and amplitude of the initialized segment to obtain a frequency normalized value and an amplitude normalized value comprises: The frequency and amplitude values ​​of the initialized segments are normalized so that the frequency and amplitude values ​​are transformed and uniformly mapped to the interval [0, 1], and a frequency normalization value and an amplitude normalization value are obtained.

6. The method for rendering a mind map based on a hand-drawn style according to claim 1, characterized in that: The map elements include one or more of topic shapes, branches, connecting lines, frames and outlines.

7. A rendering device for a mind map based on a hand-drawn style, characterized in that: include: The generation unit is used to generate the initial mind map and enter the hand-drawing mode; A calculation unit, used for performing hand-drawing processing on the element paths of the map elements in the mind map by using a preset hand-drawing algorithm to generate a hand-drawn path; A rendering unit, used for rendering the hand-drawn path and generating a mind map with a hand-drawn effect; Among them, the calculation unit is specifically used to: input the element path of the mind map element; for each element path of the mind map element, cut out multiple segments from the element path at a preset interval, calculate the segments through the Perlin noise function, and obtain the style parameters of the segments; for each segment, use first-order linear interpolation sampling to process the style parameters to obtain the end noise point of the segment; connect the end noise points of each segment to construct a hand-drawn path corresponding to the mind map element.

8. A computer device comprising a memory, a processor, and a computer program stored in the memory and executable on the processor, wherein: When the processor executes the computer program, the method for rendering a mind map based on a hand-drawn style according to any one of claims 1 to 6 is implemented.

9. A computer-readable storage medium, characterized in that: The computer-readable storage medium stores a computer program, which, when executed by a processor, enables the processor to perform the method for rendering a mind map based on a hand-drawn style according to any one of claims 1 to 6.