WO2022237494A1 - 通讯界面的显示方法、装置、电子设备和可读存储介质 - Google Patents

通讯界面的显示方法、装置、电子设备和可读存储介质 Download PDF

Info

Publication number
WO2022237494A1
WO2022237494A1 PCT/CN2022/088251 CN2022088251W WO2022237494A1 WO 2022237494 A1 WO2022237494 A1 WO 2022237494A1 CN 2022088251 W CN2022088251 W CN 2022088251W WO 2022237494 A1 WO2022237494 A1 WO 2022237494A1
Authority
WO
WIPO (PCT)
Prior art keywords
user
communication
target image
avatar
target
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.)
Ceased
Application number
PCT/CN2022/088251
Other languages
English (en)
French (fr)
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.)
Honor Device Co Ltd
Original Assignee
Honor Device 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 Honor Device Co Ltd filed Critical Honor Device Co Ltd
Publication of WO2022237494A1 publication Critical patent/WO2022237494A1/zh
Anticipated expiration legal-status Critical
Ceased legal-status Critical Current

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING OR CALCULATING; COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F16/00Information retrieval; Database structures therefor; File system structures therefor
    • G06F16/50Information retrieval; Database structures therefor; File system structures therefor of still image data
    • G06F16/58Retrieval characterised by using metadata, e.g. metadata not derived from the content or metadata generated manually
    • G06F16/583Retrieval characterised by using metadata, e.g. metadata not derived from the content or metadata generated manually using metadata automatically derived from the content
    • GPHYSICS
    • G06COMPUTING OR CALCULATING; COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F16/00Information retrieval; Database structures therefor; File system structures therefor
    • G06F16/70Information retrieval; Database structures therefor; File system structures therefor of video data
    • G06F16/78Retrieval characterised by using metadata, e.g. metadata not derived from the content or metadata generated manually
    • G06F16/783Retrieval characterised by using metadata, e.g. metadata not derived from the content or metadata generated manually using metadata automatically derived from the content
    • GPHYSICS
    • G06COMPUTING OR CALCULATING; COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F16/00Information retrieval; Database structures therefor; File system structures therefor
    • G06F16/70Information retrieval; Database structures therefor; File system structures therefor of video data
    • G06F16/78Retrieval characterised by using metadata, e.g. metadata not derived from the content or metadata generated manually
    • G06F16/783Retrieval characterised by using metadata, e.g. metadata not derived from the content or metadata generated manually using metadata automatically derived from the content
    • G06F16/7837Retrieval characterised by using metadata, e.g. metadata not derived from the content or metadata generated manually using metadata automatically derived from the content using objects detected or recognised in the video content
    • G06F16/784Retrieval characterised by using metadata, e.g. metadata not derived from the content or metadata generated manually using metadata automatically derived from the content using objects detected or recognised in the video content the detected or recognised objects being people
    • GPHYSICS
    • G06COMPUTING OR CALCULATING; COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F3/00Input arrangements for transferring data to be processed into a form capable of being handled by the computer; Output arrangements for transferring data from processing unit to output unit, e.g. interface arrangements
    • G06F3/01Input arrangements or combined input and output arrangements for interaction between user and computer
    • G06F3/048Interaction techniques based on graphical user interfaces [GUI]
    • G06F3/0481Interaction techniques based on graphical user interfaces [GUI] based on specific properties of the displayed interaction object or a metaphor-based environment, e.g. interaction with desktop elements like windows or icons, or assisted by a cursor's changing behaviour or appearance
    • GPHYSICS
    • G06COMPUTING OR CALCULATING; COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F3/00Input arrangements for transferring data to be processed into a form capable of being handled by the computer; Output arrangements for transferring data from processing unit to output unit, e.g. interface arrangements
    • G06F3/01Input arrangements or combined input and output arrangements for interaction between user and computer
    • G06F3/048Interaction techniques based on graphical user interfaces [GUI]
    • G06F3/0484Interaction techniques based on graphical user interfaces [GUI] for the control of specific functions or operations, e.g. selecting or manipulating an object, an image or a displayed text element, setting a parameter value or selecting a range
    • G06F3/04845Interaction techniques based on graphical user interfaces [GUI] for the control of specific functions or operations, e.g. selecting or manipulating an object, an image or a displayed text element, setting a parameter value or selecting a range for image manipulation, e.g. dragging, rotation, expansion or change of colour

Definitions

  • the embodiments of the present application relate to mobile communication technology, and in particular to a display method, device, electronic device and readable storage medium of a communication interface.
  • the call application is a frequently used application in the terminal device.
  • the user With the increase of user's personalized demand for terminal equipment, the user also needs a personalized call interface.
  • the call interface of the terminal device is the default interface.
  • the terminal device displays the same call interface, which cannot meet the personalized needs of the user.
  • Embodiments of the present application provide a communication interface display method, device, electronic device, and readable storage medium, which can enrich the communication interface and improve user experience.
  • the embodiment of the present application provides a method for displaying a communication interface.
  • the execution subject of the method may be the first device (the device that initiates the communication) or the second device (the device that receives the communication).
  • the execution subject is as follows:
  • the first device is taken as an example for description.
  • the communication can be, but not limited to, calls, text messages, video chats, etc.
  • the first device may detect whether the first user has set an avatar for communication, and detect whether the second user has set an avatar for communication.
  • whether the second user sets an avatar for communication can be understood as: whether the first user sets an avatar for the second user on the first device for communication.
  • the first device belongs to the first user, and the second device belongs to the second user.
  • the communication application that initiates the communication request is a call application, and the first device responds to initiating a call request to the second device, and the first device can detect whether the first user sets a call avatar, and detect whether it is the second user Set the avatar for the call.
  • the terminal device may acquire the target image including the face of the target avatar in the database based on the facial recognition result of the target avatar.
  • the target avatar is an avatar set by the first user and/or the second user for communication.
  • the target avatar may be the avatar of the first user and/or the avatar of the second user.
  • the database may be an album in the first device, and the database includes at least one image and/or video.
  • the terminal device may recognize the face included in the target avatar, and then query the database for the target image including the face of the target avatar. After the terminal device acquires the target image, it can superimpose the preset communication interface with the target image, obtain the communication interface requested by the communication, and display the communication interface.
  • the target image may be an image in a database or a frame of an image in a video.
  • the preset communication interface includes: a call request interface and a call interface.
  • the communication interfaces of the first device and the second device are all preset communication interfaces.
  • the terminal device may superimpose and display target images of the faces of both users on the communication interface based on the avatars of both users in the communication, so as to enrich the communication interface.
  • the target image includes the faces of the users of both parties in the communication, the relationship between the users of the two parties in the communication can be increased and the user experience can be improved.
  • the terminal device can query the user information of the call application, the user information includes at least one user ID and avatar stored in the first device, and the user ID can be the user's phone number and/or user's first name. Based on the user's information, the first user's phone number and/or name, and the second user's phone number and/or name, the terminal device can inquire whether the user's information includes the first user's avatar and the second user's profile picture. avatar. Wherein, if the avatar of the first user is queried in the information of the user, it is determined that the avatar of the first user is set, and if the avatar of the second user is queried in the information of the user, it is determined The second user sets an avatar.
  • the manner in which the terminal device obtains the target image in the database may be as follows: the terminal device obtains the first facial feature of the face included in the target's avatar, obtains each image and/or each frame of the video image includes The second facial feature of the face; obtaining the similarity between the first facial feature and the second facial feature; using the image corresponding to the second facial feature whose similarity is greater than a preset threshold as the target image.
  • the terminal device may use an image in the database with a similarity greater than a preset threshold as the target image.
  • the preset communication interface includes at least one element, and the element may be text, an image, a control operable by the user, and the like.
  • the terminal device may superimpose the target image on a layer lower than the layer where the at least one element is located, and use the target image as the background of the preset communication interface.
  • the terminal device can superimpose the target image at the preset position of the preset communication interface, and the target image can be on the same layer as the at least one element, or on a different layer.
  • the target image may not cover the controls on the preset communication interface, so as to improve user experience.
  • the terminal device when the terminal device inquires multiple target images in the database, the terminal device can superimpose the preset communication interface on each target image to obtain at least two communication requests of the communication request interface, and then scroll and display the at least two communication interfaces, so that the first user can watch the target image scrolling and playing.
  • the terminal device can scroll and display multiple target images on the preset communication interface, which can also achieve the purpose of the first user viewing the scrolling and playing target images.
  • the terminal device may Display the default communication interface.
  • the terminal device may The image of the same date and/or the same location in the database is used as the target image, so that the user can watch the image of the same date and/or the same location in the database, which resonates with the user and improves user experience.
  • the terminal device may also display the target image on the poster based on the shooting date or shooting location of the target image.
  • the target poster template related to the shooting date or shooting location from the template library; superimpose the target image on the preset area of the target poster template to obtain the target poster, and combine the preset communication interface with the target poster Overlay, and then display the communication interface with the target poster superimposed.
  • the terminal device may obtain a target poster template related to New Year's Day in the poster template library, and then superimpose the target image on the target poster template related to New Year's Day to obtain the target poster, and then The target poster is superimposed and displayed on the preset communication interface to improve user experience.
  • a desktop card can be displayed on the interface of the terminal device.
  • the desktop card displays the profile picture of the second user or the duration of the communication, etc. single.
  • the terminal device after the terminal device acquires the target image containing the face of the target avatar in the database, it can also query the running status of the communication application to detect whether the communication application is running in the foreground, and the running A state indicates that the communication application is running in the foreground or in the background.
  • the terminal device can superimpose the preset communication interface with the target image to obtain the communication interface and display the communication interface, or display the communication interface superimposed with the target poster.
  • the terminal device can execute the method described above.
  • the terminal device may generate a desktop card based on the target image, the desktop card includes the target image, and display the desktop card on the desktop.
  • the desktop card is used to represent a shortcut entry for initiating a communication request to the second device, or to represent that the communication application is running.
  • the terminal device may adjust the size of the target image to be the same as the size of the desktop card, and then superimpose and display the target image on the position displayed on the desktop card.
  • the terminal device when there are multiple target images, can scroll and superimpose the display of the target images on the position displayed on the desktop card, so that when the communication application is running in the background, the user can view the target images on the desktop of the terminal device, Can enrich desktop cards.
  • the embodiment of the present application provides a communication interface display device, including:
  • a processing module configured to: respond to a communication request initiated by the first device to the second device, and detect whether the first user and the second user have set avatars for communication, the first device belongs to the first user, and the second user The second device belongs to the second user; if so, based on the facial recognition result of the target avatar, the target image containing the face of the target avatar is obtained in the database, and the target avatar is the first user and/or the target avatar The avatar used for communication set by the second user; the preset communication interface is superimposed on the target image to obtain the communication interface of the communication request.
  • the display module is used to display the communication interface.
  • the processing module is specifically configured to: query information about a user of the communication application that initiated the communication request, where the user information includes at least one user ID and avatar; based on the first The user's identity, if the avatar of the first user is found in the information of the user, it is determined that the avatar is set by the first user; based on the identity of the second user, if the avatar of the first user is queried in the information of the user If the avatar of the second user is found, it is determined that the avatar is set by the second user.
  • the database includes at least one image and/or video.
  • the processing module is specifically used to: acquire the first facial features of the face included in the target head portrait; acquire the second facial features of the face included in each image and/or each frame image of the video; acquire the The similarity between the first facial feature and the second facial feature; using the image corresponding to the second facial feature whose similarity is greater than a preset threshold as the target image.
  • the processing module is specifically configured to: superimpose the target image on a layer lower than the layer where the at least one element is located.
  • the processing module is specifically configured to: superimpose the preset communication interface on each target image to obtain at least two communication interfaces of the communication request.
  • the display module is further configured to scroll and display the at least two communication interfaces.
  • the processing module is specifically configured to: acquire a target poster template related to the shooting date or shooting location from a poster template library based on the shooting date or shooting location of the target image; Superimposing the target image on the preset area of the target poster template to obtain a target poster; superimposing the preset communication interface on the target poster.
  • the processing module is further configured to: detect whether the communication application that initiates the communication request is running in the foreground; if the communication application is running in the foreground, connect the default communication interface with the target image overlay.
  • the processing module is further configured to: if the communication application is running in the background, generate a desktop card based on the target image, the desktop card includes the target image, and the desktop The card is used to represent a shortcut entry for initiating a communication request to the second device, or to represent that the communication application is running.
  • the display module is also used to display the desktop card on the desktop.
  • the processing module is specifically configured to: query the running state of the communication application to detect whether the communication application is running in the foreground, and the running state indicates that the communication application is running in the foreground or in the background .
  • the processing module is further configured to: if no face is detected in the target avatar, or neither the first user nor the second user has set an avatar, based on the current date and /location, using the images of the same date and/or the same location in the database as the target image.
  • the display module is further configured to: display the preset communication interface if neither the first user nor the second user has set an avatar for communication.
  • the communication application that initiates the communication request is a call application
  • the communication request is a call request
  • the preset communication interface includes: a call request interface and a call interface.
  • the embodiment of the present application provides a display device for a communication interface, and the display device for the communication interface may be the above-mentioned first device or the second device.
  • the display device of the communication interface includes: a processor and a memory; wherein, the memory is used to store computer-executable program codes, and the program codes include instructions; when the processor executes the instructions, the instructions cause the display device of the communication interface to perform the following steps: One way.
  • the display device of the communication interface may further include: a display, which is used for displaying the communication interface or the preset communication interface described in the first aspect above.
  • the embodiment of the present application provides a communication interface display device, including a unit, module or circuit for performing the method provided in the above first aspect.
  • the display device of the communication interface may be the first device or the second device, or a module applied to the first device or the second device, for example, may be a chip applied to the first device or the second device.
  • the embodiment of the present application provides a computer program product including instructions, which, when run on a computer, causes the computer to execute the method of the first aspect above.
  • the embodiment of the present application provides a computer-readable storage medium, the computer-readable storage medium stores instructions, and when it is run on a computer, it causes the computer to execute the method of the above-mentioned first aspect.
  • An embodiment of the present application provides a communication interface display method, device, electronic device, and readable storage medium.
  • the method includes: in response to the first device initiating a communication request to the second device, detecting whether the first user and the second user have set For the avatar used for communication, the first device belongs to the first user, and the second device belongs to the second user; if so, based on the facial recognition result of the target avatar, obtain the information containing the target in the database A target image of the face of the avatar, the target avatar is the avatar set by the first user and/or the second user for communication; the preset communication interface is superimposed on the target image to obtain the communication request communication interface; display the communication interface.
  • the terminal device can superimpose and display images containing the faces of both users on the preset communication interface based on the avatars of both users in communication. On the one hand, it can enrich the communication interface, and on the other hand, it can increase the number of users on both sides of the communication. connection to improve user experience.
  • FIG. 1 is a schematic diagram of an existing call interface
  • FIG. 2A is a schematic flowchart of an embodiment of a method for displaying a communication interface provided by an embodiment of the present application
  • FIG. 2B is a schematic diagram of layer overlay provided by the embodiment of the present application.
  • FIG. 3 is a schematic diagram of a communication interface provided by an embodiment of the present application.
  • FIG. 4 is a schematic diagram of a carousel provided by an embodiment of the present application.
  • FIG. 5 is a schematic flowchart of another embodiment of a method for displaying a communication interface provided by the embodiment of the present application.
  • FIG. 6 is a schematic flowchart of another embodiment of a method for displaying a communication interface provided by an embodiment of the present application.
  • FIG. 7 is another schematic diagram of carousel provided by the embodiment of the present application.
  • FIG. 8 is a schematic flowchart of another embodiment of a method for displaying a communication interface provided by an embodiment of the present application.
  • FIG. 9 is a schematic diagram of another communication interface provided by the embodiment of the present application.
  • FIG. 10 is a schematic diagram of another communication interface provided by the embodiment of the present application.
  • FIG. 11 is a schematic diagram of another communication interface provided by the embodiment of the present application.
  • FIG. 12 is a schematic structural diagram of a display device of a communication interface provided by an embodiment of the present application.
  • FIG. 13 is a schematic structural diagram of an electronic device provided by an embodiment of the present application.
  • FIG. 1 is a schematic diagram of an existing call interface.
  • the user can trigger the terminal device to display the "desktop quick setting" interface.
  • the terminal device can trigger the terminal device to display the "desktop quick setting" interface.
  • the user presses and holds two fingers on the desktop of the terminal device, and moves the two fingers closer to trigger the terminal device to display the "desktop quick setting” interface.
  • Controls related to “desktop settings” can be displayed on the “desktop quick settings” interface, such as a wallpaper control 101 , a widget control 102 , a switching effect control 103 , and a desktop setting control 104 .
  • the wallpaper control 101 is used for the user to set the wallpaper of the desktop
  • the switching effect control 103 is used for the user to set the switching effect of each page on the desktop
  • the desktop setting control 104 is used for the user to set the layout of the icons of each application program on the desktop.
  • Widget control 102 is used for users to add shortcut tools on the desktop, such as quick-dial contacts, one-key lock screen, etc.
  • the embodiment of the present application does not repeat the function of widget control 102, the following embodiments
  • the user operates the widget control 102 to set up contacts for speed dialing as an example for illustration.
  • the "desktop quick settings" interface may be called a desktop widget.
  • the user selects the widget control 102, and the interface of the terminal device may jump to the interface shown in c in FIG. 1 .
  • multiple shortcut tools to be added to the desktop of the terminal device may be displayed on the interface of the terminal device, such as contacts 1021 , email 1022 and memo 1023 .
  • the user operates the contact 1021 to set a contact for speed dialing.
  • the process of setting a contact for speed dialing by the user is not shown in FIG. 1 , and the current setting process can be referred to.
  • the interface of the terminal device may display a card 10211 of the contact for speed dialing.
  • the e shown in FIG. 1 is the dial interface for the terminal device to dial the contact.
  • the dial interface may be referred to as a call request interface.
  • the card 10211 of the contact of the speed dial can display the name of the contact, and the dial interface can display the name of the contact, as shown in Figure 1 not shown.
  • the card 10211 of the contact of the speed dial can display the avatar 10212 and the phone control 10213 of the contact, corresponding Yes, the avatar 10212 of the contact may be displayed on the dialing interface of e in FIG. 1 .
  • the terminal device may display a call interface between the user and the contact of the speed dial, and the call interface may display the avatar 10212 of the contact, which is not shown in FIG. 1 .
  • the terminal device can display an interface as shown in f in FIG. 1 .
  • a capsule icon 10214 may be displayed on the upper left corner of the desktop of the terminal device.
  • the capsule icon 10214 can display the phone control and the text of "call" to remind the terminal device that the contact is calling and the call is not connected.
  • the f in Figure 1 means that the call is not connected Take this as an example.
  • the capsule icon 10214 may display phone controls and call duration to represent that the user is talking with the contact.
  • the call application running in the foreground can be characterized as: the interface of the terminal device displays the interface of the call application, and the call application running in the background can be characterized as: the interface of the terminal device displays the interface of other applications, and the interface of other applications
  • An icon for switching to the calling application may be displayed on the screen, and the user may click the icon for switching to the calling application to make the calling application run in the foreground.
  • the dialing interface and the calling interface are collectively referred to as the communication interface.
  • the communication interface of the terminal device is a default interface, and the default interface may include the user's name or avatar in a single style.
  • the embodiment of the present application provides a method for displaying a communication interface, which can generate a communication interface based on the avatars of users on both sides of the communication, enriches the communication interface of the terminal device, and can improve user experience.
  • the terminal device in this embodiment of the present application may be a mobile device or a fixed device.
  • Terminal devices may be, but are not limited to: mobile phones, tablet computers, notebook computers, wearable devices, smart screens, smart home appliances, Internet of Things (Internet of Things, IoT) devices, vehicle-mounted devices, and the like.
  • the terminal device may also be a personal digital assistant (PDA), a handheld device with wireless communication capability, a computing device, a virtual reality (virtual reality, VR) terminal device, a drone device, an augmented reality ( Augmented reality (AR) terminal equipment, wireless terminals in smart home (smart home), etc.
  • PDA personal digital assistant
  • the form of the terminal device is not limited in this embodiment of the application.
  • FIG. 2A is a schematic flowchart of an embodiment of a method for displaying a communication interface provided by an embodiment of the present application.
  • the display method of the communication interface provided by the embodiment of the present application may include:
  • S201 in response to initiating a call request to the called end, detect whether the calling user and the called user both set avatars; if yes, perform S202-S203, and if not, perform S204.
  • the calling end is the device that initiates the call actively, and the user to which the calling end belongs is the calling user.
  • the called terminal is the device that receives the call, and the user to which the called terminal belongs is the called user.
  • the calling end can be replaced by the "first device”
  • the called end can be replaced by the "second device”
  • the calling user can be replaced by the first user to which the first device belongs.
  • the called user may be replaced by the second user to which the second device belongs.
  • the above S201 may be replaced by: in response to initiating a communication request to the second device, detecting whether the first user and the second user both set avatars.
  • the communication application is used as an example for illustration.
  • the called user may be a contact to which any phone number belongs, or any contact in the contact list of the calling terminal's address book, or a contact of the speed dial set by the calling user.
  • the called user may be the speed dial contact "Zhang San" as shown in FIG. 1 above. The following description takes the calling terminal as a terminal device and the called user as an example of a speed dial contact set by the calling user.
  • the calling user can set avatars for the calling user and the called user in advance.
  • the calling user can set avatars for the calling user and the called user in the contact list of the address book.
  • the process of setting the avatars for the calling user as the calling user and the called user I won't go into details. Whether the calling user sets the avatar can be understood as: whether the calling user has set the avatar in the call application for the calling user, and whether the called user has set the avatar can be understood as: whether the calling user has set the avatar for the called user in the call application Set an avatar in .
  • the calling user can find the contact of the speed dial in the contact list of the address book, and then trigger the terminal device to initiate a call request to the called terminal.
  • the calling user can operate the contact card of the speed dial on the desktop of the terminal device to trigger the terminal device to initiate a call request to the called terminal. Let's take a person's card as an example. Referring to d in Figure 3, the calling user can click on the card 10211 of the contact of the speed dial on the desktop of the terminal device to trigger the terminal device to initiate a call request to the called terminal, and d in Figure 3 can refer to the A related description of d.
  • the terminal device in response to initiating a call request to the called terminal, the terminal device may detect whether the calling user sets an avatar, and detect whether the calling user sets an avatar for the called user.
  • the terminal device may store contact information, and the contact information may include at least one contact, and the at least one contact may include a calling user and a called user.
  • the information of the contact may include but not limited to: the profile picture, name, phone number, email and ringtone of the contact.
  • the user when storing the contact's phone number, name, and email address, the user can set an avatar and a ringtone for the contact, and the ringtone can be the contact's incoming ringtone.
  • the contact information may be referred to as user information.
  • the terminal device can query contact information, detect whether the calling user has set an avatar, and detect whether the calling user has set an avatar for the called user. Wherein, taking the terminal device detecting whether the calling user sets an avatar as an example, the terminal device may query whether the contact information includes the calling user's avatar based on the calling user's phone number and/or name. If the avatar of the calling user is included in the information of the contact, it is determined that the avatar is set by the calling user, and if the avatar of the calling user is not included in the information of the contact, it is determined that the avatar of the calling user is not set.
  • the terminal device when the terminal device initiates a call request to the called terminal, the terminal device can obtain the called user's name and/or phone number, and then can based on the called user's name and/or phone number and contact person information to detect whether the called user has set an avatar.
  • the terminal device detects whether the calling user sets an avatar for the called user, which can be understood as: the terminal device inquires whether the contact information includes the avatar of the called user, for details, refer to the relevant description of the calling user.
  • the avatar of the contact stored in the information of the contact may be replaced by: an identifier of whether to store the avatar of the contact, which is used to indicate whether the terminal device stores the avatar of the contact, that is, it may indicate whether it is Contact set avatar.
  • an identifier of whether to store the avatar of the contact which is used to indicate whether the terminal device stores the avatar of the contact, that is, it may indicate whether it is Contact set avatar.
  • 0 indicates that the avatar of the contact has not been set
  • 1 indicates that the avatar of the contact has been set.
  • the terminal device can determine whether both the calling user and the called user have set avatars by querying "whether to store the identification of the avatar of the contact" in the information of the contact.
  • the terminal device inquires about the calling user and the corresponding "identity of whether to store the avatar of the contact" is 1, it may be determined that the calling user has set the avatar. It should be understood that in the embodiment of the present application, there is no limitation on the format of the contact information stored in the terminal device.
  • S202 Perform face recognition on the avatar of the calling user and the avatar of the called user, and acquire the target image in the database of the terminal device.
  • both the calling user and the called user set avatars.
  • the terminal device can perform face recognition on the avatar of the calling user and the avatar of the called user, so as to query the target containing the face in the avatar of the calling user and the face in the avatar of the called user in the database of the terminal device image.
  • the database of the terminal device may be an image database of the terminal device, such as a photo album. Multiple images and videos may be included in the database of the terminal device.
  • the terminal device can perform face recognition on the avatar of the calling user and the avatar of the called user, and based on the facial recognition result, acquire the face in the avatar of the calling user and the face of the called user in the database.
  • the avatar of the calling user and the avatar of the called user may be referred to as target avatars.
  • the terminal device can perform face recognition on the avatar of the calling user and the avatar of the called user, so as to obtain the first facial feature of the face included in the avatar of the calling user, and obtain the first facial features included in the avatar of the called user. Secondary facial features of the face. Based on the first facial feature and the second facial feature, the terminal device may query a database of the terminal device to acquire the target image.
  • the terminal device may obtain each image and the third facial feature of the face included in each frame of the video, and then based on the first facial feature, the second facial feature, and the third facial feature features, get the target image.
  • the terminal device can obtain the first similarity between the third facial feature and the first facial feature, and the second similarity between the third facial feature and the second facial feature, and combine the first similarity and the second similarity
  • the image corresponding to the third facial feature greater than the preset threshold is used as the target image.
  • the terminal device in order to reduce the workload of the terminal device to obtain the third facial features, can first obtain candidate images containing faces in the database, and then perform facial recognition on the candidate images to obtain candidate images The third facial feature.
  • the terminal device may acquire the target image based on the first facial feature, the second facial feature, and the third facial feature.
  • the database includes image 1, image 2 and image 3, image 1 is a landscape image that does not contain a face, image 2 is an image that contains user A's face, and image 3 is an image that contains user B's face image.
  • the terminal device can use image 2 and image 3 that contain faces as candidate images, and then perform face recognition on image 2 and image 3, without performing face recognition on image 1, image 2, and image 3, which can reduce the number of faces on the terminal device. The amount of computation to identify.
  • the calling user is user A
  • the called user is user B
  • the avatar of user A is a full-body photo of user A
  • the avatar of user B is a full-body photo of user B
  • the target image For: the database contains images of user A's face and user B's face. It should be noted that, in addition to the face in the avatar of the calling user and the face in the avatar of the called user, the target image may also include faces of other users.
  • the first facial features and the second facial features may be the same or different, that is, the faces in the avatars of the calling user and the avatars of the called user may be the same or different.
  • the avatar of the calling user or the avatar of the called user does not include a face.
  • the description below takes an example where the avatar of the calling user includes a face and the avatar of the called user does not include a face.
  • the terminal device may obtain the target image based on the third facial feature and the first facial feature, wherein the terminal device may obtain the first similarity between the third facial feature and the first facial feature, and compare the first An image corresponding to the third facial feature whose similarity is greater than a preset threshold is used as the target image.
  • the target image is: the image containing user A's face in the database.
  • neither the avatar of the calling user nor the avatar of the called user contains a face.
  • the terminal device may display a preset communication interface, as shown in e in FIG. 1 above.
  • the terminal device may acquire the target image based on the current date and/or location. It should be understood that the images in the database are correspondingly stored with a date tag and a location tag, etc., the date tag is used to represent the shooting date of the image, and the location tag is used to represent the shooting location of the image.
  • the terminal device may acquire the target image based on the current date and/or location, and date tags of images in the database, as well as location tags. Taking the current date as an example, the terminal device can use the image of the same date in the historical year in the database as the target image. Exemplarily, if the current date is May 20, the terminal device may use the image captured on May 20 last year in the database as the target image.
  • the terminal device can use the preset festival image and/or sights images as target images.
  • a preset image set may be stored in the terminal device, and the preset image set includes preset images related to festivals such as Spring Festival, Christmas, and Mid-Autumn Festival, and/or preset images of various scenic spots.
  • the terminal device may use the preset festival image and/or scenic spot image as the target image.
  • the terminal device may use a preset image related to the Spring Festival in the preset image set as the target image.
  • the terminal device after the terminal device acquires the target image, it can store the target image in correspondence with the called user's identity, so that the terminal device receives the call from the called user, and the terminal device sends the called user's call again.
  • the target image corresponding to the called user can be obtained based on the identifier of the called user, so as to prevent the terminal device from re-acquiring the target image, thereby reducing the calculation amount of the terminal device.
  • the identifier of the called user may be, but not limited to: the called user's phone number, name or avatar.
  • the above S202 can be replaced by: , and the avatar of the called user to perform facial recognition, acquire a new target image in the newly added image and/or video, and use the historically stored target image and the new target image as the target image.
  • the terminal device For the terminal device to acquire a new target image in the newly added image and/or video, reference may be made to the relevant description above.
  • the terminal device when the terminal device acquires the target image, it can also acquire the date and/or location of the target image.
  • the default communication interface can be understood as: the default communication interface of the communication application.
  • the default communication interface may be as shown in e in FIG. 1 above.
  • the terminal device can superimpose and display the target image on the preset communication interface, which can be understood as: the terminal device can create a new layer under the layer where at least one element included in the preset communication interface is located, the The newly created layer may be referred to as a lower layer of the layer where the at least one element is located, and the terminal device may superimpose the target image on the lower layer.
  • the layers of elements included in the default communication interface are above the layer of the target image.
  • the preset communication interface may include at least one element, and the elements may be but not limited to: text, images and user-operable controls on the preset communication interface.
  • the target image can be used as the background image of the preset communication interface.
  • At least one element included on the preset communication interface is a "hang up” control 10216 and a “sound amplification” control 10217.
  • the target image 10215 is superimposed on the lower layer of the layer where the control 10217 is located. As such, the user can also operate the "hang up” control 10216 and the “speak out” control 10217.
  • the terminal device may superimpose and display the target image in a full screen on the preset communication interface, for example, the target image may be used as a background image of the preset communication interface.
  • the terminal device can superimpose and display the target image at a preset position on the preset communication interface, wherein the target image can be in the same layer as the elements on the preset communication interface, or the target image can be in at least one element The layer below the layer where it is located, or the target image is in a layer above the layer where at least one element is located, which is not limited in this embodiment of the present application.
  • the size of the target image is small, for example, when the size of the target image is smaller than a preset size, the terminal device may superimpose the target image on a layer where elements on the preset communication interface are located.
  • the terminal device may adjust the size of the target image to the preset size, and superimpose the target image on the layer where the elements on the preset communication interface are located. It is worth noting that, in this embodiment, the terminal device superimposes and displays the target image at the preset position on the preset communication interface, and the target image does not cover the elements on the preset communication interface, which can ensure that the user can control the elements (such as controls) operation.
  • the embodiment of the present application does not limit the manner in which the terminal device superimposes the target image on the preset communication interface.
  • the above S203 may be replaced by: superimposing the preset communication interface with the target image, obtaining the communication interface of the communication request, and displaying the communication interface.
  • the terminal device can superimpose and display the target image in full screen, if the target image is smaller than the size of the preset communication interface, the terminal device can align and display the upper boundary of the target image with the upper interface of the preset communication interface, which is not limited in this embodiment of the present application. If the size of the target image is larger than the size of the preset communication interface, the terminal device can overlap the center position of the target image with the center position of the preset communication interface to superimpose and display the target image, and do not display any part of the target image that exceeds the preset communication interface. part outside the dimensions. In an embodiment, the terminal device may also adjust the size of the target image to be the same as the size of the preset communication interface based on the size of the target image and the size of the preset communication interface, and then display the target image in full screen.
  • the target image is one, and the terminal device superimposes and displays the target image at the preset position of the preset communication interface as an example for illustration.
  • the calling user is user A
  • the called user is Zhang San
  • the avatar of user A is a half-body photo of user A
  • the avatar of Zhang San is a half-body photo of Zhang San
  • the target image is: the database contains user A The face of and the image of Zhang San's face.
  • the terminal device can superimpose and display a target image 10215 on the preset communication interface.
  • the target image 10215 is a group photo of user A and Zhang San, and the target image is located in the lower layer of the preset communication interface (dialing interface) , the user can still select the controls on the preset communication interface, such as the "hang up” control 10216 and the "amplification” control 10217.
  • the target image in order to clearly show that the target image is superimposed and displayed on the preset communication interface, the target image is represented by a dotted line frame, and only the "hang up" control 10216 and the "amplification” control 10217 are shown in e in FIG. 3 , other elements on the interface are not shown, which can be referred to as shown in e in FIG. 1 .
  • e in FIG. 3 is the dialing interface.
  • the dialing interface can jump to the call interface, and the terminal device can superimpose and display the target image on the call interface, as shown in f in FIG. 3 .
  • the dial interface and the call interface may be collectively referred to as a communication interface.
  • the terminal device when the terminal device obtains the target image, if the date and/or location of the target image is obtained, the terminal device can superimpose and display the target image on the preset communication interface, it can Overlay displays the date and/or location of the target image.
  • the date and location of the superimposed display of the target image in e and f in FIG. 3 are taken as an example for illustration, such as "May 20, Xi'an".
  • the terminal device can rotate the preset communication interface after superimposing the target image, as shown in a and b in Figure 4, it should be understood that a and b in Figure 4 are taken as an example on the dial interface Be explained.
  • the terminal device can superimpose the preset communication interface with each target image to obtain at least two communication interfaces requested by the communication, and then display the at least two communication interfaces in rotation.
  • the terminal device displays the at least two communication interfaces in rotation, which may also be referred to as: the terminal device scrolls and displays the at least two communication interfaces.
  • the terminal device can scroll and display the multiple target images on the preset communication interface, and the purpose of displaying multiple target images can also be achieved.
  • the terminal device can superimpose and display the target images on the preset communication interface according to the sequence of the shooting time of the target images, so that the terminal device can rotate the preset communication interface after the superimposed target images.
  • the terminal device may rotate the preset communication interface after the target image is superimposed: displaying the preset communication interface after a target image is superimposed every preset time period.
  • the terminal device may display a preset communication interface superimposed with a target image every 2s, or it may be understood as: the terminal device may scroll and display a target image every 2s on the preset communication interface.
  • the terminal device can detect whether the calling user or the called user has set avatars, and then obtain the target image based on the avatars of the calling user or the called user, and detect Whether to set an avatar for the calling user or the called user, and to obtain the target image can refer to the relevant description above.
  • S205 Perform facial recognition on the avatar of the target user, and acquire the target image in the database of the terminal device, where the target user is the calling user or the called user.
  • the target user is the calling user or the called user.
  • the terminal device may acquire the first facial feature in the avatar of the calling user, and acquire the third facial feature of the candidate image, and then based on the first facial feature and the third facial feature
  • the feature is to acquire the target image, for details, please refer to the relevant description of the above S202.
  • the avatar of the target user may be referred to as a target avatar, and the target image is the avatar of the calling user or the avatar of the called user.
  • the terminal device may display a preset communication interface.
  • the terminal device in order to increase the interest of the call, when the target user's avatar does not include a face, the terminal device can acquire the target image based on the current date and/or location, and reference can be made to the relevant description above.
  • the terminal device after the terminal device executes S205, it may execute the foregoing S203.
  • the terminal device may display a preset communication interface.
  • the terminal device may acquire the target image based on the current date and/or location, and reference may be made to the above related description.
  • the terminal device can obtain the target image based on the avatars of the users of both communication parties to enrich the communication interface.
  • the called terminal can detect whether the calling user and the called user have both set avatars, and then perform the relevant steps in the above-mentioned embodiments to achieve the purpose of superimposing the target image on the preset communication interface of the called terminal, which can enrich the called terminal's
  • the called terminal may respond to the call request from the calling terminal, based on the calling user's phone number or name, and detect whether the calling user sets an avatar.
  • the display method of the communication interface includes: in response to initiating a call request to the called terminal, the terminal device detects whether the calling user and the called user both set avatars, if both the calling user and the called user set avatars, Face recognition can be performed on the avatar of the calling user and the avatar of the called user, the target image can be acquired in the database of the terminal device, and the target image can be superimposed and displayed on the preset communication interface.
  • the terminal device can obtain the target image containing the faces in the avatars of both users in the database based on the avatars of both users in the communication, and then superimpose and display the target image on the preset communication interface, which can enrich the communication interface .
  • the target image includes the faces in the avatars of both users of the communication, the two users of the communication can see the images of the two parties during the communication process, which can increase the association of the two users of the communication and improve the user experience.
  • S201 may be replaced by S201A
  • S201-S206 may be replaced by S202A-S204A.
  • S201A in response to initiating a call request to the called end, detect whether the calling user and the called user have set avatars; if yes, perform S202A-S203A, and if not, perform S204A.
  • execution subject in this embodiment of the present application may be the calling end (first device) or the called end (second device).
  • S202A Perform facial recognition on the avatar of the target user, and acquire the target image in the database of the terminal device, where the target user is the calling user and/or the called user.
  • the target user may be a calling user and/or a called user, and the target user is: a user whose avatar is set among the calling user and the called user.
  • the target image is: an image containing the face in the avatar of the calling user and/or the face in the avatar of the called user in the database.
  • the avatar of the target user may be called a target avatar, and the target avatar may be the avatar of the calling user or the avatar of the called user.
  • the feature of the face included in the avatar of the target user may be the first facial feature
  • the feature of the face included in each image in the database and/or in each frame of the video is the second facial feature
  • the terminal The device may acquire the similarity between the first facial feature and the second facial feature, and use an image corresponding to the second facial feature whose similarity is greater than a preset threshold as a target image.
  • S201A, S203A, and S204A refer to S201, S203, and S207, respectively.
  • a capsule icon 10214 is displayed on the upper left corner of the desktop of the terminal device, and a card 10211 of a speed dial contact may be displayed on the desktop of the terminal device, and the card 10211 shows is the avatar of the contact on the speed dial, and the style of the card is single.
  • the display method of the communication interface provided by the embodiment of the present application can not only superimpose and display the target image on the above communication interface, but also generate desktop cards based on the target image, thereby enriching the desktop cards and improving user experience. It should be understood that the desktop card is used to represent a shortcut entry for making a call to a contact on the speed dial.
  • the terminal device may execute after acquiring the target image, that is, after S202 and after S205:
  • the terminal device After the terminal device acquires the target image, it can detect that the communication application is running in the foreground or in the background, and then perform an operation corresponding to running in the foreground or in the background.
  • the terminal device can record the running state of the communication application, and the terminal device can detect whether the communication application is running in the foreground by querying the running state of the communication application. In one embodiment, the terminal device can query the application state of the application state of the communication application. If the application state is recorded as "UI Application State Active", it means that the communication application is running in the foreground. If the application state is recorded as "UI Application State Background", Characteristic communication applications are running in the background.
  • a desktop card as shown by f in Figure 1 above will be displayed on the desktop of the terminal device.
  • the desktop cards may be generated based on the target image.
  • the terminal device may generate the desktop card based on the size of the card frame displaying the desktop card and the size of the target image.
  • the terminal device may compress the target image to the same size as the card frame to obtain the desktop card. In an embodiment, the terminal device may crop the target image to obtain a desktop card with the same size as the card frame. Wherein, when cropping the target image, the terminal device may keep the face area in the target image, and crop the non-face area in the target image to obtain the desktop card.
  • the terminal device can display desktop cards on the desktop.
  • the call application runs in the background, and the terminal device can display an interface as shown in g in FIG. 3, and the terminal device can be displayed on the interface Deskcards generated based on the target image.
  • the terminal device when there are multiple target images, can generate a desktop card corresponding to each target image based on each target image, and then rotate the desktop corresponding to each target image on the desktop of the terminal device Card, as shown in Figure 7.
  • FIG. 7 an example of displaying a desktop card superimposed with a target image every 2s is used for illustration, and the carousel manner may refer to the related description of carousel target images in the foregoing embodiments.
  • the terminal device when the called user is a contact of the speed dial, regardless of whether the calling user is in the contact list of the address book, the terminal device is triggered to initiate a call request to the called end. Still on the desktop of the terminal device, the terminal device is triggered to initiate a call request to the called terminal.
  • the terminal device can execute S203B-S204B to display the call generated based on the target image on the desktop of the terminal device.
  • Desktop cards are examples of the call generated based on the target image on the desktop of the terminal device.
  • the terminal device when the communication application is running in the background, the terminal device can generate desktop cards based on the target image, thereby enriching the desktop cards and improving user experience.
  • the user can think of the scene when the target image was taken based on the target image superimposed on the communication interface, that is, in order to enable the user to have a deep experience, in the embodiment of the present application, the target image can be based on the date and location of the target image. Fill in poster templates associated with dates and locations to enhance user experience.
  • the terminal device may also execute:
  • the date of the target image is: the shooting date of the target image
  • the location of the target image is: the shooting location of the target image.
  • the preset date may be a festival, such as Spring Festival, Christmas, etc.
  • the preset location may be a scenic spot.
  • a poster template library is stored in the terminal device, and the poster template library includes a plurality of poster templates, and the poster templates are related to festivals or scenic spots.
  • the poster template library may include: Spring Festival poster templates and Christmas poster templates.
  • the preset date and the preset location may also be dates or locations predefined by the user, for example, the preset date is "anniversary day" and the location is "the place where we met for the first time". Similarly, the user can customize a poster template, and the poster template is related to a preset date or a preset location.
  • the terminal device may determine whether the date of the target image is a preset date based on the date label of the target image.
  • the terminal device may determine whether the location of the target image is a preset location based on the location tag of the target image.
  • the terminal device may use a poster template related to the preset date in the poster template library as the target poster template.
  • the terminal device may use the poster template related to the preset location in the poster template library as the target poster template.
  • a preset area in the poster template to fill with the target image is a blank area or filled with a template image.
  • the terminal device may fill the target image in the preset area of the target poster template based on the size of the target image and the size of the preset area to obtain a target poster filled with the target image.
  • the terminal device may reduce the target image to the same size as the preset area, so as to fill the target image in the preset area of the target poster template.
  • the terminal device may crop the target image, so that the size of the cropped target image is the same as the size of the preset area, and reference may be made to relevant descriptions in the foregoing embodiments.
  • S203A may be replaced by S203D: superimposing and displaying the target poster on the preset communication interface.
  • S203A may be replaced by: superimposing the preset communication interface on the target poster to obtain the target poster and displaying the target poster.
  • d in FIG. 9 when the calling user clicks on the card 10211 of the contact in the speed dial on the desktop of the terminal device to trigger the terminal device to initiate a call request to the called terminal, the terminal device may display For the interface of e in FIG. 9 , d in FIG. 9 may refer to the related description of d in FIG. 3 . Compared with e in FIG. 3 , e in FIG. 9 is superimposed and displayed on the preset communication interface of the terminal device: a target poster containing a target image. Exemplarily, the target poster template e in FIG. 9 is related to the preset date "May 20".
  • the call application runs in the background, and the terminal device can display the interface in g in FIG. 9 .
  • the terminal device does not generate the desktop card based on the target poster, but Generate desktop cards based on the target image.
  • Fig. 8 is a solution for adding a poster template on the basis of Fig. 5.
  • the solution for adding a poster template may also be added on the basis of Fig. 2A, Fig. 5 or Fig. 6. You may refer to the above-mentioned Fig. 8 Relevant descriptions are not repeated here.
  • the terminal device after the terminal device obtains the target image based on the avatars of the users of both communication parties, it can also determine the target poster template based on the date and/or place of the target image, and then fill the target image in the target poster template, so that Displaying the preset communication interface can enable the user to have an in-depth experience and further improve the user experience.
  • the communication application is used as an example for description, and the method for displaying a communication interface provided in the embodiment of the present application may also be applied to other communication applications.
  • the target image is superimposed and displayed on the communication interface of other communication applications as an example for illustration.
  • the communication application may be a messaging application.
  • the first user can select the second user in the information list, so that the first device can send a short message to the second device.
  • the terminal device can respond to the communication request initiated by the first user, execute the steps in the above-mentioned embodiments of the present application, and then on the preset communication interface (short message interface) between the first user and the second user The target image is displayed superimposed.
  • the communication application may be an application supporting video and/or voice chat. Taking voice chat as an example, referring to a in FIG. 11 , the calling user can initiate a communication request with the called user. Referring to b in FIG. 11 , the terminal device may execute the steps in the above-mentioned embodiments of the present application in response to the communication request, and then superimpose and display the target image on the communication interface (such as the call interface and the chat interface).
  • an application supporting video and/or voice chat may be called a call application
  • a call interface may be called a call request interface
  • a chat interface may be called a call interface.
  • a prompt box may be displayed on the desktop of the terminal device to remind the user that the video or voice chat is in progress.
  • a prompt message of "waiting to answer" can be displayed in the prompt box, and the call duration can be displayed in the prompt box when the video or voice call is connected.
  • the prompt box may be called a desktop card, and the desktop card is used to indicate that a call is in progress.
  • the terminal device may superimpose and display the target image in the selection box based on the target image.
  • the terminal device may superimpose and display the target image in the prompt box 10218 .
  • the embodiment of the present application exemplarily uses call applications, information applications, and applications supporting video and/or voice chat as examples to illustrate the communication interface provided by the embodiment of the present application.
  • the display method, the display method of the communication interface provided in the embodiment of the present application can also be applied to other communication applications.
  • FIG. 12 is a schematic structural diagram of a display device for a communication interface provided by an embodiment of the present application.
  • the display device of the communication interface can be the first device or the second device in the above embodiment, or a module of the first device or the second device, for example, it can be the first device or the second device Two device chips.
  • the display device 1200 of the communication interface may include: a processing module 1201 and a display module 1202 .
  • the processing module 1201 is configured to: respond to the communication request initiated by the first device to the second device, and detect whether the first user and the second user have set avatars for communication, the first device belongs to the first user, and the second device belongs to the second device. user; if so, then based on the facial recognition result of the target head portrait, the target image of the face containing the target head portrait is obtained in the database, and the target head portrait is the head portrait used for communication set by the first user and/or the second user; the preset The communication interface is superimposed on the target image, and the communication interface of the communication request is obtained.
  • the display module 1202 is used for displaying the communication interface.
  • the processing module 1201 is specifically configured to: query the information of the user of the communication application that initiated the communication request, where the user information includes at least one user ID and avatar; based on the first user ID, if If the avatar of the first user is found in the user information, it is determined that the first user sets the avatar; based on the identity of the second user, if the avatar of the second user is found in the user information, it is determined that the second user sets the avatar.
  • the database includes at least one image and/or video.
  • the processing module 1201 is specifically configured to: acquire the first facial feature of the face included in the target avatar; acquire the second facial feature of the face included in each image and/or frame of the video; acquire the first facial feature The similarity with the second facial feature; the image corresponding to the second facial feature whose similarity is greater than a preset threshold is used as the target image.
  • the processing module 1201 is specifically configured to: superimpose the target image on a layer lower than the layer where at least one element is located.
  • the processing module 1201 is specifically configured to: superimpose the preset communication interface on each target image to obtain at least two communication interfaces requested by the communication.
  • the display module 1202 is further configured to scroll and display at least two communication interfaces.
  • the processing module 1201 is specifically configured to: acquire a target poster template related to the shooting date or shooting location in the poster template library based on the shooting date or shooting location of the target image; The target image is superimposed in the preset area to obtain the target poster; the preset communication interface is superimposed on the target poster.
  • the processing module 1201 is further configured to: detect whether the communication application that initiates the communication request is running in the foreground; if the communication application is running in the foreground, superimpose the preset communication interface with the target image.
  • the processing module 1201 is further configured to: if the communication application is running in the background, generate a desktop card based on the target image, the desktop card includes the target image, and the desktop card is used to represent the information sent to the second device.
  • the shortcut entry for the communication request or indicates that the communication application is running.
  • the display module 1202 is further configured to display desktop cards on the desktop.
  • the processing module 1201 is specifically configured to: query the running state of the communication application to detect whether the communication application is running in the foreground, and the running state indicates that the communication application is running in the foreground or in the background.
  • the processing module 1201 is further configured to: if no face is detected in the target avatar, or neither the first user nor the second user has set an avatar, based on the current date and/or location, the database Images with the same date and/or the same place in history as the target image.
  • the display module 1202 is further configured to: display a preset communication interface if neither the first user nor the second user has set an avatar for communication.
  • the communication application that initiates the communication request is a call application
  • the communication request is a call request
  • the preset communication interface includes: a call request interface and a call interface.
  • the above modules can be implemented in the form of software called by the processing element; they can also be implemented in the form of hardware.
  • the acquisition module can be a separate processing element, or it can be integrated into a chip of the above-mentioned device.
  • it can also be stored in the memory of the above-mentioned device in the form of program code, and a certain processing element of the above-mentioned device can Call and execute the functions of the above processing modules.
  • all or part of these modules can be integrated together, and can also be implemented independently.
  • the processing element mentioned here may be an integrated circuit with signal processing capabilities.
  • each step of the above method or each module above can be completed by an integrated logic circuit of hardware in the processor element or an instruction in the form of software.
  • the above modules may be one or more integrated circuits configured to implement the above method, for example: one or more application specific integrated circuits (ASIC), or one or more microprocessors (digital signal processor, DSP), or, one or more field programmable gate arrays (field programmable gate array, FPGA), etc.
  • ASIC application specific integrated circuits
  • DSP digital signal processor
  • FPGA field programmable gate array
  • the processing element may be a general-purpose processor, such as a central processing unit (CPU) or other processors that can call program codes.
  • CPU central processing unit
  • these modules can be integrated together and implemented in the form of a system-on-a-chip (SOC).
  • SOC system-on-a-chip
  • FIG. 13 is a schematic structural diagram of an electronic device provided by an embodiment of the present application.
  • the electronic device may be the first device or the second device in the above embodiment.
  • the electronic device may include: a processor 31 (such as a CPU), a memory 32 and a display 33 ; the memory and the display 33 may be coupled to the processor 31 .
  • the memory 32 may include a high-speed random-access memory (random-access memory, RAM), and may also include a non-volatile memory (non-volatile memory, NVM), such as at least one disk memory, and various instructions may be stored in the memory 32 , so as to complete various processing functions and realize the method steps of the present application.
  • RAM random-access memory
  • NVM non-volatile memory
  • the display 33 is used to display the interface of the above first device or the second device, such as a communication interface and a preset communication interface.
  • the electronic device involved in this application may further include: a power supply 34 , a communication bus 35 and a communication port 36 .
  • the communication bus 35 is used to realize the communication connection between the components.
  • the above-mentioned communication port 36 is used to realize connection and communication between the electronic device and other peripheral devices.
  • the above-mentioned memory 32 is used to store computer-executable program codes, and the program codes include instructions; when the processor 31 executes the instructions, the instructions cause the processor 31 of the electronic device to perform the processing of the electronic device in the above-mentioned method embodiment
  • the implementation principles and technical effects of the actions are similar, and will not be repeated here.
  • a computer program product includes one or more computer instructions.
  • Computer instructions may be stored in or transmitted from one computer-readable storage medium to another computer-readable storage medium, e.g. Coaxial cable, optical fiber, digital subscriber line (DSL)) or wireless (such as infrared, wireless, microwave, etc.) to another website site, computer, server or data center.
  • DSL digital subscriber line
  • the computer-readable storage medium may be any available medium that can be accessed by a computer, or a data storage device such as a server, a data center, etc. integrated with one or more available media.
  • Available media may be magnetic media (eg, floppy disk, hard disk, magnetic tape), optical media (eg, DVD), or semiconductor media (eg, Solid State Disk (SSD)).
  • plural herein means two or more.
  • the term “and/or” in this article is just an association relationship describing associated objects, which means that there can be three relationships, for example, A and/or B can mean: A exists alone, A and B exist simultaneously, and there exists alone B these three situations.
  • the character "/" in this paper generally indicates that the contextual objects are an “or” relationship; in the formula, the character "/" indicates that the contextual objects are a "division" relationship.
  • sequence numbers of the above-mentioned processes do not mean the order of execution, and the order of execution of the processes should be determined by their functions and internal logic, and should not be used in the implementation of this application.
  • the implementation of the examples constitutes no limitation.

Landscapes

  • Engineering & Computer Science (AREA)
  • Theoretical Computer Science (AREA)
  • General Engineering & Computer Science (AREA)
  • Library & Information Science (AREA)
  • Physics & Mathematics (AREA)
  • General Physics & Mathematics (AREA)
  • Data Mining & Analysis (AREA)
  • Databases & Information Systems (AREA)
  • Multimedia (AREA)
  • Human Computer Interaction (AREA)
  • User Interface Of Digital Computer (AREA)

Abstract

本申请实施例提供一种通讯界面的显示方法、装置、电子设备和可读存储介质,该方法包括:响应于第一设备向第二设备发起通讯请求,检测第一用户和第二用户是否设置用于通讯的头像;若是,则基于目标头像的面部识别结果,在数据库中获取包含有目标头像的面部的目标图像,目标头像为第一用户和/或第二用户设置的用于通讯的头像;将预设通讯界面与目标图像叠加,得到通讯请求的通讯界面;显示通讯界面。本申请中,终端设备可以基于通讯的双方用户的头像,在通讯界面上叠加显示双方用户的面部的目标图像,可以丰富通讯界面。且因为目标图像包含有通讯的双方用户的面部,因此可以增加通讯的双方用户的关联,提升用户体验。

Description

通讯界面的显示方法、装置、电子设备和可读存储介质
本申请要求于2021年05月08日提交中国专利局、申请号为202110502399.3、申请名称为“通讯界面的显示方法、装置、电子设备和可读存储介质”的中国专利申请的优先权,其全部内容通过引用结合在本申请中。
技术领域
本申请实施例涉及移动通信技术,尤其涉及一种通讯界面的显示方法、装置、电子设备和可读存储介质。
背景技术
通话应用作为基础应用,是终端设备中使用频率较高的应用。随着用户对终端设备的个性化需求的提高,用户同样也需求个性化的通话界面。
目前,终端设备的通话界面是默认界面,用户每次通话时,终端设备显示的都是同样的通话界面,无法满足用户的个性化需求。
发明内容
本申请实施例提供一种通讯界面的显示方法、装置、电子设备和可读存储介质,可以丰富通讯界面,提高用户体验。
第一方面,本申请实施例提供一种通讯界面的显示方法,该方法的执行主体可以为第一设备(发起通讯的设备)或第二设备(接收通讯的设备),下述以执行主体为第一设备为例进行说明。其中通讯可以但不限于为通话、短信、视频聊天等。第一设备响应于向第二设备发起通讯请求,可以检测第一用户是否设置用于通讯的头像,以及检测第二用户是否设置用于通讯的头像。其中,第二用户是否设置用于通讯的头像可以理解为:第一用户是否在第一设备上为第二用户设置用于通讯的头像。应理解,第一设备属于所述第一用户,所述第二设备属于所述第二用户。示例性的,发起所述通讯请求的通讯应用为通话应用,第一设备响应于向第二设备发起通话请求,第一设备可以检测第一用户是否设置通话的头像,以及检测是否为第二用户设置通话的头像。
其中,若第一用户和/或所述第二用户设置了用于通讯的头像,则终端设备可以基于目标头像的面部识别结果,在数据库中获取包含有所述目标头像的面部的目标图像。应理解,目标头像为第一用户和/或所述第二用户设置的用于通讯的头像,示例性的,目标头像可以为第一用户的头像和/或第二用户的头像。数据库可以为第一设备中的相册,数据库中包括至少一个图像和/或视频。
本申请实施例中,终端设备可以对目标头像中包含的面部进行识别,进而在数据库中查询包含有目标头像的面部的目标图像。终端设备获取目标图像后,可以将预设通讯界面与所述目标图像叠加,得到所述通讯请求的通讯界面,显示所述通讯界面。应理解,目标图像可以为数据库中的图像或视频中的一帧图像。示例性的,发起所述通讯请求的通讯应 用为通话应用时,预设通讯界面包括:通话请求界面和通话界面。
应理解,现有技术中第一设备和第二设备的通讯界面均为预设通讯界面。本申请实施例中,终端设备可以基于通讯的双方用户的头像,在通讯界面上叠加显示双方用户的面部的目标图像,可以丰富通讯界面。且因为目标图像包含有通讯的双方用户的面部,因此可以增加通讯的双方用户的关联,提升用户体验。
其中,终端设备检测第一用户和第二用户是否设置用于通讯的头像可以为:终端设备查询发起所述通讯请求的通讯应用的用户的信息,所述用户的信息中包括至少一个用户的标识和头像;基于所述第一用户的标识,若在所述用户的信息中查询到所述第一用户的头像,则确定所述第一用户设置头像;基于所述第二用户的标识,若在所述用户的信息中查询到所述第二用户的头像,则确定所述第二用户设置头像。
示例性的,通讯应用为通话应用时,终端设备可以查询通话应用的用户的信息,该用户的信息中包括第一设备中存储的至少一个用户的标识和头像,用户的标识可以为用户的电话号码和/或用户的名字。终端设备可以基于该用户的信息、第一用户的电话号码和/或名字,以及第二用户的电话号码和/或名字,查询该用户的信息中是否包含第一用户的头像和第二用户的头像。其中,若在所述用户的信息中查询到所述第一用户的头像,则确定所述第一用户设置头像,若在所述用户的信息中查询到所述第二用户的头像,则确定所述第二用户设置头像。
相应的,终端设备在数据库中获取目标图像的方式可以为:终端设备获取所述目标头像中包括的面部的第一面部特征,获取每个图像和/或所述视频的每帧图像中包括的面部的第二面部特征;获取所述第一面部特征和所述第二面部特征的相似度;将相似度大于预设阈值的第二面部特征对应的图像,作为所述目标图像。换句话说,终端设备可以基于目标头像中的面部和数据库中每个图像的面部的相似度,将数据库中相似度大于预设阈值的图像作为目标图像。
在一种实施例中,预设通讯界面包括至少一个元素,元素可以为文字、图像、用户可以操作的控件等。在一种可能的实现方式中,终端设备可以在所述至少一个元素所处图层的下层图层中叠加所述目标图像,将目标图像作为预设通讯界面的背景。或者,在一种可能的实现方式中,终端设备可以在预设通讯界面的预设位置叠加目标图像,目标图像可以与所述至少一个元素处于同一图层,或者不同的图层,本申请实施例中,为了保证用户能够操作预设通讯界面上的控件,目标图像可以不覆盖预设通讯界面上的控件,提高用户体验。
在一种可能的实现方式中,当终端设备在数据库中查询到多个目标图像时,终端设备可以将所述预设通讯界面与每个目标图像叠加,得到所述通讯请求的至少两个通讯界面,进而滚动显示所述至少两个通讯界面,使得第一用户观看到滚动播放的目标图像。在一种实施例中,也可以理解为,终端设备可以在所述预设通讯界面上,滚动显示多个目标图像,同样也可以达到第一用户观看到滚动播放的目标图像的目的。
如上述,若第一用户和第二用户虽然均设置了头像,但在所述目标头像中未检测到面部,或者,所述第一用户和所述第二用户均未设置头像,终端设备可以显示预设通讯界面。在一种实施例中,为了丰富通讯界面,若在所述目标头像中未检测到面部,或所述第一用户和所述第二用户均未设置头像,终端设备可以基于当前日期和/地点,将所述数据库中历 史同一日期和/或历史同一地点的图像作为所述目标图像,使得用户可以观看到数据库中历史同一日期和/或历史同一地点的图像,引起用户共鸣,提高用户体验。
在一种可能的实现方式中,为了进一步丰富通讯界面,终端设备在数据库中获取包含有所述目标头像的面部的目标图像之后,还可以基于所述目标图像的拍摄日期或拍摄地点,在海报模板库中获取与所述拍摄日期或拍摄地点相关的目标海报模板;在所述目标海报模板的预设区域叠加所述目标图像,得到目标海报,将所述预设通讯界面与所述目标海报叠加,进而显示叠加了目标海报的通讯界面。示例性的,如目标图像的拍摄日期为元旦,则终端设备可以在海报模板库中获取与元旦相关的目标海报模板,进而在与元旦相关的目标海报模板上叠加目标图像,得到目标海报,进而在预设通讯界面上叠加显示该目标海报,提高用户体验。
对于通讯应用为通话应用或视频聊天等应用来说,通讯应用运行在后台时,终端设备的界面上可以显示桌面卡片,目前桌面卡片上显示第二用户的头像或者通讯时长等,桌面卡片的形式单一。本申请实施例中,终端设备在数据库中获取包含有所述目标头像的面部的目标图像之后,还可以查询所述通讯应用的运行状态,以检测所述通讯应用是否运行在前台,所述运行状态表征所述通讯应用运行在前台或后台。
其中,若通讯应用运行在前台,则终端设备可以将预设通讯界面与所述目标图像叠加,得到通讯界面,显示通讯界面,或者显示叠加了目标海报的通讯界面。换句话说,若通讯应用运行在前台,终端设备可以执行上述描述中的方法。
若通讯应用运行在后台,终端设备可以基于所述目标图像,生成桌面卡片,所述桌面卡片中包括所述目标图像,在桌面上显示所述桌面卡片。其中,所述桌面卡片用于表征向所述第二设备发起通讯请求的快捷入口,或表征所述通讯应用正在运行。在一种可能的实现方式中,终端设备可以调整目标图像的尺寸至与桌面卡片的尺寸相同,进而在桌面卡片显示的位置上叠加显示目标图像。在一种实施例中,目标图像为多个时,终端设备可以在桌面卡片显示的位置上滚动叠加显示目标图像,使得通讯应用运行在后台时,用户可以终端设备的桌面上观看到目标图像,可以丰富桌面卡片。
第二方面,本申请实施例提供一种通讯界面的显示装置,包括:
处理模块,用于:响应于第一设备向第二设备发起通讯请求,检测第一用户和第二用户是否设置用于通讯的头像,所述第一设备属于所述第一用户,所述第二设备属于所述第二用户;若是,则基于目标头像的面部识别结果,在数据库中获取包含有所述目标头像的面部的目标图像,所述目标头像为所述第一用户和/或所述第二用户设置的用于通讯的头像;将预设通讯界面与所述目标图像叠加,得到所述通讯请求的通讯界面。
显示模块,用于显示所述通讯界面。
在一种可能的实现方式中,处理模块,具体用于:查询发起所述通讯请求的通讯应用的用户的信息,所述用户的信息中包括至少一个用户的标识和头像;基于所述第一用户的标识,若在所述用户的信息中查询到所述第一用户的头像,则确定所述第一用户设置头像;基于所述第二用户的标识,若在所述用户的信息中查询到所述第二用户的头像,则确定所述第二用户设置头像。
在一种可能的实现方式中,所述数据库中包括至少一个图像和/或视频。处理模块,具体用于:获取所述目标头像中包括的面部的第一面部特征;获取每个图像和/或所述视频的 每帧图像中包括的面部的第二面部特征;获取所述第一面部特征和所述第二面部特征的相似度;将相似度大于预设阈值的第二面部特征对应的图像,作为所述目标图像。
在一种可能的实现方式中,处理模块,具体用于:在所述至少一个元素所处图层的下层图层中叠加所述目标图像。
在一种可能的实现方式中,所述目标图像为至少两个。处理模块,具体用于:将所述预设通讯界面与每个目标图像叠加,得到所述通讯请求的至少两个通讯界面。
显示模块,还用于滚动显示所述至少两个通讯界面。
在一种可能的实现方式中,处理模块,具体用于:基于所述目标图像的拍摄日期或拍摄地点,在海报模板库中获取与所述拍摄日期或拍摄地点相关的目标海报模板;在所述目标海报模板的预设区域叠加所述目标图像,得到目标海报;将所述预设通讯界面与所述目标海报叠加。
在一种可能的实现方式中,处理模块,还用于:检测发起所述通讯请求的通讯应用是否运行在前台;若所述通讯应用运行在前台,则将预设通讯界面与所述目标图像叠加。
在一种可能的实现方式中,处理模块,还用于:若所述通讯应用运行在后台,则基于所述目标图像,生成桌面卡片,所述桌面卡片中包括所述目标图像,所述桌面卡片用于表征向所述第二设备发起通讯请求的快捷入口,或表征所述通讯应用正在运行。
显示模块,还用于在桌面上显示所述桌面卡片。
在一种可能的实现方式中,处理模块,具体用于:查询所述通讯应用的运行状态,以检测所述通讯应用是否运行在前台,所述运行状态表征所述通讯应用运行在前台或后台。
在一种可能的实现方式中,处理模块,还用于:若在所述目标头像中未检测到面部,或所述第一用户和所述第二用户均未设置头像,则基于当前日期和/地点,将所述数据库中历史同一日期和/或历史同一地点的图像作为所述目标图像。
在一种可能的实现方式中,显示模块,还用于:若所述第一用户和所述第二用户均未设置用于通讯的头像,则显示所述预设通讯界面。
在一种可能的实现方式中,发起所述通讯请求的通讯应用为通话应用,所述通讯请求为通话请求,所述预设通讯界面包括:通话请求界面和通话界面。
第三方面,本申请实施例提供一种通讯界面的显示装置,该通讯界面的显示装置可以为上述的第一设备或第二设备。所述通讯界面的显示装置包括:处理器和存储器;其中,存储器用于存储计算机可执行程序代码,程序代码包括指令;当处理器执行指令时,指令使所述通讯界面的显示装置执行如第一方面的方法。
该通讯界面的显示装置还可以包括:显示器,该显示器用于显示上述第一方面所述的通讯界面或预设通讯界面。
第四方面,本申请实施例提供一种通讯界面的显示装置,包括用于执行以上第一方面所提供的方法的单元、模块或电路。该通讯界面的显示装置可以为第一设备或第二设备,也可以为应用于第一设备或第二设备的一个模块,例如,可以为应用于第一设备或第二设备的芯片。
第五方面,本申请实施例提供一种包含指令的计算机程序产品,当其在计算机上运行时,使得计算机执行上述第一方面的方法。
第六方面,本申请实施例提供一种计算机可读存储介质,所述计算机可读存储介质中 存储有指令,当其在计算机上运行时,使得计算机执行上述第一方面的方法。
如上第二方面至第六方面,具备如上第一方面所述的通讯界面的显示方法的技术效果,可以参照第一方面的相关描述。
本申请实施例提供一种通讯界面的显示方法、装置、电子设备和可读存储介质,该方法包括:响应于第一设备向第二设备发起通讯请求,检测第一用户和第二用户是否设置用于通讯的头像,所述第一设备属于所述第一用户,所述第二设备属于所述第二用户;若是,则基于目标头像的面部识别结果,在数据库中获取包含有所述目标头像的面部的目标图像,所述目标头像为所述第一用户和/或所述第二用户设置的用于通讯的头像;将预设通讯界面与所述目标图像叠加,得到所述通讯请求的通讯界面;显示所述通讯界面。本申请实施例中,终端设备可以基于通讯的双方用户的头像,在预设通讯界面上叠加显示包含有双方用户的面部的图像,一方面可以丰富通讯界面,另一方面可以增加通讯的双方用户的关联,提升用户体验。
附图说明
图1为已有的一种通话界面的示意图;
图2A为本申请实施例提供的通讯界面的显示方法的一种实施例的流程示意图;
图2B为本申请实施例提供的一种图层叠加示意图;
图3为本申请实施例提供的一种通讯界面的示意图;
图4为本申请实施例提供的一种轮播示意图;
图5为本申请实施例提供的通讯界面的显示方法的另一种实施例的流程示意图;
图6为本申请实施例提供的通讯界面的显示方法的另一种实施例的流程示意图;
图7为本申请实施例提供的另一种轮播示意图;
图8为本申请实施例提供的通讯界面的显示方法的另一种实施例的流程示意图;
图9为本申请实施例提供的另一种通讯界面的示意图;
图10为本申请实施例提供的另一种通讯界面的示意图;
图11为本申请实施例提供的另一种通讯界面的示意图;
图12为本申请实施例提供的通讯界面的显示装置的一种结构示意图;
图13为本申请实施例提供的电子设备的一种结构示意图。
具体实施方式
图1为已有的一种通话界面的示意图。用户可以触发终端设备显示“桌面快速设置”界面。示例性的,参照图1中的a,用户采用两个手指按住终端设备的桌面不放,且两个手指移动靠近,可以触发终端设备显示“桌面快速设置”界面。“桌面快速设置”界面上可以显示与“桌面设置”相关的控件,如壁纸控件101、窗口小工具控件102、切换效果控件103,以及桌面设置控件104。其中,壁纸控件101用于用户设置桌面的壁纸,切换效果控件103用于用户设置桌面上各页面的切换效果,桌面设置控件104用于用户设置桌面上的各应用程序的图标的布局等,本申请实施例中对该三个控件的功能不做赘述。窗口小工具控件102用于用户在桌面上添加快捷工具,快捷工具如快速拨号的联系人、一键锁屏等,本申请实施例对窗口小工具控件102的功能不做赘述,下述实施例以用户操作窗口 小工具控件102,可以设置快速拨号的联系人为例进行说明。在一种实施例中,“桌面快速设置”界面可以称为桌面小工具。
参照图1中的b,用户选择窗口小工具控件102,终端设备的界面可以跳转至如图1中的c所示的界面。参照图1中的c,终端设备的界面上可以显示多个待添加至终端设备的桌面的快捷工具,如联系人1021、电子邮件1022和备忘录1023等。用户操作联系人1021,可以设置快速拨号的联系人,图1中未示出用户设置快速拨号的联系人的过程,可以参照目前的设置过程。参照图1中的d,用户设置快速拨号的联系人后,终端设备的界面上可以显示快速拨号的联系人的卡片10211。如此,用户可以在终端设备的桌面上,选择快速拨号的联系人的卡片10211,进而触发终端设备向该联系人拨号,图1中的e所示的为终端设备向该联系人拨号的拨号界面。在一种实施例中,拨号界面可以称为通话请求界面。
在一种实施例中,若用户未设置该快速拨号的联系人的头像,则快速拨号的联系人的卡片10211中可以显示联系人的名字,且拨号界面可以显示联系人的名字,图1中未示出。在一种实施例中,参照图1中的d,若用户已为该快速拨号的联系人设置头像,则快速拨号的联系人的卡片10211中可以显示联系人的头像10212和电话控件10213,相应的,图1中的e的拨号界面上可以显示联系人的头像10212。在一种实施例中,当电话接通时,终端设备可以显示用户与快速拨号的联系人的通话界面,该通话界面可以显示联系人的头像10212,图1中未示出。
参照图1中的e,用户的手指从拨号界面的底部向上滑动,终端设备可以显示如图1中的f所示的界面。与图1中的d不同的是,在图1中的f中,终端设备的桌面的左上角可以显示胶囊图标10214。当电话未接通时,该胶囊图标10214中可以显示电话控件和“通话”的文字,以提示终端设备正在拨打联系人的电话,且电话未接通,图1中的f以电话未接通为例进行说明。当电话接通时,胶囊图标10214中可以显示电话控件和通话时长,以表征用户正在与联系人进行通话。
应理解的是,图1中的e所示的为通话应用运行在前台时的界面,图1中的f所示的为通话应用运行在后台时的界面。在一种实施例中,通话应用运行在前台可以表征为:终端设备的界面显示通话应用的界面,通话应用运行在后台可以表征为:终端设备的界面显示其他应用的界面,且其他应用的界面上可以显示有可以切换至通话应用的图标,用户点击该切换至通话应用的图标,可以使得通话应用运行在前台。
下述实施例中将拨号界面和通话界面统称为通讯界面,目前终端设备的通讯界面为预设界面,该预设界面中可以包括用户的名字或头像,样式单一。
本申请实施例中提供一种通讯界面的显示方法,可以基于通讯双方用户的头像,生成通讯界面,丰富了终端设备的通讯界面,能够提高用户体验。
在一种实施例中,本申请实施例中的终端设备可以是移动设备,也可以是固定设备。终端设备可以但不限于为:手机、平板电脑、笔记本电脑、可穿戴设备、智慧屏、智能家用电器、物联网(internet of things,IoT)设备、车载设备等。可选的,终端设备还可以为个人数字处理(personal digital assistant,PDA)、具有无线通信能力的手持设备、计算设备、虚拟现实(virtual reality,VR)终端设备、无人机设备、增强现实(augmented reality,AR)终端设备、智慧家庭(smart home)中的无线终端等。本申请实施例中对终端设备的 形态不做限定。
下面结合具体的实施例对本申请实施例提供的通讯界面的显示方法进行说明。下面这几个实施例可以相互结合,对于相同或相似的概念或过程可能在某些实施例不再赘述。图2A为本申请实施例提供的通讯界面的显示方法的一种实施例的流程示意图。参照图2A,本申请实施例提供的通讯界面的显示方法可以包括:
S201,响应于向被叫端发起通话请求,检测主叫用户和被叫用户是否均设置头像;若是,执行S202-S203,若否,执行S204。
主叫端为主动发起通话的设备,主叫端所属的用户为主叫用户。被叫端为接收呼叫的设备,被叫端所属的用户为被叫用户。可以理解的是,对于通讯应用来说,主叫端可以替换为“第一设备”,被叫端可以替换为“第二设备”,主叫用户可以替换为第一设备所属的第一用户,被叫用户可以替换为第二设备所属的第二用户。相应的,上述S201可以替换为:响应于向第二设备发起通讯请求,检测第一用户和第二用户是否均设置头像。应理解,本申请实施例中以通讯应用为通话应用为例进行说明。
在一种实施例中,被叫用户可以为任一电话号码所属的联系人,或者主叫端的通讯录的联系人列表中任一个联系人,或者,主叫用户设置的快速拨号的联系人。示例性的,如被叫用户可以为如上图1所示的快速拨号的联系人“张三”。下述以主叫端为终端设备,且以被叫用户为主叫用户设置的快速拨号的联系人为例进行说明。
主叫用户可以预先为主叫用户,以及被叫用户设置头像。在一种实施例中,主叫用户可以在通讯录的联系人列表中为主叫用户以及被叫用户设置头像,本申请实施例对主叫用户为主叫用户以及被叫用户设置头像的过程不做赘述。主叫用户是否设置头像可以理解为:主叫用户是否已为主叫用户在该通话应用中设置头像,被叫用户是否设置头像可以理解为:主叫用户是否已为被叫用户在该通话应用中设置头像。
在一种实施例中,主叫用户可以在通讯录的联系人列表中,找到快速拨号的联系人,进而触发终端设备向被叫端发起通话请求。在一种实施例中,主叫用户可以在终端设备的桌面上,操作快速拨号的联系人的卡片,以触发终端设备向被叫端发起通话请求,下述以主叫用户操作快速拨号的联系人的卡片为例进行说明。参照图3中的d,主叫用户可以在终端设备的桌面上,点击快速拨号的联系人的卡片10211,触发终端设备向被叫端发起通话请求,图3中的d可以参照上述图1中的d的相关描述。本申请实施例中,终端设备响应于向被叫端发起通话请求,可以检测主叫用户是否设置头像,以及检测主叫用户是否为被叫用户设置头像。
在一种实施例中,终端设备可以存储联系人的信息,联系人的信息可以包括至少一个联系人,该至少一个联系人可以包括主叫用户和被叫用户。联系人的信息可以包括但不限于为:联系人的头像、名字、电话号码、邮箱以及铃声。在一种实施例中,用户在存储联系人的电话号码、名字、邮箱时,可以为联系人设置头像以及铃声,该铃声可以为该联系人的来电铃声。在一种实施例中,联系人的信息可以称为用户的信息。
终端设备可以查询联系人的信息,检测主叫用户是否设置头像,以及检测主叫用户是否为被叫用户设置头像。其中,以终端设备检测主叫用户是否设置头像为例,终端设备可以基于主叫用户的电话号码和/或名字,查询联系人的信息中是否包括主叫用户的头像。若 联系人的信息中包括主叫用户的头像,则确定主叫用户设置头像,若联系人的信息中未包括主叫用户的头像,则确定主叫用户未设置头像。在一种实施例中,终端设备响应于向被叫端发起通话请求,终端设备可以获取被叫用户的名字和/或电话号码,进而可以基于被叫用户的名字和/或电话号码和联系人的信息,检测被叫用户是否设置头像。其中,终端设备检测主叫用户是否为被叫用户设置头像,可以理解为:终端设备查询联系人的信息中是否包括被叫用户的头像,具体可以参照主叫用户的相关描述。
在一种实施例中,联系人的信息中存储的联系人的头像可以替换为:是否存储联系人的头像的标识,该标识用于表征终端设备是否存储联系人的头像,即可以表征是否为联系人设置头像。示例性的,如0表征未设置联系人的头像,1表征已设置联系人的头像。终端设备可以通过查询联系人的信息中的“是否存储联系人的头像的标识”,确定主叫用户和被叫用户是否均设置头像。示例性的,终端设备查询主叫用户对应的“是否存储联系人的头像的标识”为1,则可以确定主叫用户设置头像。应理解,本申请实施例中对终端设备存储的联系人的信息格式不做限制。
S202,对主叫用户的头像,以及被叫用户的头像进行面部识别,在终端设备的数据库中获取目标图像。
在一种实施例中,主叫用户和被叫用户均设置头像。终端设备可以对主叫用户的头像,以及被叫用户的头像进行面部识别,以在终端设备的数据库中查询包含有主叫用户的头像中的面部,以及被叫用户的头像中的面部的目标图像。应理解,终端设备的数据库可以为终端设备的图像数据库,如相册。终端设备的数据库中可以包括多个图像,以及视频。
在一种实施例中,终端设备可以对主叫用户的头像,以及被叫用户的头像进行面部识别,基于面部识别结果,在数据库中获取包含有主叫用户的头像中的面部,以及被叫用户的头像中的面部的目标图像。在一种实施例中,主叫用户的头像,以及被叫用户的头像可以称为目标头像。其中,终端设备可以对主叫用户的头像,以及被叫用户的头像进行面部识别,以获取主叫用户的头像中包括的面部的第一面部特征,以及获取被叫用户的头像中包括的面部的第二面部特征。终端设备可以基于第一面部特征和第二面部特征,在终端设备的数据库查询获取目标图像。
因为视频是由多帧图像组成的。在一种可能的实现方式中,终端设备可以获取每个图像,以及视频的每帧图像中包括的面部的第三面部特征,进而基于第一面部特征、第二面部特征,以及第三面部特征,获取目标图像。其中,终端设备可以获取第三面部特征与第一面部特征的第一相似度,以及第三面部特征与第二面部特征的第二相似度,且将第一相似度和第二相似度均大于预设阈值的第三面部特征对应的图像,作为目标图像。其中,目标图像可以为至少一个。
在一种可能的实现方式中,为了减少终端设备获取第三面部特征的工作量,终端设备可以在数据库中,先获取包含有面部的候选图像,进而对候选图像进行面部识别,以获取候选图像的第三面部特征。终端设备可以基于第一面部特征、第二面部特征,以及第三面部特征,获取目标图像,具体可以参照上述的相关描述。示例性的,数据库中包含有图像1、图像2和图像3,图像1为未包含有面部的风景图像,图像2为包含有用户A的面部的图像,图像3为包含有用户B的面部的图像。终端设备可以将包含有面部的图像2和图像3作为候选图像,进而对图像2和图像3中进行面部识别,无需在图像1、图像2以及图 像3中进行面部识别,可以减少终端设备的面部识别的计算量。
换句话说,在该种实施例中,假设主叫用户为用户A,被叫用户为用户B,用户A的头像为用户A的全身照,用户B的头像为用户B的全身照,目标图像为:数据库中包含有用户A的面部以及用户B的面部的图像。应注意,目标图像除了包含有主叫用户的头像中的面部,以及被叫用户的头像中的面部,还可以包含有其他用户的面部。
在一种实施例中,第一面部特征和第二面部特征可以相同或不同,也就是说,主叫用户的头像和被叫用户的头像中的面部可以相同或不同。
在一种实施例中,主叫用户的头像或被叫用户的头像中未包含面部。下述以主叫用户的头像中包括面部,被叫用户的头像中未包括面部为例进行说明。本申请实施例中,终端设备可以基于第三面部特征以及第一面部特征,获取目标图像,其中,终端设备可以获取第三面部特征与第一面部特征的第一相似度,将第一相似度大于预设阈值的第三面部特征对应的图像,作为目标图像。换句话说,在该种实施例中,目标图像为:数据库中包含有用户A的面部的图像。
在一种实施例中,主叫用户的头像和被叫用户的头像中均未包含面部,本申请实施例中,终端设备可以显示预设通讯界面,如上图1中的e所示。在一种实施例中,为了增加通话趣味性,当主叫用户的头像和被叫用户的头像中均未包含面部时,终端设备可以基于当前日期和/或地点,获取目标图像。应理解,数据库中的图像均对应存储有日期标签,以及地点标签等,日期标签用于表征图像的拍摄日期,地点标签用于表征图像的拍摄地点。终端设备可以基于当前日期和/或地点,以及数据库中的图像的日期标签,以及地点标签,获取目标图像。以当前日期为例,终端设备可以将数据库中历史年份中同一日期的图像作为目标图像。示例性的,如当前日期为5月20日,则终端设备可以将数据库中去年5月20日拍摄的图像作为目标图像。
在一种实施例中,若数据库中未包含有历史年份中同一日期的图像和/或历史同一地点的图像,但当前日期为节日和/或地点为景点,终端设备可以将预设的节日图像和/或景点图像作为目标图像。示例性的,终端设备中可以存储预设图像集,该预设图像集中包括有关春节、圣诞、中秋等节日的预设图像,和/或,各景点的预设图像。终端设备可以基于当前日期和/或地点,将预设的节日图像和/或景点图像作为目标图像。示例性的,当前日期为春节,则终端设备可以预设图像集中有关春节的预设图像作为目标图像。
在一种实施例中,终端设备在获取目标图像后,可以将目标图像与被叫用户的标识对应存储,以便于终端设备在接收到该被叫用户的来电,以及终端设备再次向该被叫用户发起通话请求时,可以基于被叫用户的标识,获取被叫用户对应的目标图像,以避免终端设备重新获取目标图像,进而减少终端设备的计算量。被叫用户的标识可以但不限于为:被叫用户的电话号码、名字或头像。
在该实施例中,因为数据库中的图像和/或视频会逐渐增加,因此当终端设备检测到数据库中有新增的图像和/或视频时,上述S202可以替换为:对主叫用户的头像,以及被叫用户的头像进行面部识别,在新增的图像和/或视频中获取新的目标图像,将历史存储的目标图像以及该新的目标图像,作为目标图像。终端设备在新增的图像和/或视频中获取新的目标图像可以参照上述的相关描述。
在一种实施例中,因为数据库中的图像均对应存储有日期标签,以及地点标签等,终 端设备在获取目标图像时,还可以获取目标图像的日期和/或地点。
S203,在预设通讯界面上叠加显示目标图像。
预设通讯界面可以理解为:通讯应用默认的通讯界面。当通讯应用为通话应用时,预设通讯界面可以如上图1中的e所示。
在一种实施例中,终端设备可以在预设通讯界面上叠加显示目标图像,可以理解为:终端设备可以在预设通讯界面上包括的至少一个元素所处图层的下方新建图层,该新建图层可以称为至少一个元素所处图层的下层图层,终端设备可以在该下层图层中叠加目标图像。预设通讯界面中包括的元素所处的图层位于目标图像所处图层的上方。其中,预设通讯界面上可以包括至少一个元素,元素可以但不限于为:预设通讯界面上的文字、图像以及用户可操作的控件。在该实施例中,目标图像可以作为预设通讯界面的背景图像。
示例性的,参照图2B所示,预设通讯界面上包括的至少一个元素为“挂断”控件10216和“扩音”控件10217,终端设备可以在“挂断”控件10216和“扩音”控件10217所处图层的下层图层中叠加目标图像10215。如此,用户还可以操作“挂断”控件10216和“扩音”控件10217。
在一种实施例中,终端设备可以在预设通讯界面上全屏叠加显示目标图像,如目标图像可以作为预设通讯界面的背景图像。
在一种实施例中,终端设备可以在预设通讯界面上的预设位置叠加显示目标图像,其中,目标图像可以与预设通讯界面上的元素处于同一图层,或者目标图像处于至少一个元素所处图层的下层图层,或者目标图像处于至少一个元素所处图层的上层图层,本申请实施例对此不作限制。示例性的,目标图像的尺寸较小,如目标图像的尺寸小于预设尺寸时,终端设备可以在预设通讯界面上的元素所处的图层上叠加目标图像。在一种实施例中,若目标图像的尺寸大于预设尺寸,终端设备可以调整目标图像的尺寸至预设尺寸,且在预设通讯界面上的元素所处的图层上叠加目标图像。值得注意的是,在该种实施例中,终端设备在预设通讯界面上的预设位置叠加显示目标图像,目标图像不覆盖预设通讯界面上的元素,可以保证用户对元素(如控件)的操作。
本申请实施例对终端设备在预设通讯界面上叠加目标图像的方式不作限制。在一种实施例中,上述S203可以替换为:将预设通讯界面与目标图像叠加,得到通讯请求的通讯界,且显示通讯界面。
以终端设备在预设通讯界面上全屏叠加显示目标图像为例,在一种实施例中,若目标图像的尺寸等于预设通讯界面的尺寸,则终端设备可以全屏叠加显示目标图像,若目标图像的尺寸小于预设通讯界面的尺寸,则终端设备可以将目标图像的上边界与预设通讯界面的上界面对齐显示,本申请实施例对此不作限制。若目标图像的尺寸大于预设通讯界面的尺寸,则终端设备可以将目标图像的中心位置和预设通讯界面的中心位置重叠,以叠加显示目标图像,不显示目标图像中超出预设通讯界面的尺寸之外的部分。在一种实施例中,终端设备还可以基于目标图像的尺寸和预设通讯界面的尺寸,将目标图像调整至与预设通讯界面的尺寸相同,进而全屏显示目标图像。
下述以目标图像为一个,且终端设备在预设通讯界面的预设位置叠加显示目标图像为例进行说明。示例性的,主叫用户为用户A,被叫用户为张三,用户A的头像为用户A的半身照,张三的头像为张三的半身照,目标图像为:数据库中包含有用户A的面部以及张 三的面部的图像。如图3中的e所示,终端设备可以在预设通讯界面上叠加显示目标图像10215,该目标图像10215为用户A与张三的合照,目标图像位于预设通讯界面(拨号界面)的下层,用户仍可以选择预设通讯界面上的控件,如“挂断”控件10216和“扩音”控件10217。应理解,图3中为了清楚表征在预设通讯界面上叠加显示目标图像,以虚线框表征目标图像,图3中的e中仅示出了“挂断”控件10216和“扩音”控件10217,未示出该界面上的其他元素,可以参照图1中的e所示。图3中的e为拨号界面,当张三接通电话时,拨号界面可以跳转至通话界面,终端设备可以在通话界面叠加显示目标图像,参照图3中的f所示。在一种实施例中,拨号界面和通话界面可以统称为通讯界面。
如上述,在一种实施例中,终端设备在获取目标图像时,若获取了目标图像的日期和/或地点,则终端设备在预设通讯界面上叠加显示目标图像时,可以在目标图像上叠加显示目标图像的日期和/或地点。示例性的,图3中的e和f中叠加显示目标图像的日期和地点为例进行说明,如“5月20日,西安”。
在一种实施例中,目标图像可以为至少一个。当目标图像为多个时,终端设备可以轮播叠加目标图像后的预设通讯界面,参照图4中的a和b所示,应理解,图4中的a和b以在拨号界面为例进行说明。其中,终端设备可以将预设通讯界面与每个目标图像叠加,得到通讯请求的至少两个通讯界面,进而轮播显示所述至少两个通讯界面。在一种实施例中,终端设备轮播显示所述至少两个通讯界面,也可以称为:终端设备滚动显示所述至少两个通讯界面。或者,在一种实施例中,当目标图像为多个时,终端设备可以在预设通讯界面上滚动显示该多个目标图像,同样也可以达到显示多个目标图像的目的。
示例性的,终端设备可以按照目标图像的拍摄时间的先后顺序,在预设通讯界面上叠加显示目标图像,进而可以实现终端设备轮播叠加目标图像后的预设通讯界面。在一种实施例中,终端设备轮播叠加目标图像后的预设通讯界面可以为:每隔预设时长,显示叠加一个目标图像后的预设通讯界面。示例性的,终端设备可以每隔2s,显示叠加一个目标图像后的预设通讯界面,或者,可以理解为:终端设备可以在预设通讯界面上,每隔2s滚动显示一个目标图像。
S204,检测主叫用户或被叫用户是否设置头像;若是,执行S205和S203,若否,执行S206。
若终端设备检测到并非主叫用户和被叫用户均设置头像,则终端设备可以检测主叫用户或被叫用户是否设置头像,进而基于主叫用户或被叫用户的头像,获取目标图像,检测主叫用户或被叫用户是否设置头像,以及获取目标图像可以参照上述的相关描述。
S205,对目标用户的头像进行面部识别,在终端设备的数据库中获取目标图像,目标用户为主叫用户或被叫用户。
目标用户为主叫用户或被叫用户。示例性的,目标用户为主叫用户,则终端设备可以获取主叫用户的头像中的第一面部特征,以及获取候选图像的第三面部特征,进而基于第一面部特征和第三面部特征,获取目标图像,具体可以参照上述S202的相关描述。在一种实施例中,目标用户的头像可以称为目标头像,目标图像为主叫用户的头像或被叫用户的头像。
在一种实施例中,若目标用户的头像中未包括面部,则终端设备可以显示预设通讯界面。在一种实施例中,为了增加通话趣味性,当目标用户的头像中未包括面部时,终端设 备可以基于当前日期和/或地点,获取目标图像,可以参照上述的相关描述。
本申请实施例中,终端设备执行S205后,可以执行上述S203。
S206,显示预设通讯界面。
在一种实施例中,若主叫用户和被叫用户均未设置头像,终端设备可以显示预设通讯界面。在一种实施例中,为了增加通话趣味性,当主叫用户和被叫用户均未设置头像时,终端设备可以基于当前日期和/或地点,获取目标图像,可以参照上述的相关描述。
上述实施例中介绍了终端设备(主叫端)可以基于通讯双方用户的头像,获取目标图像,以丰富通讯界面的方案,在一种实施例中,当被叫端接收到主叫端的通讯请求时,被叫端可以检测主叫用户和被叫用户是否均设置头像,进而执行上述实施例中的相关步骤,实现在被叫端的预设通讯界面上叠加目标图像的目的,可以丰富被叫端的通讯界面,具体可以参照上述实施例的相关描述。其中,被叫端可以响应于来自主叫端的通话请求,基于主叫用户的电话号码或名字,检测主叫用户是否设置头像。
本申请实施例提供的通讯界面的显示方式包括:响应于向被叫端发起通话请求,终端设备检测主叫用户和被叫用户是否均设置头像,若主叫用户和被叫用户均设置头像,可以对主叫用户的头像,以及被叫用户的头像进行面部识别,在终端设备的数据库中获取目标图像,且在预设通讯界面上叠加显示目标图像。若主叫用户和被叫用户未均设置头像,则检测主叫用户或被叫用户是否设置头像,进而对目标用户的头像进行面部识别,在终端设备的数据库中获取目标图像,且在预设通讯界面上叠加显示目标图像,若主叫用户和被叫用户均未设置头像,则可以显示预设通信界面。本申请实施例中,终端设备可以基于通讯的双方用户的头像,在数据库中获取包含有双方用户的头像中的面部的目标图像,进而在预设通讯界面上叠加显示目标图像,可以丰富通讯界面。且因为目标图像包含有通讯的双方用户的头像中的面部,因此可以使得通讯的双方用户的通讯过程中,看到通讯的双方的图像,可以增加通讯的双方用户的关联,提升用户体验。
在一种实施例中,参照图5,上述S201可以替换为S201A,S201-S206可以替换为S202A-S204A。
S201A,响应于向被叫端发起通话请求,检测主叫用户和被叫用户是否设置头像;若是,执行S202A-S203A,若否,执行S204A。
应理解,本申请实施例中的执行主体可以为主叫端(第一设备)或被叫端(第二设备)。
S202A,对目标用户的头像进行面部识别,在终端设备的数据库中获取目标图像,目标用户为主叫用户和/或被叫用户。
本申请实施例中,目标用户可以为主叫用户和/或被叫用户,目标用户为:主叫用户和被叫用户中设置了头像的用户。目标图像为:数据库中包含有主叫用户的头像中的面部和/或被叫用户的头像中的面部的图像。在一种实施例中,目标用户的头像可以称为目标头像,目标头像可以为主叫用户的头像或被叫用户的头像。
其中,基于面部识别,获取目标图像具体可以参照上述S202的相关描述。在该实施例中,目标用户的头像中包括的面部的特征可以为第一面部特征,数据库中每个图像和/或视频中每帧图像中包括的面部的特征为第二面部特征,终端设备可以获取第一面部特征和第二面部特征的相似度,且将相似度大于预设阈值的第二面部特征对应的图像作为目标 图像。
S203A,在预设通讯界面上叠加显示目标图像。
S204A,显示预设通讯界面。
S201A、S203A,以及S204A分别可以参照S201、S203,以及S207。
本申请实施例具有与上述实施例相同的技术效果,可以参照上述的相关描述。
参照图1中的f,当通话应用运行在后台时,终端设备的桌面的左上角显示有胶囊图标10214,且终端设备的桌面上可以显示快速拨号的联系人的卡片10211,该卡片10211中显示的为快速拨号的联系人的头像,卡片的样式单一。本申请实施例提供的通讯界面的显示方式,不仅可以对如上的通讯界面上叠加显示目标图像,还可以基于目标图像,生成桌面卡片,进而丰富桌面卡片,也可以提高用户体验。应理解,该桌面卡片用于表征向快速拨号的联系人拨打电话的快捷入口。
参照图6,在一种实施例中,终端设备在获取目标图像,即在S202之后以及在S205之后可以执行:
S202B,检测通讯应用是否运行在前台;若是,执行上述S203,若否,执行S203B-S204B。
终端设备获取目标图像后,可以检测通讯应用运行在前台或者后台,进而执行响应于运行在前台或者后台的操作。
在一种实施例中,终端设备中可以记录通讯应用的运行状态,终端设备可以通过查询通讯应用的运行状态,检测通讯应用是否运行在前台。在一种实施例中,终端设备可以查询通讯应用的运行状态application state,若application state记录为“UI Application State Active”,表征通讯应用运行在前台,若application state记录为“UI Application State Background”,表征通讯应用运行在后台。
S203B,基于目标图像,生成桌面卡片。
针对通话应用来说,当通话应用运行在后台时,终端设备的桌面上会显示如上图1中的f所示的桌面卡片。本申请实施例中,为了丰富桌面卡片,可以基于目标图像,生成桌面卡片。其中,终端设备可以基于显示桌面卡片的卡片框的尺寸,以及目标图像的尺寸,生成桌面卡片。
在一种实施例中,终端设备可以将目标图像压缩至与卡片框相同的尺寸,得到桌面卡片。在一种实施例中,终端设备可以裁剪目标图像,以得到与卡片框相同尺寸的桌面卡片。其中,终端设备在裁剪目标图像时,可以保留目标图像中的面部区域,裁剪目标图像中非面部的区域,以得到桌面卡片。
S204B,在终端设备的桌面上显示桌面卡片。
终端设备可以在桌面上显示桌面卡片。示例性的,参照图3中的f,当用户从通讯界面的底部向上滑动时,通话应用运行在后台,终端设备可以显示如图3中的g所示的界面,该界面上可以显示终端设备基于目标图像生成的桌面卡片。
在一种实施例中,当目标图像为多个时,终端设备可以基于每个目标图像,生成每个目标图像对应的桌面卡片,进而在终端设备的桌面上轮播每个目标图像对应的桌面卡片,参照图7所示。应理解,图7中以每隔2s,显示叠加一个目标图像后的桌面卡片为例进行说明,轮播的方式可以参照上述实施例中轮播目标图像的相关描述。
应注意的是,以通讯应用为通话应用为例,当被叫用户为快速拨号的联系人时,无论主叫用户在通讯录的联系人列表中,触发终端设备向被叫端发起通话请求,还是在终端设备的桌面上,触发终端设备向被叫端发起通话请求,当通话应用运行在后台时,终端设备均可以执行S203B-S204B,以在终端设备的桌面上,显示基于目标图像生成的桌面卡片。
本申请实施例中,当通讯应用运行在后台时,终端设备可以基于目标图像,生成桌面卡片,进而丰富桌面卡片,提高用户体验。
为了丰富通讯界面,使得用户可以基于通讯界面上叠加的目标图像,想到拍摄目标图像时的场景,即为了使得用户可以深度体验,本申请实施例中可以基于目标图像的日期和地点,将目标图像填充在与日期和地点关联的海报模板中,提升用户体验。
以图5为例,参照图8,在一种实施例中,在S202A之后,终端设备还可以执行:
S202C,若目标图像的日期为预设日期,则基于目标图像的日期,在海报模板库中确定目标海报模板,或者,若地点为预设地点,则基于地点,在海报模板库中确定目标海报模板。
目标图像的日期为:目标图像的拍摄日期,目标图像的地点为:目标图像的拍摄地点。在一种实施例中,预设日期可以为节日,如春节、圣诞等,预设地点可以为景点。终端设备中存储有海报模板库,该海报模板库包括多个海报模板,海报模板与节日或景点相关。示例性的,海报模板库中可以包括:春节海报模板、圣诞海报模板。在一种实施例中,预设日期和预设地点也可以为用户预定义的日期或地点,如该预设日期为“纪念日”,地点为“初次遇见的地点”。同理的,用户可以自定义设置海报模板,海报模板与预设日期或预设地点相关。
终端设备可以基于目标图像的日期标签,确定目标图像的日期是否为预设日期。终端设备可以基于目标图像的地点标签,确定目标图像的地点是否为预设地点。其中,当目标图像的日期为预设日期时,终端设备可以将海报模板库中与该预设日期相关的海报模板作为目标海报模板。当目标图像的日期为预设地点时,终端设备可以将海报模板库中与该预设地点相关的海报模板作为目标海报模板。
S203C,将目标图像填充在目标海报模板的预设区域,得到目标海报。
海报模板中的预设区域,用于填充目标图像。在一种实施例中,在填充目标图像之前,海报模板中的预设区域为空白区域或填充为模板图像。
本申请实施例中,终端设备可以基于目标图像的尺寸,以及预设区域的尺寸,将目标图像填充在目标海报模板的预设区域,得到填充目标图像的目标海报。示例性的,终端设备可以将目标图像缩小至与预设区域相同的尺寸,以将目标图像填充在目标海报模板的预设区域。或者,终端设备可以裁剪目标图像,以使得裁剪后的目标图像的尺寸与预设区域的尺寸相同,可以参照上述实施例的相关描述。
相应的,S203A可以替换为S203D:在预设通讯界面上叠加显示目标海报。或者,S203A可以替换为:将预设通讯界面与目标海报叠加,得到目标海报,且显示目标海报。
S203D可以参照上述S203中的相关描述。示例性的,参照图9中的d所示,当主叫用户在终端设备的桌面上,点击快速拨号的联系人的卡片10211,触发终端设备向被叫端发起通话请求时,终端设备可以显示如图9中的e的界面,图9中的d可以参照图3中的 d的相关描述。图9中的e相较于图3中的e,终端设备的预设通讯界面上叠加显示的为:包含有目标图像的目标海报。示例性的,图9中的e的目标海报模板与预设日期“5月20日”相关。
相应的,参照图9中的e,用户从通讯界面的底部向上滑动时,通话应用运行在后台,终端设备可以显示如图9中的g中界面。应理解,若终端设备基于目标海报生成桌面卡片,因为桌面卡片的尺寸较小,则桌面卡片显示的目标海报不完全,因此本申请实施例中,终端设备未基于目标海报生成桌面卡片,而是基于目标图像生成桌面卡片。
应理解,图8是在图5的基础上增加海报模板的方案,本申请实施例中也可以在图2A、图5或图6的基础上,增加海报模板的方案,可以参照上述图8的相关描述,此处不做赘述。
本申请实施例中,终端设备在基于通讯双方用户的头像,得到目标图像后,还可以基于目标图像的日期和/地点,确定目标海报模板,进而将目标图像填充在目标海报模板中,以在预设的通讯界面进行显示,可以使得用户可以深度体验,进一步提高用户体验。
应理解的是,上述实施例中以通讯应用为通话应用为例进行说明,本申请实施例提供的通讯界面的显示方法还可以应用在其他通讯应用中。下述实施例中以在其他通讯应用的通讯界面上叠加显示目标图像为例进行说明。
在一种实施例中,通讯应用可以为信息应用。参照图10中的a,第一用户可以在信息列表中选择第二用户,使得第一设备可以向第二设备发送短信。参照图10中的b,终端设备可以响应于第一用户发起的通讯请求,执行本申请中上述实施例中的步骤,进而在第一用户和第二用户的预设通讯界面(短信界面)上叠加显示目标图像。
在一种实施例中,通讯应用可以为支持视频和/或语音聊天的应用。以语音聊天为例,参照图11中的a,主叫用户可以发起与被叫用户的通讯请求。参照图11中的b,终端设备可以响应于通讯请求,执行本申请中上述实施例中的步骤,进而在通讯界面(如呼叫界面和聊天界面)上叠加显示目标图像。在一种实施例中,支持视频和/或语音聊天的应用可以称为通话应用,呼叫界面可以称为通话请求界面,聊天界面可以称为通话界面。
现有技术方案中,当支持视频和/或语音聊天的应用运行在后台时,终端设备的桌面上的可以显示提示框(桌面卡片),以提示用户视频或语音聊天正在进行。当视频或语音通话未接通时,该提示框中可以显示“等待接听”的提示信息,当视频或语音通话接通时,该提示框中可以显示通话时长。在一种实施例中,该提示框可以称为桌面卡片,该桌面卡片用于表征通话正在进行。
本申请实施例中,为了丰富提示框的样式,终端设备可以基于目标图像,在选择框中叠加显示目标图像。示例性的,以语音聊天的呼叫界面为例,参照图11中的b所示,当用户从呼叫界面的底部向上滑动时,支持视频和/或语音聊天的应用运行在后台,终端设备可以显示如图11中的c所示的界面。参照图11中的c,终端设备可以在提示框10218中叠加显示目标图像。
应理解的是,通讯应用的种类多种多样,本申请实施例示例性的以通话应用、信息应用,以及支持视频和/或语音聊天的应用为例,说明本申请实施例提供的通讯界面的显示方法,本申请实施例提供的通讯界面的显示方法也可以应用在其他通讯应用中。
图12为本申请实施例提供的通讯界面的显示装置的一种结构示意图。如图12所示,该通讯界面的显示装置可以为上述实施例中的第一设备或第二设备,也可以为第一设备或第二设备的一个模块,例如,可以为第一设备或第二设备的芯片。该通讯界面的显示装置1200可以包括:处理模块1201和显示模块1202。
处理模块1201,用于:响应于第一设备向第二设备发起通讯请求,检测第一用户和第二用户是否设置用于通讯的头像,第一设备属于第一用户,第二设备属于第二用户;若是,则基于目标头像的面部识别结果,在数据库中获取包含有目标头像的面部的目标图像,目标头像为第一用户和/或第二用户设置的用于通讯的头像;将预设通讯界面与目标图像叠加,得到通讯请求的通讯界面。
显示模块1202,用于显示通讯界面。
在一种可能的实现方式中,处理模块1201,具体用于:查询发起通讯请求的通讯应用的用户的信息,用户的信息中包括至少一个用户的标识和头像;基于第一用户的标识,若在用户的信息中查询到第一用户的头像,则确定第一用户设置头像;基于第二用户的标识,若在用户的信息中查询到第二用户的头像,则确定第二用户设置头像。
在一种可能的实现方式中,数据库中包括至少一个图像和/或视频。处理模块1201,具体用于:获取目标头像中包括的面部的第一面部特征;获取每个图像和/或视频的每帧图像中包括的面部的第二面部特征;获取第一面部特征和第二面部特征的相似度;将相似度大于预设阈值的第二面部特征对应的图像,作为目标图像。
在一种可能的实现方式中,处理模块1201,具体用于:在至少一个元素所处图层的下层图层中叠加目标图像。
在一种可能的实现方式中,目标图像为至少两个。处理模块1201,具体用于:将预设通讯界面与每个目标图像叠加,得到通讯请求的至少两个通讯界面。
显示模块1202,还用于滚动显示至少两个通讯界面。
在一种可能的实现方式中,处理模块1201,具体用于:基于目标图像的拍摄日期或拍摄地点,在海报模板库中获取与拍摄日期或拍摄地点相关的目标海报模板;在目标海报模板的预设区域叠加目标图像,得到目标海报;将预设通讯界面与目标海报叠加。
在一种可能的实现方式中,处理模块1201,还用于:检测发起通讯请求的通讯应用是否运行在前台;若通讯应用运行在前台,则将预设通讯界面与目标图像叠加。
在一种可能的实现方式中,处理模块1201,还用于:若通讯应用运行在后台,则基于目标图像,生成桌面卡片,桌面卡片中包括目标图像,桌面卡片用于表征向第二设备发起通讯请求的快捷入口,或表征通讯应用正在运行。
显示模块1202,还用于在桌面上显示桌面卡片。
在一种可能的实现方式中,处理模块1201,具体用于:查询通讯应用的运行状态,以检测通讯应用是否运行在前台,运行状态表征通讯应用运行在前台或后台。
在一种可能的实现方式中,处理模块1201,还用于:若在目标头像中未检测到面部,或第一用户和第二用户均未设置头像,则基于当前日期和/地点,将数据库中历史同一日期和/或历史同一地点的图像作为目标图像。
在一种可能的实现方式中,显示模块1202,还用于:若第一用户和第二用户均未设置 用于通讯的头像,则显示预设通讯界面。
在一种可能的实现方式中,发起通讯请求的通讯应用为通话应用,通讯请求为通话请求,预设通讯界面包括:通话请求界面和通话界面。
本申请实施例提供的通讯界面的显示装置,其实现原理和技术效果类似,对此不再赘述。
需要说明的是,应理解以上模块可以以软件通过处理元件调用的形式实现;也可以以硬件的形式实现。例如,获取模块可以为单独设立的处理元件,也可以集成在上述装置的某一个芯片中实现,此外,也可以以程序代码的形式存储于上述装置的存储器中,由上述装置的某一个处理元件调用并执行以上处理模块的功能。此外这些模块全部或部分可以集成在一起,也可以独立实现。这里所述的处理元件可以是一种集成电路,具有信号的处理能力。在实现过程中,上述方法的各步骤或以上各个模块可以通过处理器元件中的硬件的集成逻辑电路或者软件形式的指令完成。
例如,以上这些模块可以是被配置成实施以上方法的一个或多个集成电路,例如:一个或多个专用集成电路(application specific integrated circuit,ASIC),或,一个或多个微处理器(digital signal processor,DSP),或,一个或者多个现场可编程门阵列(field programmable gate array,FPGA)等。再如,当以上某个模块通过处理元件调度程序代码的形式实现时,该处理元件可以是通用处理器,例如中央处理器(central processing unit,CPU)或其它可以调用程序代码的处理器。再如,这些模块可以集成在一起,以片上系统(system-on-a-chip,SOC)的形式实现。
图13为本申请实施例提供的电子设备的一种结构示意图。如图13所示,该电子设备可以为如上实施例中的第一设备或第二设备。电子设备可以包括:处理器31(例如CPU)、存储器32和显示器33;存储器和显示器33可以耦合至处理器31。存储器32可能包含高速随机存取存储器(random-access memory,RAM),也可能还包括非易失性存储器(non-volatile memory,NVM),例如至少一个磁盘存储器,存储器32中可以存储各种指令,以用于完成各种处理功能以及实现本申请的方法步骤。显示器33用于显示如上第一设备或第二设备的界面,如通讯界面和预设通讯界面。可选的,本申请涉及的电子设备还可以包括:电源34、通信总线35以及通信端口36。通信总线35用于实现元件之间的通信连接。上述通信端口36用于实现电子设备与其他外设之间进行连接通信。
在本申请实施例中,上述存储器32用于存储计算机可执行程序代码,程序代码包括指令;当处理器31执行指令时,指令使电子设备的处理器31执行上述方法实施例中电子设备的处理动作,其实现原理和技术效果类似,在此不再赘述。
在上述实施例中,可以全部或部分地通过软件、硬件、固件或者其任意组合来实现。当使用软件实现时,可以全部或部分地以计算机程序产品的形式实现。计算机程序产品包括一个或多个计算机指令。在计算机上加载和执行计算机程序指令时,全部或部分地产生按照本申请实施例的流程或功能。计算机可以是通用计算机、专用计算机、计算机网络、或者其他可编程装置。计算机指令可以存储在计算机可读存储介质中,或者从一个计算机可读存储介质向另一个计算机可读存储介质传输,例如,计算机指令可以从一个网站站点、计算机、服务器或数据中心通过有线(例如同轴电缆、光纤、数字用户线(DSL))或无线(例如红外、无线、微波等)方式向另一个网站站点、计算机、服务器或数据中心进行 传输。计算机可读存储介质可以是计算机能够存取的任何可用介质或者是包含一个或多个可用介质集成的服务器、数据中心等数据存储设备。可用介质可以是磁性介质,(例如,软盘、硬盘、磁带)、光介质(例如,DVD)、或者半导体介质(例如固态硬盘Solid State Disk(SSD))等。
本文中的术语“多个”是指两个或两个以上。本文中术语“和/或”,仅仅是一种描述关联对象的关联关系,表示可以存在三种关系,例如,A和/或B,可以表示:单独存在A,同时存在A和B,单独存在B这三种情况。另外,本文中字符“/”,一般表示前后关联对象是一种“或”的关系;在公式中,字符“/”,表示前后关联对象是一种“相除”的关系。
可以理解的是,在本申请的实施例中涉及的各种数字编号仅为描述方便进行的区分,并不用来限制本申请的实施例的范围。
可以理解的是,在本申请的实施例中,上述各过程的序号的大小并不意味着执行顺序的先后,各过程的执行顺序应以其功能和内在逻辑确定,而不应对本申请的实施例的实施过程构成任何限定。

Claims (16)

  1. 一种通讯界面的显示方法,其特征在于,所述方法包括:
    响应于第一设备向第二设备发起通讯请求,检测第一用户和第二用户是否设置用于通讯的头像,所述第一设备属于所述第一用户,所述第二设备属于所述第二用户;
    若是,则基于目标头像的面部识别结果,在数据库中获取包含有所述目标头像的面部的目标图像,所述目标头像为所述第一用户和/或所述第二用户设置的用于通讯的头像;
    将预设通讯界面与所述目标图像叠加,得到所述通讯请求的通讯界面;
    显示所述通讯界面。
  2. 根据权利要求1所述的方法,其特征在于,所述检测第一用户和第二用户是否设置用于通讯的头像,包括:
    查询发起所述通讯请求的通讯应用的用户的信息,所述用户的信息中包括至少一个用户的标识和头像;
    基于所述第一用户的标识,若在所述用户的信息中查询到所述第一用户的头像,则确定所述第一用户设置头像;
    基于所述第二用户的标识,若在所述用户的信息中查询到所述第二用户的头像,则确定所述第二用户设置头像。
  3. 根据权利要求1或2所述的方法,其特征在于,所述数据库中包括至少一个图像和/或视频,所述在数据库中获取包含有所述目标头像的面部的目标图像,包括:
    获取所述目标头像中包括的面部的第一面部特征;
    获取每个图像和/或所述视频的每帧图像中包括的面部的第二面部特征;
    获取所述第一面部特征和所述第二面部特征的相似度;
    将相似度大于预设阈值的第二面部特征对应的图像,作为所述目标图像。
  4. 根据权利要求1-3中任一项所述的方法,其特征在于,所述预设通讯界面包括至少一个元素,所述将预设通讯界面与所述目标图像叠加,包括:
    在所述至少一个元素所处图层的下层图层中叠加所述目标图像。
  5. 根据权利要求1-4中任一项所述的方法,其特征在于,所述目标图像为至少两个,所述将预设通讯界面与所述目标图像叠加,得到所述通讯请求的通讯界面,包括:
    将所述预设通讯界面与每个目标图像叠加,得到所述通讯请求的至少两个通讯界面;
    所述显示所述通讯界面,包括:
    滚动显示所述至少两个通讯界面。
  6. 根据权利要求1-5中任一项所述的方法,其特征在于,所述在数据库中获取包含有所述目标头像的面部的目标图像之后,还包括:
    基于所述目标图像的拍摄日期或拍摄地点,在海报模板库中获取与所述拍摄日期或拍摄地点相关的目标海报模板;
    在所述目标海报模板的预设区域叠加所述目标图像,得到目标海报;
    所述将预设通讯界面与所述目标图像叠加,包括:
    将所述预设通讯界面与所述目标海报叠加。
  7. 根据权利要求1-6中任一项所述的方法,其特征在于,所述在数据库中获取包含有 所述目标头像的面部的目标图像之后,还包括:
    检测发起所述通讯请求的通讯应用是否运行在前台;
    所述将预设通讯界面与所述目标图像叠加,包括:
    若所述通讯应用运行在前台,则将预设通讯界面与所述目标图像叠加。
  8. 根据权利要求7所述的方法,其特征在于,所述方法还包括:
    若所述通讯应用运行在后台,则基于所述目标图像,生成桌面卡片,所述桌面卡片中包括所述目标图像,所述桌面卡片用于表征向所述第二设备发起通讯请求的快捷入口,或表征所述通讯应用正在运行;
    在桌面上显示所述桌面卡片。
  9. 根据权利要求7或8所述的方法,其特征在于,所述检测发起所述通讯请求的通讯应用是否运行在前台,包括:
    查询所述通讯应用的运行状态,以检测所述通讯应用是否运行在前台,所述运行状态表征所述通讯应用运行在前台或后台。
  10. 根据权利要求1-9中任一项所述的方法,其特征在于,所述方法还包括:
    若在所述目标头像中未检测到面部,或所述第一用户和所述第二用户均未设置头像,则基于当前日期和/地点,将所述数据库中历史同一日期和/或历史同一地点的图像作为所述目标图像。
  11. 根据权利要求1-10中任一项所述的方法,其特征在于,所述方法还包括:
    若所述第一用户和所述第二用户均未设置用于通讯的头像,则显示所述预设通讯界面。
  12. 根据权利要求1-11中任一项所述的方法,其特征在于,发起所述通讯请求的通讯应用为通话应用,所述通讯请求为通话请求,所述预设通讯界面包括:通话请求界面和通话界面。
  13. 一种通讯界面的显示装置,其特征在于,包括:
    处理模块,用于:
    响应于第一设备向第二设备发起通讯请求,检测第一用户和第二用户是否设置用于通讯的头像,所述第一设备属于所述第一用户,所述第二设备属于所述第二用户;
    若是,则基于目标头像的面部识别结果,在数据库中获取包含有所述目标头像的面部的目标图像,所述目标头像为所述第一用户和/或所述第二用户设置的用于通讯的头像;
    将预设通讯界面与所述目标图像叠加,得到所述通讯请求的通讯界面;
    显示模块,用于显示所述通讯界面。
  14. 一种电子设备,其特征在于,包括:存储器、处理器;
    所述处理器用于与所述存储器耦合,读取并执行所述存储器中的指令,以实现权利要求1-12中任一项所述的方法。
  15. 一种计算机可读存储介质,其特征在于,所述计算机存储介质存储有计算机指令,当所述计算机指令被计算机执行时,使得所述计算机执行权利要求1-12中任一项所述的方法。
  16. 一种计算机程序产品,包括计算机程序或指令,其特征在于,所述计算机程序或指令被处理器执行时,实现权利要求1-12中任一项所述的方法。
PCT/CN2022/088251 2021-05-08 2022-04-21 通讯界面的显示方法、装置、电子设备和可读存储介质 Ceased WO2022237494A1 (zh)

Applications Claiming Priority (2)

Application Number Priority Date Filing Date Title
CN202110502399.3A CN115309293B (zh) 2021-05-08 2021-05-08 通讯界面的显示方法、装置、电子设备和可读存储介质
CN202110502399.3 2021-05-08

Publications (1)

Publication Number Publication Date
WO2022237494A1 true WO2022237494A1 (zh) 2022-11-17

Family

ID=83854225

Family Applications (1)

Application Number Title Priority Date Filing Date
PCT/CN2022/088251 Ceased WO2022237494A1 (zh) 2021-05-08 2022-04-21 通讯界面的显示方法、装置、电子设备和可读存储介质

Country Status (2)

Country Link
CN (3) CN115309293B (zh)
WO (1) WO2022237494A1 (zh)

Families Citing this family (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN116048700B (zh) * 2023-01-16 2025-08-19 长城汽车股份有限公司 一种车机功能推荐方法及相关装置

Citations (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN104023141A (zh) * 2014-06-19 2014-09-03 北京奇虎科技有限公司 通信联系人信息的显示方法和客户端以及电子设备
CN104853045A (zh) * 2015-05-25 2015-08-19 广东欧珀移动通信有限公司 一种个性化定制通话界面的方法及装置
CN105491214A (zh) * 2014-09-18 2016-04-13 中兴通讯股份有限公司 一种终端及其实现通话界面显示的方法
CN107566653A (zh) * 2017-09-22 2018-01-09 维沃移动通信有限公司 一种通话界面展示方法及移动终端
CN107613095A (zh) * 2017-08-17 2018-01-19 维沃移动通信有限公司 来电处理方法及移动终端
US20180146160A1 (en) * 2016-11-18 2018-05-24 Facebook, Inc. Methods and Systems for Displaying Relevant Participants in a Video Communication
CN109348045A (zh) * 2018-09-18 2019-02-15 艾普有限公司 一种来电界面的显示方法、装置、设备和存储介质

Family Cites Families (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN114827349A (zh) * 2017-09-07 2022-07-29 华为技术有限公司 一种头像显示方法及终端

Patent Citations (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN104023141A (zh) * 2014-06-19 2014-09-03 北京奇虎科技有限公司 通信联系人信息的显示方法和客户端以及电子设备
CN105491214A (zh) * 2014-09-18 2016-04-13 中兴通讯股份有限公司 一种终端及其实现通话界面显示的方法
CN104853045A (zh) * 2015-05-25 2015-08-19 广东欧珀移动通信有限公司 一种个性化定制通话界面的方法及装置
US20180146160A1 (en) * 2016-11-18 2018-05-24 Facebook, Inc. Methods and Systems for Displaying Relevant Participants in a Video Communication
CN107613095A (zh) * 2017-08-17 2018-01-19 维沃移动通信有限公司 来电处理方法及移动终端
CN107566653A (zh) * 2017-09-22 2018-01-09 维沃移动通信有限公司 一种通话界面展示方法及移动终端
CN109348045A (zh) * 2018-09-18 2019-02-15 艾普有限公司 一种来电界面的显示方法、装置、设备和存储介质

Also Published As

Publication number Publication date
CN117707373A (zh) 2024-03-15
CN117707372A (zh) 2024-03-15
CN115309293A (zh) 2022-11-08
CN115309293B (zh) 2023-11-07

Similar Documents

Publication Publication Date Title
US9953212B2 (en) Method and apparatus for album display, and storage medium
US12511024B2 (en) Multi-application interaction method
EP3528140A1 (en) Picture processing method, device, electronic device and graphic user interface
US9172795B1 (en) Phone call context setting
US10235030B2 (en) Electronic device and user interface display method for the same
WO2019201197A1 (zh) 图像脱敏方法、电子设备及存储介质
CN107423386B (zh) 生成电子卡片的方法及装置
CN116701686B (zh) 人机交互方法、装置和电子设备
US12438834B2 (en) Service sharing method and system, and electronic device
CN112202958B (zh) 截图方法、装置及电子设备
WO2018086548A1 (zh) 一种界面显示方法及装置
CN111526232A (zh) 一种基于双屏终端的摄像头控制方法及双屏终端
CN104104767B (zh) 便携智能终端中联系人信息的处理方法和装置
CN108228776A (zh) 数据处理方法、装置、存储介质及电子设备
WO2018000502A1 (zh) 基于联系人分组的呼叫发起方法及装置
CN108156380A (zh) 图像获取方法、装置、存储介质及电子设备
CN115309293B (zh) 通讯界面的显示方法、装置、电子设备和可读存储介质
US20250181662A1 (en) Search method and electronic device
CN105204718B (zh) 一种信息处理方法及电子设备
CN103262509B (zh) 协同操作方法、装置及移动通信终端
US12342047B2 (en) Method and apparatus for photographing live broadcast video, device and computer readable storage medium
CN113253903A (zh) 操作方法及操作装置
CN111383305B (zh) 智能终端中目标对象的识别方法、装置、电子设备
WO2024193413A1 (zh) 翻译方法、电子设备和计算机存储介质
CN115412634B (zh) 消息显示方法和装置

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: 22806464

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: 22806464

Country of ref document: EP

Kind code of ref document: A1