CN109741423A - Expression packet generation method and system - Google Patents

Expression packet generation method and system Download PDF

Info

Publication number
CN109741423A
CN109741423A CN201811621936.0A CN201811621936A CN109741423A CN 109741423 A CN109741423 A CN 109741423A CN 201811621936 A CN201811621936 A CN 201811621936A CN 109741423 A CN109741423 A CN 109741423A
Authority
CN
China
Prior art keywords
expression packet
picture
text
content
information
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
CN201811621936.0A
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.)
Beijing QIYI Century Science and Technology Co Ltd
Original Assignee
Beijing QIYI Century Science and Technology Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Beijing QIYI Century Science and Technology Co Ltd filed Critical Beijing QIYI Century Science and Technology Co Ltd
Priority to CN201811621936.0A priority Critical patent/CN109741423A/en
Publication of CN109741423A publication Critical patent/CN109741423A/en
Pending legal-status Critical Current

Links

Landscapes

  • Information Retrieval, Db Structures And Fs Structures Therefor (AREA)

Abstract

The embodiment of the invention provides a kind of expression packet generation method and systems, can obtain the first content of text;Expression packet template picture is determined according to first content of text;First content of text is added in the expression packet template picture of at least one determination, obtains expression packet picture.Expression packet picture is obtained since the present invention can automatically determine expression packet template picture according to content of text and content of text is added to determining expression packet template picture automatically, therefore the present invention manually selects expression packet template picture without user, alleviate the operating burden of user, can allow user quickly, easily oneself production expression packet.Meanwhile present invention determine that expression packet template picture match with content of text, improve the display effect of the expression packet picture of generation.

Description

Expression packet generation method and system
Technical field
The present invention relates to picture and text to generate field, in particular to expression packet generation method and system.
Background technique
With the popularity of the internet, very big change also has occurred in the chat mode between user.
Expression packet is to cooperate a kind of mode expressed by picture and text.People are with star's figure popular at present The pictures such as piece, animation picture, video display screenshot are material, a series of texts to match are mixed, to express specific emotion. On July 18th, 2017, relevant department's publication " Chinese language weather reports (2017) ", expression, which is packed in, selected for 2016 years Chinese The big neologisms of media ten.When user needs using expression packet, need first to download to expression packet electronic equipment (such as the hand of user Machine) in, then select local expression packet to be sent to other people.
How alloing user, quickly, easily oneself production expression packet is still that the technology urgently to be resolved of this field one is difficult Topic.
Summary of the invention
In view of this, the present invention provides a kind of expression packet generation method and system so that user can quickly, easily from Oneself makes expression packet.
In order to achieve the above-mentioned object of the invention, the present invention the following technical schemes are provided:
A kind of expression packet generation method, comprising:
Obtain the first content of text;
Expression packet template picture is determined according to first content of text;
First content of text is added in the expression packet template picture of at least one determination, obtains expression packet figure Piece.
It is optionally, described that expression packet template picture is determined according to first content of text, comprising:
Word segmentation processing is carried out to first content of text, obtains multiple keywords;
Calculate the picture attribute of each expression packet template picture in the keyword and preset expression packet Prototype drawing valut obtained The matching degree of information;
At least one expression packet template picture is determined from preset expression packet Prototype drawing valut according to the matching degree.
Optionally, the image attribute information includes: first kind information, and the first kind information includes: that personage belongs to Property at least one of information and/or emotion information information;
The picture for calculating each expression packet template picture in the keyword and preset expression packet Prototype drawing valut obtained The matching degree of attribute information, comprising:
To in the image attribute information of each expression packet template picture in the preset expression packet Prototype drawing valut The first kind information: calculating the similarity of various information in the keyword and the first kind information of acquisition, according to The similarity determines the picture category of the expression packet template picture in the keyword and preset expression packet Prototype drawing valut obtained The matching degree of property information.
Optionally, the image attribute information further include: force information is influenced, it is described that acquisition is determined according to the similarity The matching degree of the image attribute information of the expression packet template picture in keyword and preset expression packet Prototype drawing valut, comprising:
The keyword obtained and preset expression packet template picture are determined according to the similarity and the force information that influences The matching degree of the image attribute information of the expression packet template picture in library.
Optionally, the method is applied in the first electronic equipment, and first content of text is described in user is input to Content of text in first electronic equipment, alternatively, first content of text is to be sent to described first by the second electronic equipment Electronic equipment and the content of text shown in first electronic equipment.
Optionally, it in the expression packet template picture that first content of text is added to at least one determination, obtains Obtain expression packet picture, comprising:
Identify the white space for the expression packet template picture that at least one is determined;
First content of text is added in the white space that identification obtains, obtains expression packet picture.
Optionally, it is described expression packet template picture is determined according to first content of text after, the method is also wrapped It includes:
Recognition of face is carried out to determining each expression packet template picture, according to face recognition result from determining each expression packet Facial image is obtained in template picture;
The facial image of acquisition is cut according to preset picture ratio, obtains and cuts treated expression packet template Picture;
In the expression packet template picture that first content of text is added to at least one determination, expression packet is obtained Picture specifically includes:
First content of text is added at least one cut in treated expression packet template picture, is obtained Expression packet picture.
A kind of expression packet generation system, comprising: text obtaining unit, picture determine unit and text adding unit,
The text obtaining unit, for obtaining the first content of text;
The picture determine unit, for determining expression packet template picture according to first content of text;
The text adding unit, for first content of text to be added to the expression packet template of at least one determination In picture, expression packet picture is obtained.
Optionally, the picture determine unit includes: that participle subelement, matching degree computation subunit and template determine that son is single Member,
The participle subelement obtains multiple keywords for carrying out word segmentation processing to first content of text;
The matching degree computation subunit, it is each in the keyword and preset expression packet Prototype drawing valut obtained for calculating The matching degree of the image attribute information of expression packet template picture;
The template determines subelement, for according to the matching degree from preset expression packet Prototype drawing valut determine to A few expression packet template picture.
Optionally, the image attribute information includes: first kind information, and the first kind information includes: that personage belongs to Property at least one of information and/or emotion information information;
The matching degree computation subunit, is specifically configured to:
To in the image attribute information of each expression packet template picture in the preset expression packet Prototype drawing valut The first kind information: calculating the similarity of various information in the keyword and the first kind information of acquisition, according to The similarity determines the picture category of the expression packet template picture in the keyword and preset expression packet Prototype drawing valut obtained The matching degree of property information.
Optionally, the image attribute information further include: influence force information, the matching degree computation subunit is specifically set It is set to:
To in the image attribute information of each expression packet template picture in the preset expression packet Prototype drawing valut The first kind information: calculating the similarity of various information in the keyword and the first kind information of acquisition, according to The similarity and the force information that influences determine the expression packet in the keyword and preset expression packet Prototype drawing valut obtained The matching degree of the image attribute information of template picture.
Optionally, the system is applied in the first electronic equipment, and first content of text is described in user is input to Content of text in first electronic equipment, alternatively, first content of text is to be sent to described first by the second electronic equipment Electronic equipment and the content of text shown in first electronic equipment.
Optionally, the text adding unit includes: that region recognition subelement and text add subelement,
The region recognition subelement, for identification at least one determine expression packet template picture white space;
The text adds subelement, for first content of text to be added in the white space that identification obtains, Obtain expression packet picture.
Optionally, the system also includes: face identification unit and unit is cut,
The face identification unit, for determining expression packet according to first content of text in the picture determine unit After template picture, recognition of face is carried out to determining each expression packet template picture, according to face recognition result from determining each Facial image is obtained in expression packet template picture;
The cutting unit is cut for cutting according to preset picture ratio to the facial image of acquisition Expression packet template picture that treated;
The text adding unit, is specifically used for:
First content of text is added at least one cut in treated expression packet template picture, is obtained Expression packet picture.
A kind of expression packet generation method and system provided in an embodiment of the present invention, can obtain the first content of text;According to First content of text determines expression packet template picture;First content of text is added to the expression of at least one determination In packet template picture, expression packet picture is obtained.Since the present invention can automatically determine expression packet template picture according to content of text And content of text is added to determining expression packet template picture automatically and obtains expression packet picture, therefore the present invention is not necessarily to user hand Dynamic selection expression packet template picture, alleviates the operating burden of user, and can allowing user, quickly, easily oneself makes Expression packet.Meanwhile present invention determine that expression packet template picture match with content of text, improve the expression packet picture of generation Display effect.
Detailed description of the invention
In order to more clearly explain the embodiment of the invention or the technical proposal in the existing technology, to embodiment or will show below There is attached drawing needed in technical description to be briefly described.
Fig. 1 is a kind of flow chart of expression packet generation method provided in an embodiment of the present invention;
Fig. 2 is the schematic diagram of the specific implementation procedure of step S200 provided in an embodiment of the present invention;
Fig. 3 is the schematic diagram of the specific implementation procedure of step S220 provided in an embodiment of the present invention;
Fig. 4 is the schematic diagram of the specific implementation procedure of step S300 provided in an embodiment of the present invention;
Fig. 5 is the flow chart of another expression packet generation method provided in an embodiment of the present invention;
Fig. 6 is a kind of schematic diagram of chat interface provided in an embodiment of the present invention;
Fig. 7 is a kind of schematic diagram of expression packet template picture provided in an embodiment of the present invention;
Fig. 8 is a kind of schematic diagram of expression packet picture provided in an embodiment of the present invention;
Fig. 9 is the display effect schematic diagram of expression packet template picture provided in an embodiment of the present invention;
Figure 10 is the display effect schematic diagram after expression packet picture provided in an embodiment of the present invention is sent;
Figure 11 is the structural schematic diagram that a kind of expression packet provided in an embodiment of the present invention generates system.
Specific embodiment
The invention discloses a kind of expression packet generation method and system, those skilled in the art can use for reference present disclosure, It is suitably modified realization of process parameters.In particular, it should be pointed out that all similar substitutions and modifications carry out those skilled in the art Say it is it will be apparent that they are considered as being included in the present invention.Method and application of the invention has passed through preferred embodiment It is described, related personnel can obviously not depart from the content of present invention, in spirit and scope to method described herein and answer With being modified or appropriate changes and combinations, carry out implementation and application the technology of the present invention.
As shown in Figure 1, a kind of expression packet generation method provided in an embodiment of the present invention, may include:
S100, the first content of text is obtained;
Wherein, method shown in Fig. 1 can be applied in the first electronic equipment, and the first electronic equipment can be mobile phone, calculating Machine, wearable device, tablet computer etc..First content of text can be input in first electronic equipment for user Content of text, for example, user certain chat group shown in Fig. 6 chat interface input frame 002 in the content of text 001 that inputs: " heartily ".Certainly, the first content of text is not yet sent to the content of text of other electronic equipments after can inputting for user, Or user inputs and has been sent to the content of text of other electronic equipments.
Optionally, first content of text may be to be sent to first electronic equipment simultaneously by the second electronic equipment The content of text shown in first electronic equipment.Such as: it is current in the chat interface of certain chat group shown in fig. 6 The content of text 003 of display.
S200, expression packet template picture is determined according to first content of text;
Specifically, using expression packet picture to represent " expression packet " in the present invention since expression packet is picture, to embody Its picture attribute.
Specifically, the embodiment of the present invention can preset espressiove packet Prototype drawing valut, the expression packet Prototype drawing valut In include multiple expression packet template pictures.Expression packet template picture can be the picture for being not added with text, expression packet template picture In can carry character image (especially head image), the character image can be people facial expression image.
The present invention can add corresponding character attribute information on each expression packet template picture, influence force information and emotion Information.Wherein, character attribute information can be the letter such as name, occupation, gender of personage included in expression packet template picture At least one of breath.Influence the influence power assessed value that force information is personage included in expression packet template picture.The present invention Can be searched for according to the exposure of personage, user the number of the personage, the personage related news by reading number, the personage The playback volume of associated video, the personage participate in sales volume or broadcast amount, the bean vermicelli stickiness of the personage, personage's commercial advertisement of works The influence power of one or more assessment personages in undertaking amount.Certainly, the mode of personage's influence power is assessed not prior to above-mentioned one Kind, the present invention is it is not limited here.Emotion information by personage included in expression packet template picture the emotion embodied, such as Happiness, sadness, indignation etc..
In practical applications, the embodiment of the present invention can by face recognition algorithms (such as Principle components analysis PCA algorithm, Diffusion limitation cohesion DLA algorithm) identify in expression packet template picture the character attribute information of included personage.The present invention is real The influence of personage included in expression packet template picture can be determined by pre-set personage's influence power database by applying example Force information.The embodiment of the present invention can pass through Expression Recognition algorithm (such as local restriction model based on face's two dimension structure feature CLM algorithm) identify the emotion information for obtaining personage included in expression packet template picture.Such as: as shown in fig. 6, the first text When this content is " heartily ", present invention may determine that the expression packet template with glad emotion information as shown in Figure 7 Picture.
Wherein, as shown in Fig. 2, step S200 can be specifically included:
S210, word segmentation processing is carried out to first content of text, obtains multiple keywords;
S220, the picture for calculating each expression packet template picture in the keyword and preset expression packet Prototype drawing valut obtained The matching degree of attribute information;
S230, at least one expression packet Prototype drawing is determined from preset expression packet Prototype drawing valut according to the matching degree Piece.
Specifically, the present invention can be tied the higher N number of expression packet template picture of matching degree as determining for step S230 Fruit.
Optionally, the image attribute information includes: first kind information, and the first kind information includes: that personage belongs to Property at least one of information and/or emotion information information, as shown in figure 3, step S220 can be specifically included:
S221, to the image attribute information of each expression packet template picture in the preset expression packet Prototype drawing valut In the first kind information: calculate the keyword of acquisition and the similarity of various information in the first kind information, The figure of the expression packet template picture in the keyword and preset expression packet Prototype drawing valut obtained is determined according to the similarity The matching degree of piece attribute information.
Specifically, the present invention can obtain the term vector of keyword and the term vector of first kind information, then calculate The similarity of the term vector of the term vector and first kind information of keyword, according to the determining keyword obtained of the similarity and in advance If expression packet Prototype drawing valut in the expression packet template picture image attribute information matching degree.
Such as: the first content of text are as follows: " I is very glad ", then available keyword can be with after segmenting are as follows: " I ", " very ", " happiness ".For these three keywords, step S221 of the present invention can determine a word corresponding with these three keywords Vector.Various information can be made of multiple vocabulary in image attribute information, and the present invention can obtain each in image attributes information The term vector of kind information.Optionally, each expression packet template in preset expression packet Prototype drawing valut can be obtained ahead of time in the present invention The term vector of the first kind information of picture is simultaneously stored in preset expression packet Prototype drawing valut or other positions.
Term vector (Word embedding) is the vector mode expression of vocabulary, and each word can be mapped from the one-dimensional space To the mathematical expression in the vector row space with more low dimensional.The present invention can pass through neural network, word co-occurrence matrix The technologies such as dimensionality reduction, probabilistic model, interpretable knowledge base method obtain the corresponding term vector of keyword.Calculate two term vectors There are many ways to similarity, such as: obtaining the phase of two term vectors by calculating COS distance or the Euclidean distance of term vector Like degree etc., the present invention is it is not limited here.
In practical applications, if the image attribute information only includes character attribute information, step S221 of the present invention can To specifically include:
To the character attribute information of each expression packet template picture in the preset expression packet Prototype drawing valut: calculating and obtain The keyword and character attribute information the first similarity, which is determined as the keyword obtained and default Expression packet Prototype drawing valut in the expression packet template picture image attribute information matching degree.
Correspondingly, step S221 of the present invention can be specifically included if the image attribute information only includes emotion information:
To the emotion information of each expression packet template picture in the preset expression packet Prototype drawing valut: calculating the institute of acquisition Second similarity is determined as the keyword obtained and preset expression packet by the second similarity for stating keyword and emotion information The matching degree of the image attribute information of the expression packet template picture in Prototype drawing valut.
In other embodiments of the present invention, if the image attribute information includes character attribute information and emotion information, Step S221 of the present invention can be specifically included:
To each expression packet template picture in the preset expression packet Prototype drawing valut: calculate the keyword of acquisition with First similarity of the character attribute information of the expression packet template picture calculates the keyword and the expression packet template of acquisition The weighted sum of first similarity and the second similarity is determined as the keyword obtained by the second similarity of the emotion information of picture With the matching degree of the image attribute information of the expression packet template picture in preset expression packet Prototype drawing valut.
In other embodiments of the present invention, the image attribute information can also include: influence force information, in step S221 The figure of the expression packet template picture in the keyword and preset expression packet Prototype drawing valut obtained is determined according to the similarity The matching degree of piece attribute information may include:
The keyword obtained and preset expression packet template picture are determined according to the similarity and the force information that influences The matching degree of the image attribute information of the expression packet template picture in library.
Specifically, if the image attribute information includes character attribute information and influence power assessed value, step of the present invention S221 can be specifically included:
To the character attribute information of each expression packet template picture in the preset expression packet Prototype drawing valut: calculating and obtain The keyword and character attribute information the first similarity, the weighted sum of first similarity and influence power assessed value is true It is set to of the image attribute information of the expression packet template picture in the keyword and preset expression packet Prototype drawing valut of acquisition With degree.
Correspondingly, if the image attribute information includes emotion information and influence power assessed value, step S221 of the present invention It can specifically include:
To the emotion information of each expression packet template picture in the preset expression packet Prototype drawing valut: calculating the institute of acquisition The weighted sum of second similarity and influence power assessed value is determined as obtaining by the second similarity for stating keyword and emotion information Keyword and preset expression packet Prototype drawing valut in the expression packet template picture image attribute information matching degree.
In other embodiments of the present invention, if the image attribute information includes character attribute information, emotion information and shadow Force estimation value is rung, then step S221 of the present invention can be specifically included:
To each expression packet template picture in the preset expression packet Prototype drawing valut: calculate the keyword of acquisition with First similarity of the character attribute information of the expression packet template picture calculates the keyword and the expression packet template of acquisition Second similarity of the emotion information of picture determines the weighted sum of the first similarity, the second similarity and influence power assessed value For the matching of the image attribute information of the expression packet template picture in the keyword and preset expression packet Prototype drawing valut of acquisition Degree.
S300, first content of text is added in the expression packet template picture of at least one determination, obtains expression Packet picture.
The expression packet picture that step S300 is obtained can be one or more.The expression that the present invention can obtain step S300 Packet picture, which is put into input frame, is sent to other electronic equipments for the expression packet picture in input frame for user.The present invention can also be with The step S300 expression packet picture obtained is shown first, after user selects at least one expression packet picture therein, The expression packet picture that user selects is put into input frame is sent to the expression packet picture in input frame for user again by the present invention Other electronic equipments, alternatively, the expression packet picture that user selects is sent directly to other electronic equipments again by the present invention.
Optionally, as shown in figure 4, step S300 may include:
S310, the white space for identifying the expression packet template picture that at least one is determined;
S320, first content of text is added in the white space that identification obtains, obtains expression packet picture.
Wherein, the present invention can make the first content of text will not by the way that the first content of text is added to white space Block the picture element in expression packet template picture.
As shown in fig. 7, region 005 is white space.For white space shown in Fig. 7, the present invention can be by first Content of text " heartily " is added to the white space, to obtain expression packet picture as shown in Figure 8.
In other embodiments of the present invention, the present invention can carry out the expression packet template picture that step S200 is obtained first It has been shown that, after user selects at least one expression packet template picture therein, step S300 of the present invention is again by first text Content is added to the white space in the expression packet template picture of user's selection, obtains expression packet picture.The present invention obtains expression After packet picture, it can put it into input frame and the expression packet picture in input frame is sent to other electronic equipments for user, Alternatively, the expression packet picture of acquisition is sent directly to other electronic equipments by the present invention.
As shown in Figure 10, when the expression packet picture that step S300 is obtained is picture shown in Fig. 8, the present invention can will scheme Expression packet picture shown in 8 is sent in other electronic equipments that chat group shown in Fig. 10 is included, to obtain Figure 10 institute Display effect after the transmission shown.
As shown in figure 9, expression packet template picture may be displayed in region shown in dotted line frame 004.Fig. 9 is by expression packet Template picture is shown in the display effect schematic diagram in region shown in dotted line frame 004.Three circles in Fig. 9 dotted line frame 004 are black Point, which represents, omits meaning, and the present invention does not limit the display number of expression packet template picture in region shown in dotted line frame 004 It is fixed.Certainly, the display effects such as size, arrangement mode of each expression packet template picture present invention in region shown in dotted line frame 004 Equally without limitation.
As shown in figure 5, another kind expression packet generation method provided in an embodiment of the present invention, may include:
S100, the first content of text is obtained;
S200, expression packet template picture is determined according to first content of text;
S201, recognition of face is carried out to determining each expression packet template picture, according to face recognition result from determining each Facial image is obtained in expression packet template picture;
It is understood that in expression packet template image may comprising in addition to facial image other are unrelated with expression packet Content, the present invention can obtain facial image from expression packet template picture by recognition of face, to remove other and expression Wrap unrelated content.
S202, the facial image of acquisition is cut according to preset picture ratio, obtains and cuts treated expression Packet template picture;
By cutting, the size of expression packet template picture can be made consistent, display effect is more preferable.
S301, it first content of text is added at least one carries out cutting treated expression packet template picture In, obtain expression packet picture.
Wherein, step S301 is a kind of optional specific executive mode of step S300 in method shown in Fig. 1.
A kind of expression packet generation method provided in an embodiment of the present invention, can obtain the first content of text;According to described One content of text determines expression packet template picture;First content of text is added to the expression packet template of at least one determination In picture, expression packet picture is obtained.Since the present invention can automatically determine expression packet template picture and automatic according to content of text Content of text is added to determining expression packet template picture and obtains expression packet picture, therefore the present invention is manually selected without user Expression packet template picture, alleviates the operating burden of user, can allow user quickly, easily oneself production expression Packet.Meanwhile present invention determine that expression packet template picture match with content of text, improve the aobvious of the expression packet picture of generation Show effect.
Corresponding with expression packet generation method provided in an embodiment of the present invention, the embodiment of the invention also provides a kind of expressions Packet generation system.
As shown in figure 11, a kind of expression packet provided in an embodiment of the present invention generates system, may include: text obtaining unit 100, picture determine unit 200 and text adding unit 300,
The text obtaining unit 100, for obtaining the first content of text;
Optionally, system shown in Figure 11 can be applied in the first electronic equipment, and first content of text is user The content of text being input in first electronic equipment, alternatively, first content of text is to be sent by the second electronic equipment Extremely first electronic equipment and the content of text shown in first electronic equipment.
The picture determine unit 200, for determining expression packet template picture according to first content of text;
Optionally, the picture determine unit 200 may include: participle subelement, matching degree computation subunit and template Determine subelement,
The participle subelement obtains multiple keywords for carrying out word segmentation processing to first content of text;
The matching degree computation subunit, it is each in the keyword and preset expression packet Prototype drawing valut obtained for calculating The matching degree of the image attribute information of expression packet template picture;
The template determines subelement, for according to the matching degree from preset expression packet Prototype drawing valut determine to A few expression packet template picture.
In other embodiments of the present invention, the image attribute information may include: first kind information, the first kind Type information includes: at least one of character attribute information and/or emotion information information;
The matching degree computation subunit, can be specifically set are as follows:
To in the image attribute information of each expression packet template picture in the preset expression packet Prototype drawing valut The first kind information: calculating the similarity of various information in the keyword and the first kind information of acquisition, according to The similarity determines the picture category of the expression packet template picture in the keyword and preset expression packet Prototype drawing valut obtained The matching degree of property information.
Further, the image attribute information can also include: influence force information, the matching degree computation subunit, can To be specifically configured to:
To in the image attribute information of each expression packet template picture in the preset expression packet Prototype drawing valut The first kind information: calculating the similarity of various information in the keyword and the first kind information of acquisition, according to The similarity and the force information that influences determine the expression packet in the keyword and preset expression packet Prototype drawing valut obtained The matching degree of the image attribute information of template picture.
The text adding unit 300, for first content of text to be added to the expression packet of at least one determination In template picture, expression packet picture is obtained.
Optionally, the text adding unit 300 may include: that region recognition subelement and text add subelement,
The region recognition subelement, for identification at least one determine expression packet template picture white space;
The text adds subelement, for first content of text to be added in the white space that identification obtains, Obtain expression packet picture.
In other embodiments of the present invention, system shown in Figure 11 can also include: face identification unit and cut unit,
The face identification unit, for determining table according to first content of text in the picture determine unit 200 After feelings packet template picture, recognition of face is carried out to determining each expression packet template picture, according to face recognition result from determination Each expression packet template picture in obtain facial image;
The cutting unit is cut for cutting according to preset picture ratio to the facial image of acquisition Expression packet template picture that treated;
The text adding unit 300, can be specifically used for:
First content of text is added at least one cut in treated expression packet template picture, is obtained Expression packet picture.
A kind of expression packet provided in an embodiment of the present invention generates system, can obtain the first content of text;According to described One content of text determines expression packet template picture;First content of text is added to the expression packet template of at least one determination In picture, expression packet picture is obtained.Since the present invention can automatically determine expression packet template picture and automatic according to content of text Content of text is added to determining expression packet template picture and obtains expression packet picture, therefore the present invention is manually selected without user Expression packet template picture, alleviates the operating burden of user, can allow user quickly, easily oneself production expression Packet.Meanwhile present invention determine that expression packet template picture match with content of text, improve the aobvious of the expression packet picture of generation Show effect.
The above is only a preferred embodiment of the present invention, it is noted that for the ordinary skill people of the art For member, various improvements and modifications may be made without departing from the principle of the present invention, these improvements and modifications are also answered It is considered as protection scope of the present invention.

Claims (10)

1. a kind of expression packet generation method characterized by comprising
Obtain the first content of text;
Expression packet template picture is determined according to first content of text;
First content of text is added in the expression packet template picture of at least one determination, obtains expression packet picture.
2. the method according to claim 1, wherein described determine expression Bao Mo according to first content of text Plate picture, comprising:
Word segmentation processing is carried out to first content of text, obtains multiple keywords;
Calculate the image attribute information of each expression packet template picture in the keyword and preset expression packet Prototype drawing valut obtained Matching degree;
At least one expression packet template picture is determined from preset expression packet Prototype drawing valut according to the matching degree.
3. according to the method described in claim 2, it is characterized in that, the image attribute information includes: first kind information, institute Stating first kind information includes: at least one of character attribute information and/or emotion information information;
The picture attribute for calculating each expression packet template picture in the keyword and preset expression packet Prototype drawing valut obtained The matching degree of information, comprising:
Described in the image attribute information of each expression packet template picture in the preset expression packet Prototype drawing valut First kind information: the similarity of various information in the keyword and the first kind information of acquisition is calculated, according to described Similarity determines that the picture attribute of the expression packet template picture in the keyword and preset expression packet Prototype drawing valut obtained is believed The matching degree of breath.
4. according to the method described in claim 3, it is characterized in that, the image attribute information further include: influence force information, institute It states and the expression packet template picture in the keyword and preset expression packet Prototype drawing valut obtained is determined according to the similarity The matching degree of image attribute information, comprising:
It is determined in the keyword and preset expression packet Prototype drawing valut obtained according to the similarity and the force information that influences The matching degree of the image attribute information of the expression packet template picture.
5. the method according to claim 1, wherein the method is applied in the first electronic equipment, described the One content of text is that user is input to the content of text in first electronic equipment, alternatively, first content of text is served as reasons The content of text that second electronic equipment is sent to first electronic equipment and is shown in first electronic equipment.
6. the method according to claim 1, wherein described be added at least one for first content of text In determining expression packet template picture, expression packet picture is obtained, comprising:
Identify the white space for the expression packet template picture that at least one is determined;
First content of text is added in the white space that identification obtains, obtains expression packet picture.
7. the method according to claim 1, wherein determining expression packet according to first content of text described After template picture, the method also includes:
Recognition of face is carried out to determining each expression packet template picture, according to face recognition result from determining each expression packet template Facial image is obtained in picture;
The facial image of acquisition is cut according to preset picture ratio, obtains and cuts treated expression packet Prototype drawing Piece;
In the expression packet template picture that first content of text is added to at least one determination, expression packet figure is obtained Piece specifically includes:
First content of text is added at least one cut in treated expression packet template picture, obtains expression Packet picture.
8. a kind of expression packet generates system characterized by comprising text obtaining unit, picture determine unit and text addition Unit,
The text obtaining unit, for obtaining the first content of text;
The picture determine unit, for determining expression packet template picture according to first content of text;
The text adding unit, for first content of text to be added to the expression packet template picture of at least one determination In, obtain expression packet picture.
9. system according to claim 8, which is characterized in that the picture determine unit includes: participle subelement, matching Degree computation subunit and template determine subelement,
The participle subelement obtains multiple keywords for carrying out word segmentation processing to first content of text;
The matching degree computation subunit, for calculating each expression in the keyword and preset expression packet Prototype drawing valut obtained The matching degree of the image attribute information of packet template picture;
The template determines subelement, for determining at least one from preset expression packet Prototype drawing valut according to the matching degree A expression packet template picture.
10. system according to claim 9, which is characterized in that the image attribute information includes: first kind information, The first kind information includes: at least one of character attribute information and/or emotion information information;
The matching degree computation subunit, is specifically configured to:
Described in the image attribute information of each expression packet template picture in the preset expression packet Prototype drawing valut First kind information: the similarity of various information in the keyword and the first kind information of acquisition is calculated, according to described Similarity determines that the picture attribute of the expression packet template picture in the keyword and preset expression packet Prototype drawing valut obtained is believed The matching degree of breath.
CN201811621936.0A 2018-12-28 2018-12-28 Expression packet generation method and system Pending CN109741423A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201811621936.0A CN109741423A (en) 2018-12-28 2018-12-28 Expression packet generation method and system

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201811621936.0A CN109741423A (en) 2018-12-28 2018-12-28 Expression packet generation method and system

Publications (1)

Publication Number Publication Date
CN109741423A true CN109741423A (en) 2019-05-10

Family

ID=66361766

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201811621936.0A Pending CN109741423A (en) 2018-12-28 2018-12-28 Expression packet generation method and system

Country Status (1)

Country Link
CN (1) CN109741423A (en)

Cited By (11)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN110120059A (en) * 2019-05-15 2019-08-13 京东方科技集团股份有限公司 A kind of icon generation method and device
CN110232116A (en) * 2019-05-31 2019-09-13 三角兽(北京)科技有限公司 The method and device of expression addition in revert statement
CN110619357A (en) * 2019-08-29 2019-12-27 北京搜狗科技发展有限公司 Picture processing method and device and electronic equipment
CN110706312A (en) * 2019-09-20 2020-01-17 北京奇艺世纪科技有限公司 Method and device for determining file of expression package and electronic equipment
CN110719525A (en) * 2019-08-28 2020-01-21 咪咕文化科技有限公司 Bullet screen expression package generation method, electronic equipment and readable storage medium
CN110850996A (en) * 2019-09-29 2020-02-28 上海萌家网络科技有限公司 Picture/video processing method and device applied to input method
CN111353064A (en) * 2020-02-28 2020-06-30 北京百度网讯科技有限公司 Expression package generation method, device, equipment and medium
WO2021098754A1 (en) * 2019-11-20 2021-05-27 阿里巴巴集团控股有限公司 Data object generating method, emoticon generating method, computer device, and storage medium
CN113342179A (en) * 2021-05-26 2021-09-03 北京百度网讯科技有限公司 Input text processing method and device, electronic equipment and storage medium
CN114553810A (en) * 2022-02-22 2022-05-27 广州博冠信息科技有限公司 Expression picture synthesis method and device and electronic equipment
CN114693827A (en) * 2022-04-07 2022-07-01 深圳云之家网络有限公司 Expression generation method and device, computer equipment and storage medium

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN106126709A (en) * 2016-06-30 2016-11-16 北京奇虎科技有限公司 Generate the method and device of chatting facial expression in real time
WO2016197767A2 (en) * 2016-02-16 2016-12-15 中兴通讯股份有限公司 Method and device for inputting expression, terminal, and computer readable storage medium
CN107369196A (en) * 2017-06-30 2017-11-21 广东欧珀移动通信有限公司 Expression, which packs, makees method, apparatus, storage medium and electronic equipment
CN108280166A (en) * 2018-01-17 2018-07-13 广东欧珀移动通信有限公司 Production method, device, terminal and the computer readable storage medium of expression

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2016197767A2 (en) * 2016-02-16 2016-12-15 中兴通讯股份有限公司 Method and device for inputting expression, terminal, and computer readable storage medium
CN106126709A (en) * 2016-06-30 2016-11-16 北京奇虎科技有限公司 Generate the method and device of chatting facial expression in real time
CN107369196A (en) * 2017-06-30 2017-11-21 广东欧珀移动通信有限公司 Expression, which packs, makees method, apparatus, storage medium and electronic equipment
CN108280166A (en) * 2018-01-17 2018-07-13 广东欧珀移动通信有限公司 Production method, device, terminal and the computer readable storage medium of expression

Cited By (15)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN110120059A (en) * 2019-05-15 2019-08-13 京东方科技集团股份有限公司 A kind of icon generation method and device
CN110120059B (en) * 2019-05-15 2023-03-10 京东方科技集团股份有限公司 Icon generation method and device
CN110232116A (en) * 2019-05-31 2019-09-13 三角兽(北京)科技有限公司 The method and device of expression addition in revert statement
CN110232116B (en) * 2019-05-31 2021-07-27 腾讯科技(深圳)有限公司 Method and device for adding expressions in reply sentence
CN110719525A (en) * 2019-08-28 2020-01-21 咪咕文化科技有限公司 Bullet screen expression package generation method, electronic equipment and readable storage medium
CN110619357B (en) * 2019-08-29 2022-03-04 北京搜狗科技发展有限公司 Picture processing method and device and electronic equipment
CN110619357A (en) * 2019-08-29 2019-12-27 北京搜狗科技发展有限公司 Picture processing method and device and electronic equipment
CN110706312A (en) * 2019-09-20 2020-01-17 北京奇艺世纪科技有限公司 Method and device for determining file of expression package and electronic equipment
CN110850996A (en) * 2019-09-29 2020-02-28 上海萌家网络科技有限公司 Picture/video processing method and device applied to input method
WO2021098754A1 (en) * 2019-11-20 2021-05-27 阿里巴巴集团控股有限公司 Data object generating method, emoticon generating method, computer device, and storage medium
CN111353064A (en) * 2020-02-28 2020-06-30 北京百度网讯科技有限公司 Expression package generation method, device, equipment and medium
CN111353064B (en) * 2020-02-28 2023-06-13 北京百度网讯科技有限公司 Expression package generation method, device, equipment and medium
CN113342179A (en) * 2021-05-26 2021-09-03 北京百度网讯科技有限公司 Input text processing method and device, electronic equipment and storage medium
CN114553810A (en) * 2022-02-22 2022-05-27 广州博冠信息科技有限公司 Expression picture synthesis method and device and electronic equipment
CN114693827A (en) * 2022-04-07 2022-07-01 深圳云之家网络有限公司 Expression generation method and device, computer equipment and storage medium

Similar Documents

Publication Publication Date Title
CN109741423A (en) Expression packet generation method and system
CN110647636B (en) Interaction method, interaction device, terminal equipment and storage medium
US9613268B2 (en) Processing of images during assessment of suitability of books for conversion to audio format
CN107193792A (en) The method and apparatus of generation article based on artificial intelligence
CN106326391B (en) Multimedia resource recommendation method and device
Shi et al. Online public opinion during the first epidemic wave of COVID-19 in China based on Weibo data
CN113297891A (en) Video information processing method and device and electronic equipment
CN110719525A (en) Bullet screen expression package generation method, electronic equipment and readable storage medium
CN110740389A (en) Video positioning method and device, computer readable medium and electronic equipment
CN107491435A (en) Method and device based on Computer Automatic Recognition user feeling
JP2020174338A (en) Method, device, server, computer-readable storage media, and computer program for generating information
CN109348262B (en) Calculation method, device, equipment and storage medium for anchor similarity
CN112732974A (en) Data processing method, electronic equipment and storage medium
CN114095749A (en) Recommendation and live interface display method, computer storage medium and program product
CN111221940A (en) Text generation method and device, electronic equipment and storage medium
CN110891198B (en) Video playing prompt method, multimedia playing prompt method, bullet screen processing method and device
CN112929253A (en) Virtual image interaction method and device
CN111125384B (en) Multimedia answer generation method and device, terminal equipment and storage medium
CN115272540A (en) Processing method and device based on virtual customer service image, equipment and medium
CN111506596A (en) Information retrieval method, information retrieval device, computer equipment and storage medium
CN114138960A (en) User intention identification method, device, equipment and medium
CN113886610A (en) Information display method, information processing method and device
CN111490929A (en) Video clip pushing method and device, electronic equipment and storage medium
CN109472028B (en) Method and device for generating information
CN107423307A (en) The distribution method and device of a kind of internet information resource

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