Drawing suggestion generation method, apparatus and device
By acquiring painting operations in real time and using neural networks and machine learning to generate painting suggestions, the problem of painters struggling to maintain their creative individuality in painting education is solved, achieving a balance between the recognizability and creativity of paintings.
Patent Information
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2021-04-20
- Publication Date
- 2026-03-20
AI Technical Summary
In painting instruction, the challenge and pain point is how to enable painters to paint recognizable objects while maintaining their creative individuality. Existing technologies lack interactivity and real-time feedback, which stifles creativity and individuality.
By acquiring drawing operations in real time, drawing suggestions corresponding to the drawing operations are generated based on preset categories. Drawing patterns are analyzed using recurrent neural networks and machine learning models to provide diverse and real-time drawing suggestions.
It enables the generation of diverse and real-time painting suggestions based on the painter's real-time content, allowing the painter to draw recognizable patterns correctly while maintaining creativity and individuality, thus improving the fun and practicality of painting.
Smart Images

Figure CN115222835B_ABST
Abstract
Description
TECHNICAL FIELD
[0001] The present application relates to the technical field of painting, and in particular to a painting suggestion generation method, device and equipment. BACKGROUND
[0002] Painting is the most essential way for people to record what they have seen, heard and thought. One picture is worth a thousand words. Currently, painting teaching is an important link in early childhood education. However, how to make the painter draw recognizable objects while maintaining the painter's creative individuality is a difficult and painful point in painting teaching. SUMMARY
[0003] The embodiments of the present application provide a painting suggestion generation method, device and equipment, which can generate painting suggestions based on the operation of the painter in real time, and is beneficial to realize that the painter draws recognizable objects while maintaining the painter's creative individuality.
[0004] In a first aspect, the embodiments of the present application provide a painting suggestion generation method, comprising:
[0005] Real-time acquisition of painting operation, the painting operation is used to generate a painting pattern of a preset category;
[0006] Based on the preset category, at least one painting suggestion corresponding to the painting operation is generated in real time, and the suggestion patterns corresponding to different painting suggestions are different.
[0007] In some examples, the real-time acquisition of the painting operation comprises:
[0008] Determination of a preset category;
[0009] Real-time acquisition of the painting operation in the painting area corresponding to the preset category.
[0010] In some examples, the determination of the preset category comprises:
[0011] Displaying at least one alternative category;
[0012] Determination of the preset category in the at least one alternative category.
[0013] In some examples, the displaying of the at least one alternative category comprises:
[0014] Real-time acquisition of the first painting operation in the painting area;
[0015] Displaying at least one alternative category in response to the first painting operation.
[0016] In some examples, the painting suggestions corresponding to different painting operations are different.
[0017] In some examples, the drawing suggestion comprises at least one of: a first suggested operation after the drawing operation, at least one second suggested operation after the first suggested operation.
[0018] In some examples, the first suggested operation and the second suggested operation each comprise at least one of: a drawing suggestion stroke, a position corresponding to the drawing suggestion stroke.
[0019] In some examples, based on the preset category, at least one drawing suggestion corresponding to the drawing operation is generated in real time, comprising:
[0020] Obtaining a drawing pattern corresponding to the drawing operation;
[0021] Determining vector information corresponding to the drawing pattern;
[0022] Based on the vector information and the preset category, at least one drawing suggestion corresponding to the drawing operation is generated in real time.
[0023] In some examples, determining vector information corresponding to the drawing pattern comprises:
[0024] Using a recurrent neural network to analyze and process the drawing pattern to obtain vector information corresponding to the drawing pattern.
[0025] In some examples, based on the vector information and the preset category, at least one drawing suggestion corresponding to the drawing operation is generated in real time, comprising:
[0026] Using a machine learning model to analyze and process the vector information and the preset category to generate at least one drawing suggestion corresponding to the drawing operation in real time, wherein the machine learning model is trained to generate drawing suggestions corresponding to drawing operations.
[0027] In some examples, after at least one drawing suggestion corresponding to the drawing operation is generated in real time, the method further comprises:
[0028] Based on the drawing pattern corresponding to the drawing operation, the at least one drawing suggestion is sequentially previewed and displayed.
[0029] In some examples, when the drawing suggestion is multiple; sequentially previewing and displaying the at least one drawing suggestion comprises:
[0030] Obtaining a display mode corresponding to each of the multiple drawing suggestions;
[0031] Using the display mode corresponding to each of the multiple drawing suggestions to sequentially preview and display the multiple drawing suggestions.
[0032] In some examples, after generating at least one painting suggestion corresponding to the painting operation in real time, the method further comprises:
[0033] obtaining a selection operation input by the user for any painting suggestion;
[0034] determining a target painting suggestion corresponding to the selection operation in the at least one painting suggestion;
[0035] displaying a suggestion pattern corresponding to the target painting suggestion.
[0036] In some examples, the method further comprises:
[0037] obtaining a drawing state of the painting operation;
[0038] if the drawing state is a drawing completion state, then stopping generating at least one painting suggestion corresponding to the painting operation.
[0039] In some examples, obtaining a drawing state of the painting operation comprises:
[0040] obtaining a painting completion degree corresponding to the painting pattern;
[0041] determining the drawing state of the painting operation based on the painting completion degree.
[0042] In some examples, obtaining a drawing state of the painting operation comprises:
[0043] obtaining a number of painting operations corresponding to the painting pattern;
[0044] determining the drawing state of the painting operation based on the number of painting operations.
[0045] In some examples, determining the drawing state of the painting operation based on the number of painting operations comprises:
[0046] if the number of painting operations is greater than or equal to a threshold value, then determining that the drawing state of the painting operation is a drawing completion state;
[0047] if the number of painting operations is less than a threshold value, then determining that the drawing state of the painting operation is a non-completion state.
[0048] In a second aspect, an embodiment of the present application provides a painting suggestion generation device, comprising:
[0049] a first obtaining module configured to obtain a painting operation in real time, the painting operation being used to generate a painting pattern of a preset category;
[0050] The first generating module is configured to generate at least one painting suggestion corresponding to the painting operation in real time based on the preset category, and different painting suggestions correspond to different suggestion patterns.
[0051] In a third aspect, an embodiment of the present application provides an electronic device, including a memory and a processor, wherein the memory is configured to store one or more computer instructions, and the one or more computer instructions are configured to implement the method for generating a painting suggestion in the first aspect when executed by the processor.
[0052] In a fourth aspect, an embodiment of the present application provides a computer storage medium configured to store a computer program, and the computer program is configured to implement the method for generating a painting suggestion in the first aspect when executed by a computer.
[0053] In a fifth aspect, an embodiment of the present application provides a method for generating a painting suggestion, including:
[0054] In response to a request for invoking a generation service of a painting suggestion, determining a processing resource corresponding to the generation service of the painting suggestion;
[0055] Using the processing resource to perform the following steps: acquiring a painting operation in real time, the painting operation being configured to generate a painting pattern of a preset category; and generating at least one painting suggestion corresponding to the painting operation in real time based on the preset category, and different painting suggestions correspond to different suggestion patterns.
[0056] In a sixth aspect, an embodiment of the present application provides a device for generating a painting suggestion, including:
[0057] A second determining module is configured to determine a processing resource corresponding to the generation service of the painting suggestion in response to a request for invoking the generation service of the painting suggestion;
[0058] A second processing module is configured to use the processing resource to perform the following steps: acquiring a painting operation in real time, the painting operation being configured to generate a painting pattern of a preset category; and generating at least one painting suggestion corresponding to the painting operation in real time based on the preset category, and different painting suggestions correspond to different suggestion patterns.
[0059] In a seventh aspect, an embodiment of the present application provides an electronic device, including a memory and a processor, wherein the memory is configured to store one or more computer instructions, and the one or more computer instructions are configured to implement the method for generating a painting suggestion in the fifth aspect when executed by the processor.
[0060] In an eighth aspect, an embodiment of the present application provides a computer storage medium configured to store a computer program, and the computer program is configured to implement the method for generating a painting suggestion in the fifth aspect when executed by a computer.
[0061] The technical scheme provided by the embodiment comprises the following steps: acquiring a drawing operation in real time, and generating at least one drawing suggestion corresponding to the drawing operation in real time, wherein the drawing suggestion is used to generate a drawing pattern of a preset category, and the suggestion pattern corresponding to different drawing suggestions is different, so that the drawing suggestion can be generated in real time according to the real-time drawing content of a drawer, different drawing suggestions can be generated when the drawer draws different strokes, and the corresponding drawing suggestion can be changed after the drawer adds or changes strokes, that is, the drawing suggestion can be given according to the thought of the drawer, so that the drawer can correctly draw a recognizable pattern, and the creativity, individuality and interest of the drawing are ensured, and the practicability of the generation method is ensured. BRIEF DESCRIPTION OF DRAWINGS
[0062] In order to more clearly illustrate the technical scheme in the embodiments of the present application or the prior art, the following will briefly introduce the drawings needed to be used in the embodiments or the prior art description. Obviously, the drawings in the following description are some embodiments of the present application, and those skilled in the art can obtain other drawings according to these drawings without creative labor.
[0063] Figure 1 The flowchart of the drawing suggestion generation method provided by the embodiment of the present application is shown in the figure.
[0064] Figure 2 The flowchart of the drawing suggestion generation method provided by the embodiment of the present application is shown in the figure.
[0065] Figure 3 The flowchart of the drawing suggestion generation method provided by the embodiment of the present application is shown in the figure.
[0066] Figure 4 The flowchart of the drawing suggestion generation method provided by the embodiment of the present application is shown in the figure. Figure 1 ;
[0067] Figure 5 The flowchart of the drawing suggestion generation method provided by the embodiment of the present application is shown in the figure. Figure 2 ;
[0068] Figure 6 The flowchart of the drawing suggestion generation method provided by the embodiment of the present application is shown in the figure.
[0069] Figure 7 The flowchart of the drawing suggestion generation method provided by the embodiment of the present application is shown in the figure.
[0070] Figure 8A schematic diagram of a display provided by an embodiment of the present application and showing a suggested pattern corresponding to the target painting suggestion;
[0071] Figure 9 A flowchart of a method for generating a painting suggestion provided by an embodiment of the present application;
[0072] Figure 10 A schematic diagram of a method for displaying a painting suggestion provided by an embodiment of the present application;
[0073] Figure 11 A flowchart of a method for generating a painting suggestion provided by an embodiment of the present application;
[0074] Figure 12 A schematic diagram of a device for generating a painting suggestion provided by an embodiment of the present application;
[0075] Figure 13 A schematic diagram of a device for generating a painting suggestion provided by an embodiment of the present application; Figure 12 A schematic diagram of an electronic device corresponding to the device for generating a painting suggestion provided by an embodiment of the present application;
[0076] Figure 14 A flowchart of a method for generating a painting suggestion provided by an embodiment of the present application;
[0077] Figure 15 A schematic diagram of a device for generating a painting suggestion provided by an embodiment of the present application;
[0078] Figure 16 A schematic diagram of an electronic device corresponding to the device for generating a painting suggestion provided by an embodiment of the present application. Figure 15 A schematic diagram of an electronic device corresponding to the device for generating a painting suggestion provided by an embodiment of the present application. DETAILED DESCRIPTION
[0079] In order to make the objects, technical solutions and advantages of the embodiments of the present application clearer, the following will clearly and completely describe the technical solutions in the embodiments of the present application with reference to the drawings in the embodiments of the present application. Obviously, the described embodiments are some but not all of the embodiments of the present application. Based on the embodiments in the present application, all other embodiments obtained by those of ordinary skill in the art without creative work fall within the scope of the present application.
[0080] The terms used in the embodiments of the present application are merely for the purpose of describing particular embodiments and are not intended to limit the present application. The singular forms "a", "said" and "the" used in the embodiments of the present application and the appended claims are also intended to include the plural forms, unless the context clearly indicates otherwise. "Plural" generally includes at least two but does not exclude the case of including at least one.
[0081] It should be understood that the term "and / or" as used herein merely describes an associated relationship between associated objects, and can represent three relationships, for example, A and / or B, which can represent three cases of A existing alone, A and B existing simultaneously, and B existing alone. In addition, the character " / " herein generally represents an "or" relationship between the front and rear associated objects.
[0082] Depending on the context, the word "if" as used herein can be interpreted as meaning "when" or "while" or "in response to determining" or "in response to detecting". Similarly, depending on the context, the phrase "if it is determined" or "if (a stated condition or event) is detected" can be interpreted as meaning "when it is determined" or "in response to determining" or "when (a stated condition or event) is detected" or "in response to detecting (a stated condition or event)".
[0083] It should also be noted that the terms "comprising", "including", or any other variant thereof are intended to cover non-exclusive inclusions, so that a product or system including a series of elements not only includes those elements, but also includes other elements not explicitly listed, or includes elements inherent to such product or system. Without more limitations, the element defined by the phrase "including a" does not exclude the presence of additional identical elements in the product or system including the element.
[0084] In addition, the step sequence in each of the following method embodiments is only an example, not a strict limitation.
[0085] In order to understand the specific implementation process of the technical solutions in the embodiments, the related technologies are described as follows: painting is the most essential way for people to record what they see, hear and think, and one picture is worth a thousand words. At present, painting teaching is an important link in preschool teaching, and how to make the painter draw recognizable patterns and maintain the creative individuality of the painter is a difficult and painful point in painting teaching.
[0086] In order to ensure the recognizability of the painting pattern, the existing painting teaching method is a fixed teaching based on a painting template, for example: showing the painting steps corresponding to the preset painting template, and letting the painter follow the imitation, or matching the painting content with the painting template in the database, and then giving fixed painting suggestions. However, the above painting method lacks interactivity and cannot give real-time painting feedback and suggestions; in addition, the above implementation scheme not only requires the teacher to spend a lot of time to pay attention to the painter's every stroke, and give painting suggestions, but one or more teachers cannot cover the individuality of all painters, so these painting teaching methods will seriously kill the creativity and individuality of the painter, and easily kill the creative spark of the painter, especially in the teaching process of children's painting.
[0087] To solve the above technical problems, the embodiment provides a drawing suggestion generation method, device and equipment, wherein the generation method acquires a drawing operation in real time, the drawing operation is used to generate a drawing pattern of a preset category, and then at least one drawing suggestion corresponding to the drawing operation can be generated in real time based on the preset category. Different drawing suggestions correspond to different suggestion patterns, so that multiple drawing suggestions with diversity and real-time performance can be given according to real-time drawing content of a drawer. Since the drawing suggestion is generated based on each drawing operation of the drawer, the drawing suggestion has good real-time performance. The generated at least one drawing suggestion can be learned from drawing processes of hundreds of millions of drawers with different preferences in multiple regions in the world, and has the advantages of diversity and real-time performance. This does not hinder the individuality of the drawer.
[0088] Some embodiments of the present application will be described in detail below with reference to the accompanying drawings. The following embodiments and features in the embodiments can be combined with each other without conflict.
[0089] Figure 1 A flowchart of a drawing suggestion generation method provided by an embodiment of the present application is shown in the figure; Figure 2 A flowchart of a drawing suggestion generation method provided by an embodiment of the present application is shown in the figure; Figure 1 -Appendix Figure 2 As shown in the figure, the embodiment provides a drawing suggestion generation method. The execution subject of the method can be a drawing suggestion generation device. It can be understood that the drawing suggestion generation device can be implemented as software or a combination of software and hardware. Specifically, the drawing suggestion generation device can be implemented as a client. The client can be any computing device with certain image processing capabilities.
[0090] The basic structure of the client can include at least one processor. The number of processors depends on the configuration and type of the client. The client can also include a memory, which can be volatile, such as RAM, or non-volatile, such as read-only memory (ROM), flash memory, etc., or both. The memory usually stores an operating system (OS), one or more application programs, and program data, etc. In addition to the processing unit and the memory, the client also includes some basic configurations, such as a network card chip, an IO bus, a display component, and some peripheral devices, etc. Optionally, some peripheral devices can include, for example, a keyboard, a mouse, a stylus, a printer, etc. Other peripheral devices are well known in the art and will not be described here. Optionally, the client can be a PC terminal, a handheld terminal (such as a smartphone, a tablet computer), etc.
[0091] Alternatively, the drawing suggestion generation device can be implemented as a server, which refers to a device that can provide a drawing suggestion generation service in a network virtual environment. In physical implementation, the server can be any device that can provide computing services, respond to drawing requests, and perform processing, such as a cluster server, a regular server, a cloud server, a cloud host, a virtual center, etc. It mainly includes a processor, a hard disk, a memory, a system bus, etc., and is similar to a general computer architecture.
[0092] In the above embodiment, the drawing suggestion generation device can be connected to the client (for user input of drawing operations) in a network connection, which can be a wireless or wired network connection. If the client is in communication connection with the server, the network standard of the mobile network can be any one of 2G (GSM), 2.5G (GPRS), 3G (WCDMA, TD-SCDMA, CDMA2000, UTMS), 4G (LTE), 4G+ (LTE+), WiMax, etc.
[0093] Specifically, the drawing suggestion generation method can include:
[0094] Step S101: Real-time acquisition of drawing operations for generating a drawing pattern of a preset category.
[0095] Step S102: Based on the preset category, at least one drawing suggestion corresponding to the drawing operation is generated in real time, and different drawing suggestions correspond to different suggestion patterns.
[0096] The above steps are described in detail as follows:
[0097] Step S101: Real-time acquisition of drawing operation, the drawing operation is used to generate a drawing pattern of a preset category.
[0098] When the user has a drawing request, real-time drawing operation can be performed in a preset drawing area, wherein the drawing operation can include point selection operation and sliding operation, the drawing operation is used to generate a drawing pattern of a preset category, the preset category can be a category corresponding to a drawing pattern configured in advance or selected by the user, for example, the preset category can include animal category, building category, plant category, and person category, etc., the animal category can include at least one of the following: duckling, puppy, kitten, piglet, chick, and bird, etc., the building category can include at least one of the following: bungalow, building, church, square, shopping mall, and bus stop, etc., the plant category can include at least one of the following: flower, grass, and tree, etc., the person category can include at least one of the following: child, close-up of woman, close-up of man, full view of woman, and full view of man, etc. It can be understood that the preset category can not only include the above-described categories, and those skilled in the art can make any adjustment and setting to the preset category according to specific application scenarios or application requirements, which will not be described here.
[0099] In addition, the drawing pattern of the preset category can be composed of a plurality of different pattern elements, and the pattern elements can include at least one of the following: point, straight line, free curve, arc, circle, square, and rectangle, etc. It can be understood that different drawing operations can correspond to different drawing pattern elements, for example, the drawing operation of the point selection operation can correspond to a dot, and the drawing operation of the sliding operation can correspond to a straight line, a free curve, an arc, a circle, a square, a rectangle, etc., so that the drawing operation can be obtained in real time.
[0100] In addition, the drawing area for acquiring the drawing operation can be arranged on the drawing suggestion generation device, or the drawing area can be arranged in a third device, at this time, the third device can be in communication connection with the drawing suggestion generation device, so that the generation device can obtain the drawing operation in real time through the drawing area.
[0101] Step S102: Real-time generation of at least one drawing suggestion corresponding to the drawing operation based on the preset category, different drawing suggestions correspond to different suggestion patterns.
[0102] After the drawing operation is acquired in real time, the drawing operation can be analyzed and processed based on the preset category corresponding to the drawing operation, so that at least one drawing suggestion corresponding to the drawing operation can be generated in real time, wherein different drawing operations correspond to different drawing suggestions, and different drawing suggestions can correspond to different suggestion patterns of the same preset category.
[0103] In some instances, a drawing suggestion may include at least one of the following: a first suggestion operation following the drawing operation, and at least one second suggestion operation following the first suggestion operation. Specifically, when the drawing pattern corresponding to the drawing operation is about to be completed, the generated drawing suggestion may only include the first suggestion operation; when the drawing pattern corresponding to the drawing operation is not completed, the generated drawing suggestion may include the first suggestion operation and one or more second suggestion operations following the first suggestion operation. Furthermore, both the first suggestion operation and the second suggestion operation described above may include at least one of the following: a drawing suggestion stroke, and the position corresponding to the drawing suggestion stroke.
[0104] For example, see attached document. Figure 2 As shown, when a user inputs drawing operation 1 in a drawing area in real time, drawing operation 1 can be an operation to generate a pattern similar to a "body part". When drawing operation 1 is obtained in real time and the preset category is duck, at least one drawing suggestion corresponding to drawing operation 1 can be generated. At this time, at least one drawing suggestion can include drawing suggestion 1, drawing suggestion 2, drawing suggestion 3, etc. Among them, drawing suggestion 1 can generate a pattern 1 corresponding to the preset category, drawing suggestion 2 can generate a pattern 2 corresponding to the preset category, pattern 1 and pattern 2 are different, and pattern 1 and pattern 2 both correspond to the above-mentioned "duck" category.
[0105] Following the above statement, based on drawing operation 1, the user can continue to perform drawing operations, thereby obtaining drawing operation 2, which is located after drawing operation 1. Drawing operation 2 can be an operation to generate a "head pattern". At this time, at least one drawing suggestion can be generated based on drawing operation 2, which is different from the drawing suggestion corresponding to drawing operation 2 and the at least one drawing suggestion corresponding to drawing operation 1.
[0106] Based on drawing operation 2, the user can continue drawing operations to obtain drawing operation 3, which is used to generate a "beak pattern". When drawing operation 3 is obtained in real time and the preset category is duck, at least one drawing suggestion corresponding to drawing operation 3 can be generated. At this time, at least one drawing suggestion can include drawing suggestion 1, drawing suggestion 2, drawing suggestion 3, etc. Among them, drawing suggestion 1 can generate a pattern 1 corresponding to the preset category, drawing suggestion 2 can generate a pattern 2 corresponding to the preset category, and pattern 1 and pattern 2 are different. Furthermore, the drawing suggestion corresponding to drawing operation 3, the drawing suggestion corresponding to drawing operation 2, and the drawing suggestion corresponding to drawing operation 1 are all different from each other.
[0107] The drawing suggestion generation method provided by the embodiment can generate drawing suggestions in real time according to real-time drawing content of a drawer, can generate different drawing suggestions when the drawer draws different strokes, can change the corresponding drawing suggestions after the drawer adds or changes strokes, that is, can give targeted drawing suggestions along the thought of the drawer, and thus can make the drawer correctly draw recognizable patterns and guarantee the creativity, individuality and interest of drawing, and further guarantee the practicality of the generation method.
[0108] Figure 3 The flowchart for real-time acquisition of drawing operation is provided for the embodiment of the application. On the basis of the above embodiment, with reference to the accompanying drawings, the embodiment provides an implementation manner for real-time acquisition of drawing operation. Figure 3 The implementation manner for real-time acquisition of drawing operation in the embodiment can include the following steps.
[0109] Step S301: Determine a preset category.
[0110] In order to acquire the drawing operation in real time, the preset category can be determined first. In some instances, determining the preset category can include displaying at least one alternative category and determining the preset category from the at least one alternative category.
[0111] Specifically, when the user has a drawing request, the at least one alternative category can be actively displayed in the drawing area in response to the drawing request. For example, when it is detected that the user starts an application program capable of realizing the drawing operation, the at least one alternative category can be directly displayed in the interface of the started application program. At this time, the user has not generated any drawing operation in the drawing area. With reference to the accompanying drawings, the at least one alternative category can be actively displayed in the drawing area in response to the drawing request. Figure 4 After the at least one alternative category is displayed, the user can input an execution operation to any displayed alternative category, and then the preset category can be determined from the at least one alternative category based on the execution operation. The preset category is any one of the at least one alternative category. Thus, the at least one alternative category can be actively displayed in response to the drawing request, and the preset category corresponding to the drawing operation can be determined from the at least one alternative category, and thus the accuracy and reliability of determining the preset category can be guaranteed.
[0112] In other instances, displaying the at least one alternative category in the embodiment can include the following steps. In the drawing area, a first drawing operation is acquired in real time. In response to the first drawing operation, the at least one alternative category is displayed.
[0113] Specifically, when the user exists a drawing request, the user can obtain a first drawing operation in real time in the drawing area, and in response to the first drawing operation, at least one candidate category can be displayed, thereby effectively achieving the display of the candidate category based on the first input drawing operation of the user, as shown in Figure 5 After displaying the at least one candidate category, the user can input an execution operation to any displayed candidate category, and then a preset category can be determined in the at least one candidate category based on the execution operation, which is any one of the at least one candidate category, thereby effectively achieving the display of the at least one candidate category in the display area in response to the first drawing operation, and the determination of the preset category in the at least one candidate category, so as to ensure the accuracy and reliability of the determination of the preset category.
[0114] Step S302: obtaining a drawing operation in real time in a drawing area corresponding to the preset category.
[0115] After determining the preset category, the user can perform a drawing operation in the drawing area corresponding to the preset category, thereby obtaining the drawing operation in real time.
[0116] In this embodiment, by determining the preset category and then obtaining the drawing operation in real time in the drawing area corresponding to the preset category, the accuracy and reliability of the obtaining of the drawing operation are effectively ensured, and the quality and effect of the generation of the drawing suggestion are further ensured.
[0117] Figure 6 The flowchart for generating at least one drawing suggestion corresponding to a drawing operation in real time based on a preset category provided in the embodiment of the present application; on the basis of the above-mentioned embodiment, with reference to the accompanying Figure 6 The implementation manner for generating at least one drawing suggestion corresponding to a drawing operation in real time provided in this embodiment, specifically, the generating of at least one drawing suggestion corresponding to a drawing operation in real time based on a preset category in this embodiment can include:
[0118] Step S601: obtaining a drawing pattern corresponding to a drawing operation.
[0119] After obtaining the drawing operation in real time, the drawing pattern corresponding to the drawing operation can be obtained in the drawing area. It can be understood that when the currently obtained drawing operation is an intermediate operation, the drawing pattern corresponding to the drawing operation is only a partial pattern, and when the currently obtained drawing operation is a last step operation, the drawing pattern corresponding to the drawing operation is a complete pattern.
[0120] Step S602: determining vector information corresponding to the drawing pattern.
[0121] After obtaining the drawing pattern, the drawing pattern can be analyzed and processed to determine the vector information corresponding to the drawing pattern. In some examples, determining the vector information corresponding to the drawing pattern can include: using a recurrent neural network to analyze and process the drawing pattern to obtain the vector information corresponding to the drawing pattern. Specifically, when the recurrent neural network analyzes and processes the drawing pattern, the drawing pattern can be first processed by line segmentation, i.e., the drawing pattern is divided into multiple line segments, and then the vector information corresponding to each line segment is obtained.
[0122] Of course, those skilled in the art can also determine the vector information corresponding to the drawing pattern in other ways, as long as the accuracy and reliability of determining the vector information corresponding to the drawing pattern can be ensured, which will not be repeated here.
[0123] Step S603: Based on the vector information and the preset category, at least one drawing suggestion corresponding to the drawing operation is generated in real time.
[0124] After obtaining the vector information and the preset category, the vector information and the preset category can be analyzed and processed to generate at least one drawing suggestion corresponding to the drawing operation in real time. Specifically, based on the vector information and the preset category, at least one drawing suggestion corresponding to the drawing operation can be generated in real time, which can include: using a machine learning model to analyze and process the vector information and the preset category, and generating at least one drawing suggestion corresponding to the drawing operation in real time, wherein the machine learning model is trained to generate drawing suggestions corresponding to the drawing operation.
[0125] Of course, those skilled in the art can also generate at least one drawing suggestion corresponding to the drawing operation in real time in other ways, as long as the real-time and reliability of generating at least one drawing suggestion corresponding to the drawing operation can be ensured, which will not be repeated here.
[0126] In this embodiment, by obtaining the drawing pattern corresponding to the drawing operation, determining the vector information corresponding to the drawing pattern, and then generating at least one drawing suggestion corresponding to the drawing operation in real time based on the vector information and the preset category, the quality and efficiency of generating at least one drawing suggestion are ensured, and the real-time and reliability of generating at least one drawing suggestion are effectively ensured.
[0127] In some examples, in order to improve the practicability of the generation method, after at least one drawing suggestion corresponding to the drawing operation is generated in real time, the method in this embodiment can further include: sequentially previewing and displaying at least one drawing suggestion based on the drawing pattern corresponding to the drawing operation.
[0128] Wherein, after obtaining the at least one painting suggestion, the at least one painting suggestion can be sequentially previewed and displayed on the basis of the painting pattern in the display area; specifically, the number of the painting suggestions can be one or more, and when the painting suggestions are multiple, sequentially previewing and displaying the at least one painting suggestion can include: obtaining a display mode corresponding to each of the multiple painting suggestions; and sequentially previewing and displaying the multiple painting suggestions by using the display mode corresponding to each of the multiple painting suggestions.
[0129] When the number of the painting suggestions is multiple, in order to enable the user to intuitively understand different painting suggestions, a display mode corresponding to each of the multiple painting suggestions can be obtained, wherein the display modes corresponding to different painting suggestions are different, for example, different painting suggestions can correspond to different display colors, or different painting suggestions can correspond to different line widths, or different painting suggestions can correspond to different line connection degrees, etc.; and then the multiple painting suggestions are sequentially previewed and displayed by using the display mode corresponding to each of the multiple painting suggestions, thereby effectively realizing that the user can quickly and intuitively obtain the at least one painting suggestion corresponding to the painting operation, and further improving the practicability of the method.
[0130] Figure 7 Another flowchart of a painting suggestion generation method provided by the embodiment of the present application is provided; on the basis of the above-mentioned embodiment, reference is made to the accompanying drawings Figure 7 As shown in the accompanying drawings, after generating the at least one painting suggestion corresponding to the painting operation in real time, the method in the embodiment can further include:
[0131] Step S701: obtaining a selection operation input by the user for any painting suggestion.
[0132] Step S702: determining a target painting suggestion corresponding to the selection operation from the at least one painting suggestion.
[0133] Step S703: displaying a suggestion pattern corresponding to the target painting suggestion.
[0134] The display region includes a drawing region for a user to perform a drawing operation and an editable region for previewing display of at least one drawing suggestion. The editable region can be located on one side of the drawing region, for example, on the upper side, lower side, left side or right side of the drawing region. The editable region can be used by the user to input an execution operation on the at least one drawing suggestion. The execution operation can include a transformation operation, a selection operation, a closing operation, a selection operation, etc. When a selection operation input by the user on any drawing suggestion is obtained, a target drawing suggestion corresponding to the selection operation can be determined from the at least one drawing suggestion. The target drawing suggestion is the suggestion information selected by the user and required to be displayed in the drawing region. After the target drawing suggestion is obtained, a suggestion pattern corresponding to the target drawing suggestion can be displayed.
[0135] For example, referring to FIG. 1, the drawing region 101 can be used by the user to input a drawing operation, and the editable region 102 can be used by the user to input an execution operation on at least one drawing suggestion. Figure 8 For example, referring to FIG. 1, the drawing region 101 can be used by the user to input a drawing operation, and the editable region 102 can be used by the user to input an execution operation on at least one drawing suggestion.
[0136] In this embodiment, by obtaining a selection operation input by the user on any drawing suggestion, a target drawing suggestion corresponding to the selection operation is determined from the at least one drawing suggestion, and then a suggestion pattern corresponding to the target drawing suggestion is displayed. Thus, the user can directly generate a desired drawing pattern based on a certain drawing suggestion, thereby ensuring that the drawing operation is the same as the user's thought, reducing the drawing operation of the user, and further improving the quality and efficiency of the drawing operation.
[0137] Figure 9 For another method for generating a drawing suggestion provided in this embodiment, refer to FIG. 2. The method can further include the following steps. Figure 9
[0138] Step S901: Obtain a drawing state of a drawing operation.
[0139] In order to improve the quality and effect of the drawing suggestion generation, the drawing state of the drawing operation can be acquired in real time. Generally, the drawing state of the drawing operation can include a drawing-in-process state and a drawing-finished state. Specifically, the embodiment is not limited to the specific implementation of acquiring the drawing state, and a person skilled in the art can set it according to the specific application scenario or application requirement. In some examples, acquiring the drawing state of the drawing operation can include: acquiring a drawing completion degree corresponding to the drawing pattern; and determining the drawing state of the drawing operation based on the drawing completion degree.
[0140] When the user input drawing operation is acquired, the drawing pattern corresponding to the drawing operation in the drawing area can be acquired. Then, the drawing completion degree corresponding to the drawing pattern can be obtained by performing a completion degree detection operation on the drawing pattern. Specifically, all pattern elements included in the drawing pattern can be detected. Then, all pattern elements are analyzed and compared with all standard elements configured in the drawing pattern when it is completed. When the matching degree of all pattern elements and all standard elements is greater than or equal to a preset threshold, it is determined that the drawing pattern is completed. When the matching degree of all pattern elements and all standard elements is less than the preset threshold, it is determined that the drawing pattern is not completed. The drawing completion degree corresponding to the drawing pattern can be determined based on the matching degree of the pattern elements and all standard elements.
[0141] After the drawing completion degree is determined, the drawing completion degree can be analyzed and processed to determine the drawing state corresponding to the drawing operation. For example, when the drawing completion degree is 100%, it is determined that the drawing state corresponding to the drawing operation is a drawing-finished state. When the drawing completion degree is 70% or 80%, it is determined that the drawing state corresponding to the drawing operation is a drawing-in-process state. This effectively ensures the accuracy and reliability of acquiring the drawing state of the drawing operation.
[0142] In some examples, acquiring the drawing state of the drawing operation can include: acquiring the number of drawing operations corresponding to the drawing pattern; and determining the drawing state of the drawing operation based on the number of drawing operations.
[0143] When the user performs the drawing operation, if the user has input a relatively large number of drawing operations, it indicates that the user has a relatively large drawing time and drawing range for the drawing pattern. If the user has input a relatively small number of drawing operations, it indicates that the user has a relatively small drawing time and drawing range for the drawing pattern. Therefore, in order to stably acquire the drawing state of the drawing operation, the number of drawing operations corresponding to the drawing pattern can be acquired. Then, the number of drawing operations can be analyzed and processed to determine the drawing state of the drawing operation.
[0144] Specifically, determining the drawing state of the drawing operation based on the number of drawing operations can include: when the number of drawing operations is greater than or equal to a threshold, determining that the drawing state of the drawing operation is a drawing complete state; and when the number of drawing operations is less than the threshold, determining that the drawing state of the drawing operation is an incomplete state.
[0145] Different drawing patterns can correspond to different thresholds, for example: when the drawing pattern is a sketch, the threshold corresponding to the drawing pattern is relatively small, such as 50, 60, 100, 200, etc.; and when the drawing pattern is a fine pattern, the threshold corresponding to the drawing pattern is relatively large, such as 300, 400, 500, 600, etc. Of course, the specific numerical range of the threshold is not limited in this embodiment, and those skilled in the art can adjust the threshold according to the specific application scenario or application requirement, as long as the accuracy and reliability of obtaining the drawing state of the drawing operation can be ensured, which will not be described here.
[0146] After obtaining the number of drawing operations, the number of drawing operations can be compared with the threshold. When the number of drawing operations is greater than or equal to the threshold, it indicates that the number of drawing operations input by the user for a drawing pattern is relatively large, and at this time, the drawing state of the drawing operation can be estimated as a drawing complete state. When the number of drawing operations is less than the threshold, it indicates that the number of drawing operations input by the user for a drawing pattern is relatively small, and at this time, the drawing state of the drawing operation can be estimated as an incomplete state, thereby effectively ensuring the accuracy and reliability of determining the drawing state of the drawing operation.
[0147] Step S902: when the drawing state is a drawing complete state, stopping generating at least one drawing suggestion corresponding to the drawing operation.
[0148] After obtaining the drawing state, the drawing suggestion can be analyzed and processed based on the drawing state. Specifically, when the drawing state is a drawing complete state, stopping generating at least one drawing suggestion corresponding to the drawing operation, that is, the generation of the drawing suggestion can be stopped after detecting that the user has finished drawing. When the drawing state is a drawing in progress state, at least one drawing suggestion corresponding to the drawing operation can continue to be generated.
[0149] In this embodiment, by obtaining the drawing state of the drawing operation, when the drawing state is a drawing complete state, at least one drawing suggestion corresponding to the drawing operation can be stopped from being generated, thereby effectively realizing that when the user performs the drawing operation, it can be detected whether the drawing operation is complete, if it is complete, the drawing suggestion is stopped from being given; if the drawing operation is not complete, the drawing suggestion can continue to be generated, thereby effectively improving the flexibility and reliability of the method.
[0150] In a specific application, the application embodiment provides a display method for painting suggestions. The execution subject of the display method can include an interactive painting teaching module and a painting board (display). The interactive painting teaching module is used to provide real-time feedback on the input painting content, and the painting board is responsible for the user's painting operation and the display of painting suggestions. The display method can give painting suggestions along with the creation ideas of the painter, so that the painter can paint a recognizable pattern of an object. In addition, the painting suggestions can be adjusted and changed in real time according to the input painting content of the painter. It should be noted that the displayed painting suggestions are not to show the painting steps to the painter for simulation, nor are they fixed suggestions given after matching the painting content of the painter with the templates in the database. In this way, the painter can correctly paint a recognizable pattern, and the creativity, individuality and interest of the painting can be ensured.
[0151] Specifically, the display method can include the following steps:
[0152] Step 1: The painter selects a category of objects to be painted and inputs the category of objects to the interactive painting teaching module.
[0153] Step 2: The interactive painting teaching module loads the corresponding object category model.
[0154] Step 3: The painter performs a painting operation on the painting board and inputs the painting operation to the interactive painting teaching module.
[0155] Step 4: The interactive painting teaching module converts the painting strokes obtained by the painter through the painting board into vectors and inputs them to the object category model in step 2. The object category model can generate multiple painting suggestions according to the painting strokes obtained by the painting board along with the painting ideas of the painter to complete the subsequent painting stroke scheme, so that the entire painting pattern is recognizable and corresponds to the object category specified in step 1.
[0156] Step 5: Output the multiple painting suggestions to the painting board and display them to the painter in sequence through the painting board.
[0157] Step 6: Wait for the next stroke of the painter.
[0158] Step 7: Repeat steps 3, 4, 5, 6, and 7 until the painting is complete.
[0159] For example, Figure 11As shown, the working principle of the interactive teaching module can be that: real-time acquisition of drawing strokes input by the user through the drawing board, and generation of predicted drawing suggestions based on the drawing strokes. Specifically, S1 to Sn refer to drawing strokes input by the user through the drawing board, and Pn+1 and Pn+m are predicted strokes obtained by analyzing and processing the drawing pattern through a recurrent neural network and a probability model. After acquiring the drawing strokes S1 to Sn, the drawing strokes S1 to Sn can be input into the RNN model and the probability model in turn. After inputting the Sn stroke into the probability model, the output stroke can be the predicted stroke Pn+1. The predicted stroke Pn+1 is continuously input into the RNN model and the probability model to obtain the predicted stroke Pn+2. In some examples, when the model detects that the user has finished drawing the pattern, the generation of the drawing suggestion can be stopped. Alternatively, when the total number (n+m) of predicted strokes and drawn strokes is greater than 300 (a set threshold), the generation of the drawing suggestion can be stopped.
[0160] The display method of the drawing suggestion provided by the application embodiment can give the next drawing suggestion according to the content drawn by the drawer in real time through the interactive drawing teaching module, has good real-time performance, and the generated at least one drawing suggestion can be learned from the drawing process of hundreds of millions of drawers with different preferences in multiple regions in the world, has the advantages of diversity and real-time performance, effectively ensures the recognizability of the drawn pattern, retains the creative individuality and interestingness of the drawer, and further improves the practicability of the method.
[0161] Figure 12 The structure diagram of the drawing suggestion generation device provided by the application embodiment is shown in the figure. Figure 12 As shown, the application embodiment provides a drawing suggestion generation device, which can execute the above-mentioned Figure 1 The drawing suggestion generation method shown in the figure, the generation device can include a first acquisition module 11 and a first generation module 12, specifically,
[0162] The first acquisition module 11 is configured to acquire a drawing operation in real time, and the drawing operation is used to generate a drawing pattern of a preset category.
[0163] The first generation module 12 is configured to generate at least one drawing suggestion corresponding to the drawing operation in real time based on the preset category, and different drawing suggestions correspond to different suggestion patterns.
[0164] In some examples, when the first acquisition module 11 acquires the drawing operation in real time, the first acquisition module 11 is configured to execute: determining a preset category; and acquiring the drawing operation in real time in a drawing area corresponding to the preset category.
[0165] In some examples, when the first obtaining module 11 determines the preset category, the first obtaining module 11 is configured to perform: displaying at least one alternative category; and determining the preset category from the at least one alternative category.
[0166] In some examples, when the first obtaining module 11 displays the at least one alternative category, the first obtaining module 11 is configured to perform: obtaining a first drawing operation in real time in the drawing area; and displaying the at least one alternative category in response to the first drawing operation.
[0167] In some examples, different drawing operations correspond to different drawing suggestions.
[0168] In some examples, the drawing suggestion includes at least one of: a first suggestion operation following the drawing operation, and at least one second suggestion operation following the first suggestion operation.
[0169] In some examples, the first suggestion operation and the second suggestion operation each include at least one of: a drawing suggestion stroke, and a position corresponding to the drawing suggestion stroke.
[0170] In some examples, when the first generation module 12 generates at least one drawing suggestion corresponding to the drawing operation in real time based on the preset category, the first generation module 12 is configured to perform: obtaining a drawing pattern corresponding to the drawing operation; determining vector information corresponding to the drawing pattern; and generating at least one drawing suggestion corresponding to the drawing operation in real time based on the vector information and the preset category.
[0171] In some examples, when the first generation module 12 determines the vector information corresponding to the drawing pattern, the first generation module 12 is configured to perform: analyzing and processing the drawing pattern by using a recurrent neural network to obtain the vector information corresponding to the drawing pattern.
[0172] In some examples, when the first generation module 12 generates at least one drawing suggestion corresponding to the drawing operation in real time based on the vector information and the preset category, the first generation module 12 is configured to perform: analyzing and processing the vector information and the preset category by using a machine learning model to generate at least one drawing suggestion corresponding to the drawing operation in real time, wherein the machine learning model is trained to generate the drawing suggestion corresponding to the drawing operation.
[0173] In some examples, after generating at least one drawing suggestion corresponding to the drawing operation in real time, the first generation module 12 in this embodiment is further configured to: sequentially preview and display the at least one drawing suggestion based on the drawing pattern corresponding to the drawing operation.
[0174] In some examples, when the drawing suggestion is multiple; when the first generation module 12 sequentially displays the at least one drawing suggestion, the first generation module 12 is configured to perform: obtaining a display mode corresponding to each of the multiple drawing suggestions; and sequentially displaying the multiple drawing suggestions by using the display mode corresponding to each of the multiple drawing suggestions.
[0175] In some examples, after generating the at least one drawing suggestion corresponding to the drawing operation in real time, the first generation module 12 and the first generation module 12 in the embodiment are configured to perform the following steps:
[0176] The first generation module 12 is configured to determine a target drawing suggestion corresponding to the selection operation from the at least one drawing suggestion; and display a suggestion pattern corresponding to the target drawing suggestion.
[0177] The first generation module 12 is configured to determine a target drawing suggestion corresponding to the selection operation from the at least one drawing suggestion; and display a suggestion pattern corresponding to the target drawing suggestion.
[0178] In some examples, the first generation module 11 and the first generation module 12 in the embodiment are configured to perform the following steps:
[0179] The first generation module 12 is configured to determine a target drawing suggestion corresponding to the selection operation from the at least one drawing suggestion; and display a suggestion pattern corresponding to the target drawing suggestion.
[0180] The first generation module 12 is configured to determine a target drawing suggestion corresponding to the selection operation from the at least one drawing suggestion; and display a suggestion pattern corresponding to the target drawing suggestion.
[0181] In some examples, when the first generation module 11 obtains the drawing state of the drawing operation, the first generation module 11 is configured to perform: obtaining a drawing completion degree corresponding to the drawing pattern; and determining the drawing state of the drawing operation based on the drawing completion degree.
[0182] In some examples, when the first generation module 11 obtains the drawing state of the drawing operation, the first generation module 11 is configured to perform: obtaining a drawing completion degree corresponding to the drawing pattern; and determining the drawing state of the drawing operation based on the drawing completion degree.
[0183] In some examples, when the first generation module 11 determines the drawing state of the drawing operation based on the number of drawing operations, the first generation module 11 is configured to perform: when the number of drawing operations is greater than or equal to a threshold value, determining that the drawing state of the drawing operation is a completed state; and when the number of drawing operations is less than the threshold value, determining that the drawing state of the drawing operation is an incomplete state.
[0184] Figure 12 The apparatus can perform Figures 1-11 The method of the embodiment, the part not described in detail in the embodiment can be referred to the description of the apparatus. Figures 1-11The related description of the embodiment is shown. The execution process and technical effects of the technical solution are seen in Figures 1-11 The description in the embodiment is shown, and details are not repeated here.
[0185] In one possible design, Figure 12 The structure of the drawing suggestion generation apparatus shown can be implemented as an electronic device, which can be a mobile phone, a tablet computer, a server, or various devices. As shown in Figure 14 The electronic device can include a first processor 21 and a first memory 22. The first memory 22 is configured to store programs for the electronic device to perform the above Figures 1-11 The first processor 21 is configured to execute the programs stored in the first memory 22.
[0186] The programs include one or more computer instructions, and the one or more computer instructions can implement the following steps when executed by the first processor 21:
[0187] Real-time acquisition of drawing operations, the drawing operations being used to generate a drawing pattern of a preset category;
[0188] Based on the preset category, at least one drawing suggestion corresponding to the drawing operation is generated in real time, and different drawing suggestions correspond to different suggestion patterns.
[0189] Further, the first processor 21 is further configured to execute all or part of the steps of the above Figures 1-11 The embodiment shown.
[0190] The structure of the electronic device can further include a first communication interface 23 for communication between the electronic device and other devices or communication networks.
[0191] In addition, the embodiment of the application provides a computer storage medium for storing computer software instructions for an electronic device, which includes programs for executing the drawing suggestion generation method in the above Figures 1-11 The programs involved in the drawing suggestion generation method in the method embodiment.
[0192] Figure 14 Another flowchart of a drawing suggestion generation method provided by the embodiment of the application is shown. Referring to the accompanying Figure 14 The embodiment provides another drawing suggestion generation method, and the execution subject of the method can be a drawing suggestion generation apparatus. It can be understood that the drawing suggestion generation apparatus can be implemented as software or a combination of software and hardware. Specifically, the drawing suggestion generation method can include:
[0193] Step S1401: In response to a request for calling a drawing suggestion generation service, determining a processing resource corresponding to the drawing suggestion generation service;
[0194] Step S1402: using the processing resource, performing the following steps: acquiring a drawing operation in real time, the drawing operation being used to generate a drawing pattern of a preset category; based on the preset category, generating at least one drawing suggestion corresponding to the drawing operation in real time, different drawing suggestions corresponding to different suggestion patterns.
[0195] Specifically, the drawing suggestion generation method provided by the present application can be executed in the cloud, and a plurality of computing nodes can be deployed in the cloud, each of which has computing, storage and other processing resources. In the cloud, a plurality of computing nodes can be organized to provide a certain service, and of course, one computing node can also provide one or more services.
[0196] For the scheme provided by the present application, the cloud can provide a service for completing the drawing suggestion generation method, which is called a drawing suggestion generation service. When a user needs to use the drawing suggestion generation service, the drawing suggestion generation service is called to trigger a request to the cloud to call the drawing suggestion generation service, and the drawing operation can be carried in the request. The cloud determines the computing node responding to the request, and uses the processing resource in the computing node to perform the following steps: acquiring a drawing operation in real time, the drawing operation being used to generate a drawing pattern of a preset category; based on the preset category, generating at least one drawing suggestion corresponding to the drawing operation in real time.
[0197] Specifically, the implementation process, implementation principle and implementation effect of the above method steps in the present embodiment are similar to those of the method steps of the method of the above Figures 1-11 embodiment, and the parts not described in detail in the present embodiment can refer to the related description of the above Figures 1-11 embodiment.
[0198] Figure 15 A structural diagram of a drawing suggestion generation device provided by the present embodiment is shown in the accompanying drawings. Figure 15 The present embodiment provides a drawing suggestion generation device, which can execute the drawing suggestion generation method shown in the above Figure 15 The generation device can include a second determination module 31 and a second processing module 32. Specifically,
[0199] The second determination module 31 is configured to determine the processing resource corresponding to the drawing suggestion generation service in response to the request to call the drawing suggestion generation service.
[0200] The second processing module 32 is used to perform the following steps using the processing resources: real-time acquisition of drawing operations, the drawing operations being used to generate drawing patterns of a preset category; and real-time generation of at least one drawing suggestion corresponding to the drawing operation based on the preset category.
[0201] Figure 15 The device shown can perform Figure 14 For the methods shown in the embodiments, the parts not described in detail in this embodiment can be referred to the following: Figure 14 The relevant descriptions of the illustrated embodiments are provided below. For the execution process and technical effects of this technical solution, please refer to [link / reference]. Figure 14 The descriptions in the illustrated embodiments will not be repeated here.
[0202] In one possible design, Figure 15 The structure of the drawing suggestion generation device shown can be implemented as an electronic device, which can be various devices such as mobile phones, tablets, and servers. Figure 16 As shown, the electronic device may include a second processor 41 and a second memory 42. The second memory 42 is used to store data executed by the corresponding electronic device. Figure 14 In the illustrated embodiment, the program for generating drawing suggestions includes a second processor 41 configured to execute a program stored in a second memory 42.
[0203] The program includes one or more computer instructions, wherein when executed by the second processor 41, the one or more computer instructions can perform the following steps:
[0204] In response to a request to invoke the drawing suggestion generation service, determine the processing resources corresponding to the drawing suggestion generation service;
[0205] The processing resources are used to perform the following steps: real-time acquisition of drawing operations, which are used to generate drawing patterns of a preset category; based on the preset category, real-time generation of at least one drawing suggestion corresponding to the drawing operation, with different drawing suggestions corresponding to different suggested patterns.
[0206] Furthermore, the second processor 41 is also used to perform the aforementioned... Figure 14 All or part of the steps in the illustrated embodiments.
[0207] The structure of the electronic device may also include a second communication interface 43 for communication between the electronic device and other devices or communication networks.
[0208] In addition, embodiments of the present invention provide a computer storage medium for storing computer software instructions used by an electronic device, which includes instructions for executing the above-described... Figure 14 The procedure involved in the method for generating drawing suggestions in the illustrated embodiment.
[0209] The device embodiments described above are only schematic, wherein the units as shown in the separate components can or can not be physically separate, and the components as shown in the units can or can not be physical units, i.e., can be located in one place, or can be distributed to multiple network units. Part or all of the modules can be selected according to actual needs to achieve the purposes of the embodiments. Those skilled in the art can understand and implement without creative labor.
[0210] Through the description of the above embodiments, those skilled in the art can clearly understand that each embodiment can be realized by means of a general hardware platform as necessary, and of course can also be realized by means of combination of hardware and software. Based on such understanding, the above technical solutions can be embodied in the form of computer products, and the present application can be in the form of computer program products implemented on one or more computer usable storage media (including but not limited to disk storage, CD-ROM, optical storage, etc.) containing computer usable program codes.
[0211] The present application is described with reference to flowcharts and / or block diagrams of the method, device (system), and computer program product according to the embodiments of the present application. It should be understood that each flow and / or block in the flowcharts and / or block diagrams, and the combination of the flows and / or blocks in the flowcharts and / or block diagrams can be realized by computer program instructions. These computer program instructions can be provided to a general-purpose computer, a special-purpose computer, an embedded processor, or other programmable devices to produce a machine, so that the instructions executed by the computer or other programmable devices produce a device implemented in the flowcharts and / or block diagrams. Figure 1 one or more flows and / or blocks Figure 1 means for performing the function specified by the flow or flows and / or block or blocks.
[0212] These computer program instructions can also be stored in a computer readable storage medium capable of directing the computer or other programmable devices to work in a specific manner, so that the instructions stored in the computer readable storage medium produce a product including instruction means, which realizes the flowcharts and / or block diagrams. Figure 1 one or more flows and / or blocks Figure 1 one or more flows and / or blocks
[0213] These computer program instructions can also be loaded into a computer or other programmable devices, so that a series of operation steps are performed on the computer or other programmable devices to produce a computer implemented process, so that the instructions executed on the computer or other programmable devices provide a process for realizing the flowcharts and / or block diagrams. Figure 1one or more processes and / or blocks Figure 1 the steps of a function specified in one or more blocks.
[0214] In one typical arrangement, a computing device includes one or more processors (CPUs), input / output interfaces, network interfaces, and memory.
[0215] The memory can include non-persistent memory and / or volatile memory, such as random access memory (RAM) and / or cache memory, non-volatile memory, such as read-only memory (ROM), EPROM, and / or flash memory. The memory is an example of computer readable media.
[0216] Computer readable media includes permanent and non-permanent, removable and non-removable media implemented in any method or technology for storage of information such as computer readable instructions, data structures, program modules or other data. Examples of computer storage media include, but are not limited to, phase change memory (PRAM), static random access memory (SRAM), dynamic random access memory (DRAM), other types of random access memory (RAM), read-only memory (ROM), electrically erasable programmable read-only memory (EEPROM), flash memory or other memory technology, compact disc read-only memory (CD-ROM), digital versatile disc (DVD), or other optical storage, magnetic cassettes, magnetic tapes, magnetic disk storage or other magnetic storage devices, or any other non-transmission medium that can be used to store information accessible to a computing device. According to the definition herein, computer readable media does not include transitory media, such as modulated data signals and carrier waves.
[0217] Finally, it should be noted that the above-mentioned embodiments are only used to illustrate the technical solutions of the present application, rather than limit them; although the present application has been described in detail with reference to the foregoing embodiments, those skilled in the art should understand that they can still modify the technical solutions recorded in the foregoing embodiments, or make equivalent replacements to some technical features; and these modifications or replacements do not make the essence of the corresponding technical solutions deviate from the spirit and scope of the technical solutions of the embodiments of the present application.
Claims
1. A method for generating drawing suggestions, characterized in that, include: Real-time acquisition of drawing operations, which are used to generate drawing patterns of a preset category; Based on the preset category, at least one drawing suggestion corresponding to the drawing operation is generated in real time, and different drawing suggestions correspond to different suggested patterns; Specifically, based on the preset category, at least one drawing suggestion corresponding to the drawing operation is generated in real time, including: Obtain the drawing pattern corresponding to the drawing operation; Determine the vector information corresponding to the painting pattern; Based on the vector information and the preset category, at least one painting suggestion corresponding to the painting operation is generated in real time.
2. The method according to claim 1, characterized in that, Real-time acquisition of drawing operations, including: Determine the preset category; In the painting area corresponding to the preset category, painting operations are acquired in real time.
3. The method according to claim 2, characterized in that, Define the preset categories, including: Display at least one alternative category; The preset category is determined from the at least one alternative category.
4. The method according to claim 3, characterized in that, Display at least one alternative category, including: In the drawing area, the first drawing operation is captured in real time; In response to the first drawing operation, at least one alternative category is displayed.
5. The method according to claim 1, characterized in that, After generating at least one painting suggestion corresponding to the painting operation in real time, the method further includes: Based on the drawing pattern corresponding to the drawing operation, the at least one drawing suggestion is previewed and displayed sequentially.
6. The method according to claim 5, characterized in that, When there are multiple drawing suggestions; previewing and displaying the at least one drawing suggestion sequentially, including: Get the display method corresponding to each of the multiple drawing suggestions; The multiple drawing suggestions are previewed sequentially using their respective display methods.
7. The method according to any one of claims 1-6, characterized in that, The method further includes: Obtain the drawing state of the drawing operation; If the drawing state is "drawing completed", then stop generating at least one drawing suggestion corresponding to the drawing operation.
8. The method according to claim 7, characterized in that, Obtaining the drawing state of the drawing operation includes: Obtain the completion level of the drawing corresponding to the drawing pattern; Based on the completion rate of the drawing, the drawing status of the drawing operation is determined.
9. A device for generating drawing suggestions, characterized in that, include: The first acquisition module is used to acquire painting operations in real time, and the painting operations are used to generate painting patterns of a preset category; The first generation module is used to generate at least one painting suggestion corresponding to the painting operation in real time based on the preset category, and different painting suggestions correspond to different suggestion patterns; The first generation module is used to obtain a drawing pattern corresponding to the drawing operation; Determine the vector information corresponding to the painting pattern; Based on the vector information and the preset category, at least one painting suggestion corresponding to the painting operation is generated in real time.
10. An electronic device, characterized in that, include: A memory and a processor; wherein the memory is used to store one or more computer instructions, wherein the one or more computer instructions, when executed by the processor, implement the method for generating drawing suggestions as described in any one of claims 1-8.
11. A method for generating drawing suggestions, characterized in that, include: In response to a request to invoke the drawing suggestion generation service, determine the processing resources corresponding to the drawing suggestion generation service; The following steps are performed using the processing resources: real-time acquisition of drawing operations, which are used to generate drawing patterns of a preset category; Based on the preset category, at least one drawing suggestion corresponding to the drawing operation is generated in real time, and different drawing suggestions correspond to different suggested patterns; wherein, based on the preset category, generating at least one drawing suggestion corresponding to the drawing operation in real time includes: obtaining a drawing pattern corresponding to the drawing operation; determining vector information corresponding to the drawing pattern; and generating at least one drawing suggestion corresponding to the drawing operation in real time based on the vector information and the preset category.
Citation Information
Patent Citations
Drawing assistance method and device
CN103473010A
Information prompting method and device
CN111857499A