CN106549903A - A kind of method and apparatus that user's head portrait is set - Google Patents

A kind of method and apparatus that user's head portrait is set Download PDF

Info

Publication number
CN106549903A
CN106549903A CN201510591392.8A CN201510591392A CN106549903A CN 106549903 A CN106549903 A CN 106549903A CN 201510591392 A CN201510591392 A CN 201510591392A CN 106549903 A CN106549903 A CN 106549903A
Authority
CN
China
Prior art keywords
image
view
clipping region
view 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
Application number
CN201510591392.8A
Other languages
Chinese (zh)
Other versions
CN106549903B (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.)
Tencent Technology Shenzhen Co Ltd
Original Assignee
Tencent Technology Shenzhen 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 Tencent Technology Shenzhen Co Ltd filed Critical Tencent Technology Shenzhen Co Ltd
Priority to CN201510591392.8A priority Critical patent/CN106549903B/en
Publication of CN106549903A publication Critical patent/CN106549903A/en
Application granted granted Critical
Publication of CN106549903B publication Critical patent/CN106549903B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L65/00Network arrangements, protocols or services for supporting real-time applications in data packet communication
    • H04L65/60Network streaming of media packets
    • H04L65/75Media network packet handling
    • H04L65/762Media network packet handling at the source 
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06TIMAGE DATA PROCESSING OR GENERATION, IN GENERAL
    • G06T3/00Geometric image transformations in the plane of the image
    • G06T3/04Context-preserving transformations, e.g. by using an importance map
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L67/00Network arrangements or protocols for supporting network services or applications
    • H04L67/01Protocols
    • H04L67/06Protocols specially adapted for file transfer, e.g. file transfer protocol [FTP]

Landscapes

  • Engineering & Computer Science (AREA)
  • Multimedia (AREA)
  • Computer Networks & Wireless Communication (AREA)
  • Signal Processing (AREA)
  • Physics & Mathematics (AREA)
  • General Physics & Mathematics (AREA)
  • Theoretical Computer Science (AREA)
  • User Interface Of Digital Computer (AREA)
  • Studio Devices (AREA)

Abstract

The present invention discloses a kind of method and apparatus for arranging user's head portrait, and the method is comprised the following steps:Found a view by photographic head, the image and the image in clipping region in interface display view area of finding a view, clipping region is included in view area;When detect user's triggering find a view interface when, corresponding viewfinder image is obtained according to view area, and cutting is carried out to viewfinder image according to clipping region, obtain cutting image;The image obtained by cutting image or according to cutting image procossing, uploads onto the server as user's head portrait.The present invention reduces the operation of skip operation and user's editing picture by the interactive step in optimal design-aside user's head portrait so that user can efficiently and easily arrange user's head portrait, and then lift the experience of user.

Description

A kind of method and apparatus that user's head portrait is set
Technical field
The present invention relates to communication technical field, more particularly to a kind of method and apparatus for arranging user's head portrait.
Background technology
As the use of the development of communication technology, voice class and social class application is quite popularized, for example, handss Machine QQ, Telegram and wechat phone directory etc..User generally before using voice class and social class application, Generally need to be registered.For example, in the register flow path of Telegram, client obtains user input Phone number, sends identifying code according to the phone number, and after the checking code authentication to user input passes through, Jump to the setting page;User can arrange page setup user name, be set to head portrait by arranging page jump Interface is put, and interface is set in head portrait and head portrait is edited, and then complete register flow path.
As can be seen here, in existing register flow path, arrange user's head portrait process be usually relatively complex, to Family operation is made troubles, and then has influence on the experience of user.
The content of the invention
The invention provides a kind of method and apparatus for arranging user's head portrait, is used with solving to arrange in prior art Account is as more complicated defect.
The invention provides a kind of method for arranging user's head portrait, comprises the following steps:
Found a view by photographic head, in the image and clipping region in interface display view area of finding a view Image, the clipping region is included in the view area;
When detect user's triggering it is described find a view interface when, according to the corresponding figure of finding a view of view area acquisition Picture, and cutting is carried out to the viewfinder image according to the clipping region, obtain cutting image;
The image obtained by the cutting image or according to the cutting image procossing, as on user's head portrait Reach server.
Present invention also offers a kind of device that user's head portrait is set, including:
Display module, the image for being found a view by photographic head, in interface display view area of finding a view And the image in clipping region, the clipping region is included in the view area;
Acquisition module, for detect user triggering described in find a view interface when, obtained according to the view area Take corresponding viewfinder image;
Cutting module, for carrying out cutting to the viewfinder image according to the clipping region, obtains cutting figure Picture;
Upper transmission module, for the image obtained by the cutting image or according to the cutting image procossing, Upload onto the server as user's head portrait.
The present invention reduces skip operation and user edits figure by the interactive step in optimal design-aside user's head portrait The operation of piece so that user can efficiently and easily arrange user's head portrait, and then the experience of lifting user, Improve the enthusiasm that user arranges head portrait, it is to avoid user ignores the identity for arranging that head portrait causes in register flow path Not clear problem, so as to meet needs of the user to identity cognition when using voice with social networking application.
Description of the drawings
System architecture diagrams of the Fig. 1 for a kind of setting user head portrait in the embodiment of the present invention;
Method flow diagrams of the Fig. 2 for a kind of setting user head portrait in the embodiment of the present invention;
Specific implementation flow charts of the Fig. 3 for a kind of setting user head portrait in the embodiment of the present invention;
Fig. 4 is the schematic diagram for arranging head portrait interface in the embodiment of the present invention;
Schematic diagrams of the Fig. 5 for the interface of finding a view in the embodiment of the present invention;
Fig. 6 is the clipping region in the embodiment of the present invention and the schematic diagram of view area;
Structure drawing of device of the Fig. 7 for a kind of setting user head portrait in the embodiment of the present invention.
Specific embodiment
Below in conjunction with the accompanying drawing in the embodiment of the present invention, the technical scheme in the embodiment of the present invention is carried out clearly Chu, it is fully described by, it is clear that described embodiment is only a part of embodiment of the invention, rather than Whole embodiments.Based on the embodiment in the present invention, those of ordinary skill in the art are not making creation Property work under the premise of the every other embodiment that obtained, belong to the scope of protection of the invention.
A kind of method that user's head portrait is set is embodiments provided, is applied to include mobile terminal kimonos In the system of business device, the framework of the system is as shown in figure 1, the mobile terminal is provided with client, and arranges Have photographic head, client is found a view by photographic head, the image in interface display view area of finding a view with And the image in clipping region;When client detect user's triggering find a view interface when, client is according to finding a view Region obtains corresponding viewfinder image, and carries out cutting to viewfinder image according to clipping region, obtains cutting figure Picture;The image that client is obtained by cutting image or according to cutting image procossing, uploads as user's head portrait To server.
It is based on said system framework, in the method for setting user's head portrait in embodiments of the present invention, mobile whole The operating process of the client executing in end, as shown in Fig. 2 comprising the following steps:
Step 101, is found a view by photographic head, image in interface display view area of finding a view and Image in clipping region.
Wherein, clipping region is included in view area.
Step 102, when detect user's triggering find a view interface when, obtained according to view area and corresponding found a view Image, and cutting is carried out to viewfinder image according to clipping region, obtain cutting image.
Step 103, the image obtained by cutting image or according to cutting image procossing, as user's head portrait Upload onto the server.
Below in conjunction with concrete application scene, the method for above-mentioned setting user head portrait is described in detail, its tool Body flow process is as shown in figure 3, comprise the following steps:
Step 201, obtains the communication identifier of user input, sends identifying code according to the communication identifier.
Wherein, communication identifier can be phone number, E-mail address or instant messaging mark etc..
Step 202, obtains the checking information of user input, and checking information is authenticated, if certification Pass through, then execution step 204;Otherwise, execution step 203.
Step 203, points out user to re-enter communication identifier, and return to step 201.
Step 204, into head portrait interface is arranged, in setting head portrait interface display information, and in detection When being triggered to the first button, execution step 205;When detecting the second button and being triggered, execution step 209。
Wherein, head portrait interface is set there is obfuscation background and information, the information is used to point out to use Family uses true head portrait, the obfuscation background to be used to avoid user from seeing shooting after setting head portrait interface is entered The alarmed and stunned emotion that head is opened and produced.
Additionally, arranging head portrait interface also includes the first button and the second button, the first button can be autodyne by Key, the second button can be picture selection keys, as shown in Figure 4.
Step 205, is found a view by photographic head, image in interface display view area of finding a view and Image in clipping region.
Wherein, clipping region is included in view area, and view area is shaped as rectangle or square. Image in clipping region be view area in for the image as user's head portrait, be available for user to carry out head portrait Preview, the image outside clipping region are the cropped image abandoned.User's head portrait be rounded nose as when, cutting Region it is generally circular in shape, as shown in Figure 5.
Specifically, when view area is when being shaped as square, during the center of circle of clipping region is view area The heart.For reserved adjustment space of finding a view, it is to avoid the side of view area is too pressed close to the circumference of clipping region, if Determine the length of side that x is view area, x1 and x2 is respectively two relative sides and clipping region in view area Minimum range, y1 and y2 is respectively the minimum on relative two other side and clipping region in view area Distance, the radius of clipping region is [x- (x1+x2)]/2, as shown in Figure 6.
Preferably, the side in view area and the minimum range of clipping region are 30 pixels, i.e. x1=x2= Y1=y2=30 pixels.
It should be noted that the image and the image in clipping region in interface display view area of finding a view Before, the image being located at outside clipping region in the image and view area in clipping region can also be carried out Strong contrast is processed so that image of the attention focusing of user in clipping region.Wherein, in view area Region outside clipping region is black translucent area, represents that the region outside clipping region is abandoned cropped With.
Step 206, when detect user's triggering find a view interface when, obtained according to view area and corresponding found a view Image.
Step 207, carries out cutting to viewfinder image according to clipping region, obtains cutting image.
Step 208, the image obtained by cutting image or according to cutting image procossing, as user's head portrait Upload onto the server.
Specifically, directly can upload onto the server cutting image as user's head portrait, it is also possible to cutting Image is compressed or scaled down, will obtain image and upload onto the server as user's head portrait.
Step 209, into picture selection interface, obtains the picture that user is selected in picture selection interface.
Step 210, into head portrait editing interface, head portrait editing interface show the image that user selects and Editing area in the image.
Step 211, when user's trigger head is detected as editing interface, obtains corresponding according to editing area Editor's image.
Step 212, the image obtained by editor's image or according to editor's image procossing, as user's head portrait Upload onto the server.
Specifically, directly editor's image can be uploaded onto the server as user's head portrait, it is also possible to editor Image is compressed or scaled down, will obtain image and upload onto the server as user's head portrait.
The embodiment of the present invention reduces skip operation and user by the interactive step in optimal design-aside user's head portrait The operation of editing picture so that user can efficiently and easily arrange user's head portrait, and then lift making for user With experience, the enthusiasm that user arranges head portrait is improved, it is to avoid user ignores setting head portrait in register flow path and draws The clueless problem for rising, so as to meet needs of the user to identity cognition when using voice with social networking application.
Based on the method for above-mentioned setting user head portrait, the embodiment of the present invention additionally provides a kind of setting user's head portrait Device, as shown in fig. 7, comprises:
Display module 610, for being found a view by photographic head, in interface display view area of finding a view Image in image and clipping region.
Wherein, clipping region is included in view area, and view area is shaped as rectangle or square, Clipping region it is generally circular in shape.
Specifically, when view area is when being shaped as square, during the center of circle of clipping region is view area The heart, the radius of clipping region is [x- (x1+x2)]/2, wherein, the length of sides of the x for view area, x1 and x2 point The minimum range of two sides that Wei be not relative in view area and clipping region.
Preferably, the side in view area and the minimum range of clipping region are 30 pixels.
Further, above-mentioned display module 610, was additionally operable to before being found a view by photographic head, was being set Head portrait interface display information is put, the setting head portrait interface has obfuscation background.
Acquisition module 620, for detect user triggering described in find a view interface when, according to the area of finding a view Domain obtains corresponding viewfinder image;
Cutting module 630, for carrying out cutting to the viewfinder image according to the clipping region, is cut out Cut image;
Upper transmission module 640, for the figure obtained by the cutting image or according to the cutting image procossing Picture, uploads onto the server as user's head portrait.
Wherein, the image for being obtained according to cutting image procossing, specially:Cutting image is compressed or is waited The image obtained after scale smaller.
Further, said apparatus, also include:
Processing module 650, for being located at outside clipping region in the image and view area in clipping region Image carry out strong contrast process.
Wherein, the region being located in view area outside clipping region is black translucent area.
The embodiment of the present invention reduces skip operation and user by the interactive step in optimal design-aside user's head portrait The operation of editing picture so that user can efficiently and easily arrange user's head portrait, and then lift making for user With experience, the enthusiasm that user arranges head portrait is improved, it is to avoid user ignores setting head portrait in register flow path and draws The clueless problem for rising, so as to meet needs of the user to identity cognition when using voice with social networking application.
Hardware, processor can directly be used with reference to the step in the method for the embodiments described herein description The software module of execution, or the combination of the two is implementing.Software module can be placed in random access memory (RAM), internal memory, read only memory (ROM), electrically programmable ROM, electrically erasable ROM, Any other form well known in depositor, hard disk, moveable magnetic disc, CD-ROM or technical field Storage medium in.
The above, the only specific embodiment of the present invention, but protection scope of the present invention is not limited to This, any those familiar with the art the invention discloses technical scope in, can readily occur in Change or replacement, should all be included within the scope of the present invention.Therefore, protection scope of the present invention should It is described to be defined by scope of the claims.

Claims (16)

1. it is a kind of arrange user's head portrait method, it is characterised in that comprise the following steps:
Found a view by photographic head, in the image and clipping region in interface display view area of finding a view Image, the clipping region is included in the view area;
When detect user's triggering it is described find a view interface when, according to the corresponding figure of finding a view of view area acquisition Picture, and cutting is carried out to the viewfinder image according to the clipping region, obtain cutting image;
The image obtained by the cutting image or according to the cutting image procossing, as on user's head portrait Reach server.
2. the method for claim 1, it is characterised in that obtained according to the cutting image procossing Image, specially:
The cutting image is compressed or scaled down after the image that obtains.
3. the method for claim 1, it is characterised in that described in interface display view area of finding a view In image and the image in clipping region before, also include:
To the image being located in the image in the clipping region and the view area outside the clipping region Carry out strong contrast process.
4. the method for claim 1, it is characterised in that the view area is shaped as rectangle Or square, the clipping region it is generally circular in shape.
5. method as claimed in claim 4, it is characterised in that the view area is shaped as square When, the center of circle of the clipping region is the center of the view area.
6. method as claimed in claim 5, it is characterised in that
The radius of the clipping region is [x- (x1+x2)]/2, wherein, x is the length of side of the view area, x1 The minimum range on two sides relative in the view area and the clipping region is respectively with x2.
7. method as claimed in claim 6, it is characterised in that the side in the view area and the sanction The minimum range for cutting region is 30 pixels.
8. the method for claim 1, it is characterised in that it is described found a view by photographic head before, Also include:
Head portrait interface display information is being set, and the setting head portrait interface has obfuscation background.
9. it is a kind of arrange user's head portrait device, it is characterised in that include:
Display module, the image for being found a view by photographic head, in interface display view area of finding a view And the image in clipping region, the clipping region is included in the view area;
Acquisition module, for detect user triggering described in find a view interface when, obtained according to the view area Take corresponding viewfinder image;
Cutting module, for carrying out cutting to the viewfinder image according to the clipping region, obtains cutting figure Picture;
Upper transmission module, for the image obtained by the cutting image or according to the cutting image procossing, Upload onto the server as user's head portrait.
10. device as claimed in claim 9, it is characterised in that obtained according to the cutting image procossing Image, specially:
The cutting image is compressed or scaled down after the image that obtains.
11. devices as claimed in claim 9, it is characterised in that also include:
Processing module, for the sanction is located in the image in the clipping region and the view area Cutting the image outside region carries out strong contrast process.
12. devices as claimed in claim 9, it is characterised in that being shaped as the view area is rectangular Shape or square, the clipping region it is generally circular in shape.
13. devices as claimed in claim 12, it is characterised in that the view area is shaped as pros During shape, the center of circle of the clipping region is the center of the view area.
14. devices as claimed in claim 13, it is characterised in that
The radius of the clipping region is [x- (x1+x2)]/2, wherein, x is the length of side of the view area, x1 The minimum range on two sides relative in the view area and the clipping region is respectively with x2.
15. devices as claimed in claim 14, it is characterised in that the side in the view area with it is described The minimum range of clipping region is 30 pixels.
16. devices as claimed in claim 9, it is characterised in that
The display module, was additionally operable to before being found a view by photographic head, was arranging head portrait interface display Information, the setting head portrait interface have obfuscation background.
CN201510591392.8A 2015-09-16 2015-09-16 Method and device for setting head portrait of user Active CN106549903B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201510591392.8A CN106549903B (en) 2015-09-16 2015-09-16 Method and device for setting head portrait of user

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201510591392.8A CN106549903B (en) 2015-09-16 2015-09-16 Method and device for setting head portrait of user

Publications (2)

Publication Number Publication Date
CN106549903A true CN106549903A (en) 2017-03-29
CN106549903B CN106549903B (en) 2020-09-11

Family

ID=58361846

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201510591392.8A Active CN106549903B (en) 2015-09-16 2015-09-16 Method and device for setting head portrait of user

Country Status (1)

Country Link
CN (1) CN106549903B (en)

Cited By (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN107704292A (en) * 2017-10-18 2018-02-16 维沃移动通信有限公司 Picture method to set up and mobile terminal in a kind of application program
CN109408187A (en) * 2018-10-31 2019-03-01 努比亚技术有限公司 Head portrait setting method, device, mobile terminal and readable storage medium storing program for executing
CN109448074A (en) * 2018-09-11 2019-03-08 北京达佳互联信息技术有限公司 Generation method, device, electronic equipment and the storage medium of group's head portrait
CN110136142A (en) * 2019-04-26 2019-08-16 微梦创科网络科技(中国)有限公司 A kind of image cropping method, apparatus, electronic equipment

Citations (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20100173678A1 (en) * 2009-01-07 2010-07-08 Jong-Hwan Kim Mobile terminal and camera image control method thereof
CN102088550A (en) * 2009-12-08 2011-06-08 宏达国际电子股份有限公司 Method and system for capturing object images and digital imaging device
CN102799384A (en) * 2012-07-18 2012-11-28 上海量明科技发展有限公司 Method, client and system for outdoor scene screenshot
CN103209291A (en) * 2012-01-17 2013-07-17 百度在线网络技术(北京)有限公司 Method, apparatus and device for controlling automatic image shooting
CN103365550A (en) * 2013-07-05 2013-10-23 贝壳网际(北京)安全技术有限公司 User information setting method and device and client device
CN104361329A (en) * 2014-11-25 2015-02-18 成都品果科技有限公司 Photo cropping method and system based on face recognition
CN104836957A (en) * 2015-05-09 2015-08-12 陈包容 Photo shooting processing method and device

Patent Citations (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20100173678A1 (en) * 2009-01-07 2010-07-08 Jong-Hwan Kim Mobile terminal and camera image control method thereof
CN102088550A (en) * 2009-12-08 2011-06-08 宏达国际电子股份有限公司 Method and system for capturing object images and digital imaging device
CN103209291A (en) * 2012-01-17 2013-07-17 百度在线网络技术(北京)有限公司 Method, apparatus and device for controlling automatic image shooting
CN102799384A (en) * 2012-07-18 2012-11-28 上海量明科技发展有限公司 Method, client and system for outdoor scene screenshot
CN103365550A (en) * 2013-07-05 2013-10-23 贝壳网际(北京)安全技术有限公司 User information setting method and device and client device
CN104361329A (en) * 2014-11-25 2015-02-18 成都品果科技有限公司 Photo cropping method and system based on face recognition
CN104836957A (en) * 2015-05-09 2015-08-12 陈包容 Photo shooting processing method and device

Cited By (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN107704292A (en) * 2017-10-18 2018-02-16 维沃移动通信有限公司 Picture method to set up and mobile terminal in a kind of application program
CN109448074A (en) * 2018-09-11 2019-03-08 北京达佳互联信息技术有限公司 Generation method, device, electronic equipment and the storage medium of group's head portrait
CN109408187A (en) * 2018-10-31 2019-03-01 努比亚技术有限公司 Head portrait setting method, device, mobile terminal and readable storage medium storing program for executing
CN110136142A (en) * 2019-04-26 2019-08-16 微梦创科网络科技(中国)有限公司 A kind of image cropping method, apparatus, electronic equipment

Also Published As

Publication number Publication date
CN106549903B (en) 2020-09-11

Similar Documents

Publication Publication Date Title
US11455093B2 (en) Capturing and sending multimedia as electronic messages
US9652704B2 (en) Method of providing content transmission service by using printed matter
US10469488B2 (en) Security verification method, apparatus, and system
CN107637099B (en) Geo-fence authentication provisioning
CN106549903A (en) A kind of method and apparatus that user's head portrait is set
CN107534566B (en) Multi-user conference system
US20110098022A1 (en) Integrating Multimedia and Voicemail
US10922479B2 (en) Method and electronic device for creating an electronic signature
CN110557417B (en) Image processing method and device and storage medium
CN109857505A (en) Execution method, apparatus, terminal and the storage medium of operation
US9166788B2 (en) Method and device for obtaining a security key
CN104917672B (en) Mail signature setting method and device
EP3176719A1 (en) Methods and devices for acquiring certification document
JP2023554519A (en) Electronic document editing method and device, computer equipment and program
CN107959757A (en) User information processing method, device, APP servers and terminal device
US20190012042A1 (en) Method and device for producing an electronic signed document
CN104182419A (en) Method and device for processing character information in picture
WO2016141797A1 (en) Information processing method and apparatus, and computer-readable medium
EP2911087A1 (en) Method, device and apparatus for storing and reading data
CN106713681B (en) A kind of information processing method, device, terminal and server
WO2018092378A1 (en) Information processing device, information processing method, and program
CN106406838A (en) Screen shot sharing method, apparatus, and system
CN104584030B (en) Verification application method and device based on face recognition
CN104917726B (en) The method and apparatus of authentication
CN110362764A (en) A kind of witness method and system of souvenir

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