CN104158975A - A method for processing a contact avatar based on a mobile terminal and the mobile terminal - Google Patents

A method for processing a contact avatar based on a mobile terminal and the mobile terminal Download PDF

Info

Publication number
CN104158975A
CN104158975A CN201410423269.0A CN201410423269A CN104158975A CN 104158975 A CN104158975 A CN 104158975A CN 201410423269 A CN201410423269 A CN 201410423269A CN 104158975 A CN104158975 A CN 104158975A
Authority
CN
China
Prior art keywords
mobile terminal
contact
eap
message digest
head
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
Application number
CN201410423269.0A
Other languages
Chinese (zh)
Other versions
CN104158975B (en
Inventor
王凯迪
洪旭杰
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Huizhou TCL Mobile Communication Co Ltd
Original Assignee
Huizhou TCL Mobile Communication Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Huizhou TCL Mobile Communication Co Ltd filed Critical Huizhou TCL Mobile Communication Co Ltd
Priority to CN201410423269.0A priority Critical patent/CN104158975B/en
Publication of CN104158975A publication Critical patent/CN104158975A/en
Application granted granted Critical
Publication of CN104158975B publication Critical patent/CN104158975B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Abstract

The invention discloses a method for processing a contact avatar based on a mobile terminal and the mobile terminal. The method includes: according to each of elements that constitute a character avatar, setting a material ID corresponding uniquely to each of the elements by the mobile terminal; acquiring a contact number in the mobile terminal and converting digits of the contact number to a character string; calculating material IDs for the respective elements of the character avatar according to the converted character string; and finding the corresponding elements according to the material IDs for the respective elements and combining the corresponding elements into a picture of the contact avatar.

Description

A kind of contact head image processing method and mobile terminal based on mobile terminal
Technical field
The present invention relates to field of mobile terminals, in particular a kind of contact head image processing method and mobile terminal based on mobile terminal.
Background technology
In the associated person information of existing mobile terminal device, acquiescence head portrait is more single, and most of users can not go, for each contact person, head portrait and the tinkle of bells are set, make associated person information interface dull, and be unfavorable for that user carries out Fast Identification to different contact persons, in addition, if user is provided with contact person's head portrait, often these head portraits are all the pictures of photo or download, user manually sets up cumbersome, operation inconvenience, how realizing personalized contact human head picture is the problem that a needs solves.
Therefore, prior art has yet to be improved and developed.
Summary of the invention
In view of above-mentioned the deficiencies in the prior art, the object of the present invention is to provide a kind of contact head image processing method and mobile terminal based on mobile terminal, provide a kind of and can become according to different element combinations corresponding contact head image processing method, facilitate the Fast Identification of user to contact person, provide users with the convenient.
Technical scheme of the present invention is as follows:
A contact head image processing method based on mobile terminal, wherein, described method comprises:
A, mobile terminal, according to each element that forms personage's head portrait, are set unique material ID corresponding with each element;
B, obtain the contact number in mobile terminal, and be character string by contact number digital translation;
C, the character string getting according to conversion, by calculating the material ID of each element that forms personage's head portrait;
D, according to the material ID of each element, find corresponding element material, the element of gained is merged, generate the picture as contact head image.
Described a kind of contact head image processing method based on mobile terminal, wherein, the element number that forms personage's head portrait in described steps A is 5, represents respectively hair, shape of face, ear, eyes, face.
Described a kind of contact head image processing method based on mobile terminal, wherein, described step C also comprises:
C1, the character string getting according to contact number digital translation calculate the eap-message digest of 128bit;
C2, the eap-message digest of the 128bit calculating is divided into 5 element set corresponding with personage's head portrait element, and according to the eap-message digest of each element set, calculates respectively the material ID of corresponding element.
Described a kind of contact head image processing method based on mobile terminal, wherein, the algorithm that described step C1 calculates the eap-message digest of 128bit is MD5 algorithm.
Described a kind of contact head image processing method based on mobile terminal, wherein, in described step C2, the five part eap-message digest users of cutting apart set voluntarily.
Realize a mobile terminal for personalized contact human head picture, wherein, described mobile terminal comprises:
Setting module, according to each element that forms personage's head portrait, sets unique material ID corresponding with each element for mobile terminal;
Modular converter for obtaining the contact number of mobile terminal, and is character string by contact number digital translation;
Computing module, for the character string getting according to conversion, by calculating the material ID of each element that forms personage's head portrait;
Synthesis module, for finding corresponding element material according to the material ID of each element, merges the element of gained, generates the picture as contact head image.
Described a kind of mobile terminal of realizing personalized contact human head picture, wherein, the element number that forms personage's head portrait in setting module is 5, represents respectively hair, shape of face, ear, eyes, face.
Described a kind of mobile terminal of realizing personalized contact human head picture, wherein, described computing module comprises:
The first computing unit, calculates the eap-message digest of 128bit for the character string getting according to contact number digital translation;
The second computing unit, for the eap-message digest of the 128bit calculating being divided into 5 element set corresponding with personage's head portrait element, and calculates respectively the material ID of corresponding element according to the eap-message digest of each element set.
Described a kind of mobile terminal of realizing personalized contact human head picture, wherein, the algorithm that described the first computing unit calculates the eap-message digest of 128bit is MD5 algorithm.
Described a kind of mobile terminal of realizing personalized contact human head picture, wherein, the five part eap-message digest users of cutting apart set voluntarily.
Beneficial effect: the present invention, is set unique material ID of correspondence with it, then obtains the contact number in mobile terminal: be character string by the digital translation of contact person's telephone number according to each element that forms personage's head portrait by mobile terminal; The character string getting according to conversion calculates the material ID at each position of picture; The material at each position is merged into the picture that represents contact head image, utilize MD5 algorithm to calculate 128bit eap-message digest, and then calculate the material at each position of personage's head portrait, thereby obtain the personage head portrait corresponding with contact number, personal settings have been realized, and do not need manually to go personage's head portrait to draw materials, be convenient for users to operate; The present invention makes mobile terminal increase new function: can become according to different element combinations corresponding contact head image processing method, facilitate the Fast Identification of user to contact person, provide users with the convenient.
Accompanying drawing explanation
Fig. 1 is a kind of contact head image process method step flow chart based on mobile terminal of the present invention.
Fig. 2 is the flow chart of a kind of contact head image process method step S103 based on mobile terminal of the present invention.
Fig. 3 is the material chart of the contact head image of a kind of contact head image processing method based on mobile terminal of the present invention.
Fig. 4 is a kind of structured flowchart of realizing the mobile terminal of personalized contact human head picture of the present invention.
Fig. 5 is the structured flowchart of the computing module of a kind of mobile terminal of realizing personalized contact human head picture of the present invention.
Fig. 6 is the associated person information interface schematic diagram after preferred embodiment personalized contact human head picture of the present invention has been realized.
Embodiment
The invention provides a kind of contact head image processing method and mobile terminal based on mobile terminal, for making object of the present invention, technical scheme and effect clearer, clear and definite, below the present invention is described in more detail.Should be appreciated that specific embodiment described herein, only in order to explain the present invention, is not intended to limit the present invention.
Refer to Fig. 1, a kind of contact head image processing method based on mobile terminal, wherein, described method comprises:
S101, mobile terminal, according to each element that forms personage's head portrait, are set unique material ID corresponding with each element; Mobile terminal is when arranging character personality head portrait, personage's head portrait can be divided into five parts, the hair, shape of face, ear, eyes, the face that represent respectively personage, the element material number of each personage's head portrait is more than one, therefore when arranging, there will be not same contact head image, the material of each element is set to unique material ID, make it have unique identification mark, as hair has five kinds of materials, can mark material ID be: 1,2,3,4,5.When calculating the material ID of the hair of personage's head portrait and be 3, selecting ID is that 3 hair material is as the hair of last composite person head portrait.
S102, obtain the contact number in mobile terminal, and be character string by contact number digital translation, mobile terminal reads contact person's telephone number, and the object that is character string by contact number digital translation is in order to calculate eap-message digest by MD5 algorithm, thereby finally calculate the material ID of element, MD5 algorithm is for the character string of any one input, can be converted into an eap-message digest of unique equal length, for different inputs, eap-message digest is not identical, for two character strings that difference is little, the summary finally generating also has very large difference, can take into account well randomness and distinctiveness like this, due to the more than phone number of the telephone number in mobile phone, also may there is base number, the digital number of its number is different, and after being converted to character string, by MD5 algorithm, calculate eap-message digest, can access the eap-message digest of unique equal length, the demand that can better adapt to user.
S103, the character string getting according to conversion, by calculating the material ID of each element that forms personage's head portrait; The concrete character string how to get according to conversion calculates in the step below of method of material ID of each element that forms personage's head portrait detailed explanation.
S104, according to the material ID of each element, find corresponding element material, the element of gained is merged, generate the picture as contact head image.After calculating by above-mentioned steps, draw the material ID corresponding to each element of personage's head portrait, the material of five elements that obtain is spliced into head portrait, can be using the head portrait picture of splicing as contact head image, owing to there is no two groups of identical eap-message digests, therefore the five ergin material ID that draw can be not identical yet, finally also there will not be identical contact head image, realized the personal settings of contact head image.
The specific implementation of said method is, mobile terminal is converted into character string according to contact person's number by its numeral, different telephone numbers must obtain different character strings, by character string, can draw the material as each position of picture of head portrait again, the material at each position is merged and can form a complete picture that represents contact head image.
Described a kind of contact head image processing method based on mobile terminal, wherein, the element number that forms personage's head portrait in described steps A is 5, represents respectively hair, shape of face, ear, eyes, face.
Further, as shown in Figure 2, wherein, described a kind of contact head image processing method based on mobile terminal, wherein, described step S103 also comprises:
S301, the character string getting according to contact number digital translation calculate the eap-message digest of 128bit; By MD5 algorithm, calculate the eap-message digest of 128bit.MD5 algorithm can be by the character string of any one input, can be converted into an eap-message digest of unique equal length, because material quantity is limited, the material ID that jack per station calculates is likely identical, but possibility is smaller. therefore adopt MD5 algorithm for the uniqueness of personage's head portrait that can guarantee as far as possible finally to obtain, can suitably strengthen the quantity of material.
S302, the eap-message digest of the 128bit calculating is divided into 5 element set corresponding with personage's head portrait element, and according to the eap-message digest of each element set, calculates respectively the material ID of corresponding element; Method of the present invention is divided into 5 element set corresponding with personage's head portrait element by the eap-message digest of the 128bit calculating, for example with 28bit, calculate hair, and shape of face, ear, eyes, face is respectively used the data of 25bit, (just illustrates the algorithm of this 128bit here, in actual scene, can adjust voluntarily according to the quantity difference of material), binary data are converted into the data of integer type, divided by the quantity of material, calculate to obtain corresponding material ID.
Further, described a kind of contact head image processing method based on mobile terminal, wherein, the algorithm that described step S301 calculates the eap-message digest of 128bit is MD5 algorithm.MD5(Chinese Message Digest Algorithm 5 by name) be the widely used a kind of hash function of computer safety field, in order to the integrity protection giving information, MD5 algorithm is for the character string of any one input, can be converted into an eap-message digest of unique equal length, for different inputs, eap-message digest is not identical, for two character strings that difference is little, the summary finally generating also has very large difference, can take into account well randomness and distinctiveness like this, in addition, MD5 algorithm speed is than very fast, guaranteed efficiency well, because making the character string of any one input, MD5 algorithm can be converted into the eap-message digest of unique equal length, therefore the eap-message digest after cutting apart is not identical yet, when binary data are converted into the data of integer type, the data that draw every part can be not identical yet, while therefore in the end calculating material ID, there will not be five identical materials, after merging, also living two personage's head portraits have just been there will not be.
Preferred embodiment of the present invention as shown in Figure 3, wherein eap-message digest of the present invention cuts into five parts for calculating respectively the material of hair, shape of face, ear, eyes, face, personage's head portrait is divided into five parts, can increase number of combinations, can adapt to more user, when combination, the change of a material quantity, can make the total quantity after combination change very large, therefore can realize the change of head portrait number of combinations in the quantity that only changes the material at a position, thereby adapt to the user's use that has more contact persons.If hair, shape of face, ear, eyes, face respectively have five materials, therefore, altogether can produce 5*5*5*5*5 totally 3125 kinds of different combinations, and reach after some when the template type of material, its permutation and combination is very huge, can adapt to the number of mobile phone contact completely, while needing capacity increasing simultaneously, also only need UI designer to design a small amount of material template type and can realize a large amount of contact head images.
Said method of the present invention is by being divided into character personality head portrait five parts, and be character string by contact phone digital translation, adopt MD5 algorithm to calculate unique eap-message digest, then eap-message digest is divided into five parts, calculate respectively the material ID of different parts, be merged into the head portrait picture for personage, as contact head image, use, head portrait divides quinquepartite, has increased number of combinations, adapt to more contact person, facilitate the use of more users.
Further, according to described method, the present invention also provides a kind of mobile terminal of realizing personalized contact human head picture, and as shown in Figure 4, wherein, described mobile terminal comprises:
Setting module 100, according to each element that forms personage's head portrait, sets unique material ID corresponding with each element for mobile terminal;
Modular converter 200, obtains the contact number in mobile terminal, and is character string by contact number digital translation;
Computing module 300, the character string getting according to conversion, by calculating the material ID of each element that forms personage's head portrait;
Synthesis module 400.For finding corresponding element material according to the material ID of each element, the element of gained is merged, generate the picture as contact head image.Concrete methods of realizing about above-mentioned module gives an actual example and demonstrates in previous methods, therefore do not repeat at this.
Further, described a kind of mobile terminal of realizing personalized contact human head picture, wherein, the element number that forms personage's head portrait in setting module is 5, represents respectively hair, shape of face, ear, eyes, face.
Further, as shown in Figure 5, be the structured flowchart of computing module, described a kind of mobile terminal of realizing personalized contact human head picture, wherein, described computing module 300 comprises:
The first computing unit 301, calculates the eap-message digest of 128bit for the character string getting according to contact number digital translation;
The second computing unit 302, for the eap-message digest of the 128bit calculating being divided into 5 element set corresponding with personage's head portrait element, and calculates respectively the material ID of corresponding element according to the eap-message digest of each element set.Concrete methods of realizing about above-mentioned module gives an actual example and demonstrates in previous methods, therefore do not repeat at this.
Further, described a kind of mobile terminal of realizing personalized contact human head picture, wherein, the algorithm that described the first computing unit calculates the eap-message digest of 128bit is MD5 algorithm.
Further, described a kind of mobile terminal of realizing personalized contact human head picture, wherein, the five part eap-message digest users of cutting apart set voluntarily.
Personalized contact human head picture of the present invention has been realized associated person information interface afterwards, as shown in Figure 6, wherein, after correlation technique of the present invention is realized, each contact person has personalized head portrait, and in the situation that contact person increases, method of the present invention also can guarantee that each contact person's head portrait is different.
In sum, the present invention, is set unique material ID of correspondence with it, then obtains the contact number in mobile terminal: by the digital translation of contact person's telephone number, be character string according to each element that forms personage's head portrait by mobile terminal; The character string getting according to conversion calculates the material ID at each position of picture; The material at each position is merged into the picture that represents contact head image, utilize MD5 algorithm to calculate 128bit eap-message digest, and then calculate the material at each position of personage's head portrait, thereby obtain the personage head portrait corresponding with contact number, personal settings have been realized, and do not need manually to go personage's head portrait to draw materials, be convenient for users to operate; The present invention makes mobile terminal increase new function: can become according to different element combinations corresponding contact head image processing method, facilitate the Fast Identification of user to contact person, provide users with the convenient.
Should be understood that, application of the present invention is not limited to above-mentioned giving an example, and for those of ordinary skills, can be improved according to the above description or convert, and all these improvement and conversion all should belong to the protection range of claims of the present invention.

Claims (10)

1. the contact head image processing method based on mobile terminal, is characterized in that, described method comprises:
A, mobile terminal, according to each element that forms personage's head portrait, are set unique material ID corresponding with each element;
B, obtain the contact number in mobile terminal, and be character string by contact number digital translation;
C, the character string getting according to conversion, by calculating the material ID of each element that forms personage's head portrait;
D, according to the material ID of each element, find corresponding element material, the element of gained is merged, generate the picture as contact head image.
2. a kind of contact head image processing method based on mobile terminal according to claim 1, is characterized in that, the element number that forms personage's head portrait in described steps A is 5, represents respectively hair, shape of face, ear, eyes, face.
3. a kind of contact head image processing method based on mobile terminal according to claim 1, is characterized in that, described step C also comprises:
C1, the character string getting according to contact number digital translation calculate the eap-message digest of 128bit;
C2, the eap-message digest of the 128bit calculating is divided into 5 element set corresponding with personage's head portrait element, and according to the eap-message digest of each element set, calculates respectively the material ID of corresponding element.
4. a kind of contact head image processing method based on mobile terminal according to claim 3, is characterized in that, the algorithm that described step C1 calculates the eap-message digest of 128bit is MD5 algorithm.
5. a kind of contact head image processing method based on mobile terminal according to claim 3, is characterized in that, in described step C2, the five part eap-message digest users of cutting apart set voluntarily.
6. a mobile terminal of realizing personalized contact human head picture, is characterized in that, described mobile terminal comprises:
Setting module, according to each element that forms personage's head portrait, sets unique material ID corresponding with each element for mobile terminal;
Modular converter for obtaining the contact number of mobile terminal, and is character string by contact number digital translation;
Computing module, for the character string getting according to conversion, by calculating the material ID of each element that forms personage's head portrait;
Synthesis module, for finding corresponding element material according to the material ID of each element, merges the element of gained, generates the picture as contact head image.
7. a kind of mobile terminal of realizing personalized contact human head picture according to claim 6, is characterized in that, the element number that forms personage's head portrait in setting module is 5, represents respectively hair, shape of face, ear, eyes, face.
8. a kind of mobile terminal of realizing personalized contact human head picture according to claim 6, is characterized in that, described computing module comprises:
The first computing unit, calculates the eap-message digest of 128bit for the character string getting according to contact number digital translation;
The second computing unit, for the eap-message digest of the 128bit calculating being divided into 5 element set corresponding with personage's head portrait element, and calculates respectively the material ID of corresponding element according to the eap-message digest of each element set.
9. a kind of mobile terminal of realizing personalized contact human head picture according to claim 8, is characterized in that, the algorithm that described the first computing unit calculates the eap-message digest of 128bit is MD5 algorithm.
10. a kind of mobile terminal of realizing personalized contact human head picture according to claim 8, is characterized in that, the five part eap-message digest users of cutting apart set voluntarily.
CN201410423269.0A 2014-08-26 2014-08-26 A kind of contact head image processing method and mobile terminal based on mobile terminal Active CN104158975B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201410423269.0A CN104158975B (en) 2014-08-26 2014-08-26 A kind of contact head image processing method and mobile terminal based on mobile terminal

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201410423269.0A CN104158975B (en) 2014-08-26 2014-08-26 A kind of contact head image processing method and mobile terminal based on mobile terminal

Publications (2)

Publication Number Publication Date
CN104158975A true CN104158975A (en) 2014-11-19
CN104158975B CN104158975B (en) 2017-03-29

Family

ID=51884378

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201410423269.0A Active CN104158975B (en) 2014-08-26 2014-08-26 A kind of contact head image processing method and mobile terminal based on mobile terminal

Country Status (1)

Country Link
CN (1) CN104158975B (en)

Cited By (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN107580111A (en) * 2017-08-17 2018-01-12 努比亚技术有限公司 Contact head image generation method, terminal and computer-readable recording medium
CN108009200A (en) * 2017-10-30 2018-05-08 努比亚技术有限公司 The method to set up and mobile terminal of contact image, computer-readable recording medium
CN108696355A (en) * 2017-04-10 2018-10-23 Tcl集团股份有限公司 A kind of method and system for preventing user's head portrait from usurping
CN111049735A (en) * 2019-12-23 2020-04-21 北京达佳互联信息技术有限公司 Group head portrait display method, device, equipment and storage medium

Citations (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103516857A (en) * 2013-08-30 2014-01-15 展讯通信(上海)有限公司 Method and device for setting head portraits of contacts
EP2696551A1 (en) * 2011-05-28 2014-02-12 Huawei Technologies Co., Ltd. Contact photo providing method, management platform and user terminal

Patent Citations (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
EP2696551A1 (en) * 2011-05-28 2014-02-12 Huawei Technologies Co., Ltd. Contact photo providing method, management platform and user terminal
CN103516857A (en) * 2013-08-30 2014-01-15 展讯通信(上海)有限公司 Method and device for setting head portraits of contacts

Cited By (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN108696355A (en) * 2017-04-10 2018-10-23 Tcl集团股份有限公司 A kind of method and system for preventing user's head portrait from usurping
CN108696355B (en) * 2017-04-10 2021-06-22 Tcl科技集团股份有限公司 Method and system for preventing head portrait of user from being embezzled
CN107580111A (en) * 2017-08-17 2018-01-12 努比亚技术有限公司 Contact head image generation method, terminal and computer-readable recording medium
CN107580111B (en) * 2017-08-17 2019-10-25 努比亚技术有限公司 Contact head image generation method, terminal and computer readable storage medium
CN108009200A (en) * 2017-10-30 2018-05-08 努比亚技术有限公司 The method to set up and mobile terminal of contact image, computer-readable recording medium
CN111049735A (en) * 2019-12-23 2020-04-21 北京达佳互联信息技术有限公司 Group head portrait display method, device, equipment and storage medium
CN111049735B (en) * 2019-12-23 2022-07-22 北京达佳互联信息技术有限公司 Group head portrait display method, device, equipment and storage medium

Also Published As

Publication number Publication date
CN104158975B (en) 2017-03-29

Similar Documents

Publication Publication Date Title
KR102045978B1 (en) Facial authentication method, device and computer storage
JP2019117646A (en) Method and system for providing personal emotional icons
US11158057B2 (en) Device, method, and graphical user interface for processing document
CN104158975A (en) A method for processing a contact avatar based on a mobile terminal and the mobile terminal
US11949848B2 (en) Techniques to capture and edit dynamic depth images
CN103442137A (en) Method for allowing a user to look over virtual face of opposite side in mobile phone communication
CN110472558B (en) Image processing method and device
WO2021104097A1 (en) Meme generation method and apparatus, and terminal device
CN103024167A (en) Photographing method and system for mobile terminal
US20180165256A1 (en) Character curve generating method and device thereof
CN104424498A (en) Method and device for transforming two-dimensional codes at high speed
CN111046199A (en) Method for adding bystander to image and electronic equipment
EP2835724A1 (en) Control method and input device of touchscreen terminal
CN106202024A (en) A kind of system, method and client realizing branching selection structure electrical book editor
CN101930293A (en) Method for customizing keyboard
CN108985215B (en) Picture processing method, picture processing device and terminal equipment
CN103167088A (en) Address book ordering method and mobile terminal
WO2017201999A1 (en) File encryption method, device, terminal and storage medium
KR102162102B1 (en) Video call mediating apparatus, method and computer readable recording medium thereof
TWI547816B (en) System and method of classifying images
WO2016131325A1 (en) Method and system for achieving wireless connection
CN107221019B (en) Chart conversion method and device
CN108596114A (en) A kind of expression generation method and device
CN104616313A (en) Handheld device image shooting and verification method based on cloud service
CN207718669U (en) Blind person's terminal

Legal Events

Date Code Title Description
C06 Publication
PB01 Publication
C10 Entry into substantive examination
SE01 Entry into force of request for substantive examination
GR01 Patent grant
GR01 Patent grant