US 12,273,622 B2
Photographing method and electronic device
Jirun Xu, Shenzhen (CN)
Assigned to Honor Device Co., Ltd., Shenzhen (CN)
Appl. No. 18/273,276
Filed by Honor Device Co., Ltd., Shenzhen (CN)
PCT Filed Dec. 20, 2022, PCT No. PCT/CN2022/140192
§ 371(c)(1), (2) Date Jul. 20, 2023,
PCT Pub. No. WO2023/160169, PCT Pub. Date Aug. 31, 2023.
Claims priority of application No. 202210181416.2 (CN), filed on Feb. 25, 2022.
Prior Publication US 2024/0406556 A1, Dec. 5, 2024
Int. Cl. H04N 23/68 (2023.01); H04N 1/21 (2006.01); H04N 23/60 (2023.01); H04N 23/63 (2023.01); H04N 23/951 (2023.01); H04N 101/00 (2006.01); H04N 23/80 (2023.01)
CPC H04N 23/6812 (2023.01) [H04N 1/2145 (2013.01); H04N 23/632 (2023.01); H04N 23/64 (2023.01); H04N 23/951 (2023.01); H04N 23/689 (2023.01); H04N 23/80 (2023.01); H04N 2101/00 (2013.01); H04N 2201/0084 (2013.01)] 7 Claims
OG exemplary drawing
 
1. A photographing method, wherein the method is applied to an electronic device, and the method comprises:
obtaining N frames of images in response to a first operation, wherein the first operation is an operation performed on a photographing control, the N frames of images are N frames of images in a preview picture that are collected by using a camera, and N is a positive integer; and
determining a target image as an output raw image in a process of sequentially obtaining jitter amounts of each frame of the N frames of images, wherein the output raw image is an image obtained by the electronic device by using a sensor of the camera, and the target image is an image that meets a jitter amount requirement and that is determined from the N frames of images based on the jitter amounts, wherein the determining the target image as the output raw image comprises:
extracting a first image from the N frames of images;
obtaining a jitter amount of the first image;
based on the jitter amount of the first image being less than or equal to a preset threshold, determining the first image as the target image;
based on the jitter amount of the first image being greater than the preset threshold, extracting a next frame of the N frames of images as a new first image, and performing the step of obtaining the jitter amount of the new first image; and
based on the jitter amounts of each frame the N frames of images being greater than the preset threshold, determining an image with a minimum jitter amount in the N frames of images as the target image;
wherein the obtaining the jitter amount of the first image comprises:
obtaining gyro data of M lines in the first image, wherein M is a positive integer, and M is less than or equal to a quantity of pixel lines of the first image; and
determining the jitter amount of the first image based on the gyro data of the M lines; and
wherein the obtaining the gyro data of the M lines in the first image comprises:
obtaining exposure time information of the M lines in the first image, wherein the exposure time information comprises start moments and end moments of exposure of the M lines;
obtaining timestamp information and corresponding gyro data, wherein the timestamp information is information about time of collecting the corresponding gyro data; and
based on the timestamp information being in exposure time information of a corresponding line in the M lines, obtaining gyro data in the exposure time information of the corresponding line.