CN111275794A - Method, device and storage medium for automatically generating expression picture - Google Patents
Method, device and storage medium for automatically generating expression picture Download PDFInfo
- Publication number
- CN111275794A CN111275794A CN201911251932.2A CN201911251932A CN111275794A CN 111275794 A CN111275794 A CN 111275794A CN 201911251932 A CN201911251932 A CN 201911251932A CN 111275794 A CN111275794 A CN 111275794A
- Authority
- CN
- China
- Prior art keywords
- character
- canvas
- picture
- user
- expression
- 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.)
- Granted
Links
Images
Classifications
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06T—IMAGE DATA PROCESSING OR GENERATION, IN GENERAL
- G06T11/00—2D [Two Dimensional] image generation
- G06T11/60—Editing figures and text; Combining figures or text
-
- Y—GENERAL TAGGING OF NEW TECHNOLOGICAL DEVELOPMENTS; GENERAL TAGGING OF CROSS-SECTIONAL TECHNOLOGIES SPANNING OVER SEVERAL SECTIONS OF THE IPC; TECHNICAL SUBJECTS COVERED BY FORMER USPC CROSS-REFERENCE ART COLLECTIONS [XRACs] AND DIGESTS
- Y02—TECHNOLOGIES OR APPLICATIONS FOR MITIGATION OR ADAPTATION AGAINST CLIMATE CHANGE
- Y02D—CLIMATE CHANGE MITIGATION TECHNOLOGIES IN INFORMATION AND COMMUNICATION TECHNOLOGIES [ICT], I.E. INFORMATION AND COMMUNICATION TECHNOLOGIES AIMING AT THE REDUCTION OF THEIR OWN ENERGY USE
- Y02D10/00—Energy efficient computing, e.g. low power processors, power management or thermal management
Landscapes
- Physics & Mathematics (AREA)
- General Physics & Mathematics (AREA)
- Engineering & Computer Science (AREA)
- Theoretical Computer Science (AREA)
- Processing Or Creating Images (AREA)
Abstract
The invention discloses a method for automatically generating expression pictures, which is characterized in that corresponding pictures are matched with characters in content input by a user, the pictures and the characters are synthesized into character expressions, and finally all the character expressions are converted into expression pictures according to the sequence of the characters in the content input by the user and displayed to the user. The invention does not relate to manual editing, and the expression picture can be automatically generated in real time according to the content input by the user in the whole process, thereby greatly improving the picture conversion efficiency. The invention also discloses a device for automatically generating the expression picture and a storage medium.
Description
Technical Field
The invention relates to the field of computer information processing, in particular to a method and a device for automatically generating an expression picture and a storage medium.
Background
In the existing chat software, in order to increase the interest of chat, a corresponding emoticon is usually matched automatically according to the content input by the user, so that the emoticon can be selected by the user. However, because the number of characters is large, the number of preset emoticons may need to be large, and in order to reduce the system memory, in the existing technology, generally, according to the character content input by a user, the user edits the input character content and the corresponding emoticon by using image editing software to generate the emoticon with the character content. The method for editing and synthesizing the character content and the expression picture by using the picture editing software in the prior art is complex in operation, complex in manual operation and low in timeliness, and brings bad experience to users.
Disclosure of Invention
In order to overcome the defects of the prior art, one of the objectives of the present invention is to provide a method for automatically generating an expression picture, which can solve the problems of complex operation, low efficiency, etc. when manually editing and synthesizing characters and pictures in the prior art.
The second objective of the present invention is to provide an apparatus for automatically generating an emoticon, which can solve the problems of complicated operation, low efficiency, etc. in the prior art when manually editing and synthesizing characters and emoticons.
The invention also aims to provide a storage medium which can solve the problems of complex operation, low efficiency and the like when the characters and the pictures are artificially edited and synthesized in the prior art.
One of the purposes of the invention is realized by adopting the following technical scheme:
a method for automatically generating an emoticon, the method comprising:
an acquisition step: acquiring content input by a user; the content input by the user comprises one or more characters;
canvas generation: after the user inputs the content, determining the size of the canvas according to the content input by the user, and generating the canvas;
matching: circulating each character in the content input by the user, and randomly matching a picture for each character;
the synthesis steps are as follows: synthesizing each character with the matched corresponding picture to generate a character expression, and correspondingly combining the character expression of each character on the canvas according to the sequence of each character in the content input by the user;
an expression picture generating step: and generating an expression picture according to the canvas and displaying the expression picture to a user.
Further, the canvas generating step includes:
character arrangement calculation step: calculating the number of characters in the content input by the user and calculating the line number of all arranged characters and the number of characters in each line;
and a picture arrangement calculation step: obtaining the number of rows of picture arrangement in the canvas and the number of pictures in each row according to the number of rows of all the character arrangement and the number of characters in each row, and calculating the maximum X-axis length and the maximum Y-axis length required by all the pictures in each row by combining the size of each picture; the X axis and the Y axis are coordinate axes of a rectangular coordinate system which takes the upper left corner of the canvas as a vertex, and the horizontal direction and the vertical direction are the X axis and the Y axis respectively;
canvas size calculation step: calculating the length and width of the canvas according to the maximum X-axis length and Y-axis length required by all the pictures in each row and the row number of the arranged pictures;
canvas generation: the canvas is generated according to the length and width of the canvas.
Further, the synthesizing step comprises:
picture matching: randomly matching corresponding pictures for each character in the content input by the user in sequence;
and character expression synthesis: combining each character with a corresponding picture to generate a character expression corresponding to each character;
character expression merging step: and merging each character expression to a corresponding position of the canvas according to the arrangement sequence of the characters in the content input by the user.
Further, the size of the picture matched with each character randomly is the same.
Further, the characters in the content input by the user comprise Chinese characters, English letters, numbers and punctuation marks.
The second purpose of the invention is realized by adopting the following technical scheme:
an apparatus for automatically generating an emoticon, comprising a memory and a processor, wherein the memory stores a program capable of running on the processor, the program is a computer program, and the processor executes the program to realize the following steps:
an acquisition step: acquiring content input by a user; the content input by the user comprises one or more characters;
canvas generation: after the user inputs the content, determining the size of the canvas according to the content input by the user, and generating the canvas;
matching: circulating each character in the content input by the user, and randomly matching a picture for each character;
the synthesis steps are as follows: synthesizing each character with the matched corresponding picture to generate a character expression, and correspondingly combining the character expression of each character on the canvas according to the sequence of each character in the content input by the user;
an expression picture generating step: and generating an expression picture according to the canvas and displaying the expression picture to a user.
Further, the canvas generating step includes:
character arrangement calculation step: calculating the number of characters in the content input by the user and calculating the line number of all arranged characters and the number of characters in each line;
and a picture arrangement calculation step: obtaining the number of rows of picture arrangement in the canvas and the number of pictures in each row according to the number of rows of all the character arrangement, and calculating the maximum X-axis length and the maximum Y-axis length required by all the pictures in each row by combining the size of each picture;
canvas size calculation step: calculating the length and width of the canvas according to the maximum X-axis length and Y-axis length required by all the pictures in each row and the row number of the arranged pictures;
canvas generation: the canvas is generated according to the length and width of the canvas.
Further, the synthesizing step comprises:
picture matching: randomly matching corresponding pictures for each character in the content input by the user in sequence;
and character expression synthesis: combining each character with a corresponding picture to generate a character expression corresponding to each character;
character expression merging step: and merging each character expression to a corresponding position of the canvas according to the arrangement sequence of the characters in the content input by the user.
Further, the size of the picture matched with each character randomly is the same.
The third purpose of the invention is realized by adopting the following technical scheme:
a storage medium, which is a computer-readable storage medium, having stored thereon a program, which is a computer program, which when executed by a processor, carries out the steps of a method of automatically generating an emoticon, as employed in one of the objects of the present invention.
Compared with the prior art, the invention has the beneficial effects that:
according to the method, the corresponding canvas is generated according to the content input by the user, then the picture in the system is automatically matched for the content input by the user at random, the picture and the content input by the user are synthesized into the corresponding character expression, then the character expression is combined into the canvas according to the sequence of characters in the content input by the user, and finally the expression picture with the input content is generated according to the canvas, namely the expression picture with the input content is automatically generated according to the content input by the user.
Drawings
Fig. 1 is a flowchart of a method for automatically generating an expression picture according to the present invention;
FIG. 2 is a flowchart of step S2 in FIG. 1;
FIG. 3 is a flowchart of step S3 in FIG. 1;
fig. 4 is a block diagram of an apparatus for automatically generating an emoticon according to the present invention.
In the figure: 11. a memory; 12. a processor; 13. a communication bus; 14. a network interface.
Detailed Description
The present invention will be further described with reference to the accompanying drawings and the detailed description, and it should be noted that any combination of the embodiments or technical features described below can be used to form a new embodiment without conflict.
Example one
The invention provides a method for automatically generating an expression picture, which can dynamically generate the expression picture with user input content according to the user input content, solves the problems of low timeliness, complex operation and the like caused by the fact that a user needs to synthesize the input content and the picture according to picture editing software to generate the expression picture in the prior art, and greatly improves the picture generation speed.
As shown in fig. 1, the present invention provides a preferred embodiment, a method for automatically generating an emoticon, which specifically includes the following steps:
and step S1, acquiring the content input by the user. The content of the user input is derived by identifying the content of the user input. For example, the content input by the user is: "I am a Chinese. ".
And step S2, after the user input is finished, determining the size of the canvas according to the content input by the user, and generating the canvas.
The system also defines an end-of-user-input flag, for example, a punctuation mark is used as a flag to indicate that the user input is completed.
And the size of the canvas is the same as that of the finally generated expression picture. The size of the canvas is determined according to the number of characters of the content input by the user.
As shown in fig. 2, the step S2 specifically includes:
and step S21, calculating the number of characters in the content input by the user and calculating the line number of all the arranged characters and the number of characters in each line. When the number of input characters is large, it is necessary to arrange a plurality of characters in rows for the sake of good appearance. That is, the number of characters in each line is known by dividing the character into a plurality of lines according to the number of characters.
Such as: "I is a Chinese person, and the Chinese person,
i love China. ":
wherein: "I" "is" "middle" "state" "man" "and" is divided in the first row,
"I", "love", "middle", "country" and "the like". "divide in the second row.
As can be seen from the above example, the number of rows of the character array is 2. The characters in this document include not only chinese characters but also various characters such as punctuation marks, english alphabets, numerals, and the like.
And step S22, obtaining the number of lines of picture arrangement in the canvas and the number of pictures in each line according to the number of lines of all the character arrangements and the number of characters in each line.
Since one character in the present invention matches one picture, the number of lines in which the characters are arranged is the number of lines in which the picture is arranged. Preferably, the pictures in this embodiment may be cartoon pictures, landscape pictures, etc.
And step S23, calculating the maximum X-axis length and the maximum Y-axis length required by all the pictures in each row according to the number of the arranged rows of the pictures, the number of the pictures in each row and the size of each picture.
Because the pictures in the system have a certain size, in order to ensure that the pictures do not cover front and back when being arranged in the canvas, the maximum X-axis length and the maximum Y-axis length required by each row of pictures are calculated according to the size of each picture. Preferably, the pictures in this embodiment are all the same size. The X axis and the Y axis referred to herein are coordinate axes in a rectangular coordinate system composed of the top left corner of the current window as a vertex, the horizontal direction as the X axis, and the vertical direction as the Y axis.
And step S24, calculating the length and width of the canvas according to the maximum X-axis length and Y-axis length required by all pictures in each row and the row number of the arranged pictures.
Because the maximum X-axis length and the Y-axis length required by each row of pictures are known, and the number of rows of the arranged pictures is also known, the length and the width of the canvas can be calculated according to the maximum X-axis length and the Y-axis length.
And step S25, generating the canvas according to the length and the width of the canvas. And when the length and the width of the canvas are calculated, namely the size of the canvas, generating the canvas according to the size of the canvas, and preparing for generating the expression picture in the next step.
Further, the method for automatically generating the expression picture further comprises the following steps:
and step S3, circulating each character in the content input by the user, randomly matching a picture for each character and synthesizing a corresponding character expression, and then combining all the character expressions on the canvas. The number of pictures in this embodiment is not only one, but may be plural, but the sizes thereof are the same.
In addition, since there may be multiple pictures on the canvas, the position of each picture on the canvas is determined by the content input by the user.
As shown in fig. 3, the step S3 specifically includes:
and step S31, matching the corresponding pictures for each character in the content input by the user at random in sequence. Matching pictures for each character is performed randomly according to pictures existing in the system, such as "i am a chinese and i love china. ", which has 11 characters, a picture is randomly matched for each character, respectively.
And step S32, combining each character with the corresponding picture to generate the character expression corresponding to each character. During combination, in order to ensure that the obtained visual effect of the character expression is better, the combined character expression can be correspondingly adjusted according to the shape of the corresponding picture, for example, characters in the character expression are correspondingly inclined.
In this embodiment, each character is merged with the matched picture by calling a merging program in the system to generate a character expression corresponding to each character.
And step S33, merging each character expression to the corresponding position of the canvas according to the arrangement sequence of the characters in the content input by the user.
Because the characters in the content input by the user all have a certain sequence, the character expression corresponding to each character is consistent with the sequence of the characters when the characters are arranged in the canvas.
Such as: the first column of the first row of the canvas corresponds to the character expression of 'I';
"yes" corresponding character expression is in the first row and the second column of the canvas;
the corresponding character expression of "middle" is in the first row and the third column of the canvas;
the character expression corresponding to the country is in the fourth column of the first row of the canvas;
the character expression corresponding to the person is in the fifth column of the first row of the canvas;
"," the corresponding character expression is in the sixth column of the first row of the canvas;
the character expression corresponding to the 'I' is arranged on the second row and the first column of the canvas;
the character expression corresponding to the love is arranged on the second row and the second column of the canvas;
the corresponding character expression of "middle" is in the third column of the second row of the canvas;
the character expression corresponding to the country is in the fourth column and the second row of the canvas;
". "the corresponding character emoticons are in the second row and the fifth column of the canvas.
Further, after the canvas is generated, the method for automatically generating the emoticon further comprises:
and step S4, generating the expression picture according to the canvas and displaying the expression picture to the user.
And when each character in the content input by the user is matched with the generated corresponding character expression and is combined with the canvas, directly generating an expression picture according to the canvas and displaying the expression picture to the user. From the above, the method and the device can automatically match the corresponding pictures for the content input by the user according to the content input by the user and automatically synthesize the input content and the pictures to generate the corresponding expression pictures. The method can automatically generate the expression picture with the input content according to the input content of the user, does not need manual operation in the whole process, and can automatically generate the expression picture.
Example two
The invention provides a device for automatically generating an expression picture. As shown in fig. 4, an internal structure diagram of an apparatus for automatically generating an emoticon according to an embodiment of the present invention is provided.
In this embodiment, an apparatus for automatically generating an expression picture may be a PC (Personal Computer), or may be a terminal device such as a smart phone, a tablet Computer, or a portable Computer. The device for automatically generating the expression picture at least comprises: a processor 12, a communication bus 13, a network interface 14, and a memory 11.
The memory 11 includes at least one type of readable storage medium, which includes a flash memory, a hard disk, a multimedia card, a card type memory (e.g., SD or DX memory, etc.), a magnetic memory, a magnetic disk, an optical disk, and the like. The memory 11 may be an internal storage unit of an apparatus for automatically generating an emoticon in some embodiments, for example, a hard disk of the apparatus for automatically generating an emoticon. The memory 11 may be an external storage device of an apparatus for automatically generating emoticons in other embodiments, such as a plug-in hard disk, a Smart Media Card (SMC), a Secure Digital (SD) Card, a Flash Card (Flash Card), or the like, provided on the apparatus for automatically generating emoticons. Further, the memory 11 may also include both an internal storage unit of an apparatus for automatically generating emoticons and an external storage device. The memory 11 may be used not only to store application software installed in an apparatus for automatically generating an emoticon and various types of data, such as codes of a program for automatically generating an emoticon, etc., but also to temporarily store data that has been output or is to be output.
The processor 12 may be a Central Processing Unit (CPU), a controller, a microcontroller, a microprocessor or other data Processing chip in some embodiments, and is used for executing program codes stored in the memory 11 or Processing data, such as executing a program for automatically generating emoticons.
The communication bus 13 is used to realize connection communication between these components.
The network interface 14 may optionally include a standard wired interface, a wireless interface (e.g., WI-FI interface), and is generally used to establish a communication connection between the apparatus for automatically generating emoticons and other electronic devices.
Optionally, the apparatus for automatically generating emoticons may further include a user interface, the user interface may include a Display (Display), an input unit such as a Keyboard (Keyboard), and the optional user interface may further include a standard wired interface and a wireless interface. Alternatively, in some embodiments, the display may be an LED display, a liquid crystal display, a touch-sensitive liquid crystal display, an OLED (Organic Light-Emitting Diode) touch device, or the like. The display, which may also be referred to as a display screen or display unit, is suitable for displaying information processed in an apparatus for automatically generating emoticons and for displaying a visual user interface.
Fig. 4 shows only one apparatus for automatically generating an emoticon having components 11 to 14 and a program for automatically generating an emoticon, and it will be understood by those skilled in the art that the structure shown in fig. 4 does not constitute a limitation of an apparatus for automatically generating an emoticon, and may include fewer or more components than those shown, or some components in combination, or a different arrangement of components.
In an embodiment of the apparatus for automatically generating an emoticon shown in fig. 4, a program for automatically generating an emoticon is stored in the memory 11; the processor 12 implements the following steps when executing the program for automatically generating an emoticon stored in the memory 11:
an acquisition step: acquiring content input by a user; the content input by the user comprises one or more characters;
canvas generation: after the user inputs the content, determining the size of the canvas according to the content input by the user, and generating the canvas;
matching: circulating each character in the content input by the user, and randomly matching a picture for each character;
the synthesis steps are as follows: synthesizing each character with the matched corresponding picture to generate a character expression, and correspondingly combining the character expression of each character on the canvas according to the sequence of each character in the content input by the user;
an expression picture generating step: and generating an expression picture according to the canvas and displaying the expression picture to a user.
Further, the canvas generating step includes:
character arrangement calculation step: calculating the number of characters in the content input by the user and calculating the line number of all arranged characters and the number of characters in each line;
and a picture arrangement calculation step: obtaining the number of rows of picture arrangement in the canvas and the number of pictures in each row according to the number of rows of all the character arrangement, and calculating the maximum X-axis length and the maximum Y-axis length required by all the pictures in each row by combining the size of each picture; the X axis and the Y axis are coordinate axes of a rectangular coordinate system which takes the upper left corner of the canvas as a vertex, and the horizontal direction and the vertical direction are the X axis and the Y axis respectively;
canvas size calculation step: calculating the length and width of the canvas according to the maximum X-axis length and Y-axis length required by all the pictures in each row and the row number of the arranged pictures;
canvas generation: the canvas is generated according to the length and width of the canvas.
Further, the synthesizing step comprises:
picture matching: randomly matching corresponding pictures for each character in the content input by the user in sequence;
and character expression synthesis: combining each character with a corresponding picture to generate a character expression corresponding to each character;
character expression merging step: and merging each character expression to a corresponding position of the canvas according to the arrangement sequence of the characters in the content input by the user.
EXAMPLE III
A storage medium being a computer readable storage medium having a program stored thereon, the program being a computer program which when executed by a processor performs the steps of:
an acquisition step: acquiring content input by a user; the content input by the user comprises one or more characters;
canvas generation: after the user inputs the content, determining the size of the canvas according to the content input by the user, and generating the canvas;
matching: circulating each character in the content input by the user, and randomly matching a picture for each character;
the synthesis steps are as follows: synthesizing each character with the matched corresponding picture to generate a character expression, and correspondingly combining the character expression of each character on the canvas according to the sequence of each character in the content input by the user;
an expression picture generating step: and generating an expression picture according to the canvas and displaying the expression picture to a user.
Further, the canvas generating step includes:
character arrangement calculation step: calculating the number of characters in the content input by the user and calculating the line number of all arranged characters and the number of characters in each line;
and a picture arrangement calculation step: obtaining the number of rows of picture arrangement in the canvas and the number of pictures in each row according to the number of rows of all the character arrangement, and calculating the maximum X-axis length and the maximum Y-axis length required by all the pictures in each row by combining the size of each picture; the X axis and the Y axis are coordinate axes of a rectangular coordinate system which takes the upper left corner of the canvas as a vertex, and the horizontal direction and the vertical direction are the X axis and the Y axis respectively;
canvas size calculation step: calculating the length and width of the canvas according to the maximum X-axis length and Y-axis length required by all the pictures in each row and the row number of the arranged pictures;
canvas generation: the canvas is generated according to the length and width of the canvas.
Further, the synthesizing step comprises:
picture matching: randomly matching corresponding pictures for each character in the content input by the user in sequence;
and character expression synthesis: combining each character with a corresponding picture to generate a character expression corresponding to each character;
character expression merging step: and merging each character expression to a corresponding position of the canvas according to the arrangement sequence of the characters in the content input by the user.
The above embodiments are only preferred embodiments of the present invention, and the protection scope of the present invention is not limited thereby, and any insubstantial changes and substitutions made by those skilled in the art based on the present invention are within the protection scope of the present invention.
Claims (10)
1. A method for automatically generating an expression picture is characterized by comprising the following steps:
an acquisition step: acquiring content input by a user; the content input by the user comprises one or more characters;
canvas generation: after the user inputs the content, determining the size of the canvas according to the content input by the user, and generating the canvas;
matching: circulating each character in the content input by the user, and randomly matching a picture for each character;
the synthesis steps are as follows: synthesizing each character with the matched corresponding picture to generate a character expression, and correspondingly combining the character expression of each character on the canvas according to the sequence of each character in the content input by the user;
an expression picture generating step: and generating an expression picture according to the canvas and displaying the expression picture to a user.
2. The method of claim 1, wherein the canvas generation step comprises:
character arrangement calculation step: calculating the number of characters in the content input by the user and calculating the line number of all arranged characters and the number of characters in each line;
and a picture arrangement calculation step: obtaining the number of rows of picture arrangement in the canvas and the number of pictures in each row according to the number of rows of all the character arrangement and the number of characters in each row, and calculating the maximum X-axis length and the maximum Y-axis length required by all the pictures in each row by combining the size of each picture; the X axis and the Y axis are coordinate axes of a rectangular coordinate system which takes the upper left corner of the canvas as a vertex, and the horizontal direction and the vertical direction are the X axis and the Y axis respectively;
canvas size calculation step: calculating the length and width of the canvas according to the maximum X-axis length and Y-axis length required by all the pictures in each row and the row number of the arranged pictures;
canvas generation: the canvas is generated according to the length and width of the canvas.
3. The method of claim 1, wherein the step of synthesizing comprises:
picture matching: randomly matching corresponding pictures for each character in the content input by the user in sequence;
and character expression synthesis: combining each character with a corresponding picture to generate a character expression corresponding to each character;
character expression merging step: and merging each character expression to a corresponding position of the canvas according to the arrangement sequence of the characters in the content input by the user.
4. The method of claim 1, wherein the size of each character matching picture is the same.
5. The method as claimed in claim 1, wherein the characters in the content input by the user include Chinese characters, English letters, numbers and punctuation marks.
6. An apparatus for automatically generating an emoticon, comprising a memory and a processor, wherein the memory stores a program executable on the processor, and the program is a computer program, and the apparatus is characterized in that: the processor implements the following steps when executing the program:
an acquisition step: acquiring content input by a user; the content input by the user comprises one or more characters;
canvas generation: after the user inputs the content, determining the size of the canvas according to the content input by the user, and generating the canvas;
matching: circulating each character in the content input by the user, and randomly matching a picture for each character;
the synthesis steps are as follows: synthesizing each character with the matched corresponding picture to generate a character expression, and correspondingly combining the character expression of each character on the canvas according to the sequence of each character in the content input by the user;
an expression picture generating step: and generating an expression picture according to the canvas and displaying the expression picture to a user.
7. The apparatus of claim 6, wherein the canvas generation step comprises:
character arrangement calculation step: calculating the number of characters in the content input by the user and calculating the line number of all arranged characters and the number of characters in each line;
and a picture arrangement calculation step: obtaining the number of rows of picture arrangement in the canvas and the number of pictures in each row according to the number of rows of all the character arrangement, and calculating the maximum X-axis length and the maximum Y-axis length required by all the pictures in each row by combining the size of each picture; the X axis and the Y axis are coordinate axes of a rectangular coordinate system which takes the upper left corner of the canvas as a vertex, and the horizontal direction and the vertical direction are the X axis and the Y axis respectively;
canvas size calculation step: calculating the length and width of the canvas according to the maximum X-axis length and Y-axis length required by all the pictures in each row and the row number of the arranged pictures;
canvas generation: the canvas is generated according to the length and width of the canvas.
8. The apparatus of claim 6, wherein the synthesizing step comprises:
picture matching: randomly matching corresponding pictures for each character in the content input by the user in sequence;
and character expression synthesis: combining each character with a corresponding picture to generate a character expression corresponding to each character;
character expression merging step: and merging each character expression to a corresponding position of the canvas according to the arrangement sequence of the characters in the content input by the user.
9. The apparatus of claim 6, wherein the size of each character matching picture is the same.
10. A storage medium, which is a computer-readable storage medium, on which a program is stored, the program being a computer program, wherein the program, when executed by a processor, implements the steps of a method for automatically generating an emoticon according to any one of claims 1 to 5.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201911251932.2A CN111275794B (en) | 2019-12-09 | 2019-12-09 | Method, device and storage medium for automatically generating expression picture |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201911251932.2A CN111275794B (en) | 2019-12-09 | 2019-12-09 | Method, device and storage medium for automatically generating expression picture |
Publications (2)
Publication Number | Publication Date |
---|---|
CN111275794A true CN111275794A (en) | 2020-06-12 |
CN111275794B CN111275794B (en) | 2023-07-11 |
Family
ID=71000050
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201911251932.2A Active CN111275794B (en) | 2019-12-09 | 2019-12-09 | Method, device and storage medium for automatically generating expression picture |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN111275794B (en) |
Citations (7)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US20140259083A1 (en) * | 2013-03-11 | 2014-09-11 | Brant Candelore | System and method for use in enhancing the display of multimedia content |
US20150302242A1 (en) * | 2014-04-21 | 2015-10-22 | Samsung Electronics Co., Ltd. | Method of processing content and electronic device using the same |
US20160110900A1 (en) * | 2014-10-20 | 2016-04-21 | Mateen Moosa | System And Method For Dynamically Combining Images To Display Textual Content In The Form Of An Image |
CN105635809A (en) * | 2015-12-29 | 2016-06-01 | 小米科技有限责任公司 | Image processing method and device and terminal |
CN108805960A (en) * | 2018-05-31 | 2018-11-13 | 北京字节跳动网络技术有限公司 | Composing Method of Mixing, device, computer readable storage medium and terminal |
CN108961361A (en) * | 2017-05-27 | 2018-12-07 | 天津方正手迹数字技术有限公司 | Generate method and system, the computer equipment of literal with special effect image |
CN109522975A (en) * | 2018-09-18 | 2019-03-26 | 平安科技(深圳)有限公司 | Handwriting samples generation method, device, computer equipment and storage medium |
-
2019
- 2019-12-09 CN CN201911251932.2A patent/CN111275794B/en active Active
Patent Citations (8)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US20140259083A1 (en) * | 2013-03-11 | 2014-09-11 | Brant Candelore | System and method for use in enhancing the display of multimedia content |
CN104053035A (en) * | 2013-03-11 | 2014-09-17 | 索尼公司 | System and method for use in enhancing the display of multimedia content |
US20150302242A1 (en) * | 2014-04-21 | 2015-10-22 | Samsung Electronics Co., Ltd. | Method of processing content and electronic device using the same |
US20160110900A1 (en) * | 2014-10-20 | 2016-04-21 | Mateen Moosa | System And Method For Dynamically Combining Images To Display Textual Content In The Form Of An Image |
CN105635809A (en) * | 2015-12-29 | 2016-06-01 | 小米科技有限责任公司 | Image processing method and device and terminal |
CN108961361A (en) * | 2017-05-27 | 2018-12-07 | 天津方正手迹数字技术有限公司 | Generate method and system, the computer equipment of literal with special effect image |
CN108805960A (en) * | 2018-05-31 | 2018-11-13 | 北京字节跳动网络技术有限公司 | Composing Method of Mixing, device, computer readable storage medium and terminal |
CN109522975A (en) * | 2018-09-18 | 2019-03-26 | 平安科技(深圳)有限公司 | Handwriting samples generation method, device, computer equipment and storage medium |
Also Published As
Publication number | Publication date |
---|---|
CN111275794B (en) | 2023-07-11 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN103970417B (en) | A kind of information processing method and electronic equipment | |
CN105069104B (en) | A kind of generation method and system of dynamic caricature | |
CN111240669B (en) | Interface generation method and device, electronic equipment and computer storage medium | |
CN104281864A (en) | Method and equipment for generating two-dimensional codes | |
CN108270926A (en) | For sending and receiving the device and method of handwriting animation message | |
CN106126140B (en) | A kind of method, apparatus and electronic equipment of rendering type | |
CN112102437A (en) | Canvas-based radar map generation method and device, storage medium and terminal | |
CN113359986B (en) | Augmented reality data display method and device, electronic equipment and storage medium | |
CN109933324A (en) | A kind of nuclear power DCS man-machine interface automatic generation method | |
CN107122104B (en) | Data display method and device | |
CN108985421A (en) | The generation method and recognition methods of encoded information | |
JP2023541351A (en) | Character erasure model training method and device, translation display method and device, electronic device, storage medium, and computer program | |
CN107203961B (en) | Expression migration method and electronic equipment | |
CN103678261A (en) | Method, device and equipment for rapidly displaying TTFs | |
CN113220909A (en) | Chart data processing method and device, electronic equipment and storage medium | |
CN105988679A (en) | Information presentation method and device and user equipment | |
CN111275794B (en) | Method, device and storage medium for automatically generating expression picture | |
JP2016532897A (en) | Method and apparatus for building an intermediate character library | |
CN116108523A (en) | Composition generating method, composition operating method, computer device and medium thereof | |
JP2014071448A (en) | Font generation system and method of display unit | |
CN107154067B (en) | Head portrait generation method and device | |
CN102902534B (en) | A kind of transparent OSD software implementation method | |
CN115544622A (en) | Urban and rural participation type three-dimensional planning design platform, method, equipment and storage medium | |
CN106445888A (en) | Method and device for making artistic words | |
CN110223367B (en) | Animation display method, device, terminal and storage medium |
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 | ||
GR01 | Patent grant | ||
GR01 | Patent grant |