WO2017206456A1 - Method and apparatus for presenting video image in video call - Google Patents
Method and apparatus for presenting video image in video call Download PDFInfo
- Publication number
- WO2017206456A1 WO2017206456A1 PCT/CN2016/107936 CN2016107936W WO2017206456A1 WO 2017206456 A1 WO2017206456 A1 WO 2017206456A1 CN 2016107936 W CN2016107936 W CN 2016107936W WO 2017206456 A1 WO2017206456 A1 WO 2017206456A1
- Authority
- WO
- WIPO (PCT)
- Prior art keywords
- video image
- video
- user
- pseudo background
- terminal
- 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
Links
Images
Classifications
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04N—PICTORIAL COMMUNICATION, e.g. TELEVISION
- H04N7/00—Television systems
- H04N7/14—Systems for two-way working
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04N—PICTORIAL COMMUNICATION, e.g. TELEVISION
- H04N7/00—Television systems
- H04N7/14—Systems for two-way working
- H04N7/141—Systems for two-way working between two video terminals, e.g. videophone
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04N—PICTORIAL COMMUNICATION, e.g. TELEVISION
- H04N23/00—Cameras or camera modules comprising electronic image sensors; Control thereof
- H04N23/80—Camera processing pipelines; Components thereof
Definitions
- the device further includes a display size adjustment module, configured to:
- the first video image and the second video image are simultaneously displayed to the first user.
- FIG. 1 is a flowchart of implementing a video image display method in a video call according to an embodiment of the present invention. The method may include the following steps:
- the target pseudo background can be determined by the following steps:
- Step 1 receiving a selection instruction of the first user for the pseudo background in the preset pseudo background resource library
- Step 2 Determine the target pseudo background according to the first user's selection instruction.
- the first terminal may determine the target pseudo background according to the first user's selection instruction, and then apply the target pseudo background during the current video call, or The target pseudo background replaces the target pseudo background determined before the current time.
- the first terminal may determine the target pseudo background in advance, so that during the video call between the first terminal and the second terminal, the first terminal is based on the real scene for each frame captured.
- the first video image can identify the foreground portion of the first video image, and perform image fusion processing on the foreground portion and the target pseudo background to obtain a second video image, and send the second video image to the second terminal.
- the second video image displayed by the second terminal to the second user is a video image that includes the target pseudo background, so that the first user can also display the first user when the first user does not want to display the real scene of the second user.
- the purpose of making a video call with the second user enhances the entertainment of the video call and improves the user experience.
- Step 2 Capture a third video image based on a real scene where the first user is located according to the preview instruction;
- the first terminal may further display the second video image to the first user, or simultaneously display the first video to the first user. a first video image and the second video image.
- the first terminal outputs the played duration of the target pseudo background at the time of displaying the second video image while displaying the second video image to the first user.
- the user can know the played duration of the target pseudo background in real time, and can actively end the video call with the second user before the end of the play, to avoid the situation that the target pseudo background loops or displays the real scene.
Landscapes
- Engineering & Computer Science (AREA)
- Multimedia (AREA)
- Signal Processing (AREA)
- Telephone Function (AREA)
- Studio Circuits (AREA)
Abstract
Description
本申请要求于2016年05月31日提交中国专利局,申请号为201610378309.3、发明名称为“一种视频通话中视频图像展示方法及装置”的中国专利申请的优先权,其全部内容通过引用结合在本申请中。This application claims priority to Chinese Patent Application No. 201610378309.3, entitled "A Video Image Display Method and Apparatus for Video Calls", which is filed on May 31, 2016, the entire contents of which are incorporated by reference. In this application.
本发明涉及视频通话技术领域,特别是涉及一种视频通话中视频图像展示方法及装置。The present invention relates to the field of video call technologies, and in particular, to a video image display method and apparatus for video call.
随着移动通信技术和互联网技术的快速发展,视频通话技术也逐渐发展起来。视频通话,可以实现不同位置处的用户之间面对面的相互交流和沟通。With the rapid development of mobile communication technology and Internet technology, video call technology has gradually developed. Video calls can enable face-to-face communication and communication between users at different locations.
在视频通话过程中,双方用户都可以看到对方用户所处的真实场景。在实际应用中,用户的需求是多样化的,有的用户出于某种目的考虑,如保护个人隐私,或者娱乐等,可能并不想向对方用户展示自己所在的真实场景。在这种情况下,用户只能通过不使用终端的视频通话功能来避免向对方展示自己所在的真实场景,使用户缺少了与其他用户进行视频通话的乐趣,用户体验较差。During the video call, both users can see the real scene of the other party's user. In practical applications, the needs of users are diversified, and some users consider for a certain purpose, such as protecting personal privacy, or entertainment, and may not want to show the real scene of the user to the other party. In this case, the user can only avoid showing the real scene of the user by not using the video call function of the terminal, so that the user lacks the fun of making a video call with other users, and the user experience is poor.
本发明的目的是提供一种视频通话中视频图像展示方法及装置,以在用户不想向其他用户展示自身所在的真实场景的情况下,也能够进行视频通话,提升用户体验。An object of the present invention is to provide a video image display method and apparatus for a video call, so that a user can perform a video call and enhance the user experience if the user does not want to show other users the real scene.
一种视频通话中视频图像展示方法,应用于第一终端,所述第一终端和第二终端均具有视频通话功能,所述方法包括:A method for displaying a video image in a video call is applied to a first terminal, where the first terminal and the second terminal both have a video call function, and the method includes:
在与所述第二终端进行视频通话过程中,针对捕捉到的每一帧基于真实场景的第一视频图像,均执行以下步骤:During a video call with the second terminal, the following steps are performed on the first video image based on the real scene for each captured frame:
根据预设的识别规则,识别该第一视频图像中的前景部分;Identifying a foreground portion of the first video image according to a preset identification rule;
将该第一视频图像中的前景部分与预先确定的目标伪背景进行图像融合处理,获得与该第一视频图像对应的第二视频图像;Performing image fusion processing on the foreground portion in the first video image and the predetermined target pseudo background to obtain a second video image corresponding to the first video image;
将该第二视频图像发送给所述第二终端,以使所述第二终端向第二用户展示该第二视频图像。Sending the second video image to the second terminal, so that the second terminal presents the second video image to the second user.
在本发明的一种具体实施方式中,通过以下步骤确定所述目标伪背景:In a specific embodiment of the invention, the target pseudo background is determined by the following steps:
接收第一用户针对预设的伪背景资源库中的伪背景的选择指令;Receiving a selection instruction of the first user for a pseudo background in the preset pseudo background resource library;
根据所述第一用户的选择指令,确定目标伪背景。A target pseudo background is determined according to the selection instruction of the first user.
在本发明的一种具体实施方式中,在所述确定目标伪背景之后,所述方法还包括:In a specific implementation of the present invention, after the determining the target pseudo background, the method further includes:
接收所述第一用户对所述目标伪背景的预览指令;Receiving a preview instruction of the first user to the target pseudo background;
根据所述预览指令,捕捉基于所述第一用户所在的真实场景的第三视频图像;And capturing, according to the preview instruction, a third video image based on a real scene where the first user is located;
针对捕捉到的每一帧第三视频图像,根据所述识别规则,识别该第三视频图像中的前景部分,将该第三视频图像中的前景部分与所述目标伪背景进行图像融合处理,获得与该第三视频图像对应的第四视频图像,将该第四视频图像输出展示给所述第一用户。Identifying, in the third video image of each frame, the foreground portion in the third video image according to the identification rule, and performing image fusion processing on the foreground portion in the third video image and the target pseudo background, And obtaining a fourth video image corresponding to the third video image, and displaying the fourth video image output to the first user.
在本发明的一种具体实施方式中,在所述识别该第一视频图像中的前景部分之后、所述将该第一视频图像中的前景部分与预先确定的目标伪背景进行图像融合处理之前,所述方法还包括:In a specific embodiment of the present invention, after the identifying the foreground portion in the first video image, before performing the image fusion processing on the foreground portion in the first video image and the predetermined target pseudo background The method further includes:
确定该第一视频图像中的前景部分与前一帧第一视频图像中的前景部分的显示大小比例关系;Determining a display size ratio relationship between a foreground portion of the first video image and a foreground portion of the first video image of the previous frame;
根据确定的显示大小比例关系,调整所述目标伪背景的显示大小。Adjusting the display size of the target pseudo background according to the determined display size ratio relationship.
在本发明的一种具体实施方式中,所述目标伪背景为动态背景,所述将该第一视频图像中的前景部分与预先确定的目标伪背景进行图像融合处理,包括:In a specific implementation of the present invention, the target pseudo background is a dynamic background, and the image fusion processing of the foreground portion in the first video image and the predetermined target pseudo background includes:
根据预设的对应关系,确定与该第一视频图像对应的所述目标伪背景的目标视频帧;Determining, according to a preset correspondence, a target video frame of the target pseudo background corresponding to the first video image;
将该第一视频图像中的前景部分与所述目标视频帧进行图像融合处理。And performing image fusion processing on the foreground portion in the first video image and the target video frame.
在本发明的一种具体实施方式中,在所述获得与该第一视频图像对应的第二视频图像之后,所述方法还包括:In a specific implementation of the present invention, after the obtaining the second video image corresponding to the first video image, the method further includes:
向所述第一用户仅展示该第二视频图像;Presenting only the second video image to the first user;
或者,or,
向所述第一用户同时展示该第一视频图像和该第二视频图像。The first video image and the second video image are simultaneously displayed to the first user.
在本发明的一种具体实施方式中,所述方法还包括:In a specific embodiment of the present invention, the method further includes:
在向所述第一用户展示该第二视频图像的同时,输出在展示该第二视频图像的时刻,所述目标伪背景的已播放时长。While displaying the second video image to the first user, outputting the played duration of the target pseudo background at the time of displaying the second video image.
一种视频通话中视频图像展示装置,应用于第一终端,所述第一终端和第二终端均具有视频通话功能,所述装置包括:A video call display device for video call is applied to a first terminal, where the first terminal and the second terminal both have a video call function, and the device includes:
前景部分识别模块,设置为在与所述第二终端进行视频通话过程中,针对捕捉到的每一帧基于真实场景的第一视频图像,根据预设的识别规则,识别该第一视频图像中的前景部分;a foreground part identification module, configured to identify, in a video call with the second terminal, a first video image based on a real scene for each captured frame, and identify the first video image according to a preset identification rule Part of the foreground;
视频图像获得模块,设置为将所述前景部分识别模块识别到的该第一视频图像中的前景部分与预先确定的目标伪背景进行图像融合处理,获得与该第一视频图像对应的第二视频图像;a video image obtaining module, configured to perform image fusion processing on a foreground portion of the first video image identified by the foreground portion identification module and a predetermined target pseudo background, to obtain a second video corresponding to the first video image image;
视频图像发送模块,设置为将所述视频图像获得模块获得的该第二视频图像发送给所述第二终端,以使所述第二终端向第二用户展示该第二视频图像。The video image sending module is configured to send the second video image obtained by the video image obtaining module to the second terminal, so that the second terminal displays the second video image to the second user.
在本发明的一种具体实施方式中,所述装置还包括目标伪背景确定模块,设置为通过以下步骤确定所述目标伪背景:In a specific embodiment of the present invention, the apparatus further includes a target pseudo background determining module configured to determine the target pseudo background by the following steps:
接收第一用户针对预设的伪背景资源库中的伪背景的选择指令;Receiving a selection instruction of the first user for a pseudo background in the preset pseudo background resource library;
根据所述第一用户的选择指令,确定目标伪背景。A target pseudo background is determined according to the selection instruction of the first user.
在本发明的一种具体实施方式中,所述装置还包括目标伪背景预览模块,设置为:In a specific implementation manner of the present invention, the apparatus further includes a target pseudo background preview module, configured to:
在所述确定目标伪背景之后,接收所述第一用户对所述目标伪背景的预览指令;Receiving, by the first user, a preview instruction of the target pseudo background after determining the target pseudo background;
根据所述预览指令,捕捉基于所述第一用户所在的真实场景的第三视频图像;And capturing, according to the preview instruction, a third video image based on a real scene where the first user is located;
针对捕捉到的每一帧第三视频图像,根据所述识别规则,识别该第三视频图像中的前景部分,将该第三视频图像中的前景部分与所述目标伪背景进行图像融合处理,获得与该第三视频图像对应的第四视频图像,将该第四视频图像输出展示给所述第一用户。Identifying, in the third video image of each frame, the foreground portion in the third video image according to the identification rule, and performing image fusion processing on the foreground portion in the third video image and the target pseudo background, And obtaining a fourth video image corresponding to the third video image, and displaying the fourth video image output to the first user.
在本发明的一种具体实施方式中,所述装置还包括显示大小调整模块,设置为:In a specific implementation manner of the present invention, the device further includes a display size adjustment module, configured to:
在所述识别该第一视频图像中的前景部分之后、所述将该第一视频图像中的前景部分与预先确定的目标伪背景进行图像融合处理之前,确定该第一视频图像中的前景部分与前一帧第一视频图像中的前景部分的显示大小比例关系;Determining a foreground portion of the first video image after the recognizing the foreground portion in the first video image, and performing image fusion processing on the foreground portion in the first video image and the predetermined target pseudo background a proportional relationship with the display size of the foreground portion in the first video image of the previous frame;
根据确定的显示大小比例关系,调整所述目标伪背景的显示大小。Adjusting the display size of the target pseudo background according to the determined display size ratio relationship.
在本发明的一种具体实施方式中,所述目标伪背景为动态背景,所述视频图像获得模块,具体设置为:In a specific implementation of the present invention, the target pseudo background is a dynamic background, and the video image obtaining module is specifically configured as:
根据预设的对应关系,确定与该第一视频图像对应的所述目标伪背景的目标视频帧;Determining, according to a preset correspondence, a target video frame of the target pseudo background corresponding to the first video image;
将该第一视频图像中的前景部分与所述目标视频帧进行图像融合处理。And performing image fusion processing on the foreground portion in the first video image and the target video frame.
在本发明的一种具体实施方式中,所述装置还包括展示模块,设置为:In a specific embodiment of the present invention, the device further includes a display module, configured to:
在所述获得与该第一视频图像对应的第二视频图像之后,向所述第一用户仅展示该第二视频图像;或者,After the obtaining the second video image corresponding to the first video image, displaying the second video image only to the first user; or
向所述第一用户同时展示该第一视频图像和该第二视频图像。The first video image and the second video image are simultaneously displayed to the first user.
在本发明的一种具体实施方式中,所述装置还包括播放时长展示模块,设置为:In a specific implementation manner of the present invention, the apparatus further includes a play duration display module, configured to:
在向所述第一用户展示该第二视频图像的同时,输出在展示该第二视频图像的时刻,所述目标伪背景的已播放时长。While displaying the second video image to the first user, outputting the played duration of the target pseudo background at the time of displaying the second video image.
应用本发明实施例所提供的技术方案,第一终端可以预先确定目标伪背景,这样在第一终端与第二终端进行视频通话过程中,第一终端针对捕捉到的每一帧基于真实场景的第一视频图像,都可以识别该第一视频图像中的前景部分,并将该前景部分与目标伪背景进行图像融合处理,获得第二视频图像,并将第二视频图像发送给第二终端,这样第二终端展示给第二用户的第二视频图像即为包含目标伪背景的视频图像,实现了在第一用户不想向第二用户展示自身所在的真实场景的情况下,第一用户也能够与第二用户进行视频通话的目的,增强了视频通话的娱乐性,提升了用户体验。According to the technical solution provided by the embodiment of the present invention, the first terminal may determine the target pseudo background in advance, so that during the video call between the first terminal and the second terminal, the first terminal is based on the real scene for each frame captured. The first video image can identify the foreground portion of the first video image, and perform image fusion processing on the foreground portion and the target pseudo background to obtain a second video image, and send the second video image to the second terminal. In this way, the second video image displayed by the second terminal to the second user is a video image that includes the target pseudo background, so that the first user can also display the first user when the first user does not want to display the real scene of the second user. The purpose of making a video call with the second user enhances the entertainment of the video call and improves the user experience.
为了更清楚的说明本发明实施例或现有技术的技术方案,下面将对实施例或现有技术描述中所需要使用的附图作简单的介绍,显而易见地,下面描述中的附图仅仅是本发明的一些实施例,对于本领域普通技术人员来讲,在不付出创造性劳动的前提下,还可以根据这些附图获得其他的附图。In order to more clearly illustrate the embodiments of the present invention or the prior art, the drawings used in the embodiments or the description of the prior art will be briefly described below. Obviously, the drawings in the following description are merely Some embodiments of the present invention may also be used to obtain other drawings based on these drawings without departing from the art.
图1为本发明实施例中一种视频通话中视频图像展示方法的实施流程图;1 is a flowchart of implementing a video image display method in a video call according to an embodiment of the present invention;
图2为本发明实施例中一种视频通话中视频图像展示装置的结构示意图;2 is a schematic structural diagram of a video image display device in a video call according to an embodiment of the present invention;
图3为本发明另一实施例中一种视频通话中视频图像展示装置的结构示意图。FIG. 3 is a schematic structural diagram of a video image display apparatus in a video call according to another embodiment of the present invention.
为了使本技术领域的人员更好地理解本发明方案,下面结合附图和具体实施方式对本发明作进一步的详细说明。显然,所描述的实施例仅仅是本发明一部分实施例,而不是全部的实施例。基于本发明中的实施例,本领域普通技术人员在没有做出创造性劳动前提下所获得的所有其他实施例,都属于本发明保护的范围。The present invention will be further described in detail below in conjunction with the drawings and embodiments. It is apparent that the described embodiments are only a part of the embodiments of the invention, and not all of the embodiments. All other embodiments obtained by those skilled in the art based on the embodiments of the present invention without creative efforts are within the scope of the present invention.
本发明实施例提供了一种视频通话中视频图像展示方法。该方法应用于第一终端。第一终端和第二终端可以进行视频通话,如通过3G网络进行视频通话,或者通过LTE(Long Term Evolution,长期演进)网络进行视频通话,或者通过互联网进行视频通话。也就是说,第一终端和第二终端均具有视频通话功能。Embodiments of the present invention provide a video image display method in a video call. The method is applied to the first terminal. The first terminal and the second terminal can perform a video call, such as a video call through a 3G network, a video call through an LTE (Long Term Evolution) network, or a video call over the Internet. That is to say, both the first terminal and the second terminal have a video call function.
在本发明实施例中,使用第一终端的用户即为第一用户,使用第二终端的用户即为第二用户。在第一用户不想向第二用户展示自己所在的真实场景的情况下,第一终端可以根据第一用户的相应指示,确定目标伪背景。这样,第一终端在与第二终端进行视频通话过程中,可以应用本发明实施例所提供的技术方案进行真伪背景替换,并将包含目标伪背景的第二视频图像发送给第二终端,第二终端将这样的第二视频图像展示给第二用户。这样,第二用户看到的视频图像即为包含目标伪背景的视频图像。In the embodiment of the present invention, the user who uses the first terminal is the first user, and the user who uses the second terminal is the second user. In a case where the first user does not want to show the second user the real scene in which he is located, the first terminal may determine the target pseudo background according to the corresponding instruction of the first user. In this way, during the video call with the second terminal, the first terminal may apply the technical solution provided by the embodiment of the present invention to perform the authentic background replacement, and send the second video image including the target pseudo background to the second terminal. The second terminal presents such a second video image to the second user. Thus, the video image seen by the second user is the video image containing the target pseudo background.
在本发明实施例中,第一终端与第二终端进行视频通话过程中,可以捕捉基于真实场景的第一视频图像,连续的多帧第一视频图像即可构成一个视频。针对捕捉到的每一帧基于真实场景的第一视频图像,第一终端均可执行图1所示步骤的操作。In the embodiment of the present invention, during the video call between the first terminal and the second terminal, the first video image based on the real scene may be captured, and the continuous multi-frame first video image may constitute a video. The first terminal can perform the operations of the steps shown in FIG. 1 for each frame captured based on the first video image of the real scene.
参见图1所示,为本发明实施例所提供的一种视频通话中视频图像展示方法的实施流程图,该方法可以包括以下步骤:FIG. 1 is a flowchart of implementing a video image display method in a video call according to an embodiment of the present invention. The method may include the following steps:
S110:根据预设的识别规则,识别该第一视频图像中的前景部分。S110: Identify a foreground part in the first video image according to a preset identification rule.
第一终端在与第二终端建立视频通话之后,即可触发内置或外置摄像头捕捉基于第一用户所在真实场景的第一视频图像。针对捕捉到的每一帧第一视频图像,第一终端可以根据预设的识别规则,识别该第一视频图像中的前景部分。当然,在该第一视频图像中,除前景部分外的部分为该第一视频图像的背景部分。After the first terminal establishes a video call with the second terminal, the built-in or external camera can be triggered to capture the first video image based on the real scene of the first user. For each frame of the first video image captured, the first terminal may identify the foreground portion of the first video image according to a preset identification rule. Of course, in the first video image, the portion other than the foreground portion is the background portion of the first video image.
在本发明实施例中,对于视频图像中的前景部分的识别规则,可以根据具体情况进行设定和调整。比如,如果视频图像中存在人脸特征,则将人脸确定为该视频图像的前景部分。In the embodiment of the present invention, the identification rules of the foreground portion in the video image may be set and adjusted according to specific conditions. For example, if there is a face feature in the video image, the face is determined to be the foreground portion of the video image.
S120:将该第一视频图像中的前景部分与预先确定的目标伪背景进行图像融合处理,获得与该第一视频图像对应的第二视频图像。S120: Perform image fusion processing on the foreground portion in the first video image and the predetermined target pseudo background to obtain a second video image corresponding to the first video image.
在本发明实施例中,可以预先确定在视频通话过程中要使用的伪背景,该伪背景即为目标伪背景。In the embodiment of the present invention, a pseudo background to be used during a video call may be determined in advance, and the pseudo background is a target pseudo background.
在本发明的一种具体实施方式中,可以通过以下步骤确定目标伪背景:In a specific embodiment of the present invention, the target pseudo background can be determined by the following steps:
步骤一:接收第一用户针对预设的伪背景资源库中的伪背景的选择指令;Step 1: receiving a selection instruction of the first user for the pseudo background in the preset pseudo background resource library;
步骤二:根据第一用户的选择指令,确定目标伪背景。Step 2: Determine the target pseudo background according to the first user's selection instruction.
为便于描述,将上述两个步骤结合起来进行说明。For the convenience of description, the above two steps are combined for explanation.
在本发明实施例中,可以预先获得一个伪背景资源库,该伪背景资源库中可以包含多个伪背景。In the embodiment of the present invention, a pseudo background resource library may be obtained in advance, and the pseudo background resource library may include multiple pseudo backgrounds.
在实际应用中,伪背景资源库可以存储在第一终端中,由第一用户创建,或者第一终端与服务器进行通信,从服务器中获得。当第一用户有伪装视频图像背景的需求时,可以在第一终端存储的伪背景资源库中进行选择,并向第一终端发出针对伪背景资源库中的伪背景的选择指令。第一终端接收到该选择指令后,根据该选择指令,可以确定目标伪背景。即将用户选择的伪背景确定为目标伪背景。In an actual application, the pseudo background resource library may be stored in the first terminal, created by the first user, or the first terminal communicates with the server and obtained from the server. When the first user has the requirement of disguising the background of the video image, the selection may be made in the pseudo background resource library stored by the first terminal, and a selection instruction for the pseudo background in the pseudo background resource library is issued to the first terminal. After receiving the selection instruction, the first terminal may determine the target pseudo background according to the selection instruction. The pseudo background selected by the user is determined as the target pseudo background.
为节省终端存储资源,伪背景资源库还可以存储在服务器中。当第一用户有伪装视频图像背景的需求时,第一终端可以与服务器建立通信连接,第一用户通过第一终端登录服务器,在服务器中存储的伪背景资源库中进行选择,并向第一终端发出针对伪背景资源库中的伪背景的选择指令。第一终端根据到该选择指令后,可以从服务器中下载第一用户选择的伪背景,并将该伪背景确定为目标伪背景。To save terminal storage resources, the pseudo background repository can also be stored in the server. When the first user has a need to disguise the background of the video image, the first terminal may establish a communication connection with the server, and the first user logs in to the server through the first terminal, selects in the pseudo background resource library stored in the server, and performs the first The terminal issues a selection instruction for a pseudo background in the pseudo background repository. After the first terminal receives the selection instruction, the pseudo background selected by the first user may be downloaded from the server, and the pseudo background is determined as the target pseudo background.
伪背景资源库中可以包含技术人员设定的伪背景,还可以包含用户自定义的伪背景。在实际应用中,第一用户可以自定义伪背景。在自定义伪背景过程中,第一用户需将自己录制的视频或者拍摄的照片发送给第一终端,第一终端可以对第一用户发送的视频或者照片进行相应处理,或者将该视频或照片上传到服务器,由服务器进行相应处理,如使其符合预设的帧率、分辨率等,然后第一终端将处理后的视频或照片作为伪背景更新到伪背景资源库中。The pseudo background repository can contain pseudo backgrounds set by the technician, and can also contain user-defined pseudo backgrounds. In practical applications, the first user can customize the pseudo background. During the process of customizing the pseudo background, the first user needs to send the recorded video or the captured photo to the first terminal, and the first terminal may process the video or photo sent by the first user, or the video or photo. Uploaded to the server, the server performs corresponding processing, such as making it conform to the preset frame rate, resolution, etc., and then the first terminal updates the processed video or photo as a pseudo background to the pseudo background resource library.
在实际应用中,第一用户可以在视频通话之前进行伪背景的选择,还可以在视频通话过程中进行伪背景的选择。In an actual application, the first user can select a pseudo background before the video call, and can also select a pseudo background during the video call.
如果第一用户在视频通话之前进行伪背景的选择,则第一终端根据第一用户的选择指令,确定出目标伪背景后,即可在接下来的视频通话中应用该目标伪背景,还可以仅在接下来的第一次视频通话中应用该目标伪背景。或者,在进行视频通话中要应用该目标伪背景之前,向第一用户展示提示信息,确认是否应用该目标伪背景。If the first user selects a pseudo background before the video call, the first terminal may determine the target pseudo background according to the first user's selection instruction, and then apply the target pseudo background in the next video call, and The target pseudo background is applied only in the next first video call. Alternatively, before applying the target pseudo background in the video call, the first user is presented with a prompt message to confirm whether the target pseudo background is applied.
如果第一用户在视频通话过程中进行伪背景的选择,则第一终端根据第一用户的选择指令,确定出目标伪背景后,即可在当前视频通话过程中应用该目标伪背景,或者将该目标伪背景替换当前时刻之前所确定的目标伪背景。If the first user selects a pseudo background during the video call, the first terminal may determine the target pseudo background according to the first user's selection instruction, and then apply the target pseudo background during the current video call, or The target pseudo background replaces the target pseudo background determined before the current time.
在步骤S110识别出第一视频图像的前景部分,将该前景部分与目标伪背景进行图像融合处理,可以获得与该第一视频图像对应的第二视频图像。The foreground portion of the first video image is identified in step S110, and the foreground portion is subjected to image fusion processing with the target pseudo background to obtain a second video image corresponding to the first video image.
具体的,识别出第一视频图像的前景部分后,可以提取出该前景部分,通过图像融合处理技术将该前景部分嵌入到目标伪背景中,获得第二视频图像。这样,获得的第二视频图像的前景部分与第一视频图像的前景部分相同,第二视频图像的背景部分即为目标伪背景。Specifically, after the foreground portion of the first video image is identified, the foreground portion may be extracted, and the foreground portion is embedded into the target pseudo background by an image fusion processing technique to obtain a second video image. Thus, the foreground portion of the obtained second video image is the same as the foreground portion of the first video image, and the background portion of the second video image is the target pseudo background.
或者,识别出第一视频图像的前景部分后,第一视频图像的背景部分也即被识别出,可以将目标伪背景替换该第一视频图像的背景部分,获得第二视频图像。这样,获得的第二视频图像的前景部分仍为第一视频图像的前景部分,第二视频图像的背景部分即为目标伪背景。Alternatively, after the foreground portion of the first video image is identified, the background portion of the first video image is also identified, and the target pseudo background may be replaced with the background portion of the first video image to obtain a second video image. Thus, the foreground portion of the obtained second video image is still the foreground portion of the first video image, and the background portion of the second video image is the target pseudo background.
在本发明实施例中,目标伪背景可以是静态背景,还可以是动态背景。In the embodiment of the present invention, the target pseudo background may be a static background or a dynamic background.
当目标伪背景为静态背景时,针对捕捉到的每一帧第一视频图像进行真伪背景替换后,所获得的每一帧第二视频图像的背景部分是相同的,均为该静态背景。When the target pseudo background is a static background, after the true video background replacement is performed on the captured first video image of each frame, the obtained background portion of the second video image of each frame is the same, which is the static background.
当目标伪背景为动态背景时,针对捕捉到的每一帧第一视频图像进行真伪背景替换时,所获得的每一帧第二视频图像的背景部分是不同的,为该动态背景的不同视频帧。When the target pseudo background is a dynamic background, when the true video background replacement is performed for each frame of the captured first video image, the obtained background portion of the second video image of each frame is different, and the dynamic background is different. Video frame.
在本发明的一种具体实施方式中,在目标伪背景为动态背景的情况下,将该第一视频图像中的前景部分与预先确定的目标伪背景进行图像融合处理,具体可以通过以下步骤进行:In a specific implementation manner of the present invention, in a case where the target pseudo background is a dynamic background, the foreground portion of the first video image is image-fused with the predetermined target pseudo background, and specifically, the following steps may be performed. :
第一个步骤:根据预设的对应关系,确定与该第一视频图像对应的目标伪背景的目标视频帧;a first step: determining, according to a preset correspondence, a target video frame of a target pseudo background corresponding to the first video image;
第二个步骤:将该第一视频图像中的前景部分与目标视频帧进行图像融合处理。The second step: performing image fusion processing on the foreground portion of the first video image and the target video frame.
为便于描述,将上述两个步骤结合起来进行说明。For the convenience of description, the above two steps are combined for explanation.
在目标伪背景为动态背景,如视频时,该目标伪背景由多个视频帧构成。针对捕捉到的每一帧第一视频图像,可以根据预设的对应关系,确定与该第一视频图像对应的目标伪背景的目标视频帧。比如,如果该第一视频图像为第一帧,则与该第一视频图像对应目标视频帧即为目标伪背景的第一帧视频帧。When the target pseudo background is a dynamic background, such as a video, the target pseudo background is composed of a plurality of video frames. For the captured first video image of each frame, the target video frame of the target pseudo background corresponding to the first video image may be determined according to a preset correspondence. For example, if the first video image is the first frame, the target video frame corresponding to the first video image is the first frame video frame of the target pseudo background.
确定出与该第一视频图像对应的目标伪背景的目标视频帧后,可以将该第一视频图像的前景部分与该目标视频帧进行图像融合处理。After determining the target video frame of the target pseudo background corresponding to the first video image, the foreground portion of the first video image may be subjected to image fusion processing with the target video frame.
这样,可以获得与该第一视频图像对应的第二视频图像,该第二视频图像的前景部分与该第一视频图像的前景部分相同,该第二视频图像的背景部分即为该目标视频帧。In this way, a second video image corresponding to the first video image may be obtained, the foreground portion of the second video image being the same as the foreground portion of the first video image, and the background portion of the second video image being the target video frame .
S130:将该第二视频图像发送给第二终端,以使第二终端向第二用户展示该第二视频图像。S130: Send the second video image to the second terminal, so that the second terminal displays the second video image to the second user.
在步骤S120,针对捕捉到的每一帧第一视频图像,均可获得与该第一视频图像对应的第二视频图像。将该第二视频图像发送给第二终端,第二终端可以向第二用户展示该第二视频图像。从第二用户角度而言,多个连续的第二视频图像即可展现为视频,其所看到的即为包含了伪背景的视频。In step S120, a second video image corresponding to the first video image may be obtained for each captured first video image. Sending the second video image to the second terminal, the second terminal may display the second video image to the second user. From the perspective of the second user, a plurality of consecutive second video images can be presented as video, and what they see is a video containing a pseudo background.
应用本发明实施例所提供的技术方案,第一终端可以预先确定目标伪背景,这样在第一终端与第二终端进行视频通话过程中,第一终端针对捕捉到的每一帧基于真实场景的第一视频图像,都可以识别该第一视频图像中的前景部分,并将该前景部分与目标伪背景进行图像融合处理,获得第二视频图像,并将第二视频图像发送给第二终端,这样第二终端展示给第二用户的第二视频图像即为包含目标伪背景的视频图像,实现了在第一用户不想向第二用户展示自身所在的真实场景的情况下,第一用户也能够与第二用户进行视频通话的目的,增强了视频通话的娱乐性,提升了用户体验。According to the technical solution provided by the embodiment of the present invention, the first terminal may determine the target pseudo background in advance, so that during the video call between the first terminal and the second terminal, the first terminal is based on the real scene for each frame captured. The first video image can identify the foreground portion of the first video image, and perform image fusion processing on the foreground portion and the target pseudo background to obtain a second video image, and send the second video image to the second terminal. In this way, the second video image displayed by the second terminal to the second user is a video image that includes the target pseudo background, so that the first user can also display the first user when the first user does not want to display the real scene of the second user. The purpose of making a video call with the second user enhances the entertainment of the video call and improves the user experience.
在本发明的一个实施例中,在确定目标伪背景之后,该方法还可以包括以下步骤:In an embodiment of the present invention, after determining the target pseudo background, the method may further include the following steps:
步骤一:接收第一用户对目标伪背景的预览指令;Step 1: receiving a preview instruction of the first user on the target pseudo background;
步骤二:根据预览指令,捕捉基于第一用户所在的真实场景的第三视频图像;Step 2: Capture a third video image based on a real scene where the first user is located according to the preview instruction;
步骤三:针对捕捉到的每一帧第三视频图像,根据识别规则,识别该第三视频图像中的前景部分,将该第三视频图像中的前景部分与目标伪背景进行图像融合处理,获得与该第三视频图像对应的第四视频图像,将该第四视频图像输出展示给第一用户。Step 3: For each captured third video image of each frame, identify a foreground portion in the third video image according to the identification rule, and perform image fusion processing on the foreground portion in the third video image and the target pseudo background to obtain an image fusion process. And displaying, by the fourth video image corresponding to the third video image, the fourth video image output to the first user.
为便于描述,将上述三个步骤结合起来进行说明。For the convenience of description, the above three steps are combined for explanation.
可以理解的是,当第一用户针对伪背景资源库中的伪背景进行选择,第一终端确定目标伪背景后,第一用户可以通过预览方式查看该目标伪背景的伪装效果,如果对伪装效果不满意,可以再重新选择伪背景,这样,可以避免第一用户在视频通话过程中因为伪装效果差而导致通话尴尬的情况发生。It can be understood that, when the first user selects a pseudo background in the pseudo background resource library, after the first terminal determines the target pseudo background, the first user can view the camouflage effect of the target pseudo background by previewing, if the camouflage effect is If you are not satisfied, you can re-select the pseudo background. This way, you can avoid the situation where the first user is in a video call because the camouflage effect is poor.
当第一用户有对目标伪背景预览的需求时,可以向第一终端发出相应的预览指令,具体的,第一终端可以为第一用户提供预览按钮,当第一用户点击该预览按钮时,即可视为向第一终端发出了针对目标伪背景的预览指令。When the first user has a need for the target pseudo background preview, the first terminal may issue a corresponding preview instruction. Specifically, the first terminal may provide a preview button for the first user, when the first user clicks the preview button, It can be regarded as a preview instruction for the target pseudo background to the first terminal.
第一终端接收第一用户对目标伪背景的预览指令,根据该预览指令,可以通过内置或外置摄像头捕捉基于第一用户所在的真实场景的第三视频图像。针对捕捉到的每一帧第三视频图像,第一终端可以根据上述的识别规则,识别出该第三视频图像的前景部分,将该第三视频图像的前景部分与目标伪背景进行图像融合处理,获得与该第三视频图像对应的第四视频图像,并将该第四视频图像输出展示给第一用户。The first terminal receives a preview instruction of the first user to the target pseudo background, and according to the preview instruction, the third video image based on the real scene where the first user is located may be captured by the built-in or external camera. For the captured third video image of each frame, the first terminal may identify the foreground portion of the third video image according to the foregoing identification rule, and perform image fusion processing on the foreground portion of the third video image and the target pseudo background. And obtaining a fourth video image corresponding to the third video image, and displaying the fourth video image output to the first user.
对前景部分进行识别、进行图像融合处理等的具体实施方式,可以参考对图1所示实施方式的说明,在此不再赘述。For a specific implementation manner of identifying the foreground portion, performing image fusion processing, and the like, reference may be made to the description of the embodiment shown in FIG. 1 , and details are not described herein again.
这样,第一用户即可查看到目标伪背景的伪装效果,根据伪装效果,确定是否重新选择伪背景。In this way, the first user can view the camouflage effect of the target pseudo background, and according to the camouflage effect, determine whether to reselect the pseudo background.
在本发明的一个实施例中,在步骤S110之后、步骤S120之前,该方法还可以包括以下步骤:In an embodiment of the present invention, after step S110 and before step S120, the method may further include the following steps:
第一个步骤:确定该第一视频图像中的前景部分与前一帧第一视频图像中的前景部分的显示大小比例关系;a first step: determining a display size ratio relationship between a foreground portion of the first video image and a foreground portion of the first video image of the previous frame;
第二个步骤:根据确定的显示大小比例关系,调整目标伪背景的显示大小。The second step: adjusting the display size of the target pseudo background according to the determined display size ratio relationship.
为便于描述,将上述两个步骤结合起来进行说明。For the convenience of description, the above two steps are combined for explanation.
可以理解的是,第一用户使用第一终端在进行视频通话过程中,不会一直静止不动,其可能会调整即时调整第一终端的内置或外置摄像头与自身的距离。在这种情况下,第一终端捕捉到的每一帧第一视频图像中的前景部分的显示大小会有变化。从第一用户角度来看,该前景部分可能会放大或缩小。第一终端针对每一帧第一视频图像,都可以确定该第一视频图像中的前景部分与前一帧第一视频图像中的前景部分的显示大小比例关系,并根据确定的显示大小比例关系,可以调整目标伪背景的显示大小,这样可以保证伪背景的逼真效果。It can be understood that the first user does not stand still during the video call using the first terminal, and may adjust to adjust the distance between the built-in or external camera of the first terminal and itself. In this case, the display size of the foreground portion in the first video image of each frame captured by the first terminal may vary. From the perspective of the first user, the foreground portion may zoom in or out. The first terminal may determine, according to the first video image of each frame, a display size ratio relationship between the foreground portion in the first video image and the foreground portion in the first video image of the previous frame, and according to the determined display size proportional relationship , you can adjust the display size of the target pseudo background, which can ensure the realistic effect of the pseudo background.
比如,针对捕捉到的某一帧第一视频图像,如果该第一视频图像中的前景部分与前一帧第一视频图像中的前景部分相比,放大了50%,则表明第一终端的内置或外置摄像头与第一用户的距离拉近了,在这种情况下,根据这种显示大小比例关系,可以将目标伪背景的显示大小放大50%。For example, for the first video image of a certain frame captured, if the foreground portion of the first video image is enlarged by 50% compared with the foreground portion of the first video image of the previous frame, it indicates that the first terminal is The distance between the built-in or external camera and the first user is zoomed in. In this case, according to the display size ratio relationship, the display size of the target pseudo background can be enlarged by 50%.
在本发明的一个实施例中,第一终端在获得与该第一视频图像对应的第二视频图像之后,还可以向第一用户展示该第二视频图像,或者,向第一用户同时展示该第一视频图像和该第二视频图像。In an embodiment of the present invention, after obtaining the second video image corresponding to the first video image, the first terminal may further display the second video image to the first user, or simultaneously display the first video to the first user. a first video image and the second video image.
在实际应用中,第一终端在自身屏幕上展示的可以仅是该第一视频图像,还可以仅是该第二视频图像,还可以在自身屏幕上分区域同时展示该第一视频图像和该第二视频图像,以使第一用户进行实时观察真伪背景。In an actual application, the first terminal may display only the first video image on the screen, or may be only the second video image, and may simultaneously display the first video image and the sub-area on the screen. The second video image is such that the first user observes the authentic background in real time.
第一终端在向第一用户展示该第二视频图像的同时,输出在展示该第二视频图像的时刻,目标伪背景的已播放时长。这样,用户可以实时了解到目标伪背景的已播放时长,在播放结束前可以主动结束与第二用户的视频通话,避免目标伪背景循环播放或者展示真实场景的情况发生。The first terminal outputs the played duration of the target pseudo background at the time of displaying the second video image while displaying the second video image to the first user. In this way, the user can know the played duration of the target pseudo background in real time, and can actively end the video call with the second user before the end of the play, to avoid the situation that the target pseudo background loops or displays the real scene.
应用上面的方法实施例,本发明实施例还提供了一种视频通话中视频图像展示装置。该装置应用于第一终端,第一终端和第二终端均具有视频通话功能。Applying the above method embodiment, the embodiment of the present invention further provides a video image display device in a video call. The device is applied to the first terminal, and the first terminal and the second terminal both have a video call function.
参见图2所示,为本发明实施例提供的一种视频通话中视频图像展示装置的结构示意图,该装置可以包括以下模块:FIG. 2 is a schematic structural diagram of a video image display device in a video call according to an embodiment of the present invention. The device may include the following modules:
前景部分识别模块210,设置为在与第二终端进行视频通话过程中,针对捕捉到的每一帧基于真实场景的第一视频图像,根据预设的识别规则,识别该第一视频图像中的前景部分;The foreground
视频图像获得模块220,设置为将前景部分识别模块210识别到的该第一视频图像中的前景部分与预先确定的目标伪背景进行图像融合处理,获得与该第一视频图像对应的第二视频图像;The video
视频图像发送模块230,设置为将视频图像获得模块220获得的该第二视频图像发送给第二终端,以使第二终端向第二用户展示该第二视频图像。The video
应用本发明实施例所提供的装置,第一终端可以预先确定目标伪背景,这样在第一终端与第二终端进行视频通话过程中,第一终端针对捕捉到的每一帧基于真实场景的第一视频图像,都可以识别该第一视频图像中的前景部分,并将该前景部分与目标伪背景进行图像融合处理,获得第二视频图像,并将第二视频图像发送给第二终端,这样第二终端展示给第二用户的第二视频图像即为包含目标伪背景的视频图像,实现了在第一用户不想向第二用户展示自身所在的真实场景的情况下,第一用户也能够与第二用户进行视频通话的目的,增强了视频通话的娱乐性,提升了用户体验。According to the apparatus provided by the embodiment of the present invention, the first terminal may determine the target pseudo background in advance, so that the first terminal is based on the real scene for each frame captured during the video call between the first terminal and the second terminal. a video image can identify a foreground portion of the first video image, and perform image fusion processing on the foreground portion and the target pseudo background to obtain a second video image, and send the second video image to the second terminal, such that The second video image displayed by the second terminal to the second user is a video image including the target pseudo background, so that the first user can also cooperate with the first user when the first user does not want to display the real scene of the second user. The purpose of the second user to make a video call enhances the entertainment of the video call and improves the user experience.
在本发明的一个实施例中,该装置还可以包括目标伪背景确定模块,设置为通过以下步骤确定目标伪背景:In an embodiment of the invention, the apparatus may further comprise a target pseudo-background determining module configured to determine the target pseudo-background by the following steps:
接收第一用户针对预设的伪背景资源库中的伪背景的选择指令;Receiving a selection instruction of the first user for a pseudo background in the preset pseudo background resource library;
根据第一用户的选择指令,确定目标伪背景。The target pseudo background is determined according to the selection instruction of the first user.
在本发明的一个实施例中,该装置还可以包括目标伪背景预览模块,设置为:In an embodiment of the present invention, the apparatus may further include a target pseudo background preview module, configured to:
在确定目标伪背景之后,接收第一用户对目标伪背景的预览指令;After determining the target pseudo background, receiving a preview instruction of the first user on the target pseudo background;
根据预览指令,捕捉基于第一用户所在的真实场景的第三视频图像;Capture a third video image based on a real scene where the first user is located according to the preview instruction;
针对捕捉到的每一帧第三视频图像,根据识别规则,识别该第三视频图像中的前景部分,将该第三视频图像中的前景部分与目标伪背景进行图像融合处理,获得与该第三视频图像对应的第四视频图像,将该第四视频图像输出展示给第一用户。And identifying, in accordance with the identification rule, the foreground portion in the third video image according to the recognition rule, and performing image fusion processing on the foreground portion in the third video image and the target pseudo background to obtain the same And displaying a fourth video image corresponding to the third video image, and displaying the fourth video image output to the first user.
在本发明的一种具体实施方式中,伪背景资源库中包含第一用户自定义的伪背景。In a specific embodiment of the present invention, the pseudo background resource library includes a first user-defined pseudo background.
在本发明的一个实施例中,该装置还可以包括显示大小调整模块,设置为:In an embodiment of the present invention, the apparatus may further include a display resizing module, configured to:
在识别该第一视频图像中的前景部分之后、将该第一视频图像中的前景部分与预先确定的目标伪背景进行图像融合处理之前,确定该第一视频图像中的前景部分与前一帧第一视频图像中的前景部分的显示大小比例关系;Determining the foreground portion and the previous frame in the first video image after the foreground portion in the first video image is identified, before the foreground portion in the first video image is image-blended with the predetermined target pseudo-background a display size proportional relationship of the foreground portion in the first video image;
根据确定的显示大小比例关系,调整目标伪背景的显示大小。Adjust the display size of the target pseudo background according to the determined display size ratio relationship.
在本发明的一个实施例中,目标伪背景为动态背景,视频图像获得模块220,可以具体设置为:In an embodiment of the present invention, the target pseudo background is a dynamic background, and the video
根据预设的对应关系,确定与该第一视频图像对应的目标伪背景的目标视频帧;Determining, according to a preset correspondence, a target video frame of a target pseudo background corresponding to the first video image;
将该第一视频图像中的前景部分与目标视频帧进行图像融合处理。The foreground portion of the first video image is subjected to image fusion processing with the target video frame.
在本发明的一个实施例中,该装置还可以包括展示模块,设置为:In an embodiment of the present invention, the apparatus may further include a display module, configured to:
在获得与该第一视频图像对应的第二视频图像之后,向第一用户仅展示该第二视频图像;或者,After obtaining the second video image corresponding to the first video image, displaying the second video image only to the first user; or
向第一用户同时展示该第一视频图像和该第二视频图像。The first video image and the second video image are simultaneously displayed to the first user.
在本发明的一个实施例中,该装置还可以包括播放时长展示模块,设置为:In an embodiment of the present invention, the apparatus may further include a play duration display module, configured to:
在向第一用户展示该第二视频图像的同时,输出在展示该第二视频图像的时刻,目标伪背景的已播放时长。While displaying the second video image to the first user, outputting the played duration of the target pseudo background at the time of displaying the second video image.
图3是本发明实施例提供的一种视频通话中视频图像展示装置的结构示意图。如图所示,本发明实施例中的装置30可以是不同类型的电子设备,例如:智能手机、平板电脑、掌上电脑以及移动互联网设备、个人数字助理、媒体播放器、智能电视、智能手表、智能眼镜、智能手环等。如图3所示,本发明实施例中的装置30包括:至少一个处理器301,例如CPU,至少一个存储器302,至少一个收发器303。其中,所述处理器301、存储器302、收发器303通过总线系统连接通信。所述存储器302可以是高速RAM存储器,也可以是非易失性存储器(non-volatile memory),例如至少一个磁盘存储器。FIG. 3 is a schematic structural diagram of a video image display apparatus in a video call according to an embodiment of the present invention. As shown, the
所述存储器302中存储有程序代码,且所述处理器301可通过总线系统,调用所述存储器302中存储的程序代码以执行相关的功能。例如,图2中所述的各个模块(例如,所述前景部分识别模块210、视频图像获得模块220、视频图像发送模块230)及图示未示出的目标伪背景确定模块、目标伪背景预览模块、显示大小调整模块、展示模块及播放时长展示模块等,是存储在所述存储器302中的程序代码,并由所述处理器301所执行,从而实现所述各个模块的功能以实现无线局域网的通信方法。Program code is stored in the
具体而言,在与所述第二终端进行视频通话过程中,针对捕捉到的每一帧基于真实场景的第一视频图像,所述处理器301:根据预设的识别规则,识别该第一视频图像中的前景部分;将该第一视频图像中的前景部分与预先确定的目标伪背景进行图像融合处理,获得与该第一视频图像对应的第二视频图像;将该第二视频图像发送给所述第二终端,以使所述第二终端向第二用户展示该第二视频图像。Specifically, in a video call with the second terminal, the processor 301: identifies the first video image based on the real scene for each captured frame, according to a preset identification rule. a foreground portion in the video image; performing image fusion processing on the foreground portion in the first video image with the predetermined target pseudo background to obtain a second video image corresponding to the first video image; and transmitting the second video image Giving the second terminal, so that the second terminal presents the second video image to the second user.
具体而言,通过以下步骤确定所述目标伪背景:Specifically, the target pseudo background is determined by the following steps:
接收第一用户针对预设的伪背景资源库中的伪背景的选择指令;Receiving a selection instruction of the first user for a pseudo background in the preset pseudo background resource library;
根据所述第一用户的选择指令,确定目标伪背景。A target pseudo background is determined according to the selection instruction of the first user.
具体而言,在所述确定目标伪背景之后,所述处理器301:Specifically, after the determining the target pseudo background, the processor 301:
接收所述第一用户对所述目标伪背景的预览指令;Receiving a preview instruction of the first user to the target pseudo background;
根据所述预览指令,捕捉基于所述第一用户所在的真实场景的第三视频图像;And capturing, according to the preview instruction, a third video image based on a real scene where the first user is located;
针对捕捉到的每一帧第三视频图像,根据所述识别规则,识别该第三视频图像中的前景部分,将该第三视频图像中的前景部分与所述目标伪背景进行图像融合处理,获得与该第三视频图像对应的第四视频图像,将该第四视频图像输出展示给所述第一用户。Identifying, in the third video image of each frame, the foreground portion in the third video image according to the identification rule, and performing image fusion processing on the foreground portion in the third video image and the target pseudo background, And obtaining a fourth video image corresponding to the third video image, and displaying the fourth video image output to the first user.
具体而言,在所述识别该第一视频图像中的前景部分之后、所述将该第一视频图像中的前景部分与预先确定的目标伪背景进行图像融合处理之前,所述处理器301:Specifically, after the identifying the foreground portion in the first video image, and performing image fusion processing on the foreground portion in the first video image and the predetermined target pseudo background, the processor 301:
确定该第一视频图像中的前景部分与前一帧第一视频图像中的前景部分的显示大小比例关系;Determining a display size ratio relationship between a foreground portion of the first video image and a foreground portion of the first video image of the previous frame;
根据确定的显示大小比例关系,调整所述目标伪背景的显示大小。Adjusting the display size of the target pseudo background according to the determined display size ratio relationship.
具体而言,所述目标伪背景为动态背景,所述将该第一视频图像中的前景部分与预先确定的目标伪背景进行图像融合处理,包括:Specifically, the target pseudo background is a dynamic background, and the image fusion processing is performed on the foreground portion in the first video image and the predetermined target pseudo background, including:
根据预设的对应关系,确定与该第一视频图像对应的所述目标伪背景的目标视频帧;Determining, according to a preset correspondence, a target video frame of the target pseudo background corresponding to the first video image;
将该第一视频图像中的前景部分与所述目标视频帧进行图像融合处理。And performing image fusion processing on the foreground portion in the first video image and the target video frame.
具体而言,在所述获得与该第一视频图像对应的第二视频图像之后,所述处理器301:向所述第一用户仅展示该第二视频图像;或者,向所述第一用户同时展示该第一视频图像和该第二视频图像。Specifically, after the obtaining the second video image corresponding to the first video image, the processor 301: displaying only the second video image to the first user; or, to the first user The first video image and the second video image are simultaneously displayed.
具体而言,所述处理器301:在向所述第一用户展示该第二视频图像的同时,输出在展示该第二视频图像的时刻,所述目标伪背景的已播放时长。Specifically, the processor 301: while displaying the second video image to the first user, output the played duration of the target pseudo background at the time of displaying the second video image.
本说明书中各个实施例采用递进的方式描述,每个实施例重点说明的都是与其它实施例的不同之处,各个实施例之间相同或相似部分互相参见即可。对于实施例公开的装置而言,由于其与实施例公开的方法相对应,所以描述的比较简单,相关之处参见方法部分说明即可。The various embodiments in the specification are described in a progressive manner, and each embodiment focuses on differences from other embodiments, and the same or similar parts of the respective embodiments may be referred to each other. For the device disclosed in the embodiment, since it corresponds to the method disclosed in the embodiment, the description is relatively simple, and the relevant parts can be referred to the method part.
专业人员还可以进一步意识到,结合本文中所公开的实施例描述的各示例的单元及算法步骤,能够以电子硬件、计算机软件或者二者的结合来实现,为了清楚地说明硬件和软件的可互换性,在上述说明中已经按照功能一般性地描述了各示例的组成及步骤。这些功能究竟以硬件还是软件方式来执行,取决于技术方案的特定应用和设计约束条件。专业技术人员可以对每个特定的应用来使用不同方法来实现所描述的功能,但是这种实现不应认为超出本发明的范围。A person skilled in the art will further appreciate that the elements and algorithm steps of the various examples described in connection with the embodiments disclosed herein can be implemented in electronic hardware, computer software or a combination of both, in order to clearly illustrate the hardware and software. Interchangeability, the composition and steps of the various examples have been generally described in terms of function in the above description. Whether these functions are performed in hardware or software depends on the specific application and design constraints of the solution. A person skilled in the art can use different methods for implementing the described functions for each particular application, but such implementation should not be considered to be beyond the scope of the present invention.
结合本文中所公开的实施例描述的方法或算法的步骤可以直接用硬件、处理器执行的软件模块,或者二者的结合来实施。软件模块可以置于随机存储器(RAM)、内存、只读存储器(ROM)、电可编程ROM、电可擦除可编程ROM、寄存器、硬盘、可移动磁盘、CD-ROM、或技术领域内所公知的任意其它形式的存储介质中。The steps of a method or algorithm described in connection with the embodiments disclosed herein can be implemented directly in hardware, a software module executed by a processor, or a combination of both. The software module can be placed in random access memory (RAM), memory, read only memory (ROM), electrically programmable ROM, electrically erasable programmable ROM, registers, hard disk, removable disk, CD-ROM, or technical field. Any other form of storage medium known.
以上对本发明所提供的一种视频通话中视频图像展示方法及装置进行了详细介绍。本文中应用了具体个例对本发明的原理及实施方式进行了阐述,以上实施例的说明只是设置为帮助理解本发明的方法及其核心思想。应当指出,对于本技术领域的普通技术人员来说,在不脱离本发明原理的前提下,还可以对本发明进行若干改进和修饰,这些改进和修饰也落入本发明权利要求的保护范围内。The video image display method and apparatus for video call provided by the present invention are described in detail above. The principles and embodiments of the present invention have been described herein with reference to specific examples, and the description of the above embodiments is merely provided to aid in understanding the method of the present invention and its core idea. It should be noted that those skilled in the art can make various modifications and changes to the present invention without departing from the spirit and scope of the invention.
Claims (14)
Applications Claiming Priority (2)
| Application Number | Priority Date | Filing Date | Title |
|---|---|---|---|
| CN201610378309.3A CN105872448A (en) | 2016-05-31 | 2016-05-31 | Display method and device of video images in video calls |
| CN201610378309.3 | 2016-05-31 |
Publications (1)
| Publication Number | Publication Date |
|---|---|
| WO2017206456A1 true WO2017206456A1 (en) | 2017-12-07 |
Family
ID=56643138
Family Applications (1)
| Application Number | Title | Priority Date | Filing Date |
|---|---|---|---|
| PCT/CN2016/107936 Ceased WO2017206456A1 (en) | 2016-05-31 | 2016-11-30 | Method and apparatus for presenting video image in video call |
Country Status (2)
| Country | Link |
|---|---|
| CN (1) | CN105872448A (en) |
| WO (1) | WO2017206456A1 (en) |
Cited By (3)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| CN113949827A (en) * | 2021-09-30 | 2022-01-18 | 安徽尚趣玩网络科技有限公司 | Video content fusion method and device |
| WO2022105786A1 (en) * | 2020-11-19 | 2022-05-27 | 华为技术有限公司 | Video call background switching method and first terminal device |
| WO2023226814A1 (en) * | 2022-05-23 | 2023-11-30 | 北京字跳网络技术有限公司 | Video processing method and apparatus, electronic device, and storage medium |
Families Citing this family (23)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| CN105872448A (en) * | 2016-05-31 | 2016-08-17 | 宇龙计算机通信科技(深圳)有限公司 | Display method and device of video images in video calls |
| CN106254784A (en) * | 2016-09-29 | 2016-12-21 | 宇龙计算机通信科技(深圳)有限公司 | A kind of method and device of Video processing |
| CN106878588A (en) * | 2017-02-27 | 2017-06-20 | 努比亚技术有限公司 | A kind of video background blurs terminal and method |
| CN106954034A (en) * | 2017-03-28 | 2017-07-14 | 宇龙计算机通信科技(深圳)有限公司 | A kind of image processing method and device |
| CN108874113A (en) * | 2017-05-08 | 2018-11-23 | 丽宝大数据股份有限公司 | Electronic cosmetic mirror device and background conversion method thereof |
| CN107317990A (en) * | 2017-06-27 | 2017-11-03 | 宇龙计算机通信科技(深圳)有限公司 | Video call method, device, user terminal and computer-readable recording medium |
| CN107509045A (en) * | 2017-09-11 | 2017-12-22 | 广东欧珀移动通信有限公司 | Image processing method and device, electronic device, and computer-readable storage medium |
| CN107592490A (en) * | 2017-09-11 | 2018-01-16 | 广东欧珀移动通信有限公司 | Video background replacing method and device and mobile terminal |
| CN107707831A (en) * | 2017-09-11 | 2018-02-16 | 广东欧珀移动通信有限公司 | Image processing method and device, electronic device, and computer-readable storage medium |
| CN107610076A (en) * | 2017-09-11 | 2018-01-19 | 广东欧珀移动通信有限公司 | Image processing method and device, electronic installation and computer-readable recording medium |
| CN107644440A (en) * | 2017-09-11 | 2018-01-30 | 广东欧珀移动通信有限公司 | Image processing method and device, electronic device, and computer-readable storage medium |
| CN107610077A (en) * | 2017-09-11 | 2018-01-19 | 广东欧珀移动通信有限公司 | Image processing method and device, electronic device, and computer-readable storage medium |
| EP3680853A4 (en) | 2017-09-11 | 2020-11-04 | Guangdong Oppo Mobile Telecommunications Corp., Ltd. | IMAGE PROCESSING METHOD AND DEVICE, ELECTRONIC DEVICE AND COMPUTER READABLE STORAGE MEDIUM |
| CN107623832A (en) * | 2017-09-11 | 2018-01-23 | 广东欧珀移动通信有限公司 | Video background replacement method, device and mobile terminal |
| CN107959790A (en) * | 2017-11-15 | 2018-04-24 | 维沃移动通信有限公司 | A kind of image capturing method, device and mobile terminal |
| CN108010037B (en) * | 2017-11-29 | 2019-09-13 | 腾讯科技(深圳)有限公司 | Image processing method, device and storage medium |
| CN108566515A (en) * | 2018-04-28 | 2018-09-21 | 努比亚技术有限公司 | It takes pictures processing method, mobile terminal and storage medium |
| CN108737765B (en) * | 2018-08-02 | 2021-05-11 | 广东小天才科技有限公司 | Video call processing method and device, terminal equipment and storage medium |
| CN109359220A (en) * | 2018-12-05 | 2019-02-19 | 深圳市子瑜杰恩科技有限公司 | The stage property update method and Related product of short-sighted frequency |
| CN109639999B (en) * | 2018-12-28 | 2022-12-13 | 中科联芯(广州)科技有限公司 | Video call data optimization method, mobile terminal and readable storage medium |
| CN109672822A (en) * | 2018-12-29 | 2019-04-23 | 努比亚技术有限公司 | A kind of method for processing video frequency of mobile terminal, mobile terminal and storage medium |
| CN110446097B (en) * | 2019-08-26 | 2022-04-15 | 维沃移动通信有限公司 | Screen recording method and mobile terminal |
| CN114979544B (en) * | 2022-06-08 | 2025-10-03 | 深圳康佳电子科技有限公司 | Interaction method, device and system for audio and video call scenarios |
Citations (9)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| US20080056530A1 (en) * | 2006-09-04 | 2008-03-06 | Via Technologies, Inc. | Scenario simulation system and method for a multimedia device |
| CN101193261A (en) * | 2007-03-28 | 2008-06-04 | 腾讯科技(深圳)有限公司 | Video communication system and method |
| CN101375607A (en) * | 2006-02-07 | 2009-02-25 | 高通股份有限公司 | Inter-mode video object segmentation with regions of interest |
| CN101610421A (en) * | 2008-06-17 | 2009-12-23 | 深圳华为通信技术有限公司 | Video communication method, Apparatus and system |
| CN101677386A (en) * | 2008-08-01 | 2010-03-24 | 中兴通讯股份有限公司 | System capable of selecting real-time virtual call background and video call method |
| CN102098381A (en) * | 2010-12-29 | 2011-06-15 | 上海华勤通讯技术有限公司 | Backgrounded conversation realizing method for mobile phone |
| CN102387311A (en) * | 2010-09-02 | 2012-03-21 | 深圳Tcl新技术有限公司 | Device for synthesizing video images and method for synthesizing video images |
| CN103607554A (en) * | 2013-10-21 | 2014-02-26 | 无锡易视腾科技有限公司 | Fully-automatic face seamless synthesis-based video synthesis method |
| CN105872448A (en) * | 2016-05-31 | 2016-08-17 | 宇龙计算机通信科技(深圳)有限公司 | Display method and device of video images in video calls |
Family Cites Families (4)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| KR100575924B1 (en) * | 2003-12-27 | 2006-05-02 | 삼성전자주식회사 | Image capturing method of a device having a camera |
| CN101946500B (en) * | 2007-12-17 | 2012-10-03 | 伊克鲁迪控股公司 | Real time video inclusion system |
| CN101309389A (en) * | 2008-06-19 | 2008-11-19 | 深圳华为通信技术有限公司 | Method, apparatus and terminal synthesizing visual images |
| US8458615B2 (en) * | 2010-04-07 | 2013-06-04 | Apple Inc. | Device, method, and graphical user interface for managing folders |
-
2016
- 2016-05-31 CN CN201610378309.3A patent/CN105872448A/en active Pending
- 2016-11-30 WO PCT/CN2016/107936 patent/WO2017206456A1/en not_active Ceased
Patent Citations (9)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| CN101375607A (en) * | 2006-02-07 | 2009-02-25 | 高通股份有限公司 | Inter-mode video object segmentation with regions of interest |
| US20080056530A1 (en) * | 2006-09-04 | 2008-03-06 | Via Technologies, Inc. | Scenario simulation system and method for a multimedia device |
| CN101193261A (en) * | 2007-03-28 | 2008-06-04 | 腾讯科技(深圳)有限公司 | Video communication system and method |
| CN101610421A (en) * | 2008-06-17 | 2009-12-23 | 深圳华为通信技术有限公司 | Video communication method, Apparatus and system |
| CN101677386A (en) * | 2008-08-01 | 2010-03-24 | 中兴通讯股份有限公司 | System capable of selecting real-time virtual call background and video call method |
| CN102387311A (en) * | 2010-09-02 | 2012-03-21 | 深圳Tcl新技术有限公司 | Device for synthesizing video images and method for synthesizing video images |
| CN102098381A (en) * | 2010-12-29 | 2011-06-15 | 上海华勤通讯技术有限公司 | Backgrounded conversation realizing method for mobile phone |
| CN103607554A (en) * | 2013-10-21 | 2014-02-26 | 无锡易视腾科技有限公司 | Fully-automatic face seamless synthesis-based video synthesis method |
| CN105872448A (en) * | 2016-05-31 | 2016-08-17 | 宇龙计算机通信科技(深圳)有限公司 | Display method and device of video images in video calls |
Cited By (3)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| WO2022105786A1 (en) * | 2020-11-19 | 2022-05-27 | 华为技术有限公司 | Video call background switching method and first terminal device |
| CN113949827A (en) * | 2021-09-30 | 2022-01-18 | 安徽尚趣玩网络科技有限公司 | Video content fusion method and device |
| WO2023226814A1 (en) * | 2022-05-23 | 2023-11-30 | 北京字跳网络技术有限公司 | Video processing method and apparatus, electronic device, and storage medium |
Also Published As
| Publication number | Publication date |
|---|---|
| CN105872448A (en) | 2016-08-17 |
Similar Documents
| Publication | Publication Date | Title |
|---|---|---|
| WO2017206456A1 (en) | Method and apparatus for presenting video image in video call | |
| WO2020207030A1 (en) | Video encoding method, system and device, and computer-readable storage medium | |
| WO2018070762A1 (en) | Device and method of displaying images | |
| WO2017213439A1 (en) | Method and apparatus for generating image by using multi-sticker | |
| WO2019203528A1 (en) | Electronic apparatus and method for controlling thereof | |
| WO2018018695A1 (en) | Application freezing management method and device, and terminal | |
| WO2021056766A1 (en) | Video screen capture method, terminal, and computer-readable storage medium | |
| WO2019174090A1 (en) | Screenshot file sharing control method, apparatus and device, and computer storage medium | |
| WO2019027090A1 (en) | Mobile terminal and control method thereof | |
| WO2018233352A1 (en) | Data transmission method, device, terminal and computer readable storage medium | |
| WO2017057960A1 (en) | Electronic device and method for controlling the same | |
| WO2018155824A1 (en) | Display apparatus and control method thereof | |
| WO2014107025A1 (en) | Method and apparatus for controlling contents in electronic device | |
| WO2015005722A1 (en) | Mobile device, display apparatus and method for sharing contents thereof | |
| WO2020105752A1 (en) | Product customizing method via terminal | |
| WO2019071548A1 (en) | Terminal photograph capturing control method, mobile terminal, and readable storage medium | |
| WO2017078423A1 (en) | Electronic device and method for controlling display thereof | |
| WO2020054978A1 (en) | Device and method for generating image | |
| WO2016208992A1 (en) | Electronic device and method for controlling display of panorama image | |
| WO2017067375A1 (en) | Video background configuration method and terminal device | |
| WO2019037542A1 (en) | Television source preview method and apparatus, and computer-readable storage medium | |
| WO2017092670A1 (en) | Method for synchronously playing recorded multimedia at different places and relevant apparatus | |
| WO2018145597A1 (en) | Mobile terminal-based screen light-supplementing photographing method and system, and mobile terminal | |
| WO2019039861A1 (en) | Electronic device and method for providing content associated with camera function from electronic device | |
| WO2018101533A1 (en) | Image processing device and method |
Legal Events
| Date | Code | Title | Description |
|---|---|---|---|
| NENP | Non-entry into the national phase |
Ref country code: DE |
|
| 121 | Ep: the epo has been informed by wipo that ep was designated in this application |
Ref document number: 16903836 Country of ref document: EP Kind code of ref document: A1 |
|
| 122 | Ep: pct application non-entry in european phase |
Ref document number: 16903836 Country of ref document: EP Kind code of ref document: A1 |