US 12,322,180 B2
Image shooting method and electronic device for video generation
Peirui Lu, Guangdong (CN); and Meimei Cai, Guangdong (CN)
Assigned to VIVO MOBILE COMMUNICATION CO., LTD., Guangdong (CN)
Filed by VIVO MOBILE COMMUNICATION CO., LTD., Guangdong (CN)
Filed on Sep. 21, 2022, as Appl. No. 17/949,486.
Application 17/949,486 is a continuation of application No. PCT/CN2021/081982, filed on Mar. 22, 2021.
Claims priority of application No. 202010228177.2 (CN), filed on Mar. 27, 2020.
Prior Publication US 2023/0013753 A1, Jan. 19, 2023
Int. Cl. G06V 10/60 (2022.01); G06T 5/50 (2006.01); G06T 7/20 (2017.01); G06T 7/33 (2017.01); G06T 7/70 (2017.01); G06V 20/40 (2022.01); H04N 7/01 (2006.01)
CPC G06V 20/46 (2022.01) [G06T 5/50 (2013.01); G06T 7/20 (2013.01); G06T 7/33 (2017.01); G06T 7/70 (2017.01); G06V 10/60 (2022.01); H04N 7/0127 (2013.01); G06T 2207/20221 (2013.01); G06V 2201/07 (2022.01)] 9 Claims
OG exemplary drawing
 
1. An image shooting method, performed by an electronic device and comprising:
receiving a first input;
in response to the first input, obtaining a first video stream and a second video stream with a same shot content acquired by a camera module;
extracting a target object in the shot content of the first video stream to obtain a first intermediate video stream of the target object;
removing the target object in the shot content of the second video stream and performing image registration compensation on areas at which the target object is located, to obtain a second intermediate video stream; and
generating, based on the first intermediate video stream and the second intermediate video stream, a target video; wherein
the first intermediate video stream and the second intermediate video stream are different in frame rate;
wherein before the generating, based on the first intermediate video stream and the second intermediate video stream, a target video, the method further comprises:
performing frame rate adjustment processing on a to-be-processed video stream to obtain a processed video stream; wherein
the to-be-processed video stream is the first video stream, and the extracting a target object in the shot content of the first video stream to obtain a first intermediate video stream of the target object specifically comprises:
extracting the target object in the shot content of the processed video stream to obtain a first intermediate video stream of the target object; or
the to-be-processed video stream is the second video stream, and the removing the target object in the shot content of the second video stream and performing image registration compensation on areas at which the target object is located, to obtain a second intermediate video stream specifically comprises:
removing the target object in the shot content of the processed video stream and performing image registration compensation on the areas at which the target object is located, to obtain a second intermediate video stream; or
the to-be-processed video stream is at least one of the first intermediate video stream or the second intermediate video stream, and the target video is generated based on the processed video stream;
wherein the performing frame rate adjustment processing on a to-be-processed video stream to obtain a processed video stream comprises one of the following:
in a case that when the camera module acquires images, an ambient brightness value is higher than a first preset brightness value and a gain value is lower than a first preset gain value, for the to-be-processed video stream, extracting one frame of to-be-processed image from each first preset quantity of adjacent frames of images, and performing compositing on the to-be-processed images to obtain the processed video stream;
in a case that when the camera module acquires images, an ambient brightness value is lower than a second preset brightness value and a gain value is higher than a second preset gain value, for the to-be-processed video stream, performing averaging compositing on each second preset quantity of adjacent frames of images, and performing compositing on the averaging-composited images to obtain the processed video stream;
according to a preset correspondence between moving speeds and frame rates and based on a moving speed of a moving object in the to-be-processed video stream, performing frame reduction processing on the to-be-processed video stream to obtain the processed video stream; and
for the to-be-processed video stream, performing, based on adjacent images, frame addition processing every third preset quantity of frames of images to obtain the processed video stream.