WO2017096788A1 - Method and system for generating head portrait of contact during video call - Google Patents

Method and system for generating head portrait of contact during video call Download PDF

Info

Publication number
WO2017096788A1
WO2017096788A1 PCT/CN2016/088196 CN2016088196W WO2017096788A1 WO 2017096788 A1 WO2017096788 A1 WO 2017096788A1 CN 2016088196 W CN2016088196 W CN 2016088196W WO 2017096788 A1 WO2017096788 A1 WO 2017096788A1
Authority
WO
WIPO (PCT)
Prior art keywords
terminal
contact
contact avatar
avatar
video call
Prior art date
Application number
PCT/CN2016/088196
Other languages
French (fr)
Chinese (zh)
Inventor
冯紫华
Original Assignee
乐视控股(北京)有限公司
乐视致新电子科技(天津)有限公司
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 乐视控股(北京)有限公司, 乐视致新电子科技(天津)有限公司 filed Critical 乐视控股(北京)有限公司
Publication of WO2017096788A1 publication Critical patent/WO2017096788A1/en

Links

Images

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04MTELEPHONIC COMMUNICATION
    • H04M1/00Substation equipment, e.g. for use by subscribers
    • H04M1/26Devices for calling a subscriber
    • H04M1/27Devices whereby a plurality of signals may be stored simultaneously
    • H04M1/274Devices whereby a plurality of signals may be stored simultaneously with provision for storing more than one subscriber number at a time, e.g. using toothed disc
    • H04M1/2745Devices whereby a plurality of signals may be stored simultaneously with provision for storing more than one subscriber number at a time, e.g. using toothed disc using static electronic memories, e.g. chips
    • H04M1/27467Methods of retrieving data
    • H04M1/27475Methods of retrieving data using interactive graphical means or pictorial representations
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04MTELEPHONIC COMMUNICATION
    • H04M1/00Substation equipment, e.g. for use by subscribers
    • H04M1/26Devices for calling a subscriber
    • H04M1/27Devices whereby a plurality of signals may be stored simultaneously
    • H04M1/274Devices whereby a plurality of signals may be stored simultaneously with provision for storing more than one subscriber number at a time, e.g. using toothed disc
    • H04M1/2745Devices whereby a plurality of signals may be stored simultaneously with provision for storing more than one subscriber number at a time, e.g. using toothed disc using static electronic memories, e.g. chips
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04MTELEPHONIC COMMUNICATION
    • H04M1/00Substation equipment, e.g. for use by subscribers
    • H04M1/72Mobile telephones; Cordless telephones, i.e. devices for establishing wireless links to base stations without route selection
    • H04M1/724User interfaces specially adapted for cordless or mobile telephones
    • H04M1/72403User interfaces specially adapted for cordless or mobile telephones with means for local support of applications that increase the functionality
    • H04M1/7243User interfaces specially adapted for cordless or mobile telephones with means for local support of applications that increase the functionality with interactive means for internal management of messages
    • H04M1/72439User interfaces specially adapted for cordless or mobile telephones with means for local support of applications that increase the functionality with interactive means for internal management of messages for image or video messaging
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04MTELEPHONIC COMMUNICATION
    • H04M1/00Substation equipment, e.g. for use by subscribers
    • H04M1/72Mobile telephones; Cordless telephones, i.e. devices for establishing wireless links to base stations without route selection
    • H04M1/725Cordless telephones

Definitions

  • the embodiments of the present invention relate to the technical field of mobile terminals, and in particular, to a method and system for generating a contact avatar during a video call.
  • Users often use mobile terminals to take photos and videos, and users can use the mobile terminal to make video communication with contacts.
  • users In order to facilitate the management of contacts, users often need to set the contact's avatar.
  • the method for setting a contact avatar is to adopt a system default picture or to manually select a picture from the memory to be set as a contact avatar.
  • the picture needs to be taken in advance and saved in the memory of the mobile terminal, but the user needs to manually set it.
  • the embodiment of the present invention provides a method and system for generating a contact avatar during a video call, which is convenient for a user to set a contact avatar during a video call.
  • the embodiment of the present application provides a method for generating a contact avatar during a video call, including:
  • the first terminal When the first terminal and the second terminal make a video call, the first terminal sends a connection to the second terminal.
  • Person avatar request message
  • the second terminal After receiving the generating contact avatar request message, the second terminal captures the second terminal contact, and returns the captured photo to the first terminal;
  • the first terminal generates a contact avatar of the second terminal according to the photo received from the second terminal.
  • the embodiment of the present application provides a system for generating a contact avatar during a video call, including:
  • the first terminal is configured to send a contact avatar request message to the second terminal when the video is in a call with the second terminal;
  • the second terminal is configured to: after receiving the generating contact avatar request message, photographing the second terminal contact, and returning the photographed photo to the first terminal;
  • the first terminal is further configured to generate a contact avatar of the second terminal according to the photo received from the second terminal.
  • the method and system for generating a contact avatar during a video call provided by the embodiment of the present application can conveniently set a contact avatar during a video call.
  • the embodiment of the present application also provides a computer readable recording medium on which a program set to execute the above method is recorded.
  • FIG. 1 is a schematic flowchart of a method for generating a contact avatar during a video call according to an embodiment of the present application
  • FIG. 2 is a schematic flowchart of a method for generating a contact avatar during a video call according to an embodiment of the present application
  • FIG. 3 is a schematic diagram of a process of photographing a second terminal contact after the second terminal receives the request to generate a contact avatar message according to an embodiment of the present application;
  • FIG. 4 is a schematic structural diagram of a system for generating a contact avatar when a video call is set in a specific embodiment of the present application.
  • Embodiment 1 is a diagrammatic representation of Embodiment 1:
  • FIG. 1 is a schematic flowchart of a method for generating a contact avatar during a video call according to an embodiment of the present application.
  • the method includes:
  • Step S11 when the first terminal and the second terminal are in a video call, the first terminal sends a generate contact avatar request message to the second terminal;
  • Step S12 After receiving the generating contact avatar request message, the second terminal performs shooting on the second terminal contact, and returns the captured photo to the first terminal;
  • Step S13 The first terminal generates a contact avatar of the second terminal according to the photo received from the second terminal.
  • Embodiment 2 is a diagrammatic representation of Embodiment 1:
  • FIG. 2 is a detailed flow chart of a method for generating a contact avatar during a video call according to an embodiment of the present application.
  • the method is applied to a mobile terminal, including:
  • Step S21 the first terminal and the second terminal have a video call.
  • the first terminal and the second terminal initiate a video call
  • the video call can be divided into two ways of taking the IP line and taking the ordinary telephone line, which is generally based on the Internet and the mobile Internet, and transmitting the person through the mobile terminal in real time.
  • the way voice and images are communicated.
  • a video call can be established with a contact by running a video call software on the mobile communication device.
  • a video connection can also be established with a contact via a video chat function in an instant messaging tool. This application does not limit the specific form of video communication.
  • the first terminal and the second terminal establish a Transmission Control Protocol (TCP) long connection through a network socket (WebSocket) or a socket (Socket) to implement a video call.
  • TCP Transmission Control Protocol
  • WebSocket is a protocol of HTML5 that enables full-duplex communication between browser and server. Therefore, in the embodiment of the present application, a TCP long connection can be established through WebSocket.
  • Socket communication includes synchronous Socket and asynchronous Socket. If it is a short link, use synchronous Socket. For example, http server, transit server, etc.; if it is a long link, use an asynchronous Socket. For example, communication system (QQ/Fetion), webgame, etc. Therefore, in the embodiment of the present application, a TCP long connection can be established through an asynchronous Socket.
  • Step S22 The first terminal sends a contact avatar request message to the second terminal.
  • the method for setting a contact avatar is to adopt a system default picture or to manually select a picture from the memory to be set as a contact avatar.
  • the first terminal when the first terminal and the second terminal are in a video call, the first terminal sends a contact avatar request message to the second terminal through the TCP long connection, thereby avoiding the contact in the prior art.
  • An avatar is a system image or a disadvantage that can only be selected from locally stored photos.
  • Step S23 After receiving the generated contact avatar request message sent by the first terminal, the second terminal performs shooting on the second terminal contact.
  • This step can be specifically decomposed into sub-steps as shown in FIG. 3, including:
  • Step S231 the second terminal receives a generate contact avatar request message sent by the first terminal
  • Step S232 whether it is agreed to generate a contact avatar during the video call; if yes, proceed to step S233; if not, proceed to step S234;
  • Step S233 shooting a second terminal contact
  • Step S234 sending a generate contact avatar rejection message to the first terminal.
  • the second terminal receives the generated contact avatar request message sent by the first terminal through the TCP long connection transmission.
  • the reason for the request may be included.
  • the generating a contact avatar request may add a field in an existing transmission message or modify an existing field, and the specific format is No specific restrictions are imposed on the application.
  • the contact avatar request message sent by the first terminal After the second terminal contact is photographed and received the generated contact avatar request message sent by the first terminal, it is determined whether the contact avatar is generated during the video call, and if the contact status of the second terminal is not good, for example, there is no washing or Wearing is not suitable for display, you can refuse to generate a contact avatar during a video call.
  • the second terminal sends a generated contact avatar rejection message to the first terminal through the TCP long connection.
  • the reason for the rejection the time allowed for shooting, for example, ten minutes later, may be included.
  • the generating a contact avatar request may add a field in an existing transmission message or modify an existing field.
  • the specific format is not specifically limited in this application.
  • the camera of the second terminal is triggered, and the contact is automatically focused and photographed, for example, automatic continuous shooting may be performed, or the contact of the second terminal may be manually photographed.
  • step S24 the second terminal returns the captured photo to the first terminal.
  • the second terminal returns the captured photo to the first terminal through the TCP long connection.
  • the setting information of the second terminal contact avatar such as the resolution of the photo and the size of the avatar, etc., may be added while the photo is being transferred.
  • Step S25 The first terminal sets the received photo, generates a contact avatar of the second terminal, and stores the contact avatar in the contact database.
  • the first terminal performs selection and cropping to generate a contact avatar of the second terminal.
  • the first terminal may set the photo according to the setting information of the second terminal contact avatar, and generate a contact avatar of the second terminal.
  • the first terminal stores the set contact avatar in the contact database.
  • Embodiment 3 is a diagrammatic representation of Embodiment 3
  • FIG. 4 is a schematic structural diagram of a system for generating a contact avatar when a video call is set in a specific embodiment of the present application.
  • the system of the present application includes: a first terminal and a second terminal, where
  • the first terminal is configured to send a contact avatar request message to the second terminal when the video is in a call with the second terminal;
  • the second terminal is configured to: after receiving the generating contact avatar request message, photographing the second terminal contact, and returning the photographed photo to the first terminal;
  • the first terminal may be further configured to generate a contact avatar of the second terminal according to the photo received from the second terminal.
  • the first terminal sends a generate contact avatar request message to the second terminal by using a TCP long connection, where the generated contact avatar request message includes the reason of the request;
  • the second terminal After receiving the generated contact avatar request message sent by the first terminal, the second terminal determines whether to agree to generate a contact avatar during the video call; if yes, the second terminal contact is photographed; if not, sends the generated to the first terminal
  • the contact avatar rejection message includes the reason for the rejection or the time allowed for the shooting.
  • the camera of the second terminal is triggered to automatically capture the contact; or the contact of the second terminal is manually photographed;
  • the second terminal returns the captured photo to the first terminal through the TCP long connection, and adds setting information of the second terminal contact avatar when transmitting the photo;
  • the first terminal sets the received photo according to the setting information of the second terminal contact avatar, generates a contact avatar of the second terminal, and stores the set contact avatar into the contact database.
  • the method and system for generating a contact avatar during a video call provided by the embodiment of the present application can conveniently set a contact avatar during a video call.
  • the device embodiments described above are merely illustrative, wherein the modules described as separate components may or may not be physically separate, and the components displayed as modules may or may not be physical modules, ie may be located A place, or it can be distributed to multiple network modules. Some or all of the modules may be selected according to actual needs to achieve the purpose of the solution of the embodiment. Those of ordinary skill in the art can understand and implement without deliberate labor.

Landscapes

  • Engineering & Computer Science (AREA)
  • Signal Processing (AREA)
  • Computer Networks & Wireless Communication (AREA)
  • Multimedia (AREA)
  • Business, Economics & Management (AREA)
  • General Business, Economics & Management (AREA)
  • Human Computer Interaction (AREA)
  • Information Transfer Between Computers (AREA)
  • Two-Way Televisions, Distribution Of Moving Picture Or The Like (AREA)

Abstract

A method and system for generating a head portrait of a contact during a video call. The method comprises: during a video call between a first terminal and a second terminal, the first terminal sends a contact head portrait generating request message to the second terminal; after receiving the contact head portrait generating request message, the second terminal takes a photo of a contact using the second terminal, and returns the photo to the first terminal; and the first terminal generates a head portrait of the contact using the second terminal according to the photo received from the second terminal. Embodiments of the present application enable a user to conveniently set a head portrait of a contact during a video call.

Description

一种视频通话时生成联系人头像的方法和系统Method and system for generating contact avatar during video call
本申请要求于2015年12月10日提交中国专利局、申请号为201510922392.1,发明名称为“一种视频通话时生成联系人头像的方法和系统”的中国专利申请的优先权,其全部内容通过引用结合在本申请中。This application claims the priority of the Chinese Patent Application filed on Dec. 10, 2015, the Chinese Patent Office, Application No. 201510922392.1, entitled "Method and System for Generating Contact Heads During Video Calls", the entire contents of which are The citations are incorporated herein by reference.
技术领域Technical field
本申请实施例涉及移动终端技术领域,尤其涉及一种视频通话时生成联系人头像的方法和系统。The embodiments of the present invention relate to the technical field of mobile terminals, and in particular, to a method and system for generating a contact avatar during a video call.
背景技术Background technique
近年来,随着移动通信技术的飞速发展和移动终端智能化趋势的加快,人们正走入一个新的移动互联网时代。多种多样具备网络连接能力的移动终端,诸如手机、平板电脑、电纸书等的出现,带给人们随时随地访问互联网的便捷。Android的出现,更是将移动终端推向了以应用和数据为主导的时代。今天的移动终端平台具备了办公、娱乐、社交等多种功能,其存储的数据也变得更加丰富,例如图片、音乐、视频、动画等等。In recent years, with the rapid development of mobile communication technology and the acceleration of the intelligentization of mobile terminals, people are entering a new era of mobile Internet. The emergence of a variety of mobile terminals with network connectivity, such as mobile phones, tablets, electronic paper books, etc., gives people the convenience of accessing the Internet anytime, anywhere. The emergence of Android is to push mobile terminals to an era dominated by applications and data. Today's mobile terminal platform has a variety of functions such as office, entertainment, social, etc., and its stored data has become more abundant, such as pictures, music, video, animation and so on.
用户经常使用移动终端进行拍摄照片和视频,且用户使用移动终端可以与联系人进行视频通信。为了便于管理联系人,用户往往需要设置联系人的头像。Users often use mobile terminals to take photos and videos, and users can use the mobile terminal to make video communication with contacts. In order to facilitate the management of contacts, users often need to set the contact's avatar.
现有技术中,设置联系人头像的方法是采用系统默认图片或需用户手动从存储器中选择一幅图片设置为联系人的头像。然而,传统的这种设置联系人头像的方法,图片需事先拍摄好并保存在移动终端的存储器中,但需要用户手动进行设置。In the prior art, the method for setting a contact avatar is to adopt a system default picture or to manually select a picture from the memory to be set as a contact avatar. However, in the conventional method of setting a contact avatar, the picture needs to be taken in advance and saved in the memory of the mobile terminal, but the user needs to manually set it.
但是,目前用户移动终端中很多联系人或者为无头像图标,或者为默认头像,或者是根据联系人名字生成头像,这样往往并不能让用户满意。而且,当联系人比较多时,按照传统的方法设置联系人头像不但耗时,也很不方便。However, at present, many contacts in the user's mobile terminal are either no avatar icons, or are default avatars, or generate avatars according to the contact names, which often does not satisfy the user. Moreover, when there are a large number of contacts, setting the contact avatar according to the conventional method is not only time consuming but also inconvenient.
发明内容Summary of the invention
本申请实施例提供一种视频通话时生成联系人头像的方法和系统,能够在视频通话时方便用户设置联系人头像。The embodiment of the present invention provides a method and system for generating a contact avatar during a video call, which is convenient for a user to set a contact avatar during a video call.
本申请实施例提供一种视频通话时生成联系人头像的方法,包括:The embodiment of the present application provides a method for generating a contact avatar during a video call, including:
当第一终端和第二终端视频通话时,第一终端向第二终端发送生成联系 人头像请求消息;When the first terminal and the second terminal make a video call, the first terminal sends a connection to the second terminal. Person avatar request message;
第二终端收到所述生成联系人头像请求消息后,对第二终端联系人进行拍摄,并将拍摄的照片返回给第一终端;After receiving the generating contact avatar request message, the second terminal captures the second terminal contact, and returns the captured photo to the first terminal;
第一终端根据从第二终端接收到的照片,生成第二终端的联系人头像。The first terminal generates a contact avatar of the second terminal according to the photo received from the second terminal.
本申请实施例提供一种视频通话时生成联系人头像的系统,包括:The embodiment of the present application provides a system for generating a contact avatar during a video call, including:
第一终端,设置为和第二终端视频通话时,向第二终端发送生成联系人头像请求消息;The first terminal is configured to send a contact avatar request message to the second terminal when the video is in a call with the second terminal;
第二终端,设置为收到所述生成联系人头像请求消息后,对第二终端联系人进行拍摄,并将拍摄的照片返回给第一终端;The second terminal is configured to: after receiving the generating contact avatar request message, photographing the second terminal contact, and returning the photographed photo to the first terminal;
所述第一终端,还设置为根据从第二终端接收到的照片,生成第二终端的联系人头像。The first terminal is further configured to generate a contact avatar of the second terminal according to the photo received from the second terminal.
和现有技术相比,本申请实施例提供的视频通话时生成联系人头像的方法和系统,能够在视频通话时方便用户设置联系人头像。Compared with the prior art, the method and system for generating a contact avatar during a video call provided by the embodiment of the present application can conveniently set a contact avatar during a video call.
本申请实施例还提供一种在其上记录有设置为执行上述方法的程序的计算机可读记录介质。The embodiment of the present application also provides a computer readable recording medium on which a program set to execute the above method is recorded.
附图说明DRAWINGS
为了更清楚地说明本申请实施例或现有技术中的技术方案,下面将对实施例或现有技术描述中所需要使用的附图作一简单地介绍,显而易见地,下面描述中的附图是本申请的一些实施例,对于本领域普通技术人员来讲,在不付出创造性劳动的前提下,还可以根据这些附图获得其他的附图。In order to more clearly illustrate the embodiments of the present application or the technical solutions in the prior art, a brief description of the drawings used in the embodiments or the prior art description will be briefly described below. Obviously, the drawings in the following description It is a certain embodiment of the present application, and other drawings can be obtained according to the drawings without any creative work for those skilled in the art.
图1为本申请的一个具体实施例中视频通话时生成联系人头像的方法的流程示意图;1 is a schematic flowchart of a method for generating a contact avatar during a video call according to an embodiment of the present application;
图2为本申请的一个具体实施例中视频通话时生成联系人头像的方法的详细流程示意图;2 is a schematic flowchart of a method for generating a contact avatar during a video call according to an embodiment of the present application;
图3为本申请的一个具体实施例中第二终端收到所述生成联系人头像请求消息后,对第二终端联系人进行拍摄的流程示意图;FIG. 3 is a schematic diagram of a process of photographing a second terminal contact after the second terminal receives the request to generate a contact avatar message according to an embodiment of the present application;
图4本申请的一个具体实施例中设置为视频通话时生成联系人头像的系统的结构示意图。FIG. 4 is a schematic structural diagram of a system for generating a contact avatar when a video call is set in a specific embodiment of the present application.
具体实施方式 detailed description
本申请实施例的目的、技术方案和优点更加清楚,下面将结合本申请实施例中的附图,对本申请实施例中的技术方案进行清楚、完整地描述,显然,所描述的实施例是本申请一部分实施例,而不是全部的实施例。基于本申请中的实施例,本领域普通技术人员在没有作出创造性劳动前提下所获得的所有其他实施例,都属于本申请保护的范围。The objectives, technical solutions, and advantages of the embodiments of the present application are more clearly described. The technical solutions in the embodiments of the present application are clearly and completely described in conjunction with the drawings in the embodiments of the present application. Some embodiments are applied, not all of the embodiments. All other embodiments obtained by a person of ordinary skill in the art based on the embodiments of the present application without departing from the inventive scope are the scope of the present application.
实施例一:Embodiment 1:
图1为本申请的一个具体实施例中视频通话时生成联系人头像的方法的流程示意图。FIG. 1 is a schematic flowchart of a method for generating a contact avatar during a video call according to an embodiment of the present application.
如图1所示,该方法包括:As shown in Figure 1, the method includes:
步骤S11,当第一终端和第二终端视频通话时,第一终端向第二终端发送生成联系人头像请求消息;Step S11, when the first terminal and the second terminal are in a video call, the first terminal sends a generate contact avatar request message to the second terminal;
步骤S12,第二终端收到所述生成联系人头像请求消息后,对第二终端联系人进行拍摄,并将拍摄的照片返回给第一终端;Step S12: After receiving the generating contact avatar request message, the second terminal performs shooting on the second terminal contact, and returns the captured photo to the first terminal;
步骤S13,第一终端根据从第二终端接收到的照片,生成第二终端的联系人头像。Step S13: The first terminal generates a contact avatar of the second terminal according to the photo received from the second terminal.
实施例二:Embodiment 2:
图2为本申请的一个具体实施例中视频通话时生成联系人头像的方法的详细流程示意图。2 is a detailed flow chart of a method for generating a contact avatar during a video call according to an embodiment of the present application.
如图2所示,该方法应用于移动终端上,包括:As shown in FIG. 2, the method is applied to a mobile terminal, including:
步骤S21,第一终端和第二终端视频通话。Step S21, the first terminal and the second terminal have a video call.
在本步骤中,第一终端和第二终端发起视频通话,视频通话可以分为走IP线路以及走普通电话线路两种方式,通常指基于互联网和移动互联网端,通过移动终端之间实时传送人的语音和图像的通信方式。在一个实施例中,可以通过在移动通信设备上运行视频通话软件,与联系人建立视频通话。在另一个实施例中,还可通过即时通信工具中的视频聊天功能与联系人建立视频连接。本申请并不以此限定视频通信的特定形式。In this step, the first terminal and the second terminal initiate a video call, and the video call can be divided into two ways of taking the IP line and taking the ordinary telephone line, which is generally based on the Internet and the mobile Internet, and transmitting the person through the mobile terminal in real time. The way voice and images are communicated. In one embodiment, a video call can be established with a contact by running a video call software on the mobile communication device. In another embodiment, a video connection can also be established with a contact via a video chat function in an instant messaging tool. This application does not limit the specific form of video communication.
第一终端和第二终端通过网络套接字(WebSocket)或是套接字(Socket)建立传输控制协议(TCP,Transmission Control Protocol)长连接实现视频通话。 The first terminal and the second terminal establish a Transmission Control Protocol (TCP) long connection through a network socket (WebSocket) or a socket (Socket) to implement a video call.
WebSocket是HTML5一种协议,能够实现浏览器与服务器全双工通信(full-duplex)。因此,本申请实施例中,可以通过WebSocket建立TCP长连接。WebSocket is a protocol of HTML5 that enables full-duplex communication between browser and server. Therefore, in the embodiment of the present application, a TCP long connection can be established through WebSocket.
Socket通信包括同步Socket和异步Socket,如果是短链接,使用同步Socket。例如http服务器、转接服务器等;如果是长链接,使用异步Socket。例如通讯系统(QQ/Fetion)、webgame等。因此,本申请实施例中,可以通过异步Socket建立TCP长连接。Socket communication includes synchronous Socket and asynchronous Socket. If it is a short link, use synchronous Socket. For example, http server, transit server, etc.; if it is a long link, use an asynchronous Socket. For example, communication system (QQ/Fetion), webgame, etc. Therefore, in the embodiment of the present application, a TCP long connection can be established through an asynchronous Socket.
步骤S22,第一终端向第二终端发送联系人头像请求消息。Step S22: The first terminal sends a contact avatar request message to the second terminal.
现有技术中,设置联系人头像的方法是采用系统默认图片或需用户手动从存储器中选择一幅图片设置为联系人的头像。In the prior art, the method for setting a contact avatar is to adopt a system default picture or to manually select a picture from the memory to be set as a contact avatar.
和现有技术相比,本申请实施例在第一终端和第二终端视频通话时,第一终端通过TCP长连接向第二终端发送联系人头像请求消息,从而避免了现有技术中联系人头像是系统图片或者只能从本地存储的照片中选择的缺点。Compared with the prior art, when the first terminal and the second terminal are in a video call, the first terminal sends a contact avatar request message to the second terminal through the TCP long connection, thereby avoiding the contact in the prior art. An avatar is a system image or a disadvantage that can only be selected from locally stored photos.
步骤S23,第二终端接收第一终端发送的生成联系人头像请求消息后,对第二终端联系人进行拍摄。Step S23: After receiving the generated contact avatar request message sent by the first terminal, the second terminal performs shooting on the second terminal contact.
本步骤可以具体分解为如图3所示的子步骤,包括:This step can be specifically decomposed into sub-steps as shown in FIG. 3, including:
步骤S231,第二终端接收第一终端发送的生成联系人头像请求消息;Step S231, the second terminal receives a generate contact avatar request message sent by the first terminal;
步骤S232,是否同意在视频通话时生成联系人头像;如果是,进行步骤S233;如果否,进行步骤S234;Step S232, whether it is agreed to generate a contact avatar during the video call; if yes, proceed to step S233; if not, proceed to step S234;
步骤S233,对第二终端联系人进行拍摄;Step S233, shooting a second terminal contact;
步骤S234,向第一终端发送生成联系人头像拒绝消息。Step S234, sending a generate contact avatar rejection message to the first terminal.
在本步骤中,第二终端接收第一终端通过TCP长连接传输发送的生成联系人头像请求消息。在该生成联系人头像请求消息中,可以包括请求的原因等,具体地,该生成联系人头像请求可以在现有的传输消息中增加字段或者修改现有的字段都可以的,具体格式在本申请中不做具体的限定。In this step, the second terminal receives the generated contact avatar request message sent by the first terminal through the TCP long connection transmission. In the generating a contact avatar request message, the reason for the request may be included. Specifically, the generating a contact avatar request may add a field in an existing transmission message or modify an existing field, and the specific format is No specific restrictions are imposed on the application.
当对第二终端联系人进行拍摄接收第一终端发送的生成联系人头像请求消息后,判断是否同意在视频通话时生成联系人头像,如果第二终端的联系人状态不好,例如没有洗漱或穿着并不适合展示,可以拒绝在视频通话时生成联系人头像。 After the second terminal contact is photographed and received the generated contact avatar request message sent by the first terminal, it is determined whether the contact avatar is generated during the video call, and if the contact status of the second terminal is not good, for example, there is no washing or Wearing is not suitable for display, you can refuse to generate a contact avatar during a video call.
第二终端通过TCP长连接向第一终端发送生成联系人头像拒绝消息,在该生成联系人头像拒绝消息中,可以包括拒绝的理由、允许拍摄的时间,例如十分钟后再拍摄。具体地,该生成联系人头像请求可以在现有的传输消息中增加字段或者修改现有的字段都可以的,具体格式在本申请中不做具体的限定。The second terminal sends a generated contact avatar rejection message to the first terminal through the TCP long connection. In the generated contact avatar rejection message, the reason for the rejection, the time allowed for shooting, for example, ten minutes later, may be included. Specifically, the generating a contact avatar request may add a field in an existing transmission message or modify an existing field. The specific format is not specifically limited in this application.
如果同意在视频通话时生成联系人头像,触发第二终端的摄像头,对联系人进行自动对焦并拍摄,例如可以进行自动连续拍摄,也可以是第二终端的联系人手动拍摄。If it is agreed to generate a contact avatar during the video call, the camera of the second terminal is triggered, and the contact is automatically focused and photographed, for example, automatic continuous shooting may be performed, or the contact of the second terminal may be manually photographed.
步骤S24,第二终端将拍摄的照片返回给第一终端。In step S24, the second terminal returns the captured photo to the first terminal.
在本步骤中,第二终端将拍摄的照片通过TCP长连接返回给第一终端。在传送照片的同时可以添加第二终端联系人头像的设置信息,例如照片的分辨率和头像大小等。In this step, the second terminal returns the captured photo to the first terminal through the TCP long connection. The setting information of the second terminal contact avatar, such as the resolution of the photo and the size of the avatar, etc., may be added while the photo is being transferred.
步骤S25,第一终端对接收到的照片进行设置,生成第二终端的联系人头像,并将联系人头像存储联系人数据库。Step S25: The first terminal sets the received photo, generates a contact avatar of the second terminal, and stores the contact avatar in the contact database.
在本步骤中,如果第一终端接收到多张照片,第一终端进行选择和裁剪生成第二终端的联系人头像。In this step, if the first terminal receives multiple photos, the first terminal performs selection and cropping to generate a contact avatar of the second terminal.
第一终端可以根据第二终端联系人头像的设置信息对照片进行设置,生成第二终端的联系人头像。The first terminal may set the photo according to the setting information of the second terminal contact avatar, and generate a contact avatar of the second terminal.
第一终端将设置好的联系人头像存储到联系人数据库中。The first terminal stores the set contact avatar in the contact database.
实施例三:Embodiment 3:
图4本申请的一个具体实施例中设置为视频通话时生成联系人头像的系统的结构示意图。FIG. 4 is a schematic structural diagram of a system for generating a contact avatar when a video call is set in a specific embodiment of the present application.
如图4所示,本申请的系统包括:第一终端和第二终端,其中,As shown in FIG. 4, the system of the present application includes: a first terminal and a second terminal, where
所述第一终端,设置为和第二终端视频通话时,向第二终端发送生成联系人头像请求消息;The first terminal is configured to send a contact avatar request message to the second terminal when the video is in a call with the second terminal;
所述第二终端,设置为收到所述生成联系人头像请求消息后,对第二终端联系人进行拍摄,并将拍摄的照片返回给第一终端;The second terminal is configured to: after receiving the generating contact avatar request message, photographing the second terminal contact, and returning the photographed photo to the first terminal;
所述第一终端,还可设置为根据从第二终端接收到的照片,生成第二终端的联系人头像。 The first terminal may be further configured to generate a contact avatar of the second terminal according to the photo received from the second terminal.
具体的,所述第一终端通过TCP长连接向第二终端发送生成联系人头像请求消息,所述生成联系人头像请求消息中包括请求的原因;Specifically, the first terminal sends a generate contact avatar request message to the second terminal by using a TCP long connection, where the generated contact avatar request message includes the reason of the request;
第二终端接收第一终端发送的生成联系人头像请求消息后,判断是否同意在视频通话时生成联系人头像;如果是,对第二终端联系人进行拍摄;如果否,向第一终端发送生成联系人头像拒绝消息,所述生成联系人头像拒绝消息包括拒绝的理由或允许拍摄的时间。After receiving the generated contact avatar request message sent by the first terminal, the second terminal determines whether to agree to generate a contact avatar during the video call; if yes, the second terminal contact is photographed; if not, sends the generated to the first terminal The contact avatar rejection message includes the reason for the rejection or the time allowed for the shooting.
所述第二终端同意第一终端拍摄后,触发第二终端的摄像头,对联系人进行自动拍摄;或者,第二终端的联系人手动拍摄;After the second terminal agrees to the first terminal, the camera of the second terminal is triggered to automatically capture the contact; or the contact of the second terminal is manually photographed;
第二终端将拍摄的照片通过TCP长连接返回给第一终端,并在传送照片时添加第二终端联系人头像的设置信息;The second terminal returns the captured photo to the first terminal through the TCP long connection, and adds setting information of the second terminal contact avatar when transmitting the photo;
第一终端根据第二终端联系人头像的设置信息对接收到的照片进行设置,生成第二终端的联系人头像,并将设置好的联系人头像存储到联系人数据库中。The first terminal sets the received photo according to the setting information of the second terminal contact avatar, generates a contact avatar of the second terminal, and stores the set contact avatar into the contact database.
和现有技术相比,本申请实施例提供的视频通话时生成联系人头像的方法和系统,能够在视频通话时方便用户设置联系人头像Compared with the prior art, the method and system for generating a contact avatar during a video call provided by the embodiment of the present application can conveniently set a contact avatar during a video call.
以上所描述的装置实施例仅仅是示意性的,其中所述作为分离部件说明的模块可以是或者也可以不是物理上分开的,作为模块显示的部件可以是或者也可以不是物理模块,即可以位于一个地方,或者也可以分布到多个网络模块上。可以根据实际的需要选择其中的部分或者全部模块来实现本实施例方案的目的。本领域普通技术人员在不付出创造性的劳动的情况下,即可以理解并实施。The device embodiments described above are merely illustrative, wherein the modules described as separate components may or may not be physically separate, and the components displayed as modules may or may not be physical modules, ie may be located A place, or it can be distributed to multiple network modules. Some or all of the modules may be selected according to actual needs to achieve the purpose of the solution of the embodiment. Those of ordinary skill in the art can understand and implement without deliberate labor.
通过以上的实施方式的描述,本领域的技术人员可以清楚地了解到各实施方式可借助软件加必需的通用硬件平台的方式来实现,当然也可以通过硬件。基于这样的理解,上述技术方案本质上或者说对现有技术做出贡献的部分可以以软件产品的形式体现出来,该计算机软件产品可以存储在计算机可读存储介质中,如ROM/RAM、磁碟、光盘等,包括若干指令用以使得一台计算机设备(可以是个人计算机,服务器,或者网络设备等)执行各个实施例或者实施例的某些部分所述的方法。Through the description of the above embodiments, those skilled in the art can clearly understand that the various embodiments can be implemented by means of software plus a necessary general hardware platform, and of course, by hardware. Based on such understanding, the above-described technical solutions may be embodied in the form of software products in essence or in the form of software products, which may be stored in a computer readable storage medium such as ROM/RAM, magnetic Discs, optical discs, etc., include instructions for causing a computer device (which may be a personal computer, server, or network device, etc.) to perform the methods described in various embodiments or portions of the embodiments.
最后应说明的是:以上实施例仅用以说明本申请的技术方案,而非对其 限制;尽管参照前述实施例对本申请进行了详细的说明,本领域的普通技术人员应当理解:其依然可以对前述各实施例所记载的技术方案进行修改,或者对其中部分技术特征进行等同替换;而这些修改或者替换,并不使相应技术方案的本质脱离本申请各实施例技术方案的精神和范围。 Finally, it should be noted that the above embodiments are only used to explain the technical solutions of the present application, rather than Limitations; although the present application has been described in detail with reference to the foregoing embodiments, those skilled in the art should understand that the technical solutions described in the foregoing embodiments may be modified or equivalently substituted for some of the technical features; The modifications and substitutions of the present invention do not depart from the spirit and scope of the technical solutions of the embodiments of the present application.

Claims (11)

  1. 视频通话时生成联系人头像的方法,其特征在于,包括:A method for generating a contact avatar during a video call, which is characterized by:
    当第一终端和第二终端视频通话时,第一终端向第二终端发送生成联系人头像请求消息;When the first terminal and the second terminal are in a video call, the first terminal sends a generate contact avatar request message to the second terminal;
    第二终端收到所述生成联系人头像请求消息后,对第二终端联系人进行拍摄,并将拍摄的照片返回给第一终端;After receiving the generating contact avatar request message, the second terminal captures the second terminal contact, and returns the captured photo to the first terminal;
    第一终端根据从第二终端接收到的照片,生成第二终端的联系人头像。The first terminal generates a contact avatar of the second terminal according to the photo received from the second terminal.
  2. 根据权利要求1所述的视频通话时生成联系人头像的方法,其特征在于,所述第一终端和第二终端视频通话的步骤具体为:The method for generating a contact avatar during a video call according to claim 1, wherein the step of the first terminal and the second terminal video call is specifically:
    第一终端和第二终端通过WebSocket或是Socket建立TCP长连接实现视频通话。The first terminal and the second terminal establish a TCP long connection through WebSocket or Socket to implement a video call.
  3. 根据权利要求2所述的视频通话时生成联系人头像的方法,其特征在于,所述第一终端向第二终端发送生成联系人头像请求消息的步骤包括:The method for generating a contact avatar message during a video call according to claim 2, wherein the step of the first terminal transmitting a contact avatar request message to the second terminal comprises:
    第一终端通过TCP长连接向第二终端发送生成联系人头像请求消息,所述生成联系人头像请求消息中包括请求的原因。The first terminal sends a generate contact avatar request message to the second terminal by using the TCP long connection, where the generated contact avatar request message includes the reason of the request.
  4. 根据权利要求3所述的视频通话时生成联系人头像的方法,其特征在于,所述第二终端收到所述生成联系人头像请求消息后,对第二终端联系人进行拍摄的步骤包括:The method for generating a contact avatar during a video call according to claim 3, wherein the step of capturing the second terminal contact after the second terminal receives the generating contact avatar request message comprises:
    第二终端接收第一终端发送的生成联系人头像请求消息后,判断是否同意在视频通话时生成联系人头像;After receiving the generated contact avatar request message sent by the first terminal, the second terminal determines whether to agree to generate a contact avatar during the video call;
    如果是,对第二终端联系人进行拍摄;If yes, take a picture of the second terminal contact;
    如果否,向第一终端发送生成联系人头像拒绝消息,所述生成联系人头像拒绝消息包括拒绝的理由或允许拍摄的时间。If not, sending a generate contact avatar rejection message to the first terminal, the generate contact avatar rejection message including the reason for the rejection or the time allowed for the shooting.
  5. 根据权利要求4所述的视频通话时生成联系人头像的方法,其特征在于,所述对第二终端联系人进行拍摄的步骤包括:The method for generating a contact avatar during a video call according to claim 4, wherein the step of capturing the second terminal contact comprises:
    如果第二终端同意第一终端拍摄后,触发第二终端的摄像头,对联系人进行自动拍摄;或者,第二终端的联系人手动拍摄。If the second terminal agrees to the first terminal to shoot, triggers the camera of the second terminal to automatically capture the contact; or the contact of the second terminal manually shoots.
  6. 根据权利要2所述的视频通话时生成联系人头像的方法,其特征在于,所述将拍摄的照片返回给第一终端的步骤包括:The method for generating a contact avatar during a video call according to claim 2, wherein the step of returning the photographed photo to the first terminal comprises:
    第二终端将拍摄的照片通过TCP长连接返回给第一终端,并在传送照片 时添加第二终端联系人头像的设置信息。The second terminal returns the photograph taken to the first terminal through the TCP long connection, and transmits the photo The setting information of the second terminal contact avatar is added.
  7. 根据权利要6所述的视频通话时生成联系人头像的方法,其特征在于,所述第一终端根据从第二终端接收到的照片,生成第二终端的联系人头像的步骤包括:The method for generating a contact avatar during a video call according to claim 6, wherein the step of the first terminal to generate a contact avatar of the second terminal according to the photo received from the second terminal comprises:
    第一终端根据第二终端联系人头像的设置信息对接收到的照片进行设置,生成第二终端的联系人头像,并将设置好的联系人头像存储到联系人数据库中。The first terminal sets the received photo according to the setting information of the second terminal contact avatar, generates a contact avatar of the second terminal, and stores the set contact avatar into the contact database.
  8. 一种设置为视频通话时生成联系人头像的系统,其特征在于,包括:A system for generating a contact avatar when a video call is generated, comprising:
    第一终端,设置为和第二终端视频通话时,向第二终端发送生成联系人头像请求消息;The first terminal is configured to send a contact avatar request message to the second terminal when the video is in a call with the second terminal;
    第二终端,设置为收到所述生成联系人头像请求消息后,对第二终端联系人进行拍摄,并将拍摄的照片返回给第一终端;The second terminal is configured to: after receiving the generating contact avatar request message, photographing the second terminal contact, and returning the photographed photo to the first terminal;
    所述第一终端,还设置为根据从第二终端接收到的照片,生成第二终端的联系人头像。The first terminal is further configured to generate a contact avatar of the second terminal according to the photo received from the second terminal.
  9. 根据权利要求8所述的设置为视频通话时生成联系人头像的系统,其特征在于,所述第一终端通过TCP长连接向第二终端发送生成联系人头像请求消息,所述生成联系人头像请求消息中包括请求的原因;The system for generating a contact avatar when a video call is set according to claim 8, wherein the first terminal sends a generate contact avatar request message to the second terminal by using a TCP long connection, where the generated contact avatar is generated. The request message includes the reason for the request;
    第二终端接收第一终端发送的生成联系人头像请求消息后,判断是否同意在视频通话时生成联系人头像;如果是,对第二终端联系人进行拍摄;如果否,向第一终端发送生成联系人头像拒绝消息,所述生成联系人头像拒绝消息包括拒绝的理由或允许拍摄的时间。After receiving the generated contact avatar request message sent by the first terminal, the second terminal determines whether to agree to generate a contact avatar during the video call; if yes, the second terminal contact is photographed; if not, sends the generated to the first terminal The contact avatar rejection message includes the reason for the rejection or the time allowed for the shooting.
  10. 根据权利要求9所述的设置为视频通话时生成联系人头像的系统,其特征在于,所述第二终端同意第一终端拍摄后,触发第二终端的摄像头,对联系人进行自动拍摄;或者,第二终端的联系人手动拍摄;The system for generating a contact avatar when a video call is set according to claim 9, wherein the second terminal agrees to trigger the camera of the second terminal to automatically capture the contact after the first terminal captures; or The contact of the second terminal is manually photographed;
    第二终端将拍摄的照片通过TCP长连接返回给第一终端,并在传送照片时添加第二终端联系人头像的设置信息;The second terminal returns the captured photo to the first terminal through the TCP long connection, and adds setting information of the second terminal contact avatar when transmitting the photo;
    第一终端根据第二终端联系人头像的设置信息对接收到的照片进行设置,生成第二终端的联系人头像,并将设置好的联系人头像存储到联系人数据库。The first terminal sets the received photo according to the setting information of the second terminal contact avatar, generates a contact avatar of the second terminal, and stores the set contact avatar into the contact database.
  11. 一种在其上记录有用于执行权利要求1所述方法的程序的计算机可读记录介质。 A computer readable recording medium having recorded thereon a program for executing the method of claim 1.
PCT/CN2016/088196 2015-12-10 2016-07-01 Method and system for generating head portrait of contact during video call WO2017096788A1 (en)

Applications Claiming Priority (2)

Application Number Priority Date Filing Date Title
CN201510922392.1A CN105897992A (en) 2015-12-10 2015-12-10 Method and system for generating a contact portrait during video call
CN201510922392.1 2015-12-10

Publications (1)

Publication Number Publication Date
WO2017096788A1 true WO2017096788A1 (en) 2017-06-15

Family

ID=57002375

Family Applications (1)

Application Number Title Priority Date Filing Date
PCT/CN2016/088196 WO2017096788A1 (en) 2015-12-10 2016-07-01 Method and system for generating head portrait of contact during video call

Country Status (2)

Country Link
CN (1) CN105897992A (en)
WO (1) WO2017096788A1 (en)

Citations (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101237557A (en) * 2008-02-21 2008-08-06 宇龙计算机通信科技(深圳)有限公司 A method, system and device for adding contact head image in video communication
CN101945175A (en) * 2010-09-26 2011-01-12 宇龙计算机通信科技(深圳)有限公司 Method and device for automatically adding contact information and mobile terminal
CN102510360A (en) * 2011-11-22 2012-06-20 中兴通讯股份有限公司 Method, device and system for setting head portrait of contact person
WO2012116484A1 (en) * 2011-02-28 2012-09-07 宇龙计算机通信科技(深圳)有限公司 Terminal and method for grouping photos in terminal
CN102957839A (en) * 2011-08-18 2013-03-06 腾讯科技(深圳)有限公司 Method and device for setting head portraits of contacts
CN103581602A (en) * 2012-07-20 2014-02-12 腾讯科技(深圳)有限公司 Method and system for automatically updating contact photo
CN104038609A (en) * 2014-06-27 2014-09-10 深圳市中兴移动通信有限公司 Method and device for setting contact head images

Family Cites Families (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101102454B (en) * 2007-06-29 2010-09-01 中兴通讯股份有限公司 Method for setting personalized head image information of business card via mobile phone video phone
CN101662540A (en) * 2009-08-24 2010-03-03 宇龙计算机通信科技(深圳)有限公司 Method, system and mobile terminal for prompting information of contact persons in video call
CN102361493A (en) * 2011-10-28 2012-02-22 上海华勤通讯技术有限公司 Mobile terminal and method for setting address list head portrait
CN105072266A (en) * 2015-07-31 2015-11-18 小米科技有限责任公司 Method and device for realizing instant chat and terminal equipment

Patent Citations (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101237557A (en) * 2008-02-21 2008-08-06 宇龙计算机通信科技(深圳)有限公司 A method, system and device for adding contact head image in video communication
CN101945175A (en) * 2010-09-26 2011-01-12 宇龙计算机通信科技(深圳)有限公司 Method and device for automatically adding contact information and mobile terminal
WO2012116484A1 (en) * 2011-02-28 2012-09-07 宇龙计算机通信科技(深圳)有限公司 Terminal and method for grouping photos in terminal
CN102957839A (en) * 2011-08-18 2013-03-06 腾讯科技(深圳)有限公司 Method and device for setting head portraits of contacts
CN102510360A (en) * 2011-11-22 2012-06-20 中兴通讯股份有限公司 Method, device and system for setting head portrait of contact person
CN103581602A (en) * 2012-07-20 2014-02-12 腾讯科技(深圳)有限公司 Method and system for automatically updating contact photo
CN104038609A (en) * 2014-06-27 2014-09-10 深圳市中兴移动通信有限公司 Method and device for setting contact head images

Also Published As

Publication number Publication date
CN105897992A (en) 2016-08-24

Similar Documents

Publication Publication Date Title
US11218649B2 (en) Photographing method, apparatus, and device
JP6466936B2 (en) Voice communication using real-time status notification
JP6594871B2 (en) Voice communication using real-time status notification
CN106464752B (en) Additional information about the caller
JP6382961B2 (en) Method and apparatus for acquiring video content
US9955134B2 (en) System and methods for simultaneously capturing audio and image data for digital playback
WO2014154003A1 (en) Method and apparatus for displaying self-taken images
WO2016146060A1 (en) Sharing method and device for picture
WO2010118611A1 (en) Method, system and device for intercepting dynamic image
CN106713127B (en) Method and device for acquiring and processing instant chat records
WO2021155702A1 (en) Communication processing method and device, terminal, server, and storage medium
CN110061904A (en) Obtain method, apparatus, system, electronic equipment and the storage medium of social information
KR20090029496A (en) Method and apparatus of managing image data stored during picture communication and system including the apparatus
CN109413340B (en) Processing method and device for generating album
WO2017096788A1 (en) Method and system for generating head portrait of contact during video call
CN109299048A (en) The method for handling data and issuing data
JP6856960B1 (en) Business card exchange method and equipment
JP5246592B2 (en) Information processing terminal, information processing method, and information processing program
US20160373504A1 (en) Method for sharing a digital content during communication
KR100631624B1 (en) How to handle privacy information on your mobile phone
WO2017185544A1 (en) Method, apparatus and system for acquiring information
JP2013145955A (en) Content sharing method, content sharing device and program
KR20120080379A (en) Method and apparatus of annotating in a digital camera
JP4791213B2 (en) COMMUNICATION DEVICE, COMMUNICATION METHOD, AND PROGRAM
CN114374682B (en) Data sharing method and system, storage medium and terminal equipment

Legal Events

Date Code Title Description
121 Ep: the epo has been informed by wipo that ep was designated in this application

Ref document number: 16871992

Country of ref document: EP

Kind code of ref document: A1

NENP Non-entry into the national phase

Ref country code: DE

122 Ep: pct application non-entry in european phase

Ref document number: 16871992

Country of ref document: EP

Kind code of ref document: A1