CN105183316B - A kind of method and apparatus for generating face word - Google Patents
A kind of method and apparatus for generating face word Download PDFInfo
- Publication number
- CN105183316B CN105183316B CN201510548856.7A CN201510548856A CN105183316B CN 105183316 B CN105183316 B CN 105183316B CN 201510548856 A CN201510548856 A CN 201510548856A CN 105183316 B CN105183316 B CN 105183316B
- Authority
- CN
- China
- Prior art keywords
- hand
- user
- drawing graphics
- graphic feature
- filling
- 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.)
- Active
Links
Classifications
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F3/00—Input arrangements for transferring data to be processed into a form capable of being handled by the computer; Output arrangements for transferring data from processing unit to output unit, e.g. interface arrangements
- G06F3/01—Input arrangements or combined input and output arrangements for interaction between user and computer
- G06F3/048—Interaction techniques based on graphical user interfaces [GUI]
- G06F3/0484—Interaction techniques based on graphical user interfaces [GUI] for the control of specific functions or operations, e.g. selecting or manipulating an object, an image or a displayed text element, setting a parameter value or selecting a range
Landscapes
- Engineering & Computer Science (AREA)
- General Engineering & Computer Science (AREA)
- Theoretical Computer Science (AREA)
- Human Computer Interaction (AREA)
- Physics & Mathematics (AREA)
- General Physics & Mathematics (AREA)
- Processing Or Creating Images (AREA)
Abstract
The present invention provides a kind of method and apparatus for generating face word, hand-drawing graphics input by user are obtained;Identify the graphic feature of the hand-drawing graphics;Determine and the corresponding one or more filling elements of the graphic feature;According to the graphic feature, the hand-drawing graphics are filled with one or more elements of filling, corresponding face word is generated and carries out screen.Compared with prior art, the invention enables user oneself to make face word, it is only necessary to simply scribbles, it is possible to automatically generates the face word identical with scribble shape, realizes the demand of personalization.
Description
Technical field
The present invention relates to input technology field, more particularly to a kind of method and apparatus for generating face word.
Background technology
Expression is the important channel that user shows emotion in character input process, can make the more interesting life of input process
Dynamic, face word is exactly one kind of expression, face word because the intention of user under input scene, can be expressed vividly, from
And it is widely used.
Existing input method design in, all can be a variety of face words built in user, but these face words be all for
What family was set, user is difficult to find suitable face word according to the demand of oneself;In addition, everybody is using identical face text
Word, lacks individuality, and the mode to show emotion is restricted, and tends to be single and feeling of freshness is insufficient;Also, existing face literal table
It is existing in the form of a single, simply it is made of simple symbol or lines, formation element is relatively simple.
Therefore, how based on user demand generate face word, lifted its input experience, become those skilled in the art there is an urgent need for
One of solve the problems, such as.
The content of the invention
The object of the present invention is to provide a kind of method and apparatus for generating face word.
According to an aspect of the present invention, there is provided a kind of method for generating face word, wherein, this method includes following
Step:
A obtains hand-drawing graphics input by user;
B identifies the graphic feature of the hand-drawing graphics;
C is determined and the corresponding one or more filling elements of the graphic feature;
D fills the hand-drawing graphics, generation is corresponding according to the graphic feature with one or more elements of filling
Face word carries out screen.
According to another aspect of the present invention, a kind of generating means for being used to generate face word are additionally provided, wherein, the dress
Put including following device:
Acquisition device, for obtaining hand-drawing graphics input by user;
Identification device, for identifying the graphic feature of the hand-drawing graphics;
First determining device, for determining and the corresponding one or more filling elements of the graphic feature;
Upper screen device, for according to the graphic feature, the manual draw to be filled with one or more elements of filling
Shape, generates corresponding face word and carries out screen.
Compared with prior art, the present invention has the following advantages:
1) user oneself can make face word, it is only necessary to simply scribble, it is possible to automatically generate and scribble shape
The identical face word of shape, realizes the demand of personalization;
2) user can also independently select the filling element of composition face word, based on the corresponding face text of the filling Element generation
Shield on word, further improve the input usage experience of user;.
3) after hand-drawing graphics input by user are obtained, this is first pre-processed, then to pretreated manual draw
Shape carries out graphic feature identification, improves the accuracy of graphic feature identification so that the face word of generation and hand input by user
Drawing shape more matches, and further improves the usage experience of user;
4) determine to fill the element density that element fills hand-drawing graphics input by user, with reference to the element density to the hand
Drawing shape is filled into row element, is further increased the matching degree of generated face word and hand-drawing graphics input by user, is carried
The usage experience of user is risen;
5) the face word that user generates is stored, unloading or upload, facilitates making for the user or other network users
With the further usage experience for lifting user.
Brief description of the drawings
By reading the detailed description made to non-limiting example made with reference to the following drawings, of the invention is other
Feature, objects and advantages will become more apparent upon:
Fig. 1 shows the generating means schematic diagram for being used to generate face word of one side according to the present invention;
Fig. 2 shows the generation face text effects figure of one embodiment of the invention;
Fig. 3 shows the generation face text effects figure of another embodiment of the present invention;
Fig. 4 shows the generating means schematic diagram for being used to generate face word in accordance with a preferred embodiment of the present invention;
Fig. 5 shows the generating means schematic diagram for being used to generate face word of another preferred embodiment according to the present invention;
Fig. 6 shows the flow diagram for being used to generate face word according to a further aspect of the present invention;
Fig. 7 shows the flow diagram for being used to generate face word in accordance with a preferred embodiment of the present invention;
Fig. 8 shows the flow diagram for being used to generate face word of another preferred embodiment according to the present invention.
The same or similar reference numeral represents the same or similar component in attached drawing.
Embodiment
It should be mentioned that some exemplary embodiments are described as before exemplary embodiment is discussed in greater detail
The processing described as flow chart or method.Although operations are described as the processing of order by flow chart, therein to be permitted
Multioperation can be implemented concurrently, concomitantly or at the same time.In addition, the order of operations can be rearranged.When it
The processing can be terminated when operation is completed, it is also possible to the additional step being not included in attached drawing.The processing
It can correspond to method, function, code, subroutine, subprogram etc..
Alleged within a context " computer equipment ", also referred to as " computer ", referring to can be by running preset program or referring to
Make to perform the intelligent electronic device of the predetermined process process such as numerical computations and/or logical calculated, its can include processor with
Memory, performs the survival that prestores in memory by processor and instructs and perform predetermined process process, or by ASIC,
The hardware such as FPGA, DSP perform predetermined process process, or are realized by said two devices combination.
The computer equipment includes user equipment and the network equipment.Wherein, the user equipment includes but not limited to a
People's computer, laptop, tablet computer, smart mobile phone, PDA etc.;The network equipment includes but not limited to single network clothes
Be engaged in device, multiple webservers composition server group or based on cloud computing (Cloud Computing) by a large amount of computers
Or the cloud that the webserver is formed, wherein, cloud computing is one kind of Distributed Calculation, by the computer collection group of a group loose couplings
Into a super virtual computer.Wherein, the computer equipment can isolated operation realize the present invention, also can access network
And the present invention is realized by the interactive operation with other computer equipments in network.Wherein, residing for the computer equipment
Network include but not limited to internet, wide area network, Metropolitan Area Network (MAN), LAN, VPN network etc..
It should be noted that the user equipment, the network equipment and network etc. are only for example, other are existing or from now on may be used
The computer equipment or network that can occur such as are applicable to the present invention, should also be included within the scope of the present invention, and to draw
It is incorporated herein with mode.
Method (some of them are illustrated by flow) discussed hereafter can be by hardware, software, firmware, centre
Part, microcode, hardware description language or its any combination are implemented.Implement when with software, firmware, middleware or microcode
When, to implement the program code of necessary task or code segment can be stored in machine or computer-readable medium and (for example deposit
Storage media) in.(one or more) processor can implement necessary task.
Concrete structure and function detail disclosed herein are only representational, and are for describing showing for the present invention
The purpose of example property embodiment.But the present invention can be implemented by many alternative forms, and it is not interpreted as
It is limited only by the embodiments set forth herein.
Although it should be appreciated that may have been used term " first ", " second " etc. herein to describe unit,
But these units should not be limited by these terms.The use of these items is only for by a unit and another unit
Distinguish.For example, in the case of the scope without departing substantially from exemplary embodiment, it is single that first module can be referred to as second
Member, and similarly second unit can be referred to as first module.Term "and/or" used herein above include one of them or
Any and all combination of more listed associated items.
It should be appreciated that when a unit is referred to as " connecting " or during " coupled " to another unit, it can directly connect
Connect or be coupled to another unit, or there may be temporary location.On the other hand, when a unit is referred to as " directly connecting
Connect " or " direct-coupling " when arriving another unit, then there is no temporary location.It should in a comparable manner explain and be used to retouch
State the relation between unit other words (such as " between being in ... " compared to " between being directly in ... ", " and with ... it is adjacent
Closely " compared to " with ... be directly adjacent to " etc.).
Term used herein above is not intended to limit exemplary embodiment just for the sake of description specific embodiment.Unless
Context clearly refers else, otherwise singulative used herein above "one", " one " also attempt to include plural number.Should also
When understanding, term " comprising " and/or "comprising" used herein above provide stated feature, integer, step, operation,
The presence of unit and/or component, and do not preclude the presence or addition of other one or more features, integer, step, operation, unit,
Component and/or its combination.
It should further be mentioned that in some replaces realization modes, the function/action being previously mentioned can be according to different from attached
The order indicated in figure occurs.For example, depending on involved function/action, the two width figures shown in succession actually may be used
Substantially simultaneously to perform or can perform in a reverse order sometimes.
The present invention is described in further detail below in conjunction with the accompanying drawings.
Fig. 1 shows the generating means schematic diagram for being used to generate face word of one side according to the present invention.Generating means 1 are wrapped
Include acquisition device 101, identification device 102, the first determining device 103 and upper screen device 104.
Here, generating means 1 can for example be located in computer equipment, the computer equipment includes user equipment and net
Network equipment.When the generating means 1 are located at the network equipment, it is in communication with each other between user equipment by network, is obtained
The hand-drawing graphics that user inputs in a user device, identify the graphic feature of the hand-drawing graphics, determine and the graphic feature
Corresponding one or more filling elements, according to the graphic feature, with described in one or more filling element fillings
Hand-drawing graphics, generate corresponding face word and return to the user's equipment, the user's equipment carries out upper screen to the face word.
It is described in detail below by taking the generating means 1 are located in user equipment as an example.
Wherein, acquisition device 101 obtains hand-drawing graphics input by user.Specifically, user passes through between user equipment
Interaction, have input hand-drawing graphics, for example, when the user's equipment for touch-screen mobile phone when mobile terminal when, user is in the touch screen hand
The Freehandhand-drawing input area of machine, slided on the screen by finger, screen touch pen drawing etc. mode, have input certain hand-drawing graphics;
And for example, when the user's equipment for desktop computer, laptop when equipment when, user is slided by mouse or finger is in touch pad
The modes such as slip, certain hand-drawing graphics are have input in the Freehandhand-drawing input area of the equipment.It is preferred that the Freehandhand-drawing input area example
Such as triggering display when user clicks on the corresponding button in input application.Acquisition device 101 by being interacted with the user equipment,
Such as one or many hand-drawing graphics for calling the application programming interfaces (API) for inputting application and providing, obtaining the user's input, example
Such as, the movement locus of screen touch pen is obtained by sensor, to obtain the hand-drawing graphics of the user's input;Alternatively, acquisition device 101
Such as by mapping the content of user's Freehandhand-drawing, so as to obtain hand-drawing graphics.
Those skilled in the art will be understood that the mode of above-mentioned acquisition hand-drawing graphics is only for example, other are existing or from now on
The mode for the acquisition hand-drawing graphics being likely to occur such as is applicable to the present invention, should also be included within the scope of the present invention, and
It is incorporated herein by reference herein.
Identification device 102 identifies the graphic feature of the hand-drawing graphics.Specifically, identification device 102 is to by acquisition device
101 hand-drawing graphics obtained carry out feature extraction and selection, and the essential graphic feature of the hand-drawing graphics can be most reflected with identification,
For example, the graph outline curvature maximum of the hand-drawing graphics or the place of contour direction suddenly change.For example, work as acquisition device 101
When the hand-drawing graphics of acquisition are heart-shaped, identification device 102 identifies heart-shaped graphic feature by feature extraction and selection:Two
The cambered acute angle of the identical band in a direction.
Those skilled in the art will be understood that the mode of above-mentioned identification graphic feature is only for example, other are existing or from now on
The mode for the identification figure being likely to occur such as is applicable to the present invention, should also be included within the scope of the present invention, and herein
It is incorporated herein by reference.
First determining device 103 determines and the corresponding one or more filling elements of the graphic feature.Specifically,
One determining device 103 determines the mode of the corresponding one or more filling elements of graphic feature identified with identification device 102
Including but not limited to:
1) according to the graphic feature of identification, matching inquiry is carried out in element database 1, is obtained corresponding with the graphic feature
One or more filling element.For example, for graphic feature " circular arc ", it is symbol that matching, which obtains corresponding filling element,
" (" or ") ".And for example, for graphic feature " straight line ", matching obtain corresponding filling element for symbol "!”.
Here, the element stored in element database 1 includes but not limited to following at least any one:Symbol, expression are made by oneself
Adopted picture.Symbol include but not limited to Chinese punctuate symbol, English punctuate symbol, mathematic sign, sequence number, wish Russia's symbol, phonetic symbol,
Tabulation symbol etc..Expression includes but not limited to emoji expressions, gif expressions etc..Self-defined picture includes but not limited to the user institute
Self-defined picture upload, that other users are uploaded.
Here, the element database 1 can be located in the user's equipment, it can also be located at and be connected with the user's equipment by network
In the third party device connect.Further, element database 1 includes but not limited to following at least any one word bank:Symbolic library, expression storehouse
Or self-defining image valut.
Preferably, generating means 1 further include updating device (not shown), the updating device obtain uploader uploaded from
Picture is defined, establishes or updates the element database.
Specifically, the user or network-side other users upload self-defined picture, and updating device obtains these uploads
The self-defined picture that person is uploaded, self-defined picture is stored in element database, so as to fulfill the foundation to the element database or more
Newly.
2) the acquisition user is selected fills elements with the corresponding one or more of the hand-drawing graphics, for example,
User independently selects one or more filling elements to be used from element database 2.
It is preferred that the element database 2 can also be established or updated through the above way.
3) above-mentioned 1) and by way of 2) being combined, for example, being carried out in the graphic feature according to identification in element database 1
Matching inquiry, on the basis of obtaining one or more filling elements corresponding with the graphic feature, user is further according to specific feelings
Condition autonomous selected section filling element from element database 2, the one or more filling elements for determining to be filled are combined by both;
Alternatively, carrying out matching inquiry in element database 1 in the graphic feature according to identification, one kind corresponding with the graphic feature is obtained
Or on the basis of a variety of filling elements, user fills in element from the one or more select its desired filling element again.
Here, the element database 2 can or part identical with element database 1 it is identical;The element database 2 can also be user from
The element database of definition.
Those skilled in the art will be understood that above-mentioned determine and the corresponding one or more filling members of the graphic feature
The mode of element is only for example, other are existing or what is be likely to occur from now on determines to fill out with the corresponding one or more of graphic feature
The method for filling element is such as applicable to the present invention, should also be included in the scope of the present invention, and includes by reference herein
In this.Those skilled in the art should also be understood that above-mentioned filling element is only for example, other are existing or are likely to occur from now on
The method of filling element is such as applicable to the present invention, should also be included in the scope of the present invention, and wrap by reference herein
It is contained in this.
Upper screen device 104 fills the hand-drawing graphics according to the graphic feature, with one or more elements of filling,
Generate corresponding face word and carry out screen.Specifically, the graphic feature that upper screen device 104 is identified according to identification device 102, with
That first determining device 103 is determined by element storehouse matching, user selection, or both be combined identified one or more
Element is filled, which is filled into row element, generates and shields on corresponding face word, i.e. filled with the one or more
Element shows the hand-drawing graphics.The dynamic such as by one or many calling such as JSP, ASP or PHP of screen device 104 on this
Page technology, the face word of the generation is directly displayed on the screen of user equipment;Alternatively, when user passes through click, long-press
Upper screen button when mode carry out screen operation when, upper screen device 104 by the face text importing of the generation the user's equipment screen
On curtain, for example, being shown in the input frame of the user.
Those skilled in the art will be understood that above-mentioned screen connection mode is only for example, other are existing or are likely to occur from now on
New screen connection mode is such as applicable to the present invention, should also be included within the scope of the present invention, and wraps by reference herein
It is contained in this.
It is described in detail below with operation of the embodiment to above device:
For example, it is assumed that the hand-drawing graphics acquired in acquisition device 101 are heart, identification device 102 identifies the master of heart
It is characterized as:The cambered acute angle of the identical band of both direction.First determining device 103 determines one according to the graphic feature
Kind or several filling elements corresponding with heart, such as:“,.!-”.Upper screen device 104 fills heart pattern simultaneously with these elements
Upper screen, generates face word as shown in Figure 2;Or first determining device 103 corresponding filling determined according to the selection of user
Element, fills heart pattern and upper screen with these elements by upper screen device 104, generates face word as shown in Figure 3.
Here, generating means 1 obtain hand-drawing graphics input by user, the graphic feature of the hand-drawing graphics is identified, determine
With the corresponding one or more filling elements of the graphic feature, according to the graphic feature, filled out with the one or more
Fill element and fill the hand-drawing graphics, generate corresponding face word and carry out screen, user oneself can make face word, it is only necessary to
Simply scribble, it is possible to automatically generate the face word identical with scribble shape, realize the demand of personalization.
Further, user can also independently select the filling element of composition face word, based on the filling Element generation pair
Shield on the face word answered, further improve the input usage experience of user.
Fig. 4 shows the generating means schematic diagram for being used to generate face word in accordance with a preferred embodiment of the present invention.Should
Generating means 1 further include pretreatment unit 405.The preferred embodiment is described in detail below:Specifically, acquisition device
401 obtain hand-drawing graphics input by user;Pretreatment unit 405 pre-processes the hand-drawing graphics, to be pre-processed
Hand-drawing graphics afterwards;Identification device 402 identifies the graphic feature of the pretreated hand-drawing graphics;First determining device 403
Determine and the corresponding one or more filling elements of the graphic feature;Upper screen device 404, according to the graphic feature, with
One or more filling elements fill the hand-drawing graphics, generate corresponding face word and carry out screen.Wherein, acquisition device
401st, identification device 402, the first determining device 403 and upper screen device 404 and Fig. 1 corresponding intruments are identical or essentially identical, so
Place repeats no more, and is incorporated herein by reference.
Wherein, pretreatment unit 405 pre-processes the hand-drawing graphics, to obtain pretreated hand-drawing graphics.
Specifically, pretreatment unit 405 carries out figure enhancing processing, denoising, figure to the hand-drawing graphics acquired in acquisition device 401
The pretreatment such as sharpening, so as to obtain pretreated hand-drawing graphics.
Preferably, the pretreatment unit 405 can also include figure enhancement unit (not shown), figure smooth unit
(not shown) and graphic edge processing unit (not shown).The figure enhancement unit is realized to the hand-drawing graphics by graph transformation
Enhancing processing;The figure smooth unit is realized to the smooth of the hand-drawing graphics or filtering by removing noise to figure, is helped
In improvement picture quality and beneficial to the extraction of characteristics of objects;The graphic edge processing unit is sharpened by figure and realized to the Freehandhand-drawing
The edge clearization processing of figure.For example, when hand-drawing graphics input by user are heart-shaped, if its imprudence is in the heart finished
One point of pictographic element of a pictophonetic side multiple spot, figure smooth unit can remove the unnecessary point, and help removes noise, repairs figure;Figure
Edge treated unit helps accurately to identify the angle of heart, high-fidelity also original subscriber's hand-drawing graphics.
Here, generating means 1 first pre-process this after hand-drawing graphics input by user are obtained, then to pre- place
Hand-drawing graphics after reason carry out graphic feature identification, improve the accuracy of graphic feature identification so that the face word of generation with
Hand-drawing graphics input by user more match, and further improve the usage experience of user.
Fig. 5 shows the generating means schematic diagram for being used to generate face word of another preferred embodiment according to the present invention.
The generating means 1 further include the second determining device 506.The preferred embodiment is described in detail below:Specifically, dress is obtained
Put 501 acquisitions hand-drawing graphics input by user;Identification device 502 identifies the graphic feature of the hand-drawing graphics;First determines dress
503 are put to determine and the corresponding one or more filling elements of the graphic feature;Second determining device 506 determines to fill out with described
Fill the element density that element fills the hand-drawing graphics;Upper screen device 504, according to the graphic feature, and with reference to the element
Density, fills the hand-drawing graphics with one or more elements of filling, generates corresponding face word and carry out screen.Wherein,
Acquisition device 501, identification device 502, the first determining device 503 and upper screen device 504 is identical with Fig. 1 corresponding intruments or basic phase
Together, therefore details are not described herein again, and is incorporated herein by reference.
Wherein, the second determining device 506 determines to fill the element density of the hand-drawing graphics with the filling element.Specifically
Ground, the second determining device 506 determine that the mode of the element density includes but not limited to:
1) the element density is automatically determined according to graphic feature;
2) user's element density according to determined by hobby is obtained;
3) after the element density is automatically determined according to graphic feature, user is adjusted common true on this basis
The fixed element density.
For example, for graph outline curvature greatly or at the figure of profile curvature suddenly change, in order to smoothly represent
Turning or the change of figure, the second determining device 506 increase the element density of filling element automatically;For gentle figure
Place, the second determining device 506 use uniform packed density;Certain customers may not like default packed density, Ke Yigen
Packed density is set according to the sense organ of oneself;, can be with when the element density individually determined with a kind of mode is all unsatisfactory for user demand
An element density is determined jointly with reference to two kinds of determination modes.
Those skilled in the art will be understood that the mode of above-mentioned definite element density is only for example, other are existing or from now on
The mode for the definite element density being likely to occur such as is applicable to the present invention, should also be included within the scope of the present invention, and
It is incorporated herein by reference herein.
Here, generating means 1 are also determined to fill the element density that element fills hand-drawing graphics input by user, with reference to this
Element density fills the hand-drawing graphics into row element, further increases generated face word and manual draw input by user
The matching degree of shape, improves the usage experience of user.Preferably, generating means 1 further include storage device (not shown), the storage
Device stores the face word, and use is directly selected when being inputted next time for the user.Specifically, user for example passes through a little
Hit, the mode such as long-press save button, carry out preservation operation to the face word oneself made, storage device will the face word carry out
Storage, for example, being stored in the local face literal pool of the user's equipment, or is stored in what is be connected with the user's equipment by network
Network face literal pool, next the user can directly invoke when using same face word;Alternatively, storage device is by the face word
Enter as self-defined picture unloading in element database;Alternatively, the face word is uploaded to network face literal pool by storage device, for other
User uses.
Those skilled in the art will be understood that the mode of above-mentioned storage face word is only for example, other are existing or from now on may be used
The mode for the storage face word that can occur such as is applicable to the present invention, should also be included within the scope of the present invention, and herein
It is incorporated herein by reference.
Here, generating means 1 are also stored the face word that user generates, unloading or upload, facilitate the user or its
The use of his network user, further lifts the usage experience of user.
Fig. 6 shows the method flow diagram for being used to generate face word according to a further aspect of the present invention.
Here, generating means 1 can for example be located in computer equipment, the computer equipment includes user equipment and net
Network equipment.When the generating means 1 are located at the network equipment, it is in communication with each other between user equipment by network, is obtained
The hand-drawing graphics that user inputs in a user device, identify the graphic feature of the hand-drawing graphics, determine and the graphic feature
Corresponding one or more filling elements, according to the graphic feature, with described in one or more filling element fillings
Hand-drawing graphics, generate corresponding face word and return to the user's equipment, the user's equipment carries out upper screen to the face word.
It is described in detail below by taking the generating means 1 are located in user equipment as an example.
In step 601, generating means 1 obtain hand-drawing graphics input by user.Specifically, user by with user equipment
Between interaction, have input hand-drawing graphics, for example, when the user's equipment for touch-screen mobile phone when mobile terminal when, user this touch
The Freehandhand-drawing input area of screen mobile phone, slided on the screen by finger, screen touch pen drawing etc. mode, have input certain manual draw
Shape;And for example, when the user's equipment for desktop computer, laptop when equipment when, user is slided by mouse or finger is touching
The modes such as plate slip, certain hand-drawing graphics are have input in the Freehandhand-drawing input area of the equipment.It is preferred that the Freehandhand-drawing input area
Such as the triggering display when user clicks on the corresponding button in input application.In step 601, generating means 1 by with the use
The interaction of family equipment, such as one or many application programming interfaces (API) for calling input application to provide, obtains the user's input
Hand-drawing graphics, for example, the movement locus of screen touch pen is obtained by sensor, to obtain the hand-drawing graphics of the user's input;Alternatively,
In step 601, generating means 1 are for example by mapping the content of user's Freehandhand-drawing, so as to obtain hand-drawing graphics.
Those skilled in the art will be understood that the step of above-mentioned acquisition hand-drawing graphics is only for example, other are existing or from now on
The step of acquisition hand-drawing graphics being likely to occur, is such as applicable to the present invention, should also be included within the scope of the present invention, and
It is incorporated herein by reference herein.
In step 602, generating means 1 identify the graphic feature of the hand-drawing graphics.Specifically, in step 602, it is raw
Feature extraction and selection are carried out to the hand-drawing graphics obtained in step 601 into device 1, which can most be reflected with identification
Essential graphic feature, for example, the graph outline curvature of the hand-drawing graphics is maximum or the place of contour direction suddenly change.Example
Such as, when the hand-drawing graphics that generating means 1 obtain in step 601 are heart-shaped, in step 602, generating means 1 are carried by feature
Take and select, identify the graphic feature of heart:The cambered acute angle of the identical band of both direction.
Those skilled in the art will be understood that the mode of above-mentioned identification graphic feature is only for example, other are existing or from now on
The mode for the identification figure being likely to occur such as is applicable to the present invention, should also be included within the scope of the present invention, and herein
It is incorporated herein by reference.
In step 603, generating means 1 determine and the corresponding one or more filling elements of the graphic feature.Tool
Body, in step 603, generating means 1 determine to fill out with the corresponding one or more of graphic feature identified in step 602
The mode for filling element includes but not limited to:
1) according to the graphic feature of identification, matching inquiry is carried out in element database 1, is obtained corresponding with the graphic feature
One or more filling element.For example, for graphic feature " circular arc ", it is symbol that matching, which obtains corresponding filling element,
" (" or ") ".And for example, for graphic feature " straight line ", matching obtain corresponding filling element for symbol "!”.
Here, the element stored in element database 1 includes but not limited to following at least any one:Symbol, expression are made by oneself
Adopted picture.Symbol include but not limited to Chinese punctuate symbol, English punctuate symbol, mathematic sign, sequence number, wish Russia's symbol, phonetic symbol,
Tabulation symbol etc..Expression includes but not limited to emoji expressions, gif expressions etc..Self-defined picture includes but not limited to the user institute
Self-defined picture upload, that other users are uploaded.
Here, the element database 1 can be located in the user's equipment, it can also be located at and be connected with the user's equipment by network
In the third party device connect.Further, element database 1 includes but not limited to following at least any one word bank:Symbolic library, expression storehouse
Or self-defining image valut.
Preferably, step 603 further includes 6031 (not shown) of sub-step, in the sub-step 6031, in the acquisition of generating means 1
The self-defined picture that biography person is uploaded, establishes or updates the element database.
Specifically, the user or network-side other users upload self-defined picture, and generating means 1 obtain these uploads
The self-defined picture that person is uploaded, self-defined picture is stored in element database, so as to fulfill the foundation to the element database or more
Newly.
2) the acquisition user is selected fills elements with the corresponding one or more of the hand-drawing graphics, for example,
User independently selects one or more filling elements to be used from element database 2.
It is preferred that the element database 2 can also be established or updated through the above way.
3) above-mentioned 1) and by way of 2) being combined, for example, being carried out in the graphic feature according to identification in element database 1
Matching inquiry, on the basis of obtaining one or more filling elements corresponding with the graphic feature, user is further according to specific feelings
Condition autonomous selected section filling element from element database 2, the one or more filling elements for determining to be filled are combined by both;
Alternatively, carrying out matching inquiry in element database 1 in the graphic feature according to identification, one kind corresponding with the graphic feature is obtained
Or on the basis of a variety of filling elements, user fills in element from the one or more select its desired filling element again.
Here, the element database 2 can or part identical with element database 1 it is identical;The element database 2 can also be user from
The element database of definition.
Those skilled in the art will be understood that above-mentioned determine and the corresponding one or more filling members of the graphic feature
The mode of element is only for example, other are existing or what is be likely to occur from now on determines to fill out with the corresponding one or more of graphic feature
The method for filling element is such as applicable to the present invention, should also be included in the scope of the present invention, and includes by reference herein
In this.Those skilled in the art should also be understood that above-mentioned filling element is only for example, other are existing or are likely to occur from now on
The method of filling element is such as applicable to the present invention, should also be included in the scope of the present invention, and wrap by reference herein
It is contained in this.
In step 604, generating means 1 fill institute according to the graphic feature with one or more elements of filling
Hand-drawing graphics are stated, corresponding face word is generated and carries out screen.Specifically, in step 604, generating means 1 are according in step 602
In the graphic feature that identifies, it is being selected with determined in step 603 by element storehouse matching, user, or both be combined
Identified one or more filling elements, the hand-drawing graphics are filled into row element, generates and shields on corresponding face word, i.e.
The hand-drawing graphics are shown with one or more filling element.In step 604, generating means 1 are for example by one or many
The dynamic page technologies such as JSP, ASP or PHP are called, the face word of the generation is directly displayed at the screen of user equipment
On;Alternatively, in step 604, when user shields button by clicking on, in long-press carries out upper screen operation when mode, generating means 1
By the face text importing of the generation on the screen of the user's equipment, for example, being shown in the input frame of the user.
Those skilled in the art will be understood that above-mentioned screen connection mode is only for example, other are existing or are likely to occur from now on
New screen connection mode is such as applicable to the present invention, should also be included within the scope of the present invention, and wraps by reference herein
It is contained in this.
It is described in detail below with operation of the embodiment to above-mentioned steps:
For example, it is assumed that acquired hand-drawing graphics are heart to generating means 1 in step 601, identify in step 602
Heart-shaped is mainly characterized by:The cambered acute angle of the identical band of both direction.In step 603, generating means 1 are according to the figure
Shape feature determines one or more of filling elements corresponding with heart, such as:“,.!-”.In step 604, generating means 1
Heart pattern and upper screen are filled with these elements, generates face word as shown in Figure 2;Or in step 603, generating means 1
Corresponding filling element is determined according to the selection of user, fills heart pattern and upper screen in step 604 with these elements, it is raw
Into face word as shown in Figure 3.
Here, generating means 1 obtain hand-drawing graphics input by user by step 601-604, the hand-drawing graphics are identified
Graphic feature, determine with the corresponding one or more filling elements of the graphic feature, according to the graphic feature, with institute
State one or more filling elements and fill the hand-drawing graphics, generate corresponding face word and carry out screen, user can oneself system
Make face word, it is only necessary to simply scribble, it is possible to automatically generate the face word identical with scribble shape, realize a
The demand of property.
Further, user can also independently select the filling element of composition face word, based on the filling Element generation pair
Shield on the face word answered, further improve the input usage experience of user.
Fig. 7 shows the method flow diagram for being used to generate face word in accordance with a preferred embodiment of the present invention.Specifically,
In step 701, generating means 1 obtain hand-drawing graphics input by user;In step 705, generating means 1 are to the manual draw
Shape is pre-processed, to obtain pretreated hand-drawing graphics;In a step 702, generating means 1 identify described pretreated
The graphic feature of hand-drawing graphics;In step 703, generating means 1 determine and the corresponding one or more of the graphic feature
Fill element;In step 704, generating means 1 fill institute according to the graphic feature with one or more elements of filling
Hand-drawing graphics are stated, corresponding face word is generated and carries out screen.Wherein, step 701,702-704 is identical with corresponding to step shown in Fig. 6
Or it is essentially identical, therefore details are not described herein again, and be incorporated herein by reference.
Wherein, in step 705, generating means 1 pre-process the hand-drawing graphics, to obtain pretreated hand
Drawing shape.Specifically, in step 705, generating means 1 carry out figure enhancing to acquired hand-drawing graphics in step 701
The pretreatments such as processing, denoising, figure sharpening, so as to obtain pretreated hand-drawing graphics.
Preferably, step 705 can also include 7051 (not shown) of sub-step, 7052 (not shown) of sub-step and sub-step
7053 (not shown).In sub-step 7051, generating means 1 realize that the enhancing to the hand-drawing graphics is handled by graph transformation;
In sub-step 7052, generating means 1 are realized to the smooth of the hand-drawing graphics or filtering by removing noise to figure, help to change
Kind picture quality is simultaneously beneficial to the extraction of characteristics of objects;In sub-step 7053, generating means 1 are sharpened by figure and realized to the Freehandhand-drawing
The edge clearization processing of figure.For example, when hand-drawing graphics input by user are heart-shaped, if its imprudence is in the heart finished
One point of pictographic element of a pictophonetic side multiple spot, figure smooth unit can remove the unnecessary point, and help removes noise, repairs figure;Figure
Edge treated unit helps accurately to identify the angle of heart, high-fidelity also original subscriber's hand-drawing graphics.
Here, after generating means 1 obtain hand-drawing graphics input by user in step 701, step 705 is first carried out to this
Pretreatment, then to pretreated hand-drawing graphics carry out graphic feature identification, improve graphic feature identification accuracy, make
The face word that must be generated more is matched with hand-drawing graphics input by user, further improves the usage experience of user.
Fig. 8 shows the method flow diagram for being used to generate face word of another preferred embodiment according to the present invention.Specifically
Ground, in step 801, generating means 1 obtain hand-drawing graphics input by user;In step 802, generating means 1 identify described
The graphic feature of hand-drawing graphics;In step 803, generating means 1 determine and the corresponding one or more of the graphic feature
Fill element;In step 806, generating means 1 determine to fill the element density of the hand-drawing graphics with the filling element;
In step 804, generating means 1 fill member according to the graphic feature, and with reference to the element density with the one or more
Element fills the hand-drawing graphics, generates corresponding face word and carries out screen.Wherein, step 801-803 is identical with the corresponding steps of Fig. 6
Or it is essentially identical, therefore details are not described herein again, and be incorporated herein by reference.
Wherein, in step 806, generating means 1 determine close with the element of the filling element filling hand-drawing graphics
Degree.Specifically, in step 806, generating means 1 determine that the mode of the element density includes but not limited to:
1) the element density is automatically determined according to graphic feature;
2) user's element density according to determined by hobby is obtained;
3) after the element density is automatically determined according to graphic feature, user is adjusted common true on this basis
The fixed element density.
For example, for graph outline curvature greatly or at the figure of profile curvature suddenly change, in order to smoothly represent
Turning or the change of figure, in step 806, generating means 1 increase the element density of filling element automatically;For gentle
At figure, generating means 1 use uniform packed density in step 806;It is close that certain customers may not like default filling
Degree, can set packed density according to the sense organ of oneself;The element density individually determined with a kind of mode, which is all unsatisfactory for user, to be needed
When asking, two kinds of determination modes can be combined and determine an element density jointly.
Those skilled in the art will be understood that the mode of above-mentioned definite element density is only for example, other are existing or from now on
The mode for the definite element density being likely to occur such as is applicable to the present invention, should also be included within the scope of the present invention, and
It is incorporated herein by reference herein.
Here, the method for the generation face word is also definite close to fill the element of element filling hand-drawing graphics input by user
Degree, fills the hand-drawing graphics into row element with reference to the element density, further increases generated face word and user is defeated
The matching degree of the hand-drawing graphics entered, improves the usage experience of user.
Preferably, the method for generating face word further includes step 807 (not shown), and in the step 807, generating means 1 are deposited
The face word is stored up, use is directly selected when being inputted next time for the user.Specifically, user for example passes through click, long-press
The modes such as save button, the face word made to oneself carries out preservation operation, and in step 807, generating means 1 store face text
Word, for example, being stored in the local face literal pool of the user's equipment, or is stored in the net being connected with the user's equipment by network
Network face literal pool, next the user can directly invoke when using same face word;Alternatively, in step 807, generating means
1 enters the face word in element database as self-defined picture unloading;Alternatively, in step 807, generating means 1 are by the face word
Network face literal pool is uploaded to, is used for other users.
Those skilled in the art will be understood that the mode of above-mentioned storage face word is only for example, other are existing or from now on may be used
The mode for the storage face word that can occur such as is applicable to the present invention, should also be included within the scope of the present invention, and herein
It is incorporated herein by reference.
Here, step 807 so that generating means 1 realize the face word of user's generation is stored, unloading or upload, side
Just the use of the user or other network users, further lifts the usage experience of user.
It should be noted that the present invention can be carried out in the assembly of software and/or software and hardware, for example, this hair
Bright each device can using application-specific integrated circuit (ASIC) or any other realized similar to hardware device.In one embodiment
In, software program of the invention can be performed by processor to realize steps described above or function.Similarly, it is of the invention
Software program (including relevant data structure) can be stored in computer readable recording medium storing program for performing, for example, RAM memory,
Magnetically or optically driver or floppy disc and similar devices.In addition, some steps or function of the present invention can employ hardware to realize, example
Such as, as coordinating with processor so as to performing the circuit of each step or function.
It is obvious to a person skilled in the art that the invention is not restricted to the details of above-mentioned one exemplary embodiment, Er Qie
In the case of without departing substantially from spirit or essential attributes of the invention, the present invention can be realized in other specific forms.Therefore, no matter
From the point of view of which point, the present embodiments are to be considered as illustrative and not restrictive, and the scope of the present invention is by appended power
Profit requires rather than described above limits, it is intended that all in the implication and scope of the equivalency of claim by falling
Change is included in the present invention.Any reference numeral in claim should not be considered as to the involved claim of limitation.This
Outside, it is clear that one word of " comprising " is not excluded for other units or step, and odd number is not excluded for plural number.That is stated in system claims is multiple
Unit or device can also be realized by a unit or device by software or hardware.The first, the second grade word is used for table
Show title, and be not offered as any specific order.
Claims (14)
1. a kind of method for generating face word, wherein, this method comprises the following steps:
A obtains hand-drawing graphics input by user;
B identifies the graphic feature of the hand-drawing graphics;
C is determined and the corresponding one or more filling elements of the graphic feature;
Determine with the element density of the filling element filling hand-drawing graphics;
D fills the Freehandhand-drawing according to the graphic feature, and with reference to the element density with one or more elements of filling
Figure, generates corresponding face word and carries out screen.
2. according to the method described in claim 1, wherein, the step c includes:
According to the graphic feature, matching inquiry is carried out in element database, to obtain and the corresponding one kind of the graphic feature
Or a variety of filling elements.
3. according to the method described in claim 2, wherein, the element stored in the element database includes following at least any one:
Symbol;
Expression;
Self-defined picture.
4. according to the method described in claim 3, wherein, this method further includes:
The self-defined picture that uploader is uploaded is obtained, establishes or updates the element database.
5. according to the method described in claim 1, wherein, the step c includes:
Obtain the selected one or more filling elements corresponding with the hand-drawing graphics of the user;
Wherein, the step d includes:
According to the graphic feature, the hand-drawing graphics are filled with the selected one or more filling elements of the user, it is raw
Upper screen is carried out into corresponding face word.
6. method according to any one of claim 1 to 5, wherein, this method further includes:
The hand-drawing graphics are pre-processed, to obtain pretreated hand-drawing graphics;
Wherein, the step b includes:
Identify the graphic feature of the pretreated hand-drawing graphics.
7. method according to any one of claim 1 to 5, wherein, this method further includes:
The face word is stored, use is directly selected when being inputted next time for the user.
8. a kind of generating means for being used to generate face word, wherein, which includes:
Acquisition device, for obtaining hand-drawing graphics input by user;
Identification device, for identifying the graphic feature of the hand-drawing graphics;
First determining device, for determining and the corresponding one or more filling elements of the graphic feature;
Second determining device, for determining with the element density of the filling element filling hand-drawing graphics;
Upper screen device, for according to the graphic feature, and with reference to the element density, one or more elements are filled with described
The hand-drawing graphics are filled, corresponding face word is generated and carries out screen.
9. generating means according to claim 8, wherein, first determining device is used for:
According to the graphic feature, matching inquiry is carried out in element database, to obtain and the corresponding one kind of the graphic feature
Or a variety of filling elements.
10. generating means according to claim 9, wherein, the element stored in the element database is at least appointed including following
One:
Symbol;
Expression;
Self-defined picture.
11. generating means according to claim 10, wherein, which further includes:
Updating device, the self-defined picture uploaded for obtaining uploader, establishes or updates the element database.
12. generating means according to claim 8, wherein, first determining device is used for:
Obtain the selected one or more filling elements corresponding with the hand-drawing graphics of the user;
Wherein, the upper screen device is used for:
According to the graphic feature, the hand-drawing graphics are filled with the selected one or more filling elements of the user, it is raw
Upper screen is carried out into corresponding face word.
13. the generating means according to any one of claim 8 to 12, wherein, which further includes:
Pretreatment unit, for drawing shape pre-process, to obtain pretreated hand-drawing graphics;
Wherein, the identification device is used for:
Identify the graphic feature of the pretreated hand-drawing graphics.
14. the generating means according to any one of claim 8 to 12, wherein, which further includes:
Storage device, for storing the face word, use is directly selected when being inputted next time for the user.
Priority Applications (2)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201510548856.7A CN105183316B (en) | 2015-08-31 | 2015-08-31 | A kind of method and apparatus for generating face word |
PCT/CN2015/096392 WO2017035971A1 (en) | 2015-08-31 | 2015-12-04 | Method and device for generating emoticon |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201510548856.7A CN105183316B (en) | 2015-08-31 | 2015-08-31 | A kind of method and apparatus for generating face word |
Publications (2)
Publication Number | Publication Date |
---|---|
CN105183316A CN105183316A (en) | 2015-12-23 |
CN105183316B true CN105183316B (en) | 2018-05-08 |
Family
ID=54905427
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201510548856.7A Active CN105183316B (en) | 2015-08-31 | 2015-08-31 | A kind of method and apparatus for generating face word |
Country Status (2)
Country | Link |
---|---|
CN (1) | CN105183316B (en) |
WO (1) | WO2017035971A1 (en) |
Families Citing this family (10)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN106919943A (en) * | 2015-12-25 | 2017-07-04 | 北京搜狗科技发展有限公司 | A kind of data processing method and device |
CN105677059A (en) * | 2015-12-31 | 2016-06-15 | 广东小天才科技有限公司 | Method and system for inputting expression pictures |
CN106598453A (en) * | 2016-11-03 | 2017-04-26 | 北京百度网讯科技有限公司 | Method and device for outputting shaped character information |
CN108846881B (en) * | 2018-05-29 | 2023-05-12 | 珠海格力电器股份有限公司 | Expression image generation method and device |
CN110764627B (en) * | 2018-07-25 | 2023-11-10 | 北京搜狗科技发展有限公司 | Input method and device and electronic equipment |
CN109165072A (en) * | 2018-08-28 | 2019-01-08 | 珠海格力电器股份有限公司 | A kind of expression packet generation method and device |
CN111722726B (en) * | 2019-03-20 | 2024-06-07 | 北京搜狗科技发展有限公司 | Method and device for determining pigment and text |
CN111399729A (en) * | 2020-03-10 | 2020-07-10 | 北京字节跳动网络技术有限公司 | Image drawing method and device, readable medium and electronic equipment |
CN112269522A (en) * | 2020-10-27 | 2021-01-26 | 维沃移动通信(杭州)有限公司 | Image processing method, image processing device, electronic equipment and readable storage medium |
CN113761204B (en) * | 2021-09-06 | 2023-07-28 | 南京大学 | Emoji text emotion analysis method and system based on deep learning |
Citations (3)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN101789130A (en) * | 2009-12-24 | 2010-07-28 | 中兴通讯股份有限公司 | Method and device for terminal equipment to use self-drawn picture |
CN104050691A (en) * | 2013-03-11 | 2014-09-17 | 百度国际科技(深圳)有限公司 | Device and method for generating corresponding character picture based on image in terminal |
CN104463779A (en) * | 2014-12-18 | 2015-03-25 | 北京奇虎科技有限公司 | Portrait caricature generating method and device |
Family Cites Families (2)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
JP6049531B2 (en) * | 2013-04-24 | 2016-12-21 | 京セラドキュメントソリューションズ株式会社 | Image processing apparatus and image forming apparatus |
US20150100537A1 (en) * | 2013-10-03 | 2015-04-09 | Microsoft Corporation | Emoji for Text Predictions |
-
2015
- 2015-08-31 CN CN201510548856.7A patent/CN105183316B/en active Active
- 2015-12-04 WO PCT/CN2015/096392 patent/WO2017035971A1/en active Application Filing
Patent Citations (3)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN101789130A (en) * | 2009-12-24 | 2010-07-28 | 中兴通讯股份有限公司 | Method and device for terminal equipment to use self-drawn picture |
CN104050691A (en) * | 2013-03-11 | 2014-09-17 | 百度国际科技(深圳)有限公司 | Device and method for generating corresponding character picture based on image in terminal |
CN104463779A (en) * | 2014-12-18 | 2015-03-25 | 北京奇虎科技有限公司 | Portrait caricature generating method and device |
Also Published As
Publication number | Publication date |
---|---|
WO2017035971A1 (en) | 2017-03-09 |
CN105183316A (en) | 2015-12-23 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN105183316B (en) | A kind of method and apparatus for generating face word | |
KR102619261B1 (en) | Paint Your Place Application for Optimizing Digital Painting of An Image | |
CN110956654B (en) | Image processing method, device, equipment and storage medium | |
US20190287283A1 (en) | User-guided image completion with image completion neural networks | |
US9142044B2 (en) | Apparatus, systems and methods for layout of scene graphs using node bounding areas | |
CN109379625A (en) | Method for processing video frequency, device, electronic equipment and computer-readable medium | |
CN107219941B (en) | Soft pen real-time track generation method, storage medium and processing equipment | |
CN110533594B (en) | Model training method, image reconstruction method, storage medium and related device | |
CN105447125A (en) | Electronic equipment and makeup assisting method | |
US20140325418A1 (en) | Automatically manipulating visualized data based on interactivity | |
CN108012091A (en) | Image processing method, device, equipment and its storage medium | |
CN105261055B (en) | A kind of game role costume changing method, device and terminal | |
CN102915232B (en) | The exchange method of a kind of 3D control and communication terminal | |
TW201525851A (en) | Touch-based reorganization of page element | |
JP7318290B2 (en) | Methods, programs and computer devices for generating glyphs and creating visual representations of data based on the generated glyphs | |
US10783713B2 (en) | Transmutation of virtual entity sketch using extracted features and relationships of real and virtual objects in mixed reality scene | |
CN109033549A (en) | Design method, designing system and the electronic equipment of interior decoration scheme | |
US10186074B1 (en) | Systems and method for performing a three pass rendering of images | |
CN107340964A (en) | The animation effect implementation method and device of a kind of view | |
CN111080655A (en) | Image segmentation and model training method, device, medium and electronic equipment | |
EP3104333A1 (en) | Method and system for generating a user-customized computer-generated animation | |
US9177531B2 (en) | Image processing device and non-transitory computer-readable storage medium storing image processing program | |
US9898842B2 (en) | Method and system for generating data-efficient 2D plots | |
KR20160050295A (en) | Method for Simulating Digital Watercolor Image and Electronic Device Using the same | |
CN109065001B (en) | Image down-sampling method and device, terminal equipment and medium |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
C06 | Publication | ||
PB01 | Publication | ||
C10 | Entry into substantive examination | ||
SE01 | Entry into force of request for substantive examination | ||
GR01 | Patent grant | ||
GR01 | Patent grant |