CN110276723A - A kind of head portrait pendant generation method, device and relevant device - Google Patents
A kind of head portrait pendant generation method, device and relevant device Download PDFInfo
- Publication number
- CN110276723A CN110276723A CN201810205809.6A CN201810205809A CN110276723A CN 110276723 A CN110276723 A CN 110276723A CN 201810205809 A CN201810205809 A CN 201810205809A CN 110276723 A CN110276723 A CN 110276723A
- Authority
- CN
- China
- Prior art keywords
- textures
- pendant
- head portrait
- editing area
- user
- Prior art date
- Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
- Granted
Links
- 238000000034 method Methods 0.000 title claims abstract description 95
- 230000004044 response Effects 0.000 claims abstract description 49
- 238000004422 calculation algorithm Methods 0.000 claims description 51
- 230000001960 triggered effect Effects 0.000 claims description 33
- 238000003860 storage Methods 0.000 claims description 12
- 230000006978 adaptation Effects 0.000 claims description 7
- 238000004590 computer program Methods 0.000 claims description 3
- 230000000694 effects Effects 0.000 abstract description 25
- 230000033001 locomotion Effects 0.000 abstract description 21
- 230000008859 change Effects 0.000 abstract description 7
- 238000010586 diagram Methods 0.000 description 35
- 230000008569 process Effects 0.000 description 14
- 230000006870 function Effects 0.000 description 13
- 230000006854 communication Effects 0.000 description 11
- 238000005034 decoration Methods 0.000 description 10
- 238000004364 calculation method Methods 0.000 description 9
- 238000007796 conventional method Methods 0.000 description 8
- 238000012545 processing Methods 0.000 description 8
- 238000004891 communication Methods 0.000 description 7
- 230000006399 behavior Effects 0.000 description 4
- 230000003068 static effect Effects 0.000 description 4
- 238000010168 coupling process Methods 0.000 description 3
- 238000005859 coupling reaction Methods 0.000 description 3
- 238000005516 engineering process Methods 0.000 description 3
- 230000003321 amplification Effects 0.000 description 2
- 238000012790 confirmation Methods 0.000 description 2
- 230000008878 coupling Effects 0.000 description 2
- 238000001514 detection method Methods 0.000 description 2
- 238000012905 input function Methods 0.000 description 2
- 239000004973 liquid crystal related substance Substances 0.000 description 2
- 230000007774 longterm Effects 0.000 description 2
- 238000010295 mobile communication Methods 0.000 description 2
- 238000003199 nucleic acid amplification method Methods 0.000 description 2
- 230000003287 optical effect Effects 0.000 description 2
- 238000000926 separation method Methods 0.000 description 2
- 241000894007 species Species 0.000 description 2
- 241000208340 Araliaceae Species 0.000 description 1
- 235000005035 Panax pseudoginseng ssp. pseudoginseng Nutrition 0.000 description 1
- 235000003140 Panax quinquefolius Nutrition 0.000 description 1
- 238000004458 analytical method Methods 0.000 description 1
- 230000003796 beauty Effects 0.000 description 1
- 230000008901 benefit Effects 0.000 description 1
- 230000005540 biological transmission Effects 0.000 description 1
- 238000006243 chemical reaction Methods 0.000 description 1
- 238000005314 correlation function Methods 0.000 description 1
- 238000005520 cutting process Methods 0.000 description 1
- 230000001419 dependent effect Effects 0.000 description 1
- 238000011161 development Methods 0.000 description 1
- 235000008434 ginseng Nutrition 0.000 description 1
- 230000005484 gravity Effects 0.000 description 1
- 230000002452 interceptive effect Effects 0.000 description 1
- 230000000670 limiting effect Effects 0.000 description 1
- 238000004519 manufacturing process Methods 0.000 description 1
- 239000000203 mixture Substances 0.000 description 1
- 238000012544 monitoring process Methods 0.000 description 1
- 230000036961 partial effect Effects 0.000 description 1
- 238000005192 partition Methods 0.000 description 1
- 230000002829 reductive effect Effects 0.000 description 1
- 239000007787 solid Substances 0.000 description 1
- 238000010897 surface acoustic wave method Methods 0.000 description 1
- 230000000007 visual effect Effects 0.000 description 1
Classifications
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06T—IMAGE DATA PROCESSING OR GENERATION, IN GENERAL
- G06T5/00—Image enhancement or restoration
- G06T5/90—Dynamic range modification of images or parts thereof
- G06T5/94—Dynamic range modification of images or parts thereof based on local image properties, e.g. for local contrast enhancement
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06T—IMAGE DATA PROCESSING OR GENERATION, IN GENERAL
- G06T11/00—2D [Two Dimensional] image generation
- G06T11/80—Creating or modifying a manually drawn or painted image using a manual input device, e.g. mouse, light pen, direction keys on keyboard
Landscapes
- Physics & Mathematics (AREA)
- General Physics & Mathematics (AREA)
- Engineering & Computer Science (AREA)
- Theoretical Computer Science (AREA)
- Processing Or Creating Images (AREA)
Abstract
The embodiment of the present application discloses a kind of head portrait pendant generation method, device and relevant device, wherein, this method comprises: obtaining head portrait and determining the pendant editing area of the head portrait, in response to the textures edit operation of user, it records textures editor data and determines the position data of textures, and head portrait pendant is generated according to textures editor data and the position data of the textures and shows the head portrait pendant in the head portrait;Since the pendant editing area is arc area, and textures can move in the pendant editing area along movement in a curve track, and textures quantity and textures position editor space are larger, and therefore, user's Custom Space is bigger, can be improved user experience.The relative positional relationship between the textures and head portrait center can be characterized by the position data of the textures recorded, therefore, no matter show that this is configured with the head portrait of pendant on the screen of which kind of size, textures will not change relative to the position of head portrait, will not have an impact to the display effect of head portrait.
Description
Technical field
This application involves Internet technical field, in particular to a kind of head portrait pendant generation method, device, equipment and calculating
Machine readable storage medium storing program for executing.
Background technique
With the development of internet technology, more and more softwares, for example, Games Software, social software, instant messaging are soft
The softwares such as part come into the daily life of user, facilitate the work, study and amusement of user.User is using these softwares
When, the head portrait of oneself usually can be all set, represent oneself personal image in a network using head portrait.
Currently, some softwares, which can provide, utilizes head portrait pendant accessories in order to facilitate the demand of user configuration personalization head portrait
The function of head portrait when user uses these softwares, can choose some head portrait pendant adaptation head portraits, with individualized individual head portrait.
But these softwares be the head portrait pendant that provides of different users be it is identical, be based on this, different user very may be used
Identical head portrait pendant can be selected to decorate the head portrait of oneself, and since head portrait size is very small, caused with being decorated with identical head
As the head portrait of pendant seems closely similar, these head portraits are difficult to represent the uniqueness of user in a network, this is difficult to full
The individual demand of sufficient user.
Summary of the invention
The embodiment of the present application provides a kind of head portrait pendant generation method, device and relevant device, so that user utilizes
When this method generates head portrait pendant, better individualized experience can be obtained.
In view of this, the application first aspect provides a kind of head portrait pendant generation method, which comprises
Head portrait is obtained, determines the pendant editing area of the head portrait;The pendant editing area is arc area;
In response to the textures edit operation being triggered in the pendant editing area, textures editor data and determination are recorded
The position data of textures;The position data of the textures for characterize position of the textures in the pendant editing area with
Relativeness between the head portrait center;
Head portrait pendant is generated according to the textures editor data and the position data of the textures and is shown in the head portrait
Show the head portrait pendant.
The application second aspect provides a kind of head portrait pendant generating means, and described device includes:
Pendant editing area determining module determines the pendant editing area of the head portrait for obtaining head portrait;The pendant
Editing area is arc area;
Textures edit operation respond module, for being grasped in response to the textures editor being triggered in the pendant editing area
Make, record textures editor data and the position data for determining textures;The position data of the textures exists for characterizing the textures
The relativeness between position and the head portrait center in the pendant editing area;
Pendant generation module, for generating head portrait pendant according to the position data of the textures editor data and the textures
And the head portrait pendant is shown in the head portrait.
The application third aspect provides a kind of head portrait pendant generating device, and the equipment includes processor and memory:
Said program code is transferred to the processor for storing program code by the memory;
The head portrait that the processor is used to be executed according to the instruction in said program code as described in above-mentioned first aspect is hung
The step of part generation method.
The application fourth aspect provides a kind of computer readable storage medium, and the computer readable storage medium is for depositing
Program code is stored up, said program code is for executing head portrait pendant generation method described in above-mentioned first aspect.
The 5th aspect of the application provides a kind of computer program product including instruction, when run on a computer,
So that the computer executes head portrait pendant generation method described in above-mentioned first aspect.
As can be seen from the above technical solutions, the embodiment of the present application has the advantage that
Head portrait pendant generation method provided by the embodiments of the present application provides the service of customized head portrait pendant for user, first
First, the head portrait that user specifies is obtained, dynamically determines that the pendant that arc area is the head portrait is compiled based on the head portrait that user specifies
Region is collected, then, user edits textures in pendant editing area according to actual needs, and user can be in the pendant editing area
Interior to move textures to suitable position along movement in a curve track, i.e., user implements textures edit operation, corresponding, in response to user
Textures edit operation, the position data of textures editor data and textures is recorded, and according to the textures editor data and patch of record
The position data of figure generates head portrait pendant and shows the head portrait pendant in the head portrait;Pass through this customized head portrait pendant
Mode, facilitate user according to oneself hobby the head portrait pendant to meet individual requirements is made based on textures, improve use
Family experience, furthermore, the relative position between the textures and head portrait center can be characterized by the position data of the textures recorded
Therefore no matter relationship shows that this is configured with the head portrait of head portrait pendant, position of the textures relative to head portrait on the screen of which kind of size
Setting will not change, and will not have an impact to the display effect of head portrait, improve the suitability of head portrait pendant.
Detailed description of the invention
Interface schematic diagram of the Fig. 1 for head portrait pendant generation method a kind of in the embodiment of the present application in the application;
Fig. 2 is the interface schematic diagram of another head portrait pendant generation method in the application in the embodiment of the present application;
Fig. 3 is the configuration diagram that head portrait pendant generates system in the embodiment of the present application;
Fig. 4 is a kind of flow diagram of head portrait pendant generation method in the embodiment of the present application;
Fig. 5 is a kind of schematic diagram of a scenario for calculating pendant editing area in the embodiment of the present application;
Fig. 6 is another schematic diagram of a scenario for calculating pendant editing area in the embodiment of the present application;
Fig. 7 is the schematic diagram of a scenario that another in the embodiment of the present application calculates pendant editing area;
Fig. 7 a is the schematic diagram of a scenario that another in the embodiment of the present application calculates pendant editing area;
Fig. 8 is the corresponding interface schematic diagram of textures edit operation a kind of in the embodiment of the present application;
Fig. 9 is the corresponding interface schematic diagram of another kind textures edit operation in the embodiment of the present application;
Figure 10 is the flow diagram of another head portrait pendant generation method in the embodiment of the present application;
Figure 11 is frame selection operation a kind of in the embodiment of the present application and the corresponding interface schematic diagram of textures selection operation;
Figure 12 is the interface schematic diagram of a kind of determining first position and mobile textures in the embodiment of the present application;
Figure 13 is the interface schematic diagram of head portrait pendant generation method in the application application scenarios;
Figure 14 is the structural schematic diagram of the first head portrait pendant generating means in the embodiment of the present application;
Figure 15 is the structural schematic diagram of second of head portrait pendant generating means in the embodiment of the present application;
Figure 16 is the structural schematic diagram of the third head portrait pendant generating means in the embodiment of the present application;
Figure 17 is the structural schematic diagram of the 4th kind of head portrait pendant generating means in the embodiment of the present application;
Figure 18 is the structural schematic diagram of the 5th kind of head portrait pendant generating means in the embodiment of the present application;
Figure 19 is the structural schematic diagram of the 6th kind of head portrait pendant generating means in the embodiment of the present application;
Figure 19 a is the structural schematic diagram of the 7th kind of head portrait pendant generating means in the embodiment of the present application;
Figure 20 is the structural schematic diagram of the 8th kind of head portrait pendant generating means in the embodiment of the present application;
Figure 21 is terminal device structural schematic diagram in the embodiment of the present application.
Specific embodiment
In order to make those skilled in the art more fully understand application scheme, below in conjunction in the embodiment of the present application
Attached drawing, the technical scheme in the embodiment of the application is clearly and completely described, it is clear that described embodiment is only this
Apply for a part of the embodiment, instead of all the embodiments.Based on the embodiment in the application, those of ordinary skill in the art exist
Every other embodiment obtained under the premise of creative work is not made, shall fall in the protection scope of this application.
The description and claims of this application and term " first ", " second ", " third ", " in above-mentioned attached drawing
The (if present)s such as four " are to be used to distinguish similar objects, without being used to describe a particular order or precedence order.It should manage
The data that solution uses in this way are interchangeable under appropriate circumstances, so that embodiments herein described herein for example can be to remove
Sequence other than those of illustrating or describe herein is implemented.In addition, term " includes " and " having " and theirs is any
Deformation, it is intended that cover it is non-exclusive include, for example, containing the process, method of a series of steps or units, system, production
Product or equipment those of are not necessarily limited to be clearly listed step or unit, but may include be not clearly listed or for this
A little process, methods, the other step or units of product or equipment inherently.
Nowadays, in order to meet the more more and more intense individual demand of user, many softwares are that user provides and utilizes head
As pendant decorates the function of personal head portrait, the individual character that user can realize head portrait by configuring head portrait pendant on personal head portrait
Change.Wherein, head portrait pendant is the element that can decorate personal head portrait, is also called pendant for short, may include textures and/or side
The decorative elements such as frame;Textures can be static images, or dynamic picture particularly for the picture of decoration head portrait;Patch
Figure is also referred to as paster, and for ease of description, the application is referred to as textures;Frame is specially the adornment frame around head portrait, frame
Graphic form can also be shown as, can be static images, is also possible to dynamic picture.
Inventor it has been investigated that, traditional head portrait pendant generation method is there are customized mode is limited, the head portrait of generation
The problems such as pendant suitability is bad is still unable to satisfy the individual demand of user.1 and 2 pair of two kinds of tradition with reference to the accompanying drawing
Method is introduced.
Referring to Fig. 1, interface schematic diagram of the Fig. 1 for head portrait pendant generation method a kind of in the embodiment of the present application in the application;
As shown in Figure 1, user is based on the customized head portrait pendant of image 101, image 101 is the head portrait of user, and user is defining head portrait extension
When part, based on textures come customized head portrait pendant, wherein image 102, image 103 and image 104 are the use selected for user
In the textures of decoration head portrait 101;Assuming that user selectes textures 103, then textures 103 can be set automatically head portrait display area
On predeterminated position 105;User can also further pull textures 103 to suitable position, due in the conventional method manually
In, when being provided with for any head portrait progress customized head portrait pendant operation, only supports textures linear motion, be based on this, paste
The motion track of Figure 103 is only straight line, shown in track 106 as shown in figure 1, track 107 and track 108, therefore, Yong Huruo
Want that textures 103 are moved to suitable position may need that moving operation is repeated to textures 103.Finally, when textures 103 arrive
Up to after suitable position, the head portrait of adaptation head portrait 101 is generated according to the physical location that the textures 103 and textures 103 are presently in
Pendant.
In the conventional method, since textures can only move along a straight line, user adjust textures setting position when,
Generally requiring to move repeatedly textures, textures could be arranged to suitable position, can reach the personalization of head portrait expected from user
Effect, user experience are poor.Also, since this method is equal to the moving range of textures and setting range, there is no limit,
User is when dragging textures movement, it is easy to when the textures are moved in the head portrait display area of user, in this case, patch
Figure meeting large area blocks user's head portrait, causes head portrait bandwagon effect poor.In addition, being directed to specific head portrait in the conventional method
The head portrait pendant being adapted to the head portrait is generated, based on the physical location of head portrait pendant, display has head on different devices
As pendant the head portrait when, can there are problems that screen size difference cause head portrait picture lack of proper care.
Referring to fig. 2, the interface schematic diagram for head portrait pendant generation method another in the embodiment of the present application in the application;Such as
Shown in Fig. 2, user is based on the customized head portrait pendant of image 201, and image 201 is the head portrait of user;User is defining head portrait pendant
When, based on textures come customized head portrait pendant, wherein image 202, image 203 and image 204 are to be used for for what user selected
Decorate the textures of head portrait 201;Due to being only supported at making by oneself for preset several fixed bit placement location textures in the conventional method
Right way of conduct formula is based on this, it is assumed that after user selects textures 203, textures 203 can only be set to consolidating for the preset separation of system offer
Positioning is set, such as the position 205,206,207 and 208 in Fig. 2, the other positions that cannot be set to outside above-mentioned fixed position.User
By textures 203 be set to it is fixed be used to be arranged on the position of textures after, according to actual bit locating for textures 203 and textures 203
It sets, generates the head portrait pendant of head portrait 201.
In the conventional method, the position for textures to be arranged is fixed and invariable, different to be with being merely able to per family
Textures are set on the position for the fixation that system provides, position is set and setting quantity is all very limited, user's Custom Space is very
It is small, cause the otherness of the head portrait pendant ultimately generated to be not obvious, be unable to satisfy the demand of user individual, user experience compared with
Difference.
Inventor the analysis found that, conventional method can't meet user to the individual demand of head portrait pendant, and
And since what is recorded in conventional methods where is absolute position of the textures in head portrait pendant picture, this is resulted in different sizes
Display screen under the head portrait pendant display effect it is different, the case where sometimes will appear textures dislocation, leads to image fault, then
Head portrait pendant is arranged only for specific head portrait in conventional method in person, and the versatility of head portrait pendant is not strong, and user experience is not so good.
Based on the studies above, higher, the stronger head portrait pendant generation method of applicability that this application provides a kind of interactivity,
The head portrait pendant generation method can be applied to terminal device, and terminal device refers to that the intelligence with user oriented interactive function is set
It is standby, for example, smart phone, computer, personal digital assistant (Personal Digital Assitant, PDA), tablet computer
Deng.
Terminal device utilizes this method, provides the service of customized head portrait pendant for user, and terminal device obtains head portrait,
Pendant editing area is provided for user according to the head portrait, which is arc area, wherein arc area is to support
The textures region that arcuately track is moved, that is, user when mobile textures, can only move in the arc area along arching trajectory
Textures;Specifically, the pendant editing area can be the annular around the annular region at the edge of head portrait, i.e., around head portrait periphery
Region;The pendant editing area may be the arc area at the head position edge in head portrait, which can be with
Around head portion edge, entire edge can also be surrounded.
Based on this, user can implement textures edit operation in the pendant editing area, for example, implementation addition textures,
Mobile textures, zoom textures etc. edit operation, terminal device respond the textures edit operation of user, and record textures are compiled
It collects data and determines the position data of textures, wherein textures editor's data refer to textures corresponding data after edit operation;
Terminal device can show that textures using the data;The position data of textures refers to position of the textures in pendant editing area
Head portrait finally is generated according to textures editor data and the position data of textures with the relative position between head portrait center
Pendant, and the head portrait pendant is shown in head portrait, as the head portrait accessories head portrait pendant.Based on this, user can exist immediately
The head portrait pendant, use when can also save the head portrait pendant for replacing head portrait pendant later are used on head portrait.
In head portrait pendant generation method provided by the present application, identified pendant editing area is arc area, the extension
Part editing area can be determining according to the actual size and shape of head portrait, can also be according to the actual size of head position in head portrait
It is determined with shape, user can move in this pendant editing area along movement in a curve track when carrying out textures edit operation
Textures are moved to suitable position.Based on this, the Custom Space of user is larger, and what different user was provided identical head portrait pendant can
Energy property is very small, can satisfy user to the individual demand of pendant;Also, since the setting position and movement range of textures is equal
It is limited in the pendant editing area, therefore, when carrying out textures edit operation, can be effectively prevented from because being moved to textures
The case where in head portrait region and large area blocks head portrait generation.
Further, since what the position data of the textures recorded in the head portrait pendant generation method characterized is textures and head
Therefore no matter relative positional relationship between inconocenter position shows the head portrait, the patch on head portrait on the screen of which kind of size
Relative positional relationship between figure and head portrait will not change, and will not influence head portrait because showing the difference of device model
Display effect.Moreover, the head portrait pendant can also adapt to well in other head portraits, versatility is preferable, without user's weight
Multiple setting.
In conclusion head portrait pendant generation method provided by the present application can provide preferable usage experience for user, and
And no matter shown at which kind of and show the head portrait in equipment, it can guarantee preferable head portrait display effect.
It should be understood that head portrait pendant generation method provided by the present application is applied in head portrait pendant generation system, referring to Fig. 3,
Fig. 3 is the schematic diagram of a scenario of head portrait pendant generation method provided by the present application.It in this scenario include terminal device 301 and service
Device 302.Server 302 or autonomous device, can also use cluster server;Server 302 can be multiple simultaneously
Terminal device 301 provides data and supports.
User's operation terminal device 301 is in communication with each other by terminal device 301 and server 302 to generate head portrait 303
Head portrait pendant;Specifically, user determines on terminal device 301 is based on the customized pendant of head portrait 303, terminal device 301 is obtained
After head portrait 303, the pendant editing area 304 for being suitable for the head portrait 303 can be calculated, and be according to the shape type of head portrait 303
User shows the pendant editing area 304;Certainly, after terminal device 301 obtains head portrait 303, can also identify in head portrait 303 is
No includes head position, that is, head zone with head feature, then can calculate and be applicable according to the head position in head portrait 303
In the pendant editing area 304 around the head position edge, and display for a user the pendant editing area 304.
Meanwhile terminal device 301 is interacted with server 302, sends the customized request of head portrait pendant to server 302, with
The textures option selected for user is obtained from server 302, and then displays for a user these textures options, such as textures 305, patch
Figure 30 6 and textures 307.User can choose the textures for decorating head portrait 303 on terminal device 301, and in turn, user hangs
Implement the textures edit operations such as addition textures, mobile textures in part editing area 304.As shown in figure 3, user selects textures 306
It can be in pendant editing area 304 along any motion track during carrying out textures edit operation as the textures of decoration head portrait
The textures edit operation each time that mobile textures 306 are implemented to suitable position, terminal device 301 in response to user, record patch
The textures editor data of Figure 30 6 and the position data of textures 306, wherein the position data of textures can characterize textures 306 and hang
Relativeness between 303 center of position in part editing area 304 and head portrait, finally, terminal device 301 is according to the patch
The textures editor data of Figure 30 6 and the position data of textures 306 generate head portrait pendant, and show that the head portrait is hung in head portrait 303
The customized head portrait pendant of user can also be sent in server 302 and store by part.
It should be noted that scene shown in above-mentioned Fig. 3 is only a kind of example, and in practical applications, head provided by the present application
As pendant generation method can also be realized independently on the terminal device.
Head portrait pendant generation method provided by the present application is introduced below by embodiment.
Referring to fig. 4, Fig. 4 is a kind of flow diagram of head portrait pendant generation method provided by the embodiments of the present application.In order to
Convenient for description, following embodiments are described using terminal device as executing subject.Specifically as shown in figure 4, the head portrait pendant is raw
At method the following steps are included:
Step 401: obtaining head portrait, determine the pendant editing area of the head portrait;The pendant editing area is arcuate segments
Domain.
In the present embodiment, head portrait refers to that user is used as user identifier on website or social platform or instant communication software
Picture, also by title head portrait picture;Specifically, the head portrait is the head portrait for being used to participate in pendant generating process that user specifies, it can
To be the currently used head portrait of user, it is also possible to the head portrait that user arbitrarily specifies;Then user's using terminal equipment is first specified
The head portrait that pendant generates is participated in, terminal device obtains the head portrait, and then determines the pendant editing area of the head portrait.
In the present embodiment, instant messaging application can be installed, then terminal device is based on the Instant Messenger on terminal device
Letter application provides the service of customized pendant for user, specifically, terminal device can pass through after running instant communication software
The mode of plug-in unit is called to provide the service of customized pendant for user;Alternatively, browser can be equipped on terminal device, then eventually
End equipment provides the service of customized pendant based on browser for user;Specifically, user runs browser on the terminal device,
By browser Website login or social platform or the corresponding network address of instant messaging webpage version, terminal device is based on website or social activity
Platform or the corresponding webpage of instant communication software, provide the service of customized pendant for user.
Below only for instant messaging application to be installed on terminal device, the specific implementation of the present embodiment is explained
Explanation.
User starts instant messaging application, such as wechat, QQ application, then it is to use that terminal device, which is based on the instant messaging application,
Family provides head portrait pendant defined interface, for example, increasing in the functionality controls of the instant messaging application has head portrait pendant to make by oneself
Adopted control is based on this, and user clicks the head portrait pendant self-defined control, and terminal device displays for a user the customized boundary of head portrait pendant
Face.User is on the head portrait pendant defined interface, it is possible to specify institute's head portrait to be used, the head portrait when current customized pendant
It can be user's used head portrait in the instant messaging application, be also possible to the head portrait temporarily specified.The head portrait can be
Personage's picture, animal picture, scenery picture etc., certain head portrait are also possible to the blank picture not comprising any content, should
Picture can be static images, be also possible to dynamic picture.
Since geomery of the different application to head portrait has different requirements, during specified head portrait, terminal
Equipment can also provide head portrait customized service by head portrait pendant defined interface for user, i.e., in the pendant defined interface
Upper offer head portrait editing area, user in the head portrait editing area editing picture to generate head portrait.Such as user can select
One picture makes the picture after cutting meet the requirements, ultimately generates head portrait in the mobile picture that cuts of the head portrait editing area, will
The head portrait is as the head portrait for participating in this pendant Self-definition process.
Terminal device obtains the head portrait for participating in this pendant Self-definition process that user specifies, and then determines the extension of the head portrait
Part editing area;The pendant editing area refers to the picture region that can edit pendant being adapted to based on the head portrait, the pendant
Editing area is the arc area for being surrounded and being formed based on two camber lines, for example, annular region, arc-shaped region etc..Specifically,
The pendant editing area can for around head portrait fringe region arc area, due to for head portrait progress pendant it is customized
In the process, textures can be set in any position on the fringe region around head portrait, therefore, determine and hang specific to head portrait
It is general to determine that the annular region around the entire edge of head portrait is the pendant editing area of the head portrait when part editing area, in order to
By in the pendant editing area along movement in a curve in a manner of editing picture;In addition, the pendant editing area may be to surround to be somebody's turn to do
The arc area at head position edge in head portrait.
After terminal device determines the pendant editing area of the head portrait, it can show that the pendant is compiled in a manner of highlighted ground
Region is collected, the pendant editing area can also be highlighted in a manner of dotted line frame, highlights mode by this to prompt to use
It is edited in this area at family.
The specific implementation process of the pendant editing area, which is illustrated, to be determined to terminal device below.
If pendant editing area to be determined is the annular region around the edge of head portrait, terminal device can first really
Determine the shape type of head portrait;The shape of head portrait refers to the physical form that head portrait picture is specifically presented, for example, head portrait be it is round,
Ellipse, round rectangle, triangle or square etc..After determining shape type, terminal device is according to the shape of head portrait
Shape type determines pendant editing area.
In specific implementation, terminal device can be searched and the shape of the head portrait from preset region computational algorithm library
The computational algorithm of type matching;Computational algorithm is stored in region computational algorithm library, the computational algorithm is used for for finger
The head portrait for determining shape type calculates the pendant editing area of adaptation;Call the computational algorithm found that the head portrait is calculated
Pendant editing area.It is counted that is, terminal device can be previously stored with the computational algorithm that different types of head portrait is adapted in region
It calculates in algorithms library, every kind of computational algorithm is used to calculate the extension for adapting to the shape type head portrait for the head portrait of designated shape type
Part editing area;A kind of computational algorithm can be adapted to one or more kinds of shape types.
For example, for round or elliptical head portrait, corresponding to computational algorithm during to be specially with the circumference of head portrait be
The heart includes the circle ring area of the circumference according to default annulus thickness threshold calculations, using the circle ring area as the circle head portrait pair
The pendant editing area answered.
For another example for square or round rectangle head portrait, corresponding to computational algorithm be specially according to head portrait
Inscribed circle circumference and circumscribed circle circumference calculate annulus, using the region of the annulus as the corresponding pendant of square head portrait
Editing area.
For another example be directed to the head portrait of triangle, corresponding to computational algorithm be specially circle according to the inscribed circle of head portrait
The circumference of week and circumscribed circle calculates annulus, using the region of the annulus as the corresponding pendant editing area of the square head portrait.
For another example for square or triangle or round rectangle region head portrait, corresponding to calculating calculate
Method specifically centered on the periphery of head portrait, according to default ring thickness threshold calculations include the periphery of the head portrait square loop or
The region of three square rings or round rectangle, using the region being calculated as the corresponding pendant editing area of the circle head portrait.
Then in specific implementation, terminal device calls the computational algorithm of adaptation according to the shape of current head portrait, runs the meter
The pendant editing area being adapted to the head portrait can be calculated for the head portrait by calculating algorithm.
In order to understand above-mentioned pendant editing area vividerly, it is illustrated below by specific example.
The scene signal for adapting to the pendant editing area of the head portrait is determined when referring to Fig. 5, Fig. 5 be head portrait type being circle
Figure.Wherein, Figure 50 1 is the round head portrait for needing to configure pendant, terminal device called from preset region computational algorithm library with
The corresponding computational algorithm of round head portrait, it is assumed that computational algorithm corresponding with round head portrait is specifically, and is circle with the center of circle of the head portrait
The heart calculates the not overlapping region of the concentric circles, this is not overlapped on the basis of the exradius of preset concentric circles and inner circle radius
Region is annulus, using the circle ring area as the pendant editing area of the head portrait.Wherein, exradius and default inner circle are preset
Radius can be the radius based on the head portrait and set, for example, default exradius is 4/3rds times of the head portrait radius,
Inner circle radius is 2/3rds times of the head portrait radius.As shown in figure 5, the circle 502 of calculating is inner circle on the basis of head portrait 501,
Circle 503 is outer circle, and circle 502 and circle 503 are the concentric circles on the basis of 501 center of circle of head portrait, is not overlapped between circle 502 and circle 503
Annular region 504 be head portrait 501 pendant editing area.
Certainly, when head portrait type is round, which can also be adapted to using the calculating of other computational algorithms
Pendant editing area, above-mentioned computational algorithm is only a kind of example calculations algorithm provided by the embodiments of the present application, herein not to adaptation
Any restriction is done in the calculation method of the pendant editing area of round head portrait.
Determine that the scene for the pendant editing area for adapting to the head portrait is shown when referring to Fig. 6, Fig. 6 be head portrait type being triangle
It is intended to.Figure 60 1 is the triangle head portrait for needing to configure pendant, and terminal device calls and three from preset region computational algorithm library
Computational algorithm corresponding to angular head portrait, it is assumed that be specifically with the matched computational algorithm of triangle head portrait, with the outer of triangle
Circle is connect as outer circle, using inscribed circle of a triangle as inner circle, the outer circle and inner circle are formed by annular region and can be used as this
The pendant editing area of triangle head portrait.As shown in fig. 6, circle 602 is the inscribed circle of triangle head portrait 601, circle 603 is triangle
The circumscribed circle of head portrait 601, circle 602 and circle 603 are concentric circles, and the annular region 604 between circle 602 and circle 603 is head portrait 601
Pendant editing area.
Certainly, when head portrait type is triangle, triangle head portrait can also be adapted to using the calculating of other computational algorithms
Pendant editing area, above-mentioned computational algorithm is only a kind of example calculations algorithm provided by the embodiments of the present application, herein not to suitable
The computational algorithm of pendant editing area assigned in triangle head portrait does any restriction.
Referring to Fig. 7, Fig. 7 is to determine that the scene for the pendant editing area for adapting to the head portrait is shown when head portrait type is square
It is intended to.Figure 70 1 is the square head portrait for needing to configure pendant, terminal device called from preset region computational algorithm library with just
Computational algorithm corresponding to rectangular head portrait, it is assumed that with square head portrait institute matched computational algorithm be specifically to do the pros respectively
The inscribed circle and circumscribed circle of forming head picture, the annular region between the inscribed circle and circumscribed circle can be used as the extension of the square head portrait
Part editing area.As shown in fig. 7, circle 702 is square the inscribed circle of head portrait 701, circle 703 is square the external of head portrait 701
Circle, circle 702 and circle 703 are concentric circles, and the annular region 704 between circle 702 and circle 703 is the pendant editing area of head portrait 701
Domain.
Certainly, when head portrait type is square, square head portrait can also be adapted to using the calculating of other calculation methods
Pendant editing area, above-mentioned calculation method is only a kind of example calculations method provided by the embodiments of the present application, herein not to suitable
The calculation method of pendant editing area assigned in square head portrait does any restriction.
In addition, the head portrait for participating in above-mentioned pendant Self-definition process in the present embodiment can also be other arbitrary shapes class
Type, the shape type of incorrect picture does any restriction herein.Also, it is directed to the head portrait of arbitrary shape type, it is only necessary to calculate
It is pre-configured with the computational algorithm of the matched pendant editing area suitable for the shape type head portrait in algorithms library, herein will not
It is enumerated provided by computational algorithm library for calculating the computational algorithm of pendant editing area.
If pendant editing area to be determined is the arc area at the head position edge in head portrait, terminal device
It identifies the head position in the head portrait, determines that the head portrait pendant editing area, the pendant editing area are according to the head position
The arc area at head position edge in the head portrait.
When specific implementation, if personage is shown in main body in head portrait, terminal device can be according to the people for including in head portrait
Species type takes corresponding algorithm to identify the head position of personage in the head portrait, for example, if the personage for including in head portrait is true
Personage, then terminal device can use corresponding face recognition algorithms, identify head feature in the head portrait, and then determine the head
Head position as in;In another example terminal device, which can also use, to be corresponded to if the personage for including in head portrait is animated character
The face recognition algorithms of animated character, identify the head feature of task in the head portrait, and then determine the head in the head portrait
Position.
It should be understood that terminal device can also be accordingly based upon dynamic in head portrait if animal is shown in main body in head portrait
Species type identifies the head position of animal in the head portrait using corresponding algorithm.
It is of course also possible to use other methods determine the head position in head portrait, herein not to head position in identification head portrait
The method set does any restriction.
After orienting the head position in head portrait, determine that pendant editing area is the entire profile comprising head position edge
Or the arc area of partial contour, the size of the pendant editing area are the head edge periphery wheel for being included according to it
The entirely ratio of profile and head position region area and the determination of wide length and head edge periphery.For example, head position
Setting region area is 24mm2, and assume the entire profile of length and head periphery for the circumference that pendant editing area is included
Ratio be 1/2, preset area scale factor be 1/4, then the area of pendant editing area be 1/2,1/4 and 24mm2This three
The product of person, i.e. 3mm2;That is, more specifically, the area of the pendant editing area be its circumference for being included length and
The ratio of the entire profile in head periphery, the product of preset area scale factor and head position region area this three.
It is, of course, also possible to pendant editing area is determined according to the head position in head portrait using other modes, it is not right herein
Determine that the mode of the pendant editing area does any restriction.
In order to understand above-mentioned pendant editing area vividerly, it is illustrated with reference to the accompanying drawing by specific example.
Referring to Fig. 7 a, Fig. 7 a is the schematic diagram of a scenario for determining the pendant editing area for adapting to head position in the head portrait.
Figure 70 1a is the head portrait for needing to configure pendant, and terminal device first identifies the position in the head portrait with head feature as head position
It sets, then determines that pendant editing area need to surround the profile of the head position top half, further according to the head position institute area of coverage
The area in domain determines the area of the pendant editing area, specifically, the size of the pendant editing area is wrapped according to it
Ratio and the head position region area of the entire profile of the length of the circumference contained and head periphery and determination, final root
It need to surround the profile of the head position top half according to the area and pendant editing area, determine pendant editing area.Such as figure
Dotted line arc area shown in 702a in 7a.
After terminal device obtains head portrait and determines the pendant editing area of the head portrait, pendant editor is displayed for a user
Region, user, which is based on the pendant editing area, can carry out pendant editor.
In the present embodiment, terminal device is specially that user provides the customized mode of pendant based on textures, that is, is used
Family can make personalized pendant by way of in pendant editing area editor's textures.
Step 402: in response to the textures edit operation being triggered in the pendant editing area, recording textures editor number
According to the position data with determining textures;The position data of the textures is for characterizing the textures in the pendant editing area
Position and the head portrait center between relativeness.
Terminal device is determining and after showing pendant editing area, and user can carry out textures editor behaviour on the terminal device
Make, which may include textures moving operation, naturally it is also possible to including addition textures, amplification/diminution textures etc.
Operation;The textures moving operation each time that terminal device response user is implemented in the pendant editing area, correspondingly records
Textures editor data and the position data for determining textures, the position data of the textures can characterize textures in pendant editing area
Position and head portrait center between relativeness.
In addition, user can be in pendant editing area to patch if user thinks that the size of selected textures is improper
Figure carries out zooming in or out operation, so that the size of textures gets a desired effect.User can be in the pendant editing area
Amplification/diminution textures, terminal device can respond these operations, and the corresponding data of textures after record is amplified or is reduced are made
For textures editor's data, user implements the operation that zooms in or out to textures before can moving textures to target position, can be with
Implement the operation that zooms in or out to textures after mobile textures to target position, no matter when triggering the operation, terminal
Equipment can respond the corresponding textures editor data of the operation note.Certainly, if user thinks that the size of selected textures is closed
It is suitable, it does not need that textures are carried out in pendant editing area to zoom in or out operation, then terminal device can directly record selected
Textures selected itself are used as textures editor's data.
For example, terminal device can be operated in response to mobile determine of textures being triggered, the textures are mobile to determine that operation can
The operation of textures is clicked so as to be user be moved to textures behind target position, i.e. textures are moved to target position each time by user
When, a textures can be clicked, that is, shows that current location is target position, is based on this, it is mobile true that terminal device responds the textures
Fixed operation records textures editor data corresponding to current operation and determines the position data of the textures.
For another example terminal device can determine event in response to the textures movement being triggered, the textures are mobile to determine event
It can be user and trigger textures moving operation and rest on some position and reach the event triggered when preset time, this is default
Time can be several milliseconds;I.e. user, without clicking operation, can will deliberately stop several milliseconds when the mobile target position of textures,
The mobile determining event of textures is triggered at this time, is based on this, and terminal device, which then will record, currently to be compiled by the textures of mobile textures
It collects data and determines the position data of the textures.
It is explained below by position data of the example to textures.
The position data of the textures can be using head portrait center as zero point coordinate, calculate textures in pendant editing area
Relative coordinate position between interior physical location and the zero point coordinate.The relative coordinate position can be with the shape of coordinate vector
Formula is either expressed in the form of the relative angle and radius of X-axis in relative zero reference axis or Y-axis.
It is illustrated in the form of the position data of textures is coordinate vector below.For example, when head portrait is round,
The center of head portrait is circular the center point, and the position data of textures is that its position in pendant editing area is opposite
Position data in the head portrait center of circle establishes new coordinate system by zero point coordinate of the head portrait center of circle, redefine the textures and sit newly
Coordinate position in mark system.For example, it is assumed that physical location of the textures in pendant editing area is (0,5);And head portrait center is
The physical location in the center of circle is (5,5), then the position data that can calculate textures is (- 5,0).Wherein, textures are in pendant editor
Physical location in region can be understood as physical location of the textures center in pendant editing area.Certainly, when head portrait is it
When his shape type, the relativeness between textures and head portrait center correspondingly can be recorded using other recording modes,
Any restriction is not done to the recording mode of textures position data herein.
It is below to carry out table in the form of the relative angle and radius of Y-axis in relative zero reference axis by the position data of textures
It is illustrated for reaching.For example, still based on above-mentioned scene, then textures in the physical location of pendant editing area be (0,
5), and head portrait center, that is, center of circle physical location be (5,5), then can calculate and co-ordinate zero point position is made with head portrait center
Coordinate system is established, the physical location for calculating textures in pendant editing area is counted with respect to the distance 5 of the dead-center position as radius
The angle for calculating opposite Y-axis is 270 degree, then the position data that can recorde the textures is, using the center of head portrait as coordinate zero
Point is set up in vertical coordinate system, is 5 circles with radius, and opposite Y-axis angle is 270 degree.
As described above, user can be by way of editing textures in pendant editing area come customized head portrait extension
Part, wherein textures can be what user pasted from the duplication of other memory spaces, certainly, in order to provide the user with more friendly friendship
Mutual interface.In the present embodiment, terminal device can provide textures selection service on pendant defined interface for user, that is, exist
Textures selection interface is displayed for a user on the pendant defined interface.When specific implementation, terminal device is triggered in response to user
Head portrait pendant self-defining operation, the textures selected for user are shown in textures selection interface, when textures number is more,
Total Options can also be shown for user in the form of page turning.
On the basis of terminal device shows textures selection interface, user can select interested in textures selection interface
Textures, correspondingly, selected textures are loaded into pendant editing area in response to the textures selection operation of user by terminal device
Domain.
When specific implementation, user can click a certain textures in textures option, and terminal device is correspondingly by user's point
The textures hit are loaded into a certain default initial position in pendant editing area, which can be a random position
It sets, it can also be with preset one fixed position;In addition, terminal device can also support user will be selected by pulling mode
Textures are dragged in pendant editing area, i.e., user can also choose a certain textures in textures option, and the textures are dragged
It drags to loaded and displayed in pendant editing area.
After in selected textures and textures are loaded onto pendant editing area, user can further edit the patch
Figure, by editing the textures to make head portrait pendant.
It should be noted that user can move textures on entire head portrait but textures can only be placed in pendant editor
Region forbids except the removing pendant editing area of head portrait placing textures in other regions, this can prevent textures from hiding
Stopper can guarantee head portrait picture effect as nucleus.
In addition, user can only select a textures during customized pendant, also can choose multiple and different
Textures, the present embodiment are not construed as limiting the specific type and particular number of textures, only can be inside pendant editing area
Administration.
In order to make it easy to understand, being the ring around the edge of head portrait with pendant editing area below with reference to concrete application scene
For shape region, above-mentioned textures edit operation is introduced:
A kind of interface schematic diagram referring to Fig. 8, when Fig. 8 is progress textures edit operation.As shown in figure 8, user's trigger head
After picture pendant self-defining operation, terminal device can correspondingly show textures selection interface on head portrait pendant defined interface, use
Family can select the textures for decorating on head portrait 801 in textures options region on the surface.Assuming that user selectes textures
After 803 as the textures on decoration head portrait 801, textures 803 are loaded onto pendant editing area automatically and preset just by terminal device
On beginning position, such as the position 805 in Fig. 8;Certainly, user can also pull textures 803 to pendant manually from textures options region
Any position in editing area.
After textures 803 are shown in pendant editing area, user can be according to itself individual demand, in pendant editor
Textures moving operation is carried out to textures 803 in region, textures 803 are moved to suitable position, specifically, user can be controlled
Textures 803 processed are moved along track 806, make textures 803 around 801 clockwise movement of head portrait to suitable position;User can also be controlled
Textures 803 processed are moved along track 807, make textures 803 around 801 counterclockwise movement of head portrait to suitable position, so that head portrait is aobvious
Show that effect meets the individual demand of user, and records textures and be moved to textures editor corresponding when target position each time
Data, and determine the position data of textures.
In addition, in order to further enhance the personalised effects of user's head portrait, user can be used with customized textures pattern
Family can also be selected in addition to that can choose the textures for decorating head portrait in the textures option that system provides from this map office
Picture is as textures, alternatively, the camera of selection opening terminal apparatus shoots picture, using captured picture as textures.
In order to make it easy to understand, this kind of textures edit operation is introduced below with reference to concrete application scene:
Referring to the interface schematic diagram that Fig. 9, Fig. 9 are when another kind carries out textures edit operation.As shown in figure 9, user triggers
After head portrait pendant self-defining operation, terminal device can correspondingly show textures selection interface on pendant defined interface, at this
Interface is additionally provided with customized textures button, and user clicks the customized textures button into after customized textures mode, terminal
Equipment can remind user picture can be selected as textures from this map office, or can enable photographing mode.If user selects
It selects and selects picture as textures from this map office, then terminal device will jump to photograph album interface, and user can select in photograph album
Take any image as the textures of decoration head portrait;If user selects photographing mode, terminal device automatically turns on camera, user
It can use camera shooting photo, and then using captured photo as the textures of decoration head portrait.User passes through any of the above-described
After kind mode selectes textures, textures are shown in pendant editing area, and user can move along movement in a curve track in this area
The textures are moved to suitable position, and operation is zoomed in or out to textures, so that the display effect of head portrait meets user's
Individual demand records the textures editor data in pendant editing area at this time and determines the position data of textures.
It is of course also possible to use other modes carry out above-mentioned textures edit operation, above-mentioned textures in pendant editing area
Edit operation is illustrative mode of operation provided by the embodiments of the present application, is not done herein to the concrete form of textures edit operation
Any restriction.
Step 403: head portrait pendant being generated according to the textures editor data and the position data of textures and in the head portrait
The middle display head portrait pendant.
After user completes textures edit operation, there is the head portrait display effect of pendant to have reached use if user confirms to be currently configured
Head portrait display effect expected from family, then user can click the completing button on head portrait pendant defined interface, and head is completed in confirmation
As the self-defining operation of pendant.Terminal device clicks the operation of completing button in response to user, and confirmation uses current pendant editor
Textures in region generate head portrait pendant, i.e., according to the positional number of textures editor data and textures in current pendant editing area
According to generation head portrait pendant, and the head portrait pendant is shown in the head portrait.
In addition, stopping for a long time on interface if user generates in head portrait pendant, and textures edit operation is not gone on, eventually
The self-defining operation of head portrait pendant can be completed in end equipment with default user, in turn, according to patch current in pendant editing area
Figure editor's data and the position data of textures generate head portrait pendant, and the head portrait pendant is shown in the head portrait.
Certainly, terminal device can also confirm that the customized behaviour of head portrait pendant is completed in user according to other operation formats
Make, any restriction is not done to the concrete form that can characterize the self-defining operation that user completes head portrait pendant herein.
After terminal device generates head portrait pendant, the head portrait pendant of generation further can also be sent to server, it will
The head portrait pendant is saved into the customized pendant library of user, so that user is needing to decorate head portrait using head portrait pendant later
When, the head portrait pendant wherein saved can be directly transferred from the pendant library of server, without again by textures edit operation
Head portrait pendant is regenerated, the usage experience of user is further improved.
Head portrait pendant generation method provided by the embodiments of the present application obtains the head portrait that user specifies, is determined according to the head portrait
The arc pendant editing area of the head portrait is adapted to, which can be true according to the actual size and shape of head portrait
It is fixed, it can also be determined according to the actual size of head position in head portrait and shape, user can be in the pendant editing area
Being added textures edit operation, the textures such as textures, mobile textures can be set any position in the pendant editing area,
And in response to the textures edit operation of user, textures can move textures in the pendant editing area along movement in a curve track
It is dynamic.After the completion of textures edit operation, terminal device records textures editor's data, and it is determined to characterize the textures in pendant volume
The textures position data of the relativeness between the position and head portrait center in region is collected, and according to the textures editor of record
Data and the position data of textures generate head portrait pendant, and the head portrait pendant is shown in head portrait.By the textures that are recorded
Position data can characterize the relative positional relationship between the textures and head portrait center, therefore, no matter which kind of size screen
This is configured with the head portrait of pendant for upper display, and textures will not change relative to the position of head portrait, and then will not be to head portrait
Display effect has an impact.
For the individual demand of further satisfaction user, so that the display effect of head portrait can more embody of user
Property, head portrait pendant generation method provided by the embodiments of the present application can be combined with the pendant of frame Element generation decoration head portrait.Ginseng
See that Figure 10, Figure 10 are the flow diagram of another head portrait pendant generation method provided by the embodiments of the present application.As shown in Figure 10,
This method comprises:
Step 1001: obtaining head portrait, determine the pendant editing area of the head portrait.
The specific implementation process of step 1001 is similar with step 401 in above-described embodiment, is detailed in the correlation of above-mentioned steps 401
Content is herein no longer described in detail the realization process of step 1001.
Step 1002: in response to the head portrait pendant self-defining operation being triggered, showing pendant element selection interface;The extension
Textures element control and frame element control are carried in part element selection interface.
Step 1003: in response to the frame element control by the operation of touch-control, display bezel selection interface.
Step 1004: in response to the frame selection operation being triggered, selected frame being loaded into the pendant editor
In region, and record the position data of the frame.
Step 1005: in response to the textures element control by the operation of touch-control, showing textures selection interface.
Step 1006: in response to the textures selection operation being triggered, selected textures being loaded on the frame.
Above-mentioned steps 1002 to step 1006 concrete methods of realizing are introduced below:
After user triggers head portrait pendant self-defining operation, the head portrait pendant that terminal device is triggered in response to the user is customized
Operation shows pendant element selection interface, includes textures element control and frame element control in the pendant element selection interface.
User clicks frame element control, and terminal device can be in response to the frame element control by the operation of touch-control, to clothes
Business device sends the request for obtaining frame element, and the frame element that itself is stored correspondingly is returned to terminal device by server, eventually
These frame elements are shown that the frame in frame selection interface selects area by end equipment;User can select to select in area in frame
Frame is selected, specifically, user can select the frame in area to select the frame for decorating head portrait, terminal by clicking frame
Selected frame is loaded into pendant editing area and shows in response to the frame selection operation by equipment, and records the frame
Position data, the position data of frame can characterize the relationship between frame center and head portrait center, in frame
Heart position is the position where the center of circle that frame outer circle and frame inner circle are overlapped, the center of the frame and the centre bit of head portrait
Set coincidence.
Similar, user clicks textures element control, and terminal device can be in response to textures element control by the behaviour of touch-control
Make, the request for obtaining textures element is sent to server, the textures element that itself is stored correspondingly is returned to terminal by server
These textures are shown that the textures in textures selection interface select area by equipment, terminal device;User can select area in textures
Interior selection textures, specifically, user can select the textures in area to select the textures for decorating head portrait by clicking textures,
Textures can also be selected a certain textures in area to be drawn in pendant editing area by user, which is chosen as user
Textures.Selected textures are loaded into pendant editing area, in response to above-mentioned textures selection operation if pendant by terminal device
Frame has had been displayed in editing area, then correspondingly the textures has been loaded on the frame and is shown.
It should be noted that the execution sequence of above-mentioned frame selection operation and textures selection operation is not fixed, implement
When, frame selection operation can be first carried out, then execute textures selection operation, textures selection operation can also be first carried out, then execute
Frame selection operation.But no matter by which kind of sequence executes frame selection operation and textures selection operation, the embodiment of the present application mention
The method of confession can guarantee that textures are shown on frame, i.e., frame will not block textures.
In order to make it easy to understand, being the ring around the edge of head portrait with pendant editing area below with reference to concrete application scene
For shape region, aforesaid operations process is introduced:
Referring to Figure 11, Figure 11 is above-mentioned frame selection operation and the corresponding interface schematic diagram of textures selection operation.Such as Figure 11
Shown, after user triggers head portrait pendant self-defining operation, terminal device can correspondingly show pendant element selection interface, the pendant
It include textures element control and frame element control in element selection interface.It should be understood that terminal device shows the choosing of pendant element
When selecting interface, it can default and first show frame element for user, when the user clicks again correspondingly be user when textures element control
It shows textures element, certainly, when terminal device shows pendant element selection interface, can also default and first show textures member for user
Element correspondingly shows frame element again when frame element control when the user clicks for user, does not select boundary to pendant element herein
The element type that display is defaulted on face limits, and as shown in figure 11, when terminal device shows pendant element selection interface, default is first
Frame element is shown for user.
User can click frame element control, terminal device correspondingly display bezel selection interface, frame selection interface
In include that frame selects area, which selects area for the frames such as frame 1102,1103 and 1104 that display system provides, user
Selection frame 1102 is clicked, correspondingly frame 1102 is loaded into pendant editing area 1101 by terminal device.
User continues to click textures element control, and terminal device correspondingly shows textures selection interface, textures selection interface
In include that textures select area, which selects area for the textures such as textures 1105,1106 and 1107 that display system provides, user
Selection textures 1106 are clicked, correspondingly textures 1106 are shown on frame 1102.
Step 1007: in response to the textures edit operation being triggered in the pendant editing area, recording textures editor
Data and the position data for determining the textures.
Step 1008: according to the frame, the position data of the frame, the textures editor data and the textures
Position data generates head portrait pendant and shows the head portrait pendant in the head portrait.
The specific implementation process of above-mentioned steps 1007 and step 1008 is referred to step 402 and 403 in above-described embodiment,
It is detailed in the related content of above-mentioned steps 402 and 403, details are not described herein again.
Head portrait pendant generation method provided by the embodiments of the present application, on the basis of generating head portrait pendant using textures, into
One step provides the frame element that can be used for decorating head portrait for user, provides the user with more personalized element selections, uses
Family, which can combine textures and frame, generates head portrait pendant, enables head portrait that better display effect is presented, and then make
Head portrait more can satisfy the individual demand of user.
In order to further realize the Indivitual display effect of head portrait, user can be according to the demand of itself in pendant editing area
The textures of any number are set in domain, and when multiple textures are arranged in pendant editing area, user is easy to textures are mobile
The position of textures is had been provided in pendant editing area, the textures moved will block the patch being already provided at herein in this way
, there is the case where textures Overlapping display, and then cause the display effect of head portrait poor in figure.
There is a situation where textures to block in pendant editing area in order to prevent, executes the step 402 in above-described embodiment
Or when step 1007, can also further judge at the moving target position of textures whether existing textures, if it is not, then according to patch
The moving target position of figure and head portrait center, which calculate, generates textures position data, and records textures editor data and determination
The position data of the textures;If so, determining to close on textures moving target position in pendant editing area and not
The first position of textures is set;The position data for generating the textures is calculated according to the first position and head portrait center;Remember again
It records textures editor data and determines the position data of the textures.
When specific implementation, user can be by the screen of touch control terminal equipment, to control selected textures in pendant editor
It is moved in region, i.e., user can draw motion track on the screen of terminal device, and correspondingly, textures are in pendant editing area
It is interior to be moved along the motion track direction.When user stops the screen of touch control terminal equipment, terminal device can determine the textures
It arrived moving target position.
At this point, terminal device judge at the moving target position whether it is existing before the textures of setting here, if not
In the presence of textures can be arranged at the moving target position for terminal device, according to moving target position and head portrait center
Between relativeness, calculate generate the textures position data.
Conversely, being hung if terminal device judges the existing textures of setting here before at the moving target position
Selection is closed on the moving target position in part editing area, and before the position of not set textures as first position,
It is considered that first position is blank position, which is set at the first position.It, can when terminal device determines first position
With according to the relativeness between the center of already present textures at the centers of textures and moving target position currently moved, really
Determine the location of first position.
Specifically, if at center of the center of the textures currently moved relative to textures already present at moving target position
In clockwise, then terminal device can be in pendant editing area relative to the clockwise direction of the moving target position
On, the positions of textures that gradually select to close on using pre-determined distance as step-length and not set is as first position;Similar, if working as
The center of the textures of preceding movement is in counterclockwise relative to the center of textures already present at moving target position, then terminal
Equipment can in pendant editing area relative in the counter clockwise direction of the moving target position, using pre-determined distance as step-length by
Step selects the position of the not set textures closed on as first position;If center and the moving target position of the textures currently moved
Locate already present textures center be overlapped, then terminal device both can relative to the moving target position clockwise
The determining first position closed on moving target position, and can be true in the counter clockwise direction relative to the moving target position
The first position that fixed and moving target position closes on.
In order to make it easy to understand, being below to be said for the annular region at the edge of head portrait by pendant editing area
Bright, the textures center currently moved is in clockwise feelings relative to the center of textures already present at moving target position
For condition, the method that textures to above-mentioned determining first position and are correspondingly moved in conjunction with concrete application scene is introduced:
It is the interface schematic diagram for determining first position and mobile textures referring to Figure 12, Figure 12.As shown in figure 12, user will paste
Figure 120 1 is moved to moving target position, but textures 1202 had previously been had been provided at the moving target position, due to textures
1201 center is in clockwise relative to the center of textures 1202, terminal device correspondingly in the clockwise direction, with
Pre-determined distance is step-length, gradually it is determining with moving target position 1202 closest to and 1203 conduct of position that is not provided with textures
First position, and then textures 1201 are moved to the first position 1203.
It is, of course, also possible to determine first position using other methods, the determination method of first position is not done herein any
It limits.
In above-mentioned head portrait pendant generation method, judge other textures whether are provided at the moving target position of textures, when
When having been provided with other textures at the moving target position, terminal device is determined closing on the target location and is not provided with
The textures are arranged as first position in the position of other textures at the first position.In this way, efficiently avoiding compiling in pendant
It collects in region and the case where textures Overlapping display occurs, further ensure the aesthetics of head portrait pendant generated.
Head portrait pendant generation method provided by the present application in order to facilitate understanding, below with reference to specific application scenarios, to hang
Part editing area is for the annular region at the edge of head portrait, to head portrait pendant generation method provided by the embodiments of the present application
It is introduced:
It is the interface schematic diagram of the head portrait pendant generation method in the application application scenarios referring to Figure 13, Figure 13.User is logical
It crosses the triggering of click head portrait and carries out head portrait pendant self-defining operation, into the pendant element selection interface as shown in 1301 in Figure 13,
Textures element control and frame element control, also, the pendant element selection interface are provided in the pendant element selection interface
Upper default first shows frame element for user.For user after entering pendant element selection interface, it is selected that terminal device obtains user
Head portrait match the pendant editing area for adapting to the head portrait and automatically according to attributes such as the shape types of user's head portrait
1304, and correspondingly the pendant editing area 1304 is shown in the fringe region around head portrait.
It is selected in the frame element that user can directly show in the pendant element selection interface as shown in 1301 in Figure 13
The frame for decorating head portrait is selected, certainly, when defaulting in pendant element selection interface is first that user shows textures element, user
The frame as shown in 1302 in Figure 13 can correspondingly be entered by clicking the frame element control in pendant element selection interface
Selection interface, frame of the user in frame selection interface select the frame for selecting frame 1305 as decoration head portrait in area, phase
Ying Di, frame 1305 load on pendant editing area 1304, the terminal device records frame 1305 and the frame 1305
Position data.
Further, user can click the textures element control in pendant element selection interface, correspondingly enter as schemed
Textures selection interface shown in 1303 in 13, textures of the user in textures selection interface select to select in area textures 1306 as
The textures of head portrait are decorated, correspondingly, the load of textures 1306 is in pendant editing area 1304 on preset textures loading position.With
Family can be by touch control terminal equipment, and the mobile textures 1306 in pendant editing area 1304, as shown in figure 13, user passes through touching
Control terminal equipment makes textures 1306 along counterclockwise movement to suitable position, the textures editor of the terminal device records textures 1306
Data, and determine the position data of the textures 1306.
In order to make personal head portrait that can more show personal character, user can also select to continue selection decoration in area in textures
The textures of head portrait, as shown in figure 13, user have further selected textures 1307 in textures selection area, and by the textures 1307
The moving target position being moved in pendant editing area 1304, due to having been provided with textures 1306 at the moving target position,
In order to avoid textures 1307 block textures 1306, terminal device is according to the relative position at 1306 center of 1307 center of textures and textures
Relationship determines the position of a textures close on 1307 moving target position of textures and not set in pendant editing area 1304
It sets as first position, and the textures 1307 is arranged on the first position.
User confirms that current head portrait display effect has met personal individual demand, can click complete in current interface
At button, textures edit operation is completed to determine.Terminal device correspondingly records each patch in pendant element selection interface at this time
Textures editor's data of figure, and determine the position data of each textures, wherein the position data of each textures is that each textures are compiled in pendant
Collect the relative positional relationship between the position and head portrait center in region 1304.In turn, according to the above-mentioned frame selected,
The position data of frame, above-mentioned textures editor data and textures position data, generate the head portrait pendant of user.
For above-described head portrait pendant generation method, present invention also provides corresponding head portrait pendant generating means,
In order to the application and realization of these methods in practice.
It is a kind of knot of head portrait pendant generating means 1400 corresponding with method shown in figure 4 above referring to Figure 14, Figure 14
Composition, the device 1400 include:
Pendant editing area determining module 1401 determines the pendant editing area of head portrait for obtaining head portrait;The pendant
Editing area is arc area;
Textures edit operation respond module 1402, for being compiled in response to the textures being triggered in the pendant editing area
Collect operation, record textures editor data and the position data for determining the textures;The position data of the textures is for characterizing institute
State relativeness of the textures between the position and the head portrait center in the pendant editing area;
Pendant generation module 1403, for generating head portrait according to the position data of the textures editor data and the textures
Pendant simultaneously shows the head portrait pendant in the head portrait.
Head portrait pendant generating means provided by the embodiments of the present application obtain head portrait, adapt to the head according to head portrait determination
The arc pendant editing area of picture, the pendant editing area can be determining according to the actual size and shape of head portrait, can also root
It is determined according to the actual size and shape of head position in head portrait, user can be added patch in the pendant editing area
The textures edit operations such as figure, mobile textures, textures can be set any position in the pendant editing area, and in response to
The textures edit operation of user, textures can move textures in the pendant editing area along movement in a curve track.Textures editor
After the completion of operation, terminal device records textures editor's data, and it is determined to characterize the textures in pendant editing area
The textures position data of relativeness between position and head portrait center, and according to the textures editor data and textures of record
Position data generate head portrait pendant, since the position data of the textures recorded can characterize between the textures and head portrait center
Relative positional relationship, therefore, no matter shown on the screen of which kind of size this be configured with pendant head portrait, textures are relative to head
The position of picture will not change, and then will not have an impact to the display effect of head portrait.
It optionally, is provided by the embodiments of the present application another referring to Figure 15, Figure 15 on the basis of above-mentioned Figure 14 shown device
A kind of structure chart of head portrait pendant generating means 1500, the device is on the basis of Figure 14 shown device, further includes:
Textures selection interface display module 1501, for the head portrait pendant self-defining operation in response to being triggered, display patch
Figure selection interface;
Selected textures are loaded by textures loading module 1502 for the textures selection operation in response to being triggered
In the pendant editing area.
For the individual demand of further satisfaction user, so that the display effect of head portrait can more embody of user
Property, head portrait pendant generating means provided by the embodiments of the present application can be combined with the pendant of frame Element generation decoration head portrait.
Optionally, on the basis of above-mentioned Figure 14 shown device, it is and method phase shown in figure 10 above referring to Figure 16, Figure 16
The structure chart of corresponding a kind of head portrait pendant generating means 1600, on the basis of device device shown in Figure 14, further includes:
Pendant element selection interface display module 1601 is shown for the head portrait pendant self-defining operation in response to being triggered
Show pendant element selection interface;Textures element control and frame element control are carried in the pendant element selection interface;
Frame selection interface display module 1602, for, by the operation of touch-control, being shown in response to the frame element control
Frame selection interface;
Selected frame is loaded by frame loading module 1603 for the frame selection operation in response to being triggered
In the pendant editing area, and record the position data of the frame;
Textures selection interface display module 1604, for, by the operation of touch-control, being shown in response to the textures element control
Textures selection interface;
Selected textures are loaded by textures loading module 1605 for the textures selection operation in response to being triggered
On the frame;
The then pendant generation module 1403, specifically for position data, the patch according to the frame, the frame
Figure editor's data and the position data of the textures generate head portrait pendant and show the head portrait pendant in the head portrait.
Head portrait pendant generating means provided by the embodiments of the present application, on the basis of generating head portrait pendant using textures, into
One step provides the frame element that can be used for decorating head portrait for user, and textures and frame can be combined generation head by user
As pendant, enable head portrait that better display effect is presented, and then make head portrait more and can satisfy the individual demand of user.
Optionally, on the basis of above-mentioned Figure 14 shown device, referring to Figure 17, Figure 17 be it is provided by the embodiments of the present application again
A kind of structure chart of head portrait pendant generating means 1700, textures edit operation respond module 1402 includes: in the device
Textures moving operation responds submodule 1701, for the textures in response to being triggered in the pendant editing area
Moving operation is determined by the moving target position of mobile textures and the textures;
Position data generates submodule 1702, for the moving target position and the head portrait centre bit according to the textures
Set the position data for calculating and generating the textures;
Record sub module 1703, for recording the textures editor data and determining the position data of the textures.
There is a situation where textures to block in pendant editing area in order to prevent, optionally, in above-mentioned Figure 17 shown device
On the basis of, it is the structure chart of another head portrait pendant generating means 1800 provided by the embodiments of the present application referring to Figure 18, Figure 18,
The device is in the textures edit operation respond module 1402 shown in Figure 17 further include:
Judging submodule 1801, for judging the whether existing textures of the moving target position;If it is not, then according to
The moving target position of textures and the head portrait center calculate the position data for generating the textures;The textures are recorded to compile
It collects data and determines the position data of the textures.
Optionally, judging submodule 1801 is also used to:
Judge the whether existing textures of the moving target position;If so, being determined in the pendant editing area
The first position of textures closed on the moving target position and not set;According in the first position and the head portrait
Heart position calculates the position data for generating the textures;It records the textures editor data and determines the positional number of the textures
According to.
In head portrait pendant generating means provided by the embodiments of the present application, judge whether be arranged at the moving target position of textures
There are other textures, when having been provided with other textures at the moving target position, terminal device determination is faced with the target location
The textures are arranged as first position in position that is close and being not provided with other textures at the first position.In this way, effectively
It avoids and occurs the case where textures Overlapping display in pendant editing area, further ensure the beauty of head portrait pendant generated
The property seen.
Optionally, on the basis of above-mentioned Figure 14 shown device, referring to Figure 19, Figure 19 be it is provided by the embodiments of the present application again
A kind of structure chart of head portrait pendant generating means 1900, pendant editing area determining module 1401 includes: in the device
Shape type determines submodule 1901, for determining the shape type of the head portrait;
Pendant editing area determines submodule 1902, for determining the extension of the head portrait according to the shape type of the head portrait
Part editing area, the pendant editing area are the annular region around the edge of head portrait.
Optionally, pendant editing area determines that submodule 1902 is specifically used in the device:
The matched computational algorithm of shape type with the head portrait is searched from preset region computational algorithm library;The area
Computational algorithm is stored in the computational algorithm library of domain, the computational algorithm is used to calculate adaptation for the head portrait of designated shape type
Pendant editing area;
Call the computational algorithm found that the pendant editing area of the head portrait is calculated.
Optionally, on the basis of above-mentioned Figure 14 shown device, referring to Figure 19 a, Figure 19 a is provided by the embodiments of the present application
The structure chart of another head portrait pendant generating means 1900a, pendant editing area determining module 1401 includes: in the device
Head position identifies submodule 1901a, for identification the head position in the head portrait;
Pendant editing area determines submodule 1902a, for determining that the pendant of the head portrait is compiled according to the head position
Region is collected, the pendant editing area is the arc area at the head position edge in the head portrait.
Optionally, on the basis of above-mentioned Figure 14 shown device, referring to fig. 20, Figure 20 be it is provided by the embodiments of the present application again
A kind of structure chart of head portrait pendant generating means 2000, on the basis of device device shown in Figure 14, further includes:
Pendant preserving module 2001, for sending the head portrait pendant to server, by the head portrait pendant save to
In the customized head portrait library of user.
Using head portrait pendant generating means provided by the embodiments of the present application, the customized extension of new model can be provided for user
The service of part facilitates user to be liked based on textures according to oneself in pendant editor by way of this customized pendant
Mobile textures in region, to make pendant, Custom Space is larger, improves user experience, furthermore, by the textures recorded
Position data can characterize the relative positional relationship between the textures and head portrait center, therefore, no matter which kind of size screen
Show that this is configured with the head portrait of pendant on curtain, textures will not change relative to the position of head portrait, will not show to head portrait
Show that effect has an impact, improves the suitability of pendant.
The embodiment of the present application also provides a kind of head portrait pendant generating devices, as shown in figure 21, for ease of description, only show
Go out part relevant to the embodiment of the present application, it is disclosed by specific technical details, please refer to the embodiment of the present application method part.
The head portrait pendant generating device can be include mobile phone, tablet computer, personal digital assistant (full name in English: Personal
Digital Assistant, english abbreviation: PDA), point-of-sale terminal (full name in English: Point of Sales, english abbreviation:
POS), any terminal device such as vehicle-mounted computer, taking the terminal as an example:
Figure 21 shows the block diagram of the part-structure of mobile phone relevant to terminal provided by the embodiments of the present application.With reference to figure
21, mobile phone includes: radio frequency (full name in English: Radio Frequency, english abbreviation: RF) circuit 2110, memory 2120, defeated
Enter unit 2130, display unit 2140, sensor 2150, voicefrequency circuit 2160, Wireless Fidelity (full name in English: wireless
Fidelity, english abbreviation: WiFi) components such as module 2170, processor 2180 and power supply 2190.Those skilled in the art
It is appreciated that handset structure shown in Figure 21 does not constitute the restriction to mobile phone, it may include more more or fewer than illustrating
Component perhaps combines certain components or different component layouts.
It is specifically introduced below with reference to each component parts of the Figure 21 to mobile phone:
RF circuit 2110 can be used for receiving and sending messages or communication process in, signal sends and receivees, particularly, by base station
After downlink information receives, handled to processor 2180;In addition, the data for designing uplink are sent to base station.In general, RF circuit
2110 include but is not limited to antenna, at least one amplifier, transceiver, coupler, low-noise amplifier (full name in English: Low
Noise Amplifier, english abbreviation: LNA), duplexer etc..In addition, RF circuit 2110 can also by wireless communication with net
Network and other equipment communication.Any communication standard or agreement can be used in above-mentioned wireless communication, and including but not limited to the whole world is mobile
Communication system (full name in English: Global System of Mobile communication, english abbreviation: GSM), general point
Group wireless service (full name in English: General Packet Radio Service, GPRS), CDMA (full name in English: Code
Division Multiple Access, english abbreviation: CDMA), wideband code division multiple access (full name in English: Wideband Code
Division Multiple Access, english abbreviation: WCDMA), long term evolution (full name in English: Long Term
Evolution, english abbreviation: LTE), Email, short message service (full name in English: Short Messaging Service,
SMS) etc..
Memory 2120 can be used for storing software program and module, and processor 2180 is stored in memory by operation
2120 software program and module, thereby executing the various function application and data processing of mobile phone.Memory 2120 can be led
It to include storing program area and storage data area, wherein storing program area can be needed for storage program area, at least one function
Application program (such as sound-playing function, image player function etc.) etc.;Storage data area, which can be stored, uses institute according to mobile phone
Data (such as audio data, phone directory etc.) of creation etc..In addition, memory 2120 may include high random access storage
Device, can also include nonvolatile memory, and a for example, at least disk memory, flush memory device or other volatibility are solid
State memory device.
Input unit 2130 can be used for receiving the number or character information of input, and generate with the user setting of mobile phone with
And the related key signals input of function control.Specifically, input unit 2130 may include touch panel 2131 and other inputs
Equipment 2132.Touch panel 2131, also referred to as touch screen collect touch operation (such as the user of user on it or nearby
Use the behaviour of any suitable object or attachment such as finger, stylus on touch panel 2131 or near touch panel 2131
Make), and corresponding attachment device is driven according to preset formula.Optionally, touch panel 2131 may include touch detection
Two parts of device and touch controller.Wherein, the touch orientation of touch detecting apparatus detection user, and detect touch operation band
The signal come, transmits a signal to touch controller;Touch controller receives touch information from touch detecting apparatus, and by it
It is converted into contact coordinate, then gives processor 2180, and order that processor 2180 is sent can be received and executed.In addition,
Touch panel 2131 can be realized using multiple types such as resistance-type, condenser type, infrared ray and surface acoustic waves.In addition to touch surface
Plate 2131, input unit 2130 can also include other input equipments 2132.Specifically, other input equipments 2132 may include
But in being not limited to physical keyboard, function key (such as volume control button, switch key etc.), trace ball, mouse, operating stick etc.
It is one or more.
Display unit 2140 can be used for showing information input by user or be supplied to user information and mobile phone it is each
Kind menu.Display unit 2140 may include display panel 2141, optionally, can using liquid crystal display (full name in English:
Liquid Crystal Display, english abbreviation: LCD), Organic Light Emitting Diode (full name in English: Organic Light-
Emitting Diode, english abbreviation: OLED) etc. forms configure display panel 2141.Further, touch panel 2131 can
Covering display panel 2141 sends processor to after touch panel 2131 detects touch operation on it or nearby
2180, to determine the type of touch event, are followed by subsequent processing device 2180 and are provided on display panel 2141 according to the type of touch event
Corresponding visual output.Although touch panel 2131 and display panel 2141 are come as two independent components in Figure 21
Realize the input and input function of mobile phone, but in some embodiments it is possible to by touch panel 2131 and display panel 2141
It is integrated and that realizes mobile phone output and input function.
Mobile phone may also include at least one sensor 2150, such as optical sensor, motion sensor and other sensors.
Specifically, optical sensor may include ambient light sensor and proximity sensor, wherein ambient light sensor can be according to ambient light
Light and shade adjust the brightness of display panel 2141, proximity sensor can close display panel when mobile phone is moved in one's ear
2141 and/or backlight.As a kind of motion sensor, accelerometer sensor can detect in all directions (generally three axis) and add
The size of speed can detect that size and the direction of gravity when static, can be used to identify application (such as the horizontal/vertical screen of mobile phone posture
Switching, dependent game, magnetometer pose calibrating), Vibration identification correlation function (such as pedometer, tap) etc.;Also as mobile phone
The other sensors such as configurable gyroscope, barometer, hygrometer, thermometer, infrared sensor, details are not described herein.
Voicefrequency circuit 2160, loudspeaker 2161, microphone 2162 can provide the audio interface between user and mobile phone.Audio
Electric signal after the audio data received conversion can be transferred to loudspeaker 2161, be converted by loudspeaker 2161 by circuit 2160
For voice signal output;On the other hand, the voice signal of collection is converted to electric signal by microphone 2162, by voicefrequency circuit 2160
Audio data is converted to after reception, then by after the processing of audio data output processor 2180, through RF circuit 2110 to be sent to ratio
Such as another mobile phone, or audio data is exported to memory 2120 to be further processed.
WiFi belongs to short range wireless transmission technology, and mobile phone can help user's transceiver electronics postal by WiFi module 2170
Part, browsing webpage and access streaming video etc., it provides wireless broadband internet access for user.Although Figure 21 is shown
WiFi module 2170, but it is understood that, and it is not belonging to must be configured into for mobile phone, it can according to need do not changing completely
Become in the range of the essence of invention and omits.
Processor 2180 is the control centre of mobile phone, using the various pieces of various interfaces and connection whole mobile phone,
By running or execute the software program and/or module that are stored in memory 2120, and calls and be stored in memory 2120
Interior data execute the various functions and processing data of mobile phone, to carry out integral monitoring to mobile phone.Optionally, processor
2180 may include one or more processing units;Preferably, processor 2180 can integrate application processor and modulation /demodulation processing
Device, wherein the main processing operation system of application processor, user interface and application program etc., modem processor is mainly located
Reason wireless communication.It is understood that above-mentioned modem processor can not also be integrated into processor 2180.
Mobile phone further includes the power supply 2190 (such as battery) powered to all parts, it is preferred that power supply can pass through power supply
Management system and processor 2180 are logically contiguous, to realize management charging, electric discharge and power consumption pipe by power-supply management system
The functions such as reason.
Although being not shown, mobile phone can also include camera, bluetooth module etc., and details are not described herein.
In the embodiment of the present application, processor 2180 included by the terminal is also with the following functions:
Head portrait is obtained, determines the pendant editing area of the head portrait;The pendant editing area is arc area;
In response to the textures edit operation being triggered in the pendant editing area, textures editor data and determination are recorded
The position data of the textures;The position data of the textures is for characterizing position of the textures in the pendant editing area
Set the relativeness between the head portrait center;
Head portrait pendant is generated according to the textures editor data and the position data of the textures and is shown in the head portrait
Show the head portrait pendant.
The embodiment of the present application also provides a kind of computer readable storage medium, for storing program code, the program code
For executing any one embodiment in a kind of head portrait pendant generation method described in foregoing individual embodiments.
The embodiment of the present application also provides a kind of computer program product including instruction, when run on a computer,
So that computer executes any one embodiment in a kind of head portrait pendant generation method described in foregoing individual embodiments.
It is apparent to those skilled in the art that for convenience and simplicity of description, the system of foregoing description,
The specific work process of device and unit, can refer to corresponding processes in the foregoing method embodiment, and details are not described herein.
In several embodiments provided herein, it should be understood that disclosed system, device and method can be with
It realizes by another way.For example, the apparatus embodiments described above are merely exemplary, for example, the unit
It divides, only a kind of logical function partition, there may be another division manner in actual implementation, such as multiple units or components
It can be combined or can be integrated into another system, or some features can be ignored or not executed.Another point, it is shown or
The mutual coupling, direct-coupling or communication connection discussed can be through some interfaces, the indirect coupling of device or unit
It closes or communicates to connect, can be electrical property, mechanical or other forms.
The unit as illustrated by the separation member may or may not be physically separated, aobvious as unit
The component shown may or may not be physical unit, it can and it is in one place, or may be distributed over multiple
In network unit.It can select some or all of unit therein according to the actual needs to realize the mesh of this embodiment scheme
's.
It, can also be in addition, each functional unit in each embodiment of the application can integrate in one processing unit
It is that each unit physically exists alone, can also be integrated in one unit with two or more units.Above-mentioned integrated list
Member both can take the form of hardware realization, can also realize in the form of software functional units.
If the integrated unit is realized in the form of SFU software functional unit and sells or use as independent product
When, it can store in a computer readable storage medium.Based on this understanding, the technical solution of the application is substantially
The all or part of the part that contributes to existing technology or the technical solution can be in the form of software products in other words
It embodies, which is stored in a storage medium, including some instructions are used so that a computer
Equipment (can be personal computer, server or the network equipment etc.) executes the complete of each embodiment the method for the application
Portion or part steps.And storage medium above-mentioned includes: USB flash disk, mobile hard disk, read-only memory (full name in English: Read-Only
Memory, english abbreviation: ROM), random access memory (full name in English: Random Access Memory, english abbreviation:
RAM), the various media that can store program code such as magnetic or disk.
The above, above embodiments are only to illustrate the technical solution of the application, rather than its limitations;Although referring to before
Embodiment is stated the application is described in detail, those skilled in the art should understand that: it still can be to preceding
Technical solution documented by each embodiment is stated to modify or equivalent replacement of some of the technical features;And these
It modifies or replaces, the spirit and scope of each embodiment technical solution of the application that it does not separate the essence of the corresponding technical solution.
Claims (15)
1. a kind of head portrait pendant generation method characterized by comprising
Head portrait is obtained, determines the pendant editing area of the head portrait;The pendant editing area is arc area;
In response to the textures edit operation being triggered in the pendant editing area, records textures editor data and determine textures
Position data;The position data of the textures for characterize position of the textures in the pendant editing area with it is described
Relativeness between head portrait center;
Head portrait pendant is generated according to the textures editor data and the position data of the textures and institute is shown in the head portrait
State head portrait pendant.
2. method according to claim 1, which is characterized in that described in response to being triggered in the pendant editing area
Textures edit operation, record textures editor data and determine textures position data before, which comprises
In response to the head portrait pendant self-defining operation being triggered, textures selection interface is shown;
In response to the textures selection operation being triggered, selected textures are loaded into the pendant editing area.
3. method according to claim 1, which is characterized in that described in response to being triggered in the pendant editing area
Textures edit operation, before record textures editor data and the position data for determining the textures, which comprises
In response to the head portrait pendant self-defining operation being triggered, pendant element selection interface is shown;The pendant element selects boundary
Textures element control and frame element control are carried on face;
In response to the frame element control by the operation of touch-control, display bezel selection interface;
In response to the frame selection operation being triggered, selected frame is loaded into the pendant editing area, and is recorded
The position data of the frame;
In response to the textures element control by the operation of touch-control, textures selection interface is shown;
In response to the textures selection operation being triggered, selected textures are loaded on the frame;
It is then described to generate head portrait pendant according to the textures editor data and the position data of the textures, comprising:
It is generated according to the position data of the frame, the position data of the frame, the textures editor data and the textures
Head portrait pendant.
4. method according to any one of claims 1 to 3, which is characterized in that described in response in the pendant editing area
The textures edit operation being triggered in domain, record textures editor data and the position data for determining textures, comprising:
In response to the textures moving operation being triggered in the pendant editing area, determine by mobile textures and the textures
Moving target position;
The position data for generating the textures is calculated according to the moving target position of the textures and the head portrait center;
It records the textures editor data and determines the position data of the textures.
5. method according to claim 4, which is characterized in that described in response to being triggered in the pendant editing area
Textures moving operation, after determining moving target position by mobile textures and the textures, further includes:
Judge the whether existing textures of the moving target position;
If it is not, then calculating the position for generating the textures according to the moving target position of the textures and the head portrait center
Data;It records the textures editor data and determines the position data of the textures.
6. method according to claim 5, which is characterized in that the method also includes:
If so, textures that determine to close on the moving target position in the pendant editing area and not set
First position;
The position data for generating the textures is calculated according to the first position and the head portrait center;Record the textures
It edits data and determines the position data of the textures.
7. method according to claim 1, which is characterized in that the pendant editing area of the determination head portrait, comprising:
Determine the shape type of the head portrait;
The pendant editing area of the head portrait is determined according to the shape type of the head portrait;The pendant editing area is circular institute
State the annular region at the edge of head portrait.
8. method according to claim 7, which is characterized in that the shape type according to the head portrait determines the head portrait
Pendant editing area, comprising:
The matched computational algorithm of shape type with the head portrait is searched from preset region computational algorithm library;The region meter
It calculates and is stored with computational algorithm in algorithms library, the computational algorithm is used to calculate the pendant of adaptation for the head portrait of designated shape type
Editing area;
Call the computational algorithm found that the pendant editing area of the head portrait is calculated.
9. method according to claim 7, which is characterized in that the shape type of the head portrait includes any of the following:
Circle, ellipse, round rectangle, triangle or square.
10. method according to claim 1, which is characterized in that the pendant editing area of the determination head portrait, comprising:
Identify the head position in the head portrait;
Determine that the pendant editing area of the head portrait, the pendant editing area are around the head portrait according to the head position
In head position edge arc area.
11. method according to claim 1, which is characterized in that the method also includes:
The head portrait pendant is sent to server, the head portrait pendant is saved into the customized head portrait library of user.
12. a kind of head portrait pendant generating means characterized by comprising
Pendant editing area determining module determines the pendant editing area of the head portrait for obtaining head portrait;The pendant editor
Region is arc area;
Textures edit operation respond module, for the textures edit operation in response to being triggered in the pendant editing area,
It records textures editor data and determines the position data of textures;The position data of the textures is for characterizing the textures described
The relativeness between position and the head portrait center in pendant editing area;
Pendant generation module, for according to the position data of the textures editor data and the textures generate head portrait pendant and
The head portrait pendant is shown in the head portrait.
13. a kind of head portrait pendant generating device, which is characterized in that the equipment includes processor and memory:
Said program code is transferred to the processor for storing program code by the memory;
The processor is used to be hung according to the described in any item head portraits of instruction execution claim 1-11 in said program code
Part generation method.
14. a kind of computer readable storage medium, which is characterized in that the computer readable storage medium is for storing program generation
Code, said program code require the described in any item head portrait pendant generation methods of 1-11 for perform claim.
15. a kind of computer program product including instruction, which is characterized in that when run on a computer, so that described
Computer perform claim requires the described in any item head portrait pendant generation methods of 1-11.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201810205809.6A CN110276723B (en) | 2018-03-13 | 2018-03-13 | Head portrait hanging member generation method and device and related equipment |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201810205809.6A CN110276723B (en) | 2018-03-13 | 2018-03-13 | Head portrait hanging member generation method and device and related equipment |
Publications (2)
Publication Number | Publication Date |
---|---|
CN110276723A true CN110276723A (en) | 2019-09-24 |
CN110276723B CN110276723B (en) | 2023-05-02 |
Family
ID=67958645
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201810205809.6A Active CN110276723B (en) | 2018-03-13 | 2018-03-13 | Head portrait hanging member generation method and device and related equipment |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN110276723B (en) |
Cited By (5)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN112843723A (en) * | 2021-02-03 | 2021-05-28 | 北京字跳网络技术有限公司 | Interaction method, interaction device, electronic equipment and storage medium |
CN112925462A (en) * | 2021-04-01 | 2021-06-08 | 腾讯科技(深圳)有限公司 | Account head portrait updating method and related equipment |
CN113518233A (en) * | 2021-03-22 | 2021-10-19 | 广州方硅信息技术有限公司 | Cover display method and device, electronic equipment and storage medium |
CN113885862A (en) * | 2021-09-29 | 2022-01-04 | 武汉斗鱼鱼乐网络科技有限公司 | Head photo frame multiplexing method, storage medium and electronic equipment |
CN114245158A (en) * | 2021-12-03 | 2022-03-25 | 广州方硅信息技术有限公司 | Live broadcast room head portrait special effect display method and device, equipment, medium and product thereof |
Citations (8)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
JP2007133776A (en) * | 2005-11-11 | 2007-05-31 | Zeroeks Kk | Avatar image editing system and method thereof, and device and program used for these |
CN102376098A (en) * | 2010-08-24 | 2012-03-14 | 腾讯科技(深圳)有限公司 | Method and system for generating head portrait frames |
US20130314434A1 (en) * | 2012-05-25 | 2013-11-28 | PicMonkey Inc. | System and method for image collage editing |
US20140300612A1 (en) * | 2013-04-03 | 2014-10-09 | Tencent Technology (Shenzhen) Company Limited | Methods for avatar configuration and realization, client terminal, server, and system |
CN104753762A (en) * | 2013-12-31 | 2015-07-01 | 北京发现角科技有限公司 | Method and system for adding ornament to head portrait icon for instant messaging |
CN105430517A (en) * | 2015-11-30 | 2016-03-23 | 天脉聚源(北京)科技有限公司 | Method and device for dynamically displaying supporter head portraits |
CN106411688A (en) * | 2015-07-31 | 2017-02-15 | 广州华多网络科技有限公司 | Method of displaying pendant object in user head portrait area and apparatus thereof |
CN107105332A (en) * | 2016-02-19 | 2017-08-29 | 宇龙计算机通信科技(深圳)有限公司 | A kind of method of decorative picture, device and intelligent terminal |
-
2018
- 2018-03-13 CN CN201810205809.6A patent/CN110276723B/en active Active
Patent Citations (8)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
JP2007133776A (en) * | 2005-11-11 | 2007-05-31 | Zeroeks Kk | Avatar image editing system and method thereof, and device and program used for these |
CN102376098A (en) * | 2010-08-24 | 2012-03-14 | 腾讯科技(深圳)有限公司 | Method and system for generating head portrait frames |
US20130314434A1 (en) * | 2012-05-25 | 2013-11-28 | PicMonkey Inc. | System and method for image collage editing |
US20140300612A1 (en) * | 2013-04-03 | 2014-10-09 | Tencent Technology (Shenzhen) Company Limited | Methods for avatar configuration and realization, client terminal, server, and system |
CN104753762A (en) * | 2013-12-31 | 2015-07-01 | 北京发现角科技有限公司 | Method and system for adding ornament to head portrait icon for instant messaging |
CN106411688A (en) * | 2015-07-31 | 2017-02-15 | 广州华多网络科技有限公司 | Method of displaying pendant object in user head portrait area and apparatus thereof |
CN105430517A (en) * | 2015-11-30 | 2016-03-23 | 天脉聚源(北京)科技有限公司 | Method and device for dynamically displaying supporter head portraits |
CN107105332A (en) * | 2016-02-19 | 2017-08-29 | 宇龙计算机通信科技(深圳)有限公司 | A kind of method of decorative picture, device and intelligent terminal |
Cited By (7)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN112843723A (en) * | 2021-02-03 | 2021-05-28 | 北京字跳网络技术有限公司 | Interaction method, interaction device, electronic equipment and storage medium |
CN112843723B (en) * | 2021-02-03 | 2024-01-16 | 北京字跳网络技术有限公司 | Interaction method, interaction device, electronic equipment and storage medium |
CN113518233A (en) * | 2021-03-22 | 2021-10-19 | 广州方硅信息技术有限公司 | Cover display method and device, electronic equipment and storage medium |
CN112925462A (en) * | 2021-04-01 | 2021-06-08 | 腾讯科技(深圳)有限公司 | Account head portrait updating method and related equipment |
CN112925462B (en) * | 2021-04-01 | 2022-08-09 | 腾讯科技(深圳)有限公司 | Account head portrait updating method and related equipment |
CN113885862A (en) * | 2021-09-29 | 2022-01-04 | 武汉斗鱼鱼乐网络科技有限公司 | Head photo frame multiplexing method, storage medium and electronic equipment |
CN114245158A (en) * | 2021-12-03 | 2022-03-25 | 广州方硅信息技术有限公司 | Live broadcast room head portrait special effect display method and device, equipment, medium and product thereof |
Also Published As
Publication number | Publication date |
---|---|
CN110276723B (en) | 2023-05-02 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN108022279B (en) | Video special effect adding method and device and intelligent mobile terminal | |
CN110276723A (en) | A kind of head portrait pendant generation method, device and relevant device | |
CN107872623B (en) | A kind of image pickup method, mobile terminal and computer readable storage medium | |
CN110321044A (en) | Sharing files method and terminal | |
CN109213401A (en) | Double-sided screen application icon method for sorting, mobile terminal and readable storage medium storing program for executing | |
CN107682627A (en) | A kind of acquisition parameters method to set up, mobile terminal and computer-readable recording medium | |
CN110196646A (en) | A kind of data inputting method and mobile terminal | |
CN108769374A (en) | A kind of image management method and mobile terminal | |
CN106204423A (en) | A kind of picture-adjusting method based on augmented reality, device and terminal | |
CN106412291A (en) | Equipment control method and mobile terminal | |
CN107959795A (en) | A kind of information collecting method, equipment and computer-readable recording medium | |
CN107087137A (en) | The method and apparatus and terminal device of video are presented | |
CN109769067A (en) | Terminal screen method for handover control, terminal and computer readable storage medium | |
CN108986026A (en) | A kind of picture joining method, terminal and computer readable storage medium | |
CN109068055A (en) | A kind of patterning process, terminal and storage medium | |
CN109976640A (en) | A kind of content copying methods and terminal | |
CN108646961A (en) | A kind of management method of Pending tasks, device and storage medium | |
CN108156318A (en) | A kind of method for displaying image and mobile terminal | |
CN107247585A (en) | Desktop icons customizing method, mobile terminal and storage medium | |
CN109102555A (en) | A kind of image edit method and terminal | |
CN108984143A (en) | A kind of display control method and terminal device | |
CN109729267A (en) | Filter selection method, mobile terminal and computer readable storage medium | |
CN109618218A (en) | A kind of method for processing video frequency and mobile terminal | |
CN109885371A (en) | False-touch prevention exchange method, mobile terminal and computer readable storage medium | |
CN107045418A (en) | A kind of method, device, computer installation and the storage medium of information input |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
PB01 | Publication | ||
PB01 | Publication | ||
SE01 | Entry into force of request for substantive examination | ||
SE01 | Entry into force of request for substantive examination | ||
GR01 | Patent grant | ||
GR01 | Patent grant |