Co-photographing method and electronic device
An electronic device and methods are provided for co-photographing. In the course of a video call, video content associated with two users can be obtained, and a co-photographing image or a co-photographing video of the content of the two users can be further obtained. During the video call, the two users can exchange co-photographing details. After the video call ends, the co-photographing video can be quickly generated. User experience can be improved by reducing post-processing activity and improving definition of synthesized imagery or synthesized video.
1 . A co-photographing method, comprising:
establishing, by a first electronic device, a video call connection between the first electronic device and a second electronic device;
obtaining, by the first electronic device, first video data associated with the first electronic device in a video call process;
obtaining, by the first electronic device, second video data associated with the second electronic device through the video call connection;
obtaining, by the first electronic device, a co-photographing file based on the first video data and the second video data;
displaying, by the first electronic device in a fourth interface, a first interface region and a second interface region based on the first video data and the second video data, wherein:
the first interface region comprises a first image associated with the first video data;
the second interface region comprises a second image associated with the second video data;
the first image comprises pixels associated with the first video data;
the second image comprises pixels associated with the second video data;
the fourth interface comprises a split screen on/off control and a background removal on/off control, and when the split screen on/off control is “off” and the background removal on/off control is “on”, the fourth interface comprises a background interface region including backgrounds of the first interface region and the second interface region, and the background interface region comprises a first background image including pixels corresponding to a scene associated with the first video data or a second background image including pixels corresponding to a scene associated with the second video data; and
adjusting, by the first electronic device, a display priority of the first interface region or the second interface region in response to an operation performed on the fourth interface.
2 . The co-photographing method according to claim 1 , comprising:
displaying, by the first electronic device, a first interface of a photographing application, wherein the first interface comprises a co-photographing control;
displaying, by the first electronic device, a second interface in response to an operation performed on the co-photographing control, wherein the second interface comprises a plurality of user controls that are provided in a one-to-one correspondence with a plurality of electronic devices participating in the video call, the plurality of electronic devices including the second electronic device; and
sending, by the first electronic device, a co-photographing invitation to the second electronic device in response to an operation performed on a user control associated with the second electronic device to establish the video call connection.
3 . The co-photographing method according to claim 1 , wherein before the establishing, by a first electronic device, a video call connection between the first electronic device and a second electronic device, the co-photographing method further comprises:
displaying, by the first electronic device, a third interface of a video call application, wherein the third interface comprises a plurality of video call controls that are provided in a one-to-one correspondence with a plurality of electronic devices participating in the video call, the plurality of electronic devices including the second electronic device; and
sending, by the first electronic device, a video call invitation to the second electronic device in response to an operation performed on a video call control associated with the second electronic device to establish the video call connection.
4 . The co-photographing method according to claim 1 , wherein when the split screen on/off control is “on” and the background removal on/off control is “on”, at least one of the following conditions exists:
the first interface region further comprises a second background image or a target gallery image; or
the second interface region further comprises a first background image or a target gallery image, the first background image comprising pixels corresponding to a scene associated with the first video data, and the second background image comprises pixels corresponding to a second scene associated with the second video data.
5 . The co-photographing method according to claim 1 , wherein the co-photographing method further comprises:
adjusting, by the first electronic device, at least one of a size of the first interface region or a size of the second interface region in response to an operation performed on the fourth interface.
6 . The co-photographing method according to claim 1 , wherein the fourth interface further comprises a recording control, and the obtaining a co-photographing file associated with each of the first video data and the second video data comprises:
obtaining, by the first electronic device, the co-photographing file based on the first video data and the second video data in response to an operation performed on the recording control.
7 . The co-photographing method according to claim 6 , wherein the co-photographing file comprises a first image region and a second image region, the first image region comprises the pixels associated with the first video data, and the second image region comprises the pixels associated with the second video data.
8 . The co-photographing method according to claim 6 , wherein the co-photographing file comprises a first image region and a second image region, the first image region comprises the pixels corresponding to any one of the first background image, the second background image or the target gallery image; and
the second image region comprises the pixels corresponding to any one of the first background image, the second background image or a target gallery image.
9 . The co-photographing method according to claim 7 , wherein the co- photographing file further comprises a background image region including backgrounds of the first image region and the second image region, and the background image region comprises pixels corresponding to any one of the first background image, the second background image, and a target gallery image.
10 . The co-photographing method according to claim 1 , wherein resolution of the co-photographing file is higher than display resolution of the first electronic device.
11 . The co-photographing method according to claim 1 , wherein the co-photographing file is a co-photographing image or a co-photographing video.
12 . An electronic device, comprising:
a processor;
a memory connected to the processor and storing a computer program including instructions that, when executed by the processor, cause the electronic device to:
establish a video call connection between the electronic device and a second electronic device;
obtain first video data associated with the electronic device in a video call process;
obtain second video data of the second electronic device from the second electronic device through the video call connection;
obtain a co-photographing file based on the first video data associated with the first electronic device and the second video data associated with the second electronic device;
display, in a fourth interface, a first interface region and a second interface region based on the first video data and the second video data, wherein:
the first interface region comprises a first image associated with the first video data;
the second interface region comprises a second image associated with the second video data;
the first image comprises pixels associated with the first video data; and
the second image comprises pixels associated with the second video data;
the fourth interface comprises a split screen on/off control and a background removal on/off control, and when the split screen on/off control is “off” and the background removal on/off control is “on”, the fourth interface comprises a background interface region including backgrounds of the first interface region and the second interface region, and the background interface region comprises a first background image including pixels corresponding to a scene associated with the first video data or a second background image including pixels corresponding to a scene associated with the second video data; and
adjusting, by the first electronic device, a display priority of the first interface region or the second interface region in response to an operation performed on the fourth interface.
13 . The electronic device according to claim 12 , wherein execution of the program instructions by the processor further causes the electronic device to:
display a first interface of a photographing application, wherein the first interface comprises a co-photographing control;
display a second interface in response to an operation performed on the co-photographing control, wherein the second interface comprises a plurality of user controls that are provided in a one-to-one correspondence with a plurality of electronic devices, the plurality of electronic devices comprising the second electronic device; and
send a co-photographing invitation to the second electronic device in response to an operation performed on a user control associated with the second electronic device to establish the video call connection.
14 . The electronic device according to claim 12 , wherein execution of the program instructions by the processor further causes the electronic device to:
display a third interface of a video call application, wherein the third interface comprises a plurality of video call controls that are provided in a one-to-one correspondence with a plurality of electronic devices, the plurality of electronic devices comprising the second electronic device; and
send a video call invitation to the second electronic device in response to an operation performed on a video call control associated with the second electronic device to establish the video call connection.
15 . The electronic device according to claim 12 , wherein when the split screen on/off control is “on” and the background removal on/off control is “on”, at least one of the following conditions exists:
the first interface region further comprises a second background image; or
the second interface region further comprises a first background image, wherein the first background image comprises pixels corresponding to a scene associated with the first video data, and the second background image comprises pixels corresponding to a second scene associated with the second video data.
16 . A non-transitory computer storage medium comprising computer instructions that, when the computer instructions are run on an electronic device, the electronic device is enabled to perform operations including:
establishing a video call connection between the electronic device and a second electronic device;
obtaining first video data associated with the electronic device in a video call process;
obtaining second video data associated with the second electronic device from the second electronic device through the video call connection;
obtaining a co-photographing file associated with the first electronic device and the second electronic device based on the first video data and the second video data; displaying, in a fourth interface, a first interface region and a second interface region based on the first video data and the second video data, wherein:
the first interface region comprises a first image associated with the first video data;
the second interface region comprises a second image associated with the second video data;
the first image comprises pixels associated with the first video data; and
the second image comprises pixels associated with the second video data;
the fourth interface comprises a split screen on/off control and a background removal on/off control, and when the split screen on/off control is “off” and the background removal on/off control is “on”, the fourth interface comprises a background interface region including backgrounds of the first interface region and the second interface region, and the background interface region comprises a first background image including pixels corresponding to a scene associated with the first video data or a second background image including pixels corresponding to a scene associated with the second video data; and
adjusting, by the first electronic device, a display priority of the first interface region or the second interface region in response to an operation performed on the fourth interface.