CN115222835A - Drawing suggestion generation method, device and equipment - Google Patents

Drawing suggestion generation method, device and equipment Download PDF

Info

Publication number
CN115222835A
CN115222835A CN202110427036.8A CN202110427036A CN115222835A CN 115222835 A CN115222835 A CN 115222835A CN 202110427036 A CN202110427036 A CN 202110427036A CN 115222835 A CN115222835 A CN 115222835A
Authority
CN
China
Prior art keywords
suggestion
generating
real time
drawing operation
preset category
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Pending
Application number
CN202110427036.8A
Other languages
Chinese (zh)
Inventor
李珂
汪彪
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Alibaba Innovation Co
Original Assignee
Alibaba Singapore Holdings Pte Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Alibaba Singapore Holdings Pte Ltd filed Critical Alibaba Singapore Holdings Pte Ltd
Priority to CN202110427036.8A priority Critical patent/CN115222835A/en
Publication of CN115222835A publication Critical patent/CN115222835A/en
Pending legal-status Critical Current

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06TIMAGE DATA PROCESSING OR GENERATION, IN GENERAL
    • G06T11/002D [Two Dimensional] image generation
    • G06T11/001Texturing; Colouring; Generation of texture or colour
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06NCOMPUTING ARRANGEMENTS BASED ON SPECIFIC COMPUTATIONAL MODELS
    • G06N20/00Machine learning
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06TIMAGE DATA PROCESSING OR GENERATION, IN GENERAL
    • G06T11/002D [Two Dimensional] image generation
    • G06T11/60Editing figures and text; Combining figures or text

Landscapes

  • Engineering & Computer Science (AREA)
  • Theoretical Computer Science (AREA)
  • Physics & Mathematics (AREA)
  • General Physics & Mathematics (AREA)
  • Software Systems (AREA)
  • Computer Vision & Pattern Recognition (AREA)
  • Data Mining & Analysis (AREA)
  • Evolutionary Computation (AREA)
  • Medical Informatics (AREA)
  • Artificial Intelligence (AREA)
  • Computing Systems (AREA)
  • General Engineering & Computer Science (AREA)
  • Mathematical Physics (AREA)
  • User Interface Of Digital Computer (AREA)

Abstract

The embodiment of the invention provides a method, a device and equipment for generating a drawing suggestion. The method comprises the following steps: obtaining a drawing operation in real time, wherein the drawing operation is used for generating drawing patterns of a preset category; and generating at least one drawing suggestion corresponding to the drawing operation in real time based on the preset category, wherein suggestion patterns corresponding to different drawing suggestions are different. The technical scheme that this embodiment provided, realized effectively that can generate the drawing suggestion in real time according to drawing person's real-time drawing content, when drawing person draws different strokes, can generate different drawing suggestions, after drawing person adds or changes the stroke, can change corresponding drawing suggestion, can provide the drawing suggestion of pertinence along drawing person's thinking, can let drawing person correctly draw like this and draw recognizable pattern, can guarantee the creation nature of drawing again, individual character and interest, and then guaranteed the practicality of this generation method effectively.

Description

Drawing suggestion generation method, device and equipment
Technical Field
The invention relates to the technical field of drawing, in particular to a drawing suggestion generation method, device and equipment.
Background
Drawing is the most essential way for recording what people find, and one drawing wins thousand words, at present, drawing teaching is an important link in infant teaching, and how to let a painter draw identifiable things and keep the creation personality of the painter is the difficult point and pain point in drawing teaching.
Disclosure of Invention
The embodiment of the invention provides a drawing suggestion generation method, a drawing suggestion generation device and drawing suggestion generation equipment, which can generate a drawing suggestion in real time based on the operation of a painter, and are beneficial to realizing that the painter draws identifiable things and maintains the creation personality of the painter.
In a first aspect, an embodiment of the present invention provides a method for generating a drawing suggestion, including:
obtaining a drawing operation in real time, wherein the drawing operation is used for generating drawing patterns of a preset category;
and generating at least one drawing suggestion corresponding to the drawing operation in real time based on the preset category, wherein suggestion patterns corresponding to different drawing suggestions are different.
In some examples, the drawing operations are captured in real-time, including:
determining a preset category;
and obtaining the drawing operation in real time in the drawing area corresponding to the preset category.
In some examples, determining the preset category includes:
displaying at least one alternative category;
and determining the preset category in the at least one alternative category.
In some examples, at least one alternative category is displayed, including:
in a drawing area, acquiring first drawing operation in real time;
in response to the first drawing operation, at least one alternative category is displayed.
In some examples, the drawing suggestions for different drawing operations are different.
In some examples, the drawing suggestion includes at least one of: a first suggested operation located after the drawing operation, at least one second suggested operation located after the first suggested operation.
In some examples, the first suggested operation and the second suggested operation each include at least one of: drawing suggestion strokes and positions corresponding to the drawing suggestion strokes.
In some examples, generating, in real-time, at least one drawing suggestion corresponding to the drawing operation based on the preset category includes:
acquiring a drawing pattern corresponding to the drawing operation;
determining vector information corresponding to the drawing pattern;
generating at least one drawing suggestion corresponding to the drawing operation in real time based on the vector information and the preset category.
In some examples, determining vector information corresponding to the drawing pattern includes:
and analyzing the drawing pattern by using a recurrent neural network to obtain vector information corresponding to the drawing pattern.
In some examples, generating, in real-time, at least one drawing suggestion corresponding to the drawing operation based on the vector information and the preset category includes:
and analyzing and processing the vector information and the preset category by utilizing a machine learning model, and generating at least one drawing suggestion corresponding to the drawing operation in real time, wherein the machine learning model is trained for generating the drawing suggestion corresponding to the drawing operation.
In some examples, after generating in real-time at least one drawing suggestion corresponding to the drawing operation, the method further comprises:
and sequentially previewing and displaying the at least one drawing suggestion on the basis of the drawing pattern corresponding to the drawing operation.
In some examples, when the drawing suggestion is multiple; sequentially previewing and displaying the at least one drawing suggestion, comprising:
acquiring display modes corresponding to the plurality of drawing suggestions respectively;
and sequentially previewing and displaying the plurality of drawing suggestions by using the display modes corresponding to the plurality of drawing suggestions respectively.
In some examples, after generating in real-time at least one drawing suggestion corresponding to the drawing operation, the method further comprises:
acquiring selection operation input by a user aiming at any drawing suggestion;
determining a target drawing suggestion corresponding to the selection operation in the at least one drawing suggestion;
and displaying a suggestion pattern corresponding to the target drawing suggestion.
In some examples, the method further comprises:
acquiring a drawing state of the drawing operation;
and when the drawing state is a drawing completion state, stopping generating at least one drawing suggestion corresponding to the drawing operation.
In some examples, obtaining a drawing state of the drawing operation includes:
obtaining the painting completion degree corresponding to the painting pattern;
and determining the drawing state of the drawing operation based on the drawing completion degree.
In some examples, obtaining a drawing state of the drawing operation includes:
acquiring the number of drawing operations corresponding to the drawing pattern;
determining a drawing state of the drawing operation based on the number of drawing operations.
In some examples, determining a drawing state of the drawing operation based on the number of drawing operations includes:
when the drawing operation number is larger than or equal to a threshold value, determining that the drawing state of the drawing operation is a drawing completion state;
and when the drawing operation number is smaller than a threshold value, determining that the drawing state of the drawing operation is a non-finished state.
In a second aspect, an embodiment of the present invention provides an apparatus for generating a drawing suggestion, including:
the device comprises a first acquisition module, a second acquisition module and a third acquisition module, wherein the first acquisition module is used for acquiring a drawing operation in real time, and the drawing operation is used for generating a preset type of drawing pattern;
and the first generation module is used for generating at least one drawing suggestion corresponding to the drawing operation in real time based on the preset category, and suggestion patterns corresponding to different drawing suggestions are different.
In a third aspect, an embodiment of the present invention provides an electronic device, including: a memory, a processor; wherein the memory is configured to store one or more computer instructions, wherein the one or more computer instructions, when executed by the processor, implement the method of generating a drawing suggestion in the first aspect.
In a fourth aspect, an embodiment of the present invention provides a computer storage medium for storing a computer program, which causes a computer to execute a method for generating drawing suggestions in the first aspect.
In a fifth aspect, an embodiment of the present invention provides a method for generating a drawing suggestion, including:
responding to a request for calling a generation service of a drawing suggestion, and determining a processing resource corresponding to the generation service of the drawing suggestion;
performing the following steps with the processing resource: obtaining a drawing operation in real time, wherein the drawing operation is used for generating drawing patterns of a preset category; and generating at least one drawing suggestion corresponding to the drawing operation in real time based on the preset category, wherein suggestion patterns corresponding to different drawing suggestions are different.
In a sixth aspect, an embodiment of the present invention provides an apparatus for generating a drawing suggestion, including:
the second determination module is used for responding to a request for calling the generation service of the drawing suggestion and determining the processing resource corresponding to the generation service of the drawing suggestion;
a second processing module, configured to perform the following steps using the processing resource: obtaining a drawing operation in real time, wherein the drawing operation is used for generating drawing patterns of a preset category; and generating at least one drawing suggestion corresponding to the drawing operation in real time based on the preset category, wherein suggestion patterns corresponding to different drawing suggestions are different.
In a seventh aspect, an embodiment of the present invention provides an electronic device, including: a memory, a processor; wherein the memory is configured 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 in the fifth aspect.
In an eighth aspect, an embodiment of the present invention provides a computer storage medium for storing a computer program, where the computer program enables a computer to implement the method for generating drawing suggestions in the fifth aspect when executed.
According to the technical scheme, the drawing operation is acquired in real time, at least one drawing suggestion corresponding to the drawing operation is generated in real time, the drawing suggestion is used for generating drawing patterns of preset categories, and suggestion patterns corresponding to different drawing suggestions are different, so that the drawing suggestion can be generated in real time according to real-time drawing contents of a painter, different drawing suggestions can be generated when the painter draws different strokes, the corresponding drawing suggestion can be changed after the painter adds or changes the strokes, namely, the specific drawing suggestion can be given along the thought of the painter, and therefore the painter can correctly draw recognizable creation patterns, the drawing creation performance, the individuality and the interestingness can be guaranteed, and the practicability of the generation method is guaranteed.
Drawings
In order to more clearly illustrate the embodiments of the present invention or the technical solutions in the prior art, the drawings used in the embodiments or the description of the prior art will be briefly described below, and it is obvious that the drawings in the following description are some embodiments of the present invention, and other drawings can be obtained by those skilled in the art without creative efforts.
Fig. 1 is a schematic flow chart of a method for generating a drawing suggestion according to an embodiment of the present invention;
FIG. 2 is a schematic diagram of a method for generating a drawing suggestion according to an embodiment of the present invention;
FIG. 3 is a schematic flow chart of a drawing operation performed in real time according to an embodiment of the present invention;
fig. 4 is a first schematic diagram illustrating determining a preset category according to an embodiment of the present invention;
fig. 5 is a second schematic diagram illustrating determining a preset category according to an embodiment of the present invention;
FIG. 6 is a schematic flow chart of generating at least one drawing suggestion corresponding to the drawing operation in real time based on the preset category according to an embodiment of the present invention;
FIG. 7 is a flowchart illustrating a method for generating another drawing suggestion according to an embodiment of the present invention;
FIG. 8 is a schematic diagram of an embodiment of the present invention showing a suggestion pattern corresponding to the target drawing suggestion;
FIG. 9 is a flowchart illustrating a method for generating a drawing suggestion according to an embodiment of the present invention;
FIG. 10 is a schematic diagram illustrating a method for displaying a drawing suggestion according to an embodiment of the present invention;
FIG. 11 is a flowchart illustrating a method for generating a drawing suggestion according to an embodiment of the present invention;
fig. 12 is a schematic structural diagram of a drawing suggestion generation apparatus according to an embodiment of the present invention;
fig. 13 is a schematic structural diagram of an electronic device corresponding to the drawing suggestion generation device provided in the embodiment shown in fig. 12;
FIG. 14 is a flowchart illustrating a method for generating a drawing suggestion according to an embodiment of the present invention;
fig. 15 is a schematic structural diagram of a drawing suggestion generation apparatus according to an embodiment of the present invention;
fig. 16 is a schematic structural diagram of an electronic device corresponding to the drawing suggestion generation apparatus provided in the embodiment shown in fig. 15.
Detailed Description
In order to make the objects, technical solutions and advantages of the embodiments of the present invention clearer, the technical solutions in the embodiments of the present invention will be clearly and completely described below with reference to the drawings in the embodiments of the present invention, and it is obvious that the described embodiments are some, but not all embodiments of the present invention. All other embodiments, which can be obtained by a person skilled in the art without inventive step based on the embodiments of the present invention, are within the scope of protection of the present invention.
The terminology used in the embodiments of the invention is for the purpose of describing particular embodiments only and is not intended to be limiting of the invention. As used in the examples of the present invention and the appended claims, the singular forms "a", "an", and "the" are intended to include the plural forms as well, and "a" and "an" generally include at least two, but do not exclude at least one, unless the context clearly dictates otherwise.
It should be understood that the term "and/or" as used herein is merely a relationship that describes an associated object, meaning that three relationships may exist, e.g., a and/or B, may represent: a exists alone, A and B exist simultaneously, and B exists alone. In addition, the character "/" herein generally indicates that the former and latter related objects are in an "or" relationship.
The words "if", as used herein may be interpreted as "at \8230; \8230whenor" when 8230; \8230when or "in response to a determination" or "in response to a detection", depending on the context. Similarly, the phrases "if determined" or "if detected (a stated condition or event)" may be interpreted as "when determined" or "in response to a determination" or "when detected (a stated condition or event)" or "in response to a detection (a stated condition or event)", depending on the context.
It is also noted that the terms "comprises," "comprising," or any other variation thereof, are intended to cover a non-exclusive inclusion, such that a good or system that comprises a list of elements does not include only those elements but may include other elements not expressly listed or inherent to such good or system. Without further limitation, an element defined by the phrases "comprising one of \8230;" does not exclude the presence of additional like elements in an article or system comprising the element.
In addition, the sequence of steps in each method embodiment described below is only an example and is not strictly limited.
In order to understand the specific implementation process of the technical solution in this embodiment, the following description is made on the related technologies: painting is the most essential way people record what you see in what you like, a picture wins a thousand words. At present, drawing teaching is a very important link in infant teaching, and how to let the painter draw recognizable things and patterns and keep the painter's creation personality is difficult point and pain point in drawing teaching.
In order to ensure the identifiability of the drawing pattern, the existing drawing teaching mode is based on the fixed teaching of a drawing template, for example: and displaying the drawing steps corresponding to the preset drawing template, so that a painter can follow the copying, or after matching the drawing content with the drawing template in the database, giving a fixed drawing suggestion. However, the above painting methods lack interactivity, and cannot give painting feedback and suggestions in real time; in addition, the implementation scheme not only needs a teacher to spend a lot of time paying attention to one drawing of the painter and give drawing suggestions, but one or more teachers cannot acquire the individuality of all the painters, so the drawing teaching methods can seriously kill the creativity and the individuality of the painters, and easily kill the creation sparks of the painters, especially in the teaching process of children drawing.
In order to solve the above technical problem, the present embodiment provides a method, an apparatus, and a device for generating a drawing suggestion, wherein the generating method obtains 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, and suggested patterns corresponding to different drawing suggestions are different, so that a plurality of drawing suggestions with diversity and real-time can be effectively provided according to real-time drawing contents of a painter.
Some embodiments of the invention are described in detail below with reference to the accompanying drawings. The features of the embodiments and examples described below may be combined with each other without conflict between the embodiments.
Fig. 1 is a schematic flow chart of a method for generating a drawing suggestion according to an embodiment of the present invention; FIG. 2 is a schematic diagram of a method for generating a drawing suggestion according to an embodiment of the present invention; referring to fig. 1-2, the embodiment provides a method for generating a drawing suggestion, an executing body of the method may be a drawing suggestion generating apparatus, it is understood that the drawing suggestion generating apparatus may be implemented as software or a combination of software and hardware, and specifically, the drawing suggestion generating apparatus may be implemented as a client, and the client may be any computing device with certain image processing capability.
The basic structure of the client may include: at least one processor. The number of processors depends on the configuration and type of client. The client may also include a Memory, which may be volatile, such as RAM, or non-volatile, such as Read-Only Memory (ROM), flash Memory, etc., or may include both types. The memory typically stores an Operating System (OS), one or more application programs, and may also store program data and the like. In addition to the processing unit and the memory, the client includes some basic configurations, such as a network card chip, an IO bus, a display component, and some peripheral devices. Optionally, some peripheral devices may include, for example: keyboard, mouse, stylus, printer, etc. Other peripheral devices are well known in the art and will not be described in detail herein. Alternatively, the client may be a PC (personal computer) terminal, a handheld terminal (e.g., a smart phone, a tablet computer), or the like.
Alternatively, the generating means of the drawing suggestion can be implemented as a server, which refers to a device that can provide the generating service of the drawing suggestion in the network virtual environment. In physical implementation, the server can be any device capable of providing computing services, responding to drawing requests, and performing processing, such as: the system can be a cluster server, a conventional server, a cloud host, a virtual center and the like, and mainly comprises a processor, a hard disk, a memory, a system bus and the like, and is similar to a general computer architecture.
In the above embodiment, the generating device of the drawing suggestion may be in network connection with the client (for the user to input the drawing operation), and the network connection may be a wireless or wired network connection. If the client and the server are in communication connection, the network standard of the mobile network may be any one of 2G (GSM), 2.5G (GPRS), 3G (WCDMA, TD-SCDMA, CDMA2000, UTMS), 4G (LTE), 4G + (LTE +), wiMax, etc.
Specifically, the method for generating the drawing suggestion may include:
step S101: and acquiring drawing operation in real time, wherein the drawing operation is used for generating drawing patterns of preset categories.
Step S102: and generating at least one drawing suggestion corresponding to the drawing operation in real time based on the preset category, wherein suggestion patterns corresponding to different drawing suggestions are different.
The above steps are explained in detail below:
step S101: and acquiring a drawing operation in real time, wherein the drawing operation is used for generating a drawing pattern of a preset category.
When a drawing request exists in a user, a real-time drawing operation can be performed in a preset drawing area, wherein the drawing operation can include a click operation and a slide operation, the drawing operation is used for generating a drawing pattern of a preset category, the preset category can be a category corresponding to the drawing pattern configured in advance/selected by the user, for example, the preset category can include an animal, a building, a plant, a figure and the like, and the animal can include at least one of the following: ducklings, puppies, kittens, piglets, chickens, birds, and the like, and building categories may include at least one of: bungalow, building, church, square, mall, bus station, etc., the plant species may include at least one of: flowers, grasses, trees, etc., and the character class may include at least one of: children, women's close-up views, men's close-up views, women's panoramic views, men's panoramic views, and so on. It can be understood that the preset categories may not only include the categories described above, and those skilled in the art may arbitrarily adjust and set the preset categories configured in advance according to a specific application scenario or application requirement, which is not described herein again.
In addition, the pictorial pattern for generating the preset category may be composed of a plurality of different pattern elements, which may include at least one of: points, straight lines, free curves, arcs, circles, squares, rectangles, and the like; it will be appreciated that different drawing operations may correspond to different drawing pattern elements, for example: the drawing operation of the clicking operation can correspond to a circular point, and the drawing operation of the sliding operation can correspond to a straight line, a free curve, a circular arc, a circle, a square, a rectangle and the like, so that the drawing operation can be obtained in real time.
Further, a drawing region for acquiring a drawing operation may be provided on the generation apparatus of the drawing advice, or the drawing region may be provided in a third apparatus, and at this time, the third apparatus may be in communication connection with the generation apparatus of the drawing advice, so that the generation apparatus can acquire the drawing operation in real time through the drawing region.
Step S102: and generating at least one drawing suggestion corresponding to the drawing operation in real time based on the preset category, wherein suggestion patterns corresponding to different drawing suggestions are different.
After the drawing operation is acquired in real time, the drawing operation can be analyzed and processed based on a 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 the drawing suggestions corresponding to different drawing operations are different, and different drawing suggestions can correspond to different suggestion patterns of the same preset category.
In some examples, the drawing suggestion may include at least one of: the drawing method comprises the following steps that a first suggestion operation is carried out after the drawing operation, and at least one second suggestion operation is carried out after the first suggestion operation, specifically, when a drawing pattern corresponding to the drawing operation is about to be completed, the generated drawing suggestion can only comprise the first suggestion operation; when the drawing pattern corresponding to the drawing operation is not completed, the generated drawing suggestion may include a first suggestion operation and one or more second suggestion operations subsequent to the first suggestion operation. In addition, the first and second suggested operations described above may each include at least one of: drawing suggestion strokes and positions corresponding to the drawing suggestion strokes.
For example, referring to fig. 2, when a user inputs a drawing operation 1 in real time in a drawing area, the drawing operation 1 may be an operation for generating a similar "body part pattern"; when the drawing operation 1 is acquired in real time and the preset category is ducklings, at least one drawing suggestion corresponding to the drawing operation 1 may be generated, at this time, the at least one drawing suggestion may include a drawing suggestion 1, a drawing suggestion 2, a drawing suggestion 3, and the like, where the drawing suggestion 1 may correspondingly generate a pattern 1 corresponding to the preset category, the drawing suggestion 2 may correspondingly generate a pattern 2 corresponding to the preset category, the pattern 1 and the pattern 2 are different, and both the pattern 1 and the pattern 2 correspond to the category of ducklings.
Receiving the statement, on the basis of the drawing operation 1, the user may continue to perform the drawing operation, so as to obtain the drawing operation 2 subsequent to the drawing operation 1, where the drawing operation 2 may be an operation for generating a similar "head pattern", and at this time, at least one drawing suggestion may be generated based on the drawing operation 2, and the drawing suggestion corresponding to the drawing operation 2 is different from the at least one drawing suggestion corresponding to the drawing operation 1.
On the basis of the drawing operation 2, the user can continue the drawing operation, so that the drawing operation 3 located after the drawing operation 2 can be acquired, and the drawing operation 3 can be an operation for generating a similar "mouth pattern". When the drawing operation 3 is acquired in real time and the preset category is a duckling, at least one drawing suggestion corresponding to the drawing operation 3 can be generated, at this time, the at least one drawing suggestion can include a drawing suggestion 1, a drawing suggestion 2, a drawing suggestion 3 and the like, wherein the drawing suggestion 1 can correspondingly generate a pattern 1 corresponding to the preset category, the drawing suggestion 2 can correspondingly generate a pattern 2 corresponding to the preset category, the pattern 1 and the pattern 2 are different, and the drawing suggestion corresponding to the drawing operation 3, the drawing suggestion corresponding to the drawing operation 2 and the drawing suggestion corresponding to the drawing operation 1 are different in pairs.
The method for generating the drawing suggestion provided by the embodiment comprises the steps of obtaining drawing operation in real time, then generating at least one drawing suggestion corresponding to the drawing operation in real time, wherein the drawing suggestion is used for generating drawing patterns of preset categories, and suggestion patterns corresponding to different drawing suggestions are different, so that the drawing suggestion can be generated in real time according to real-time drawing contents of a painter, different drawing suggestions can be generated when the painter draws different strokes, the corresponding drawing suggestion can be changed after the painter adds or changes the strokes, namely, the targeted drawing suggestion can be given along the thought of the painter, so that the painter can correctly draw recognizable patterns, the drawing creation, the personality and the interestingness can be ensured, and the practicability of the generation method is further ensured.
FIG. 3 is a schematic flow chart of a drawing operation performed in real time according to an embodiment of the present invention; on the basis of the foregoing embodiment, with reference to fig. 3, this embodiment provides an implementation manner of obtaining the drawing operation in real time, and specifically, the obtaining the drawing operation in real time in this embodiment may include:
step S301: a preset category is determined.
In order to obtain the drawing operation in real time, a preset category may be determined in advance, and in some examples, determining the preset category may include: displaying at least one alternative category; in at least one alternative category, a preset category is determined.
In particular, when a user has a drawing request, at least one alternative category may be actively displayed in the drawing area in response to the drawing request, for example: when it is detected that a user starts an application program capable of implementing a drawing operation, at least one alternative category may be directly displayed in an interface of the started application program, and at this time, the user does not generate any drawing operation in a drawing area, as shown in fig. 4. After the at least one alternative category is displayed, the user can input and execute an operation on any displayed alternative category, and then the preset category can be determined in the at least one alternative category based on the execution operation, wherein the preset category is any one of the at least one alternative category, so that the at least one alternative category can be actively displayed in response to the drawing request, the preset category corresponding to the drawing operation is determined in the at least one alternative category, and the accurate reliability of the determination of the preset category can be ensured.
In other examples, displaying at least one alternative category in this embodiment may include: in the drawing area, acquiring first drawing operation in real time; at least one alternative category is displayed in response to the first drawing operation.
Specifically, when a drawing request exists by a user, the user can obtain a first drawing operation in real time in the drawing area, and at least one alternative category can be displayed in response to the first drawing operation, so that the alternative category can be displayed on the basis of the drawing operation input by the user first, as shown in fig. 5. After the at least one alternative category is displayed, a user can input and execute an operation on any displayed alternative category, and then a preset category can be determined in the at least one alternative category based on the execution operation, wherein the preset category is any one of the at least one alternative category, so that the at least one alternative category can be displayed in the display area in response to the first drawing operation, and the preset category can be determined in the at least one alternative category, and therefore the accurate reliability of the determination of the preset category can be ensured.
Step S302: and obtaining the drawing operation in real time in a drawing area corresponding to the preset category.
After the preset category is determined, the user can perform drawing operation in the drawing area corresponding to the preset category, so that the drawing operation can be acquired in real time.
In the embodiment, the preset category is determined, and then the drawing operation is acquired in the drawing area corresponding to the preset category in real time, so that the accuracy and reliability of acquiring the drawing operation are effectively ensured, and the quality and the effect of generating the drawing suggestion are further ensured.
Fig. 6 is a schematic flowchart of generating at least one drawing suggestion corresponding to a drawing operation in real time based on a preset category according to an embodiment of the present invention; on the basis of the foregoing embodiment, referring to fig. 6, this embodiment provides an implementation manner of generating at least one drawing suggestion corresponding to a drawing operation in real time, and specifically, the generating at least one drawing suggestion corresponding to a drawing operation in real time based on a preset category in this embodiment may include:
step S601: and acquiring a drawing pattern corresponding to the drawing operation.
In which, after the drawing operation is acquired in real time, a drawing pattern corresponding to the drawing operation can be acquired in the drawing region, and it can be understood that, when the currently acquired drawing operation is an intermediate operation, the drawing pattern corresponding to the drawing operation is only a partial pattern, and when the currently acquired drawing operation is a last operation, the drawing pattern corresponding to the drawing operation is a complete pattern.
Step S602: vector information corresponding to the drawing pattern is determined.
After acquiring the drawing pattern, the drawing pattern may be analyzed to determine vector information corresponding to the drawing pattern, which in some examples may include: the method comprises the steps of utilizing a recurrent neural network to analyze and process a drawing pattern to obtain vector information corresponding to the drawing pattern, specifically, when the recurrent neural network analyzes and processes the drawing pattern, firstly performing line segmentation on the drawing pattern, namely dividing the drawing pattern into a plurality of line segments, and then obtaining the vector information corresponding to each line segment.
Of course, those skilled in the art may also determine the vector information corresponding to the drawing pattern in other manners, as long as the accuracy and reliability of determining the vector information corresponding to the drawing pattern can be ensured, which is not described herein again.
Step S603: and generating at least one drawing suggestion corresponding to the drawing operation in real time based on the vector information and the preset category.
After the vector information and the preset category are acquired, the vector information and the preset category can be analyzed 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, the generating of at least one drawing suggestion corresponding to the drawing operation in real time may include: and analyzing and processing the vector information and the preset category by using a machine learning model, and generating at least one drawing suggestion corresponding to the drawing operation in real time, wherein the machine learning model is trained for generating the drawing suggestion corresponding to the drawing operation.
Of course, a person skilled in the art may also use other manners to generate at least one drawing suggestion corresponding to the drawing operation in real time, as long as the real-time performance and reliability of generating the at least one drawing suggestion corresponding to the drawing operation can be ensured, which is not described herein again.
In the embodiment, the drawing pattern corresponding to the drawing operation is obtained, the vector information corresponding to the drawing pattern is determined, and then at least one drawing suggestion corresponding to the drawing operation is generated in real time based on the vector information and the preset category, so that the quality and the efficiency of generating the at least one drawing suggestion are ensured, and the real-time performance and the reliability of generating the at least one drawing suggestion are effectively ensured.
In some examples, to improve the utility of the generation method, after generating at least one drawing suggestion corresponding to a drawing operation in real time, the method in this embodiment may further include: and sequentially previewing and displaying at least one drawing suggestion on the basis of the drawing pattern corresponding to the drawing operation.
After the at least one drawing suggestion is obtained, sequentially previewing and displaying the at least one drawing suggestion on the basis of the drawing pattern in the display area; specifically, the number of the drawing suggestions can be one or more, and when the number of the drawing suggestions is more than one; the sequentially previewing and displaying the at least one drawing suggestion may comprise: acquiring a display mode corresponding to each of the plurality of drawing suggestions; and sequentially previewing and displaying the plurality of drawing suggestions by using the display modes corresponding to the plurality of drawing suggestions respectively.
When the number of the drawing suggestions is multiple, in order to enable the user to intuitively know different drawing suggestions, display modes corresponding to the multiple drawing suggestions may be obtained, where the display modes corresponding to the different drawing suggestions are different, for example: different drawing suggestions can correspond to different display colors, or different drawing suggestions can correspond to different line widths, or different drawing suggestions can correspond to different line connectivity and the like; and then, the plurality of drawing suggestions are sequentially previewed and displayed by using the display modes corresponding to the plurality of drawing suggestions respectively, so that the user can quickly and intuitively know at least one drawing suggestion corresponding to the drawing operation, and the practicability of the method is further improved.
FIG. 7 is a flowchart illustrating a method for generating another drawing suggestion according to an embodiment of the present invention; on the basis of the above embodiment, referring to fig. 7, after generating at least one drawing suggestion corresponding to the drawing operation in real time, the method in this embodiment may further include:
step S701: and acquiring a selection operation input by a user aiming at any drawing suggestion.
Step S702: in at least one drawing suggestion, a target drawing suggestion corresponding to the selection operation is determined.
Step S703: and displaying a suggestion pattern corresponding to the target drawing suggestion.
Wherein, in the display area, a drawing area for the user to perform the drawing operation and an editable area for preview display of the at least one drawing suggestion are included, and the editable area may be located at one side of the drawing area, for example, the editable area may be located at an upper side, a lower side, a left side, or a right side of the drawing area. The editable area can be used for a user to perform an operation on at least one drawing suggestion input, and the performing operation can include: transform operations, select operations, close operations, select operations, and the like. When the selection operation input by the user for any drawing suggestion is acquired, a target drawing suggestion corresponding to the selection operation can be determined in at least one drawing suggestion, and the target drawing suggestion is suggestion information which is selected by the user and needs to be displayed in a drawing area. After the target drawing suggestion is obtained, a suggestion pattern corresponding to the target drawing suggestion can be displayed.
For example, referring to fig. 8, when the preset category is angel and the drawing operation input by the user in the drawing area is acquired, at least one drawing suggestion may be generated based on the preset category and the drawing operation, where the at least one drawing suggestion corresponds to the "angel" category, and then the at least one drawing suggestion may be displayed in the editable area. The user can perform an operation on any drawing suggestion input displayed in the editable area, and when the user inputs a selection operation (for example, a click operation) on one drawing suggestion, a drawing pattern corresponding to the drawing suggestion can be directly displayed in the drawing area.
In the embodiment, the selection operation input by the user for any drawing suggestion is obtained, the target drawing suggestion corresponding to the selection operation is determined in at least one drawing suggestion, and then the suggestion pattern corresponding to the target drawing suggestion is displayed, so that the user can directly generate the desired drawing pattern based on a certain drawing suggestion, the idea of the user is ensured to be the same as that of the painter, the drawing operation of the painter is reduced, and the quality and the efficiency of the drawing operation are further improved.
FIG. 9 is a flowchart illustrating a method for generating a drawing suggestion according to an embodiment of the present invention; on the basis of the above embodiment, referring to fig. 9, the method in this embodiment may further include:
step S901: and acquiring the drawing state of the drawing operation.
When the drawing operation is obtained in real time, in order to improve the quality and effect of the drawing suggestion generation, the drawing state of the drawing operation can be obtained in real time, and generally, the drawing state of the drawing operation can include a drawing in-process state and a drawing completion state. Specifically, the embodiment does not limit the specific implementation manner of obtaining the drawing state, and a person skilled in the art may set the drawing state according to a specific application scenario or an application requirement, and in some examples, obtaining the drawing state of the drawing operation may include: obtaining the painting completeness corresponding to the painting pattern; and determining the drawing state of the drawing operation based on the drawing completion degree.
When the drawing operation input by the user is acquired, the drawing pattern corresponding to the drawing operation in the drawing area can be acquired, then the completion detection operation can be performed on the drawing pattern, so that the drawing completion corresponding to the drawing pattern can be acquired, specifically, all pattern elements included in the drawing pattern can be detected, then all pattern elements and all standard elements configured when the drawing pattern is completed are analyzed and compared, when the matching degree of all pattern elements and all standard elements is greater than or equal to a preset threshold value, the drawing pattern can be determined to be completed, when the matching degree of all pattern elements and all standard elements is less than the preset threshold value, the drawing pattern can be determined to be not completed, and the drawing completion corresponding to the drawing pattern can be determined based on the matching degree of the pattern elements and all standard elements.
After determining the drawing completion, the drawing completion may be analyzed to determine a drawing state corresponding to the drawing operation, for example: when the drawing completion degree is 100%, the drawing state corresponding to the drawing operation can be determined as the drawing completion state; when the drawing completion degree is 70% or 80%, the drawing state corresponding to the drawing operation can be determined to be the drawing in-process state, so that the accuracy and reliability of obtaining the drawing state of the drawing operation are effectively ensured.
In other examples, obtaining the drawing state of the drawing operation may include: obtaining the number of drawing operations corresponding to the drawing patterns; and determining the drawing state of the drawing operation based on the number of the drawing operations.
When a user performs a drawing operation, if the user has input a relatively large number of drawing operations, it is described that the user performs a relatively large drawing time and a relatively small drawing range on the drawing pattern. Therefore, in order to be able to stably acquire the drawing state of the drawing operation, the number of drawing operations corresponding to the drawing pattern may be acquired, and then the number of drawing operations may be analyzed to determine the drawing state of the drawing operation.
Specifically, based on the number of drawing operations, determining the drawing state of the drawing operation may include: when the number of the drawing operations is larger than or equal to the threshold value, determining that the drawing state of the drawing operations is a drawing completion state; and when the drawing operation number is smaller than the threshold value, determining that the drawing state of the drawing operation is a non-finished state.
Wherein different drawing patterns may correspond to different thresholds, for example: when the drawing pattern is a simple stroke, 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 a person skilled in the art can arbitrarily adjust the threshold according to a specific application scenario or an application requirement, as long as the accuracy and reliability of obtaining the drawing state of the drawing operation can be ensured, which is not described herein again.
After the number of drawing operations is obtained, the number of drawing operations can be analyzed and compared with a threshold, and when the number of drawing operations is greater than or equal to the threshold, it indicates that the number of drawing operations input by a user for a drawing pattern is large, and at this time, it can be estimated that the drawing state of the drawing operation is a drawing completion state. When the number of the drawing operations is smaller than the threshold value, the number of the drawing operations input by the user aiming at a drawing pattern is smaller, and the drawing state of the drawing operation can be estimated to be a non-finished state; therefore, the drawing state of the drawing operation is effectively ensured to be determined accurately and reliably.
Step S902: and when the drawing state is a drawing completion state, stopping generating at least one drawing suggestion corresponding to the drawing operation.
After the drawing state is acquired, the drawing suggestion can be analyzed and processed based on the drawing state, specifically, when the drawing state is a drawing completion state, the generation of at least one drawing suggestion corresponding to the drawing operation is stopped, that is, the generation of the drawing suggestion is stopped after the completion of drawing by the user is detected. When the drawing state is the drawing in-process state, at least one drawing suggestion corresponding to the drawing operation can be continuously generated.
In the embodiment, by obtaining the drawing state of the drawing operation, when the drawing state is the drawing completion state, the generation of at least one drawing suggestion corresponding to the drawing operation can be stopped, so that whether the drawing operation is completed or not can be effectively detected when the user performs the drawing operation, and if the drawing operation is completed, the drawing suggestion stops being given; if the drawing operation is not finished, the drawing suggestion can be continuously generated, so that the flexibility and the reliability of the method are effectively improved.
In a specific application, an execution main body of the display method may include an interactive drawing teaching module and a drawing board (display), where the interactive drawing teaching module is configured to perform real-time feedback on input drawing content, and the drawing board is responsible for a user to perform drawing operation and display operation of a drawing suggestion. The display method can provide drawing suggestions along the creation thought of a painter, so that the painter draws identifiable object patterns, and the drawing suggestions can be adjusted and changed along with the drawing contents input by the painter in real time; therefore, the drawing person can correctly draw recognizable patterns, and the creation, individuality and interestingness of drawing can be guaranteed.
Specifically, the display method may include the steps of:
step 1: the painter selects the object type to be painted and inputs the object type to the interactive painting teaching module.
Step 2: and the interactive drawing teaching module loads a corresponding object type model.
And 3, step 3: the painter performs drawing operation on the drawing board and inputs the drawing operation to the interactive drawing teaching module.
And 4, step 4: the interactive drawing teaching module converts drawing strokes obtained by a painter through the drawing board into vectors, and inputs the vectors into the object type model in the step 2, and the object type model can generate a plurality of drawing suggestions along the drawing thought of the painter according to the drawing strokes obtained by the drawing board so as to complement the subsequent drawing stroke scheme and enable the whole drawing pattern to be a recognizable pattern corresponding to the object type specified in the step 1.
And 5: and outputting the plurality of drawing suggestions to the drawing board, and sequentially displaying the plurality of drawing suggestions to the painter through the drawing board.
Step 6: waiting for the painter to draw next stroke.
And 7: and repeating the steps 3, 4, 5, 6 and 7 until the drawing is finished.
As shown in fig. 11, the working principle of the interactive teaching module may be: the method comprises the steps of obtaining drawing strokes input by a user through a drawing board in real time, and generating predicted drawing suggestions based on the drawing strokes, wherein S1 to Sn are assumed to be the drawing strokes input by the user through the drawing board, and Pn +1 and Pn + m are predicted strokes obtained by analyzing and processing drawing patterns through a recurrent neural network and a probability model. After the drawing strokes S1 to Sn are obtained, the drawing strokes S1 to Sn can be sequentially input into an RNN model and a probability model, the Sn strokes can be input into the probability model, the output strokes can be predicted strokes Pn +1, the predicted strokes Pn +1 are continuously input into the RNN model and the probability model, predicted strokes Pn +2 are obtained, and the predicted strokes Pn + m can be sequentially obtained. In some examples, the model may stop generating and giving drawing suggestions after detecting that the user has finished drawing the pattern, or may stop generating and giving drawing suggestions when detecting that the total number (n + m) of the predicted stroke number and the drawn stroke number is greater than 300 (a set threshold).
The drawing suggestion display method provided by the application embodiment can give the drawing suggestion of the next step according to the contents drawn by the painter in real time through the interactive drawing teaching module, has good real-time performance, and at least one generated drawing suggestion can be learned from the drawing process of tens of millions of painters in different preferences in multiple regions in the world, and has the advantages of diversity and real-time performance, so that the identifiability of the drawn pattern is effectively ensured, the creation personality and interestingness of the painter are kept, and the practicability of the method is further improved.
Fig. 12 is a schematic structural diagram of a drawing suggestion generation apparatus according to an embodiment of the present invention; referring to fig. 12, the present embodiment provides a drawing suggestion generation apparatus, which can execute the drawing suggestion generation method shown in fig. 1, and the generation apparatus can include: the first acquisition module 11 and the first generation module 12 are, in particular,
the first obtaining module 11 is configured to obtain a drawing operation in real time, where the drawing operation is used to generate a drawing pattern of a preset category.
The first generation module 12 is configured to generate at least one drawing suggestion corresponding to a drawing operation in real time based on a preset category, where different drawing suggestions correspond to different suggestion patterns.
In some examples, when the first obtaining module 11 obtains the drawing operation in real time, the first obtaining module 11 is configured to perform: determining a preset category; and obtaining the drawing operation in real time in a drawing area corresponding to the preset category.
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; in at least one alternative category, a preset category is determined.
In some examples, when the first obtaining module 11 displays at least one alternative category, the first obtaining module 11 is configured to perform: in the drawing area, acquiring first drawing operation in real time; at least one alternative category is displayed in response to the first drawing operation.
In some examples, the drawing suggestions for different drawing operations are different.
In some examples, the drawing recommendation includes at least one of: a first suggested operation following the drawing operation, at least one second suggested operation following the first suggested operation.
In some examples, the first suggested operation and the second suggested operation each include at least one of: drawing suggestion strokes and positions corresponding to the drawing suggestion strokes.
In some examples, when the first generation module 12 generates at least one drawing suggestion corresponding to a drawing operation in real time based on a preset category, the first generation module 12 is configured to perform: acquiring 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.
In some examples, when the first generation module 12 determines vector information corresponding to a painting pattern, the first generation module 12 is to perform: and analyzing the drawing pattern by using the recurrent neural network to obtain vector information corresponding to the drawing pattern.
In some examples, when the first generation module 12 generates at least one drawing suggestion corresponding to a drawing operation in real time based on the vector information and the preset category, the first generation module 12 is configured to perform: and analyzing and processing the vector information and the preset category by utilizing a machine learning model, and generating at least one drawing suggestion corresponding to the drawing operation in real time, wherein the machine learning model is trained for generating the drawing suggestion corresponding to the drawing operation.
In some examples, after generating in real-time at least one drawing suggestion corresponding to a drawing operation, the first generating module 12 in this embodiment is further configured to: and sequentially previewing and displaying at least one drawing suggestion on the basis of the drawing pattern corresponding to the drawing operation.
In some examples, when the drawing suggestion is multiple; when the first generating module 12 sequentially previews and displays at least one drawing suggestion, the first generating module 12 is configured to: acquiring display modes corresponding to the plurality of drawing suggestions respectively; and sequentially previewing and displaying the plurality of drawing suggestions by using the display modes corresponding to the plurality of drawing suggestions respectively.
In some examples, after generating at least one drawing suggestion corresponding to a drawing operation in real time, the first obtaining module 11 and the first generating module 12 in this embodiment are configured to perform the following steps:
a first obtaining module 11, configured to obtain a selection operation input by a user for any drawing suggestion;
a first generating module 12, configured to determine, among the at least one drawing suggestion, a target drawing suggestion corresponding to the selection operation; and displaying a suggestion pattern corresponding to the target drawing suggestion.
In some examples, the first obtaining module 11 and the first generating module 12 in the present embodiment are configured to perform the following steps:
a first obtaining module 11, configured to obtain a drawing state of a drawing operation;
the first generating module 12 is configured to stop generating at least one drawing suggestion corresponding to the drawing operation when the drawing state is a drawing completed state.
In some examples, when the first obtaining module 11 obtains the drawing state of the drawing operation, the first obtaining module 11 is configured to perform: acquiring the painting completion degree corresponding to the painting pattern; and determining the drawing state of the drawing operation based on the drawing completion degree.
In some examples, when the first obtaining module 11 obtains the drawing state of the drawing operation, the first obtaining module 11 is configured to perform: obtaining the number of drawing operations corresponding to the drawing patterns; and determining the drawing state of the drawing operation based on the number of the drawing operations.
In some examples, when the first obtaining module 11 determines the drawing state of the drawing operation based on the number of drawing operations, the first obtaining module 11 is configured to perform: when the number of the drawing operations is larger than or equal to the threshold value, determining that the drawing state of the drawing operations is a drawing completion state; and when the drawing operation number is smaller than the threshold value, determining that the drawing state of the drawing operation is a non-finished state.
The apparatus shown in fig. 12 can perform the method of the embodiment shown in fig. 1 to 11, and for parts not described in detail in this embodiment, reference may be made to the related description of the embodiment shown in fig. 1 to 11. The implementation process and technical effect of the technical solution refer to the descriptions in the embodiments shown in fig. 1 to fig. 11, and are not described herein again.
In one possible design, the structure of the drawing suggestion generation apparatus shown in fig. 12 may be implemented as an electronic device, which may be a mobile phone, a tablet computer, a server, or other various devices. As shown in fig. 14, the electronic device may include: a first processor 21 and a first memory 22. Wherein the first memory 22 is used for storing a program for executing the method for generating the drawing suggestion in the embodiment shown in fig. 1-11, and the first processor 21 is configured to execute the program stored in the first memory 22.
The program comprises one or more computer instructions, wherein the one or more computer instructions, when executed by the first processor 21, are capable of performing the steps of:
obtaining a drawing operation in real time, wherein the drawing operation is used for generating drawing patterns of a preset category;
and generating at least one drawing suggestion corresponding to the drawing operation in real time based on the preset category, wherein suggestion patterns corresponding to different drawing suggestions are different.
Further, the first processor 21 is also configured to perform all or part of the steps in the embodiments shown in fig. 1 to 11.
The electronic device may further include a first communication interface 23, which is used for the electronic device to communicate with other devices or a communication network.
In addition, the embodiment of the present invention provides a computer storage medium for storing computer software instructions for an electronic device, which includes a program for executing the method for generating drawing suggestions in the method embodiments shown in fig. 1 to 11.
FIG. 14 is a flowchart illustrating a method for generating a drawing suggestion according to an embodiment of the present invention; referring to fig. 14, the present embodiment provides still another drawing suggestion generation method, and the execution subject of the method may be a drawing suggestion generation device, and it is understood that the drawing suggestion generation device may be implemented as software, or a combination of software and hardware. Specifically, the method for generating the drawing suggestion may include:
step S1401: responding to a request for calling a generation service of a drawing suggestion, and determining a processing resource corresponding to the generation service of the drawing suggestion;
step S1402: performing the following steps with the processing resource: obtaining a drawing operation in real time, wherein the drawing operation is used for generating drawing patterns of a preset category; and generating at least one drawing suggestion corresponding to the drawing operation in real time based on the preset category, wherein suggestion patterns corresponding to different drawing suggestions are different.
Specifically, the method for generating the drawing suggestion provided by the invention can be executed at a cloud end, a plurality of computing nodes can be deployed at the cloud end, and each computing node has processing resources such as computation, storage and the like. In the cloud, a plurality of computing nodes may be organized to provide a service, and of course, one computing node may also provide one or more services.
Aiming at the scheme provided by the invention, the cloud can provide a service for completing the generation method of the drawing suggestion, which is called as the generation service of the drawing suggestion. When the user needs to use the generation service of the drawing suggestion, the generation service of the drawing suggestion is called, so that a request for calling the generation service of the drawing suggestion is triggered to the cloud end, and the request can carry drawing operation. The cloud determines the compute nodes that respond to the request, and performs the following steps using processing resources in the compute nodes: obtaining a drawing operation in real time, wherein the drawing operation is used for generating drawing patterns of a preset category; and generating at least one drawing suggestion corresponding to the drawing operation in real time based on the preset category.
Specifically, the implementation process, implementation principle and implementation effect of the above method steps in this embodiment are similar to the implementation process, implementation principle and implementation effect of the method steps in the embodiment shown in fig. 1 to 11, and for parts not described in detail in this embodiment, reference may be made to the related description of the embodiment shown in fig. 1 to 11.
Fig. 15 is a schematic structural diagram of a drawing suggestion generation apparatus according to an embodiment of the present invention; referring to fig. 15, the present embodiment provides a drawing suggestion generation apparatus, which can execute the above-mentioned drawing suggestion generation method shown in fig. 15, and the generation apparatus can include: a second determination module 31 and a second processing module 32; in particular, the method comprises the following steps of,
a second determining module 31, configured to determine, in response to a request for invoking a generation service of a drawing suggestion, a processing resource corresponding to the generation service of the drawing suggestion;
a second processing module 32, configured to perform, by using the processing resource, the following steps: obtaining a drawing operation in real time, wherein the drawing operation is used for generating drawing patterns of a preset category; and generating at least one drawing suggestion corresponding to the drawing operation in real time based on the preset category.
The apparatus shown in fig. 15 can perform the method of the embodiment shown in fig. 14, and reference may be made to the related description of the embodiment shown in fig. 14 for a part of this embodiment that is not described in detail. The implementation process and technical effect of the technical solution refer to the description in the embodiment shown in fig. 14, and are not described herein again.
In one possible design, the structure of the drawing suggestion generation apparatus shown in fig. 15 may be implemented as an electronic device, which may be a mobile phone, a tablet computer, a server, or other various devices. As shown in fig. 16, the electronic device may include: a second processor 41 and a second memory 42. Wherein the second memory 42 is used for storing a program for the corresponding electronic device to execute the method for generating the drawing suggestion provided in the embodiment shown in fig. 14, and the second processor 41 is configured for executing the program stored in the second memory 42.
The program comprises one or more computer instructions, wherein the one or more computer instructions, when executed by the second processor 41, are capable of performing the steps of:
responding to a request for calling a generation service of a drawing suggestion, and determining a processing resource corresponding to the generation service of the drawing suggestion;
performing the following steps with the processing resource: obtaining a drawing operation in real time, wherein the drawing operation is used for generating drawing patterns of a preset category; and generating at least one drawing suggestion corresponding to the drawing operation in real time based on the preset category, wherein suggestion patterns corresponding to different drawing suggestions are different.
Further, the second processor 41 is also used to execute all or part of the steps in the embodiment shown in fig. 14.
The electronic device may further include a second communication interface 43 for communicating with other devices or a communication network.
In addition, an embodiment of the present invention provides a computer storage medium for storing computer software instructions for an electronic device, which includes a program for executing the method for generating drawing suggestions in the method embodiment shown in fig. 14.
The above-described embodiments of the apparatus are merely illustrative, and the units described as separate parts may or may not be physically separate, and parts displayed as units may or may not be physical units, may be located in one position, or may be distributed on multiple network units. Some or all of the modules may be selected according to actual needs to achieve the purpose of the solution of the present embodiment. One of ordinary skill in the art can understand and implement it without inventive effort.
Through the above description of the embodiments, those skilled in the art will clearly understand that each embodiment can be implemented by adding a necessary general hardware platform, and of course, can also be implemented by a combination of hardware and software. With this understanding in mind, the above-described aspects and portions of the present technology which contribute substantially or in part to the prior art may be embodied in the form of a computer program product, which may be embodied on one or more computer-usable storage media having computer-usable program code embodied therein, including without limitation disk storage, CD-ROM, optical storage, and the like.
The present invention is described with reference to flowchart illustrations and/or block diagrams of methods, apparatus (systems), and computer program products according to embodiments of the invention. It will be understood that each flow and/or block of the flowchart illustrations and/or block diagrams, and combinations of flows and/or blocks in the flowchart illustrations and/or block diagrams, can be implemented by computer program instructions. These computer program instructions may be provided to a processor of a general purpose computer, special purpose computer, embedded processor, or other programmable apparatus to produce a machine, such that the instructions, which execute via the processor of the computer or other programmable apparatus, create means for implementing the functions specified in the flowchart flow or flows and/or block diagram block or blocks.
These computer program instructions may also be stored in a computer-readable memory that can direct a computer or other programmable apparatus to function in a particular manner, such that the instructions stored in the computer-readable memory produce an article of manufacture including instruction means which implement the function specified in the flowchart flow or flows and/or block diagram block or blocks.
These computer program instructions may also be loaded onto a computer or other programmable apparatus to cause a series of operational steps to be performed on the computer or other programmable apparatus to produce a computer implemented process such that the instructions which execute on the computer or other programmable apparatus provide steps for implementing the functions specified in the flowchart flow or flows and/or block diagram block or blocks.
In a typical configuration, a computing device includes one or more processors (CPUs), input/output interfaces, network interfaces, and memory.
The memory may include forms of volatile memory in a computer readable medium, random Access Memory (RAM) and/or non-volatile memory, such as Read Only Memory (ROM) or flash memory (flash RAM). Memory is an example of a computer-readable medium.
Computer-readable media, including both non-transitory and non-transitory, removable and non-removable media, may implement information storage by any method or technology. The information may be computer readable instructions, data structures, modules of a program, 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 Discs (DVD) or other optical storage, magnetic cassettes, magnetic tape magnetic disk storage or other magnetic storage devices, or any other non-transmission medium that can be used to store information that can be accessed by a computing device. As defined herein, a computer readable medium does not include a transitory computer readable medium such as a modulated data signal and a carrier wave.
Finally, it should be noted that: the above examples are only intended to illustrate the technical solution of the present invention, and not to limit it; although the present invention has been described in detail with reference to the foregoing embodiments, it should be understood by those of ordinary skill in the art that: the technical solutions described in the foregoing embodiments may still be modified, or some technical features may be equivalently replaced; and such modifications or substitutions do not depart from the spirit and scope of the corresponding technical solutions of the embodiments of the present invention.

Claims (12)

1. A method of generating a drawing suggestion, comprising:
obtaining a drawing operation in real time, wherein the drawing operation is used for generating drawing patterns of a preset category;
and generating at least one drawing suggestion corresponding to the drawing operation in real time based on the preset category, wherein suggestion patterns corresponding to different drawing suggestions are different.
2. The method of claim 1, wherein obtaining drawing operations in real-time comprises:
determining a preset category;
and obtaining the drawing operation in real time in the drawing area corresponding to the preset category.
3. The method of claim 2, wherein determining the preset category comprises:
displaying at least one alternative category;
determining the preset category in the at least one alternative category.
4. The method of claim 3, wherein displaying at least one alternative category comprises:
in the drawing area, acquiring first drawing operation in real time;
in response to the first drawing operation, at least one alternative category is displayed.
5. The method according to claim 1, wherein generating at least one drawing suggestion corresponding to the drawing operation in real time based on the preset category comprises:
acquiring a drawing pattern corresponding to the drawing operation;
determining vector information corresponding to the drawing pattern;
generating at least one drawing suggestion corresponding to the drawing operation in real time based on the vector information and the preset category.
6. The method according to claim 1, wherein after generating in real-time at least one drawing suggestion corresponding to the drawing operation, the method further comprises:
and sequentially previewing and displaying the at least one drawing suggestion on the basis of the drawing pattern corresponding to the drawing operation.
7. The method of claim 6, wherein when the drawing suggestion is plural; sequentially previewing and displaying the at least one drawing suggestion, comprising:
acquiring display modes corresponding to the plurality of drawing suggestions respectively;
and sequentially previewing and displaying the plurality of drawing suggestions by using the display modes corresponding to the plurality of drawing suggestions respectively.
8. The method according to any one of claims 1-7, further comprising:
acquiring a drawing state of the drawing operation;
and when the drawing state is a drawing completion state, stopping generating at least one drawing suggestion corresponding to the drawing operation.
9. The method of claim 8, wherein obtaining a drawing state of the drawing operation comprises:
obtaining the painting completion degree corresponding to the painting pattern;
and determining the drawing state of the drawing operation based on the drawing completion degree.
10. An apparatus for generating a drawing suggestion, comprising:
the device comprises a first acquisition module, a second acquisition module and a third acquisition module, wherein the first acquisition module is used for acquiring a drawing operation in real time, and the drawing operation is used for generating a preset type of drawing pattern;
and the first generation module is used for generating at least one drawing suggestion corresponding to the drawing operation in real time based on the preset category, and the suggestion patterns corresponding to different drawing suggestions are different.
11. An electronic device, comprising: a memory, a processor; wherein the memory is to store one or more computer instructions, wherein the one or more computer instructions, when executed by the processor, implement the generation method of the drawing suggestion according to any of the claims 1-9.
12. A method of generating a drawing suggestion, comprising:
responding to a request for calling a generation service of a drawing suggestion, and determining a processing resource corresponding to the generation service of the drawing suggestion;
performing the following steps with the processing resource: obtaining a drawing operation in real time, wherein the drawing operation is used for generating drawing patterns of a preset category; and generating at least one drawing suggestion corresponding to the drawing operation in real time based on the preset category, wherein suggestion patterns corresponding to different drawing suggestions are different.
CN202110427036.8A 2021-04-20 2021-04-20 Drawing suggestion generation method, device and equipment Pending CN115222835A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202110427036.8A CN115222835A (en) 2021-04-20 2021-04-20 Drawing suggestion generation method, device and equipment

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202110427036.8A CN115222835A (en) 2021-04-20 2021-04-20 Drawing suggestion generation method, device and equipment

Publications (1)

Publication Number Publication Date
CN115222835A true CN115222835A (en) 2022-10-21

Family

ID=83604918

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202110427036.8A Pending CN115222835A (en) 2021-04-20 2021-04-20 Drawing suggestion generation method, device and equipment

Country Status (1)

Country Link
CN (1) CN115222835A (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN116309538A (en) * 2023-04-24 2023-06-23 湖北易康思科技有限公司 Drawing examination evaluation method, device, computer equipment and storage medium

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN116309538A (en) * 2023-04-24 2023-06-23 湖北易康思科技有限公司 Drawing examination evaluation method, device, computer equipment and storage medium

Similar Documents

Publication Publication Date Title
US10936919B2 (en) Method and apparatus for detecting human face
US20210216830A1 (en) Content tagging
CN107622240B (en) Face detection method and device
US9349076B1 (en) Template-based target object detection in an image
CN110503124A (en) Vision like numeral image is identified based on the perceptual property that user selects using based on deep neural network model
CN108229478A (en) Image, semantic segmentation and training method and device, electronic equipment, storage medium and program
CN114170482B (en) Document pre-training model training method, device, equipment and medium
CN111752557A (en) Display method and device
JP2020187736A (en) Learning data generation method for classifier learning having regional features, and system thereof
US20230237777A1 (en) Information processing apparatus, learning apparatus, image recognition apparatus, information processing method, learning method, image recognition method, and non-transitory-computer-readable storage medium
KR20230013280A (en) Classify and discover client application content
CN110969641A (en) Image processing method and device
CN115222835A (en) Drawing suggestion generation method, device and equipment
CN116361502B (en) Image retrieval method, device, computer equipment and storage medium
Kozlova et al. Development of the toolkit to process the internet memes meant for the modeling, analysis, monitoring and management of social processes
US20180307910A1 (en) Evaluation of models generated from objects in video
CN110942056A (en) Clothing key point positioning method and device, electronic equipment and medium
Sergi et al. A microservices architecture based on a deep-learning approach for an innovative fruition of art and cultural heritage
US20200279099A1 (en) Association Training Related to Human Faces
CN113568735A (en) Data processing method and system
CN108874360B (en) Panoramic content positioning method and device
CN112394809A (en) Method, device and communication equipment for realizing augmented reality
Ogi et al. Development of AR information system based on deep learning and gamification
CN113837948B (en) Image generation method, apparatus and storage medium
Kawasaki et al. Bottom-up action modeling via spatial factorization for serving food

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
TA01 Transfer of patent application right
TA01 Transfer of patent application right

Effective date of registration: 20240315

Address after: # 03-06, Lai Zan Da Building 1, 51 Belarusian Road, Singapore

Applicant after: Alibaba Innovation Co.

Country or region after: Singapore

Address before: Room 01, 45th Floor, AXA Building, 8 Shanton Road, Singapore

Applicant before: Alibaba Singapore Holdings Ltd.

Country or region before: Singapore