# US 2023/0276136 A1 · Photographing method, electronic device, and storage medium

> Agents: this data is available as JSON from the patentgrep API and MCP server — see https://patentgrep.com/llms.txt

- Number: US 2023/0276136 A1
- Document ID: US20230276136A1
- Status: Published application
- Kind: A1
- Application number: 18/020,251
- Filed: 2021-12-31
- Published: 2023-08-31
- Earliest claimed: 2021-04-06
- Assignees: Honor Device Co., Ltd.
- Applicants: Honor Device Co., Ltd.
- Inventors: Hantao CUI; Zuochao ZHANG; Guangyuan LI
- Web page: https://patentgrep.com/patent/US20230276136A1

## CPC

- H04N 23/745: Detection of flicker frequency or suppression of flicker wherein the flicker is caused by illumination, e.g. due to fluorescent tube illumination or pulsed LED illumination
- H04N 23/56: provided with illuminating means
- H04N 23/63: by using electronic viewfinders
- H04N 23/667: Camera operation mode switching, e.g. between still and video, sport and normal or high- and low-resolution modes
- H04N 23/72: Combination of two or more compensation controls
- H04N 23/73: by influencing the exposure time
- H04N 23/74: by influencing the scene brightness using illuminating means
- H04N 23/741: by increasing the dynamic range of the image compared to the dynamic range of the electronic image sensors
- H04N 23/743: Bracketing, i.e. taking a series of images with varying exposure conditions
- H04N: PICTORIAL COMMUNICATION, e.g. TELEVISION

## Abstract

Embodiments of this application provide a photographing method, an electronic device, and a storage medium, relating to the field of optical imaging technologies. The method includes: running, by the electronic device, a camera application; determining that light in a photographing scene is flickering light; acquiring an image in a first exposure manner, where the first exposure manner indicates that the electronic device performs exposures with a first exposure duration and a second exposure duration alternately; in response to a trigger to a capture button, acquiring, by the electronic device, at least one first image and at least one second image in the first exposure manner; and generating a captured image based on the first image and the second image, and displaying the captured image.

## Claims

### Claim 1

A photographing method, applied to an electronic device, wherein an illumination device provides light in a photographing scene of the electronic device, the illumination device provides flickering light, and a duration for which the illumination device flickers once is a flickering duration; and
the method comprises:
running, by the electronic device, a camera application, and determining, by the electronic device, that the light in the photographing scene is flickering light;
acquiring, by the electronic device, an image in a first exposure manner, wherein the first exposure manner indicates that the electronic device performs exposures with a first exposure duration and a second exposure duration alternately and generates a first photographing queue and a second photographing queue, the first photographing queue comprises at least one first image, the second photographing queue comprises at least one second image, the first photographing queue is an image acquired by the electronic device with the first exposure duration, the second photographing queue is an image acquired by the electronic device with the second exposure duration, the first exposure duration is greater than the flickering duration, and the second exposure duration is less than the flickering duration;
displaying, by the electronic device, a photographing interface, wherein the photographing interface comprises a preview image and a capture button, and the preview image is generated based on the first photographing queue; and
in response to a trigger to the capture button, generating, by the electronic device, a captured image based on the at least one first image and the at least one second image, and displaying the captured image.

### Claim 2 (depends on 1)

The method according to claim 1, wherein the first exposure duration is an integer multiple of the flickering duration, the at least one first image acquired by the electronic device with the first exposure duration constitutes the first photographing queue, exposure durations of the first images in the first photographing queue correspond to a same quantity of flickering times, and a difference between brightness values of the first images in the first photographing queue is less than a preset brightness threshold, so that display brightness of the preview image is even.

### Claim 3 (depends on 1)

The method according to claim 1, wherein the method further comprises: when the electronic device acquires the image in the first exposure manner, acquiring, by the electronic device, the image at a first frequency; and
the acquiring, by the electronic device, the image at a first frequency comprises: acquiring, by the electronic device, the image in the first photographing queue at a second frequency, and acquiring, by the electronic device, the image in the second photographing queue at a third frequency, wherein a sum of the second frequency and the third frequency is equal to the first frequency.

### Claim 4 (depends on 1)

The method according to claim 1, wherein the generating a captured image based on the at least one first image and the at least one second image comprises:
determining, by the electronic device, a moment at which the capture button is triggered as a shutter moment;
determining, by the electronic device, at least one first image of which image acquisition time is close to the shutter moment in the first photographing queue;
using, as a reference frame, an image with the highest brightness among the at least one first image;
determining, by the electronic device, at least one second image, of which image acquisition time is close to acquisition time of the reference frame, in the second photographing queue; and
using the at least one second image as an auxiliary frame, and generating the captured image based on the reference frame and the auxiliary frame.

### Claim 5 (depends on 1)

The method according to claim 1, wherein the generating a captured image based on the at least one first image and the at least one second image comprises:
determining, by the electronic device, a moment at which the capture button is triggered as a shutter moment;
determining, by the electronic device, at least one first image of which image acquisition time is close to the shutter moment in the first photographing queue;
using, as a reference frame, an image with the highest brightness among the at least one first image;
determining, by the electronic device, at least one second image, of which image acquisition time is close to acquisition time of the reference frame, in the second photographing queue; and
determining, by the electronic device, an image with the highest brightness among the at least one second image as an auxiliary frame, and generating the captured image based on the reference frame and the auxiliary frame.

### Claim 6 (depends on 4)

The method according to claim 4, wherein the generating the captured image based on the reference frame and the auxiliary frame comprises:
determining a first threshold of the reference frame based on banding detection, wherein the first threshold indicates a banding level of the reference frame; and
generating, if the first threshold is greater than a preset threshold, the captured image based on the auxiliary frame; or
generating, if the first threshold is less than or equal to a preset threshold, the captured image based on the reference frame and the auxiliary frame.

### Claim 7 (depends on 6)

The method according to claim 6, wherein the generating, if the first threshold is less than or equal to a preset threshold, the captured image based on the reference frame and the auxiliary frame comprises:
determining a non-motion area and a motion area in the reference frame, wherein the non-motion area is a part, in which a motionless object is located, of the image, and the motion area is a part, in which a target object is located, of the image;
performing pixel fusion on the non-motion area based on the auxiliary frame to reduce banding in the non-motion area, and generating a processed non-motion area;
adjusting a gray level coefficient of the motion area to reduce banding in the motion area, and generating a processed motion area; and
fusing, by using an image fusion algorithm, the processed motion area and the processed non-motion area to generate the captured image.

### Claim 8 (depends on 6)

The method according to claim 6, wherein the generating, if the first threshold is greater than a preset threshold, the captured image based on the auxiliary frame comprises:
processing, by using a preset image deblurring algorithm, the auxiliary frame to reduce motion blur of the auxiliary frame and generate the captured image.

### Claim 9 (depends on 1)

The method according to claim 1, wherein the running, by the electronic device, a camera application, and determining, by the electronic device, that the light in the photographing scene is flickering light comprises:
running, by the electronic device, the camera application, and acquiring, by the electronic device, an image in a second exposure manner, wherein the second exposure manner indicates that the electronic device performs an exposure with a third exposure duration;
continuously acquiring, by the electronic device, a plurality of images, and calculating brightness of each of the plurality of images; and
if a brightness difference between every two of the plurality of images is greater than a preset brightness difference, determining that the light in the photographing scene is flickering light.

### Claim 10 (depends on 1)

The method according to claim 1, wherein the method further comprises:
if the electronic device detects a change to the photographing scene, acquiring, by the electronic device, an image in a second exposure manner, wherein the second exposure manner indicates that the electronic device performs an exposure with a third exposure duration.

### Claim 11 (depends on 10)

The method according to claim 10, wherein after the electronic device detects the change to the photographing scene, the method further comprises:
determining, by the electronic device, an exposure manner switching delay; and switching, by the electronic device after the switching delay ends, from the first exposure manner to the second exposure manner.

### Claim 12 (depends on 9)

The method according to claim 9, wherein the third exposure duration is equal to the first exposure duration or the second exposure duration.

### Claim 13

An electronic device, comprising:
a camera, configured to acquire an image;
a display screen, configured to display an interface;
one or more processors;
a memory; and
one or more computer programs, wherein the one or more computer programs are stored in the memory, the one or more computer programs comprise instructions, and when the instructions are executed by the electronic device, the electronic device is enabled to perform a photographing method, the method comprising:
running a camera application and determining that the light in the photographing scene is flickering light
acquiring an image in a first exposure manner, wherein the first exposure manner indicates that the electronic device performs exposures with a first exposure duration and a second exposure duration alternately and generates a first photographing queue and a second photographing queue, the first photographing queue comprises at least one first image, the second photographing queue comprises at least one second image, the first photographing queue is an image acquired by the electronic device with the first exposure duration, the second photographing queue is an image acquired by the electronic device with the second exposure duration, the first exposure duration is greater than the flickering duration, and the second exposure duration is less than the flickering duration;
displaying a photographing interface, wherein the photographing interface comprises a preview image and a capture button, and the preview image is generated based on the first photographing queue; and
in response to a trigger to the capture button, generating a captured image based on the at least one first image and the at least one second image, and displaying the captured image.

### Claim 14

A computer-readable storage medium, comprising computer instructions, wherein when the computer instructions are run on a computer, the computer is enabled to perform a photographing method the method comprising:
running a camera application and determining that the light in the photographing scene is flickering light
acquiring an image in a first exposure manner, wherein the first exposure manner indicates that an electronic device performs exposures with a first exposure duration and a second exposure duration alternately and generates a first photographing queue and a second photographing queue, the first photographing queue comprises at least one first image, the second photographing queue comprises at least one second image, the first photographing queue is an image acquired by the electronic device with the first exposure duration, the second photographing queue is an image acquired by the electronic device with the second exposure duration, the first exposure duration is greater than the flickering duration, and the second exposure duration is less than the flickering duration;
displaying a photographing interface, wherein the photographing interface comprises a preview image and a capture button, and the preview image is generated based on the first photographing queue; and
in response to a trigger to the capture button, generating a captured image based on the at least one first image and the at least one second image, and displaying the captured image.

### Claim 15 (depends on 13)

The electronic device according to claim 13, wherein the first exposure duration is an integer multiple of the flickering duration, the at least one first image acquired by the electronic device with the first exposure duration constitutes the first photographing queue, exposure durations of the first images in the first photographing queue correspond to a same quantity of flickering times, and a difference between brightness values of the first images in the first photographing queue is less than a preset brightness threshold, so that display brightness of the preview image is even.

### Claim 16 (depends on 13)

The electronic device according to claim 13, wherein the method further comprises: when the electronic device acquires the image in the first exposure manner, acquiring the image at a first frequency; and
the acquiring the image at a first frequency comprises:
acquiring the image in the first photographing queue at a second frequency, and
acquiring the image in the second photographing queue at a third frequency, wherein a sum of the second frequency and the third frequency is equal to the first frequency.

### Claim 17 (depends on 13)

The electronic device according to claim 13, wherein the generating a captured image based on the at least one first image and the at least one second image comprises:
determining a moment at which the capture button is triggered as a shutter moment;
determining at least one first image of which image acquisition time is close to the shutter moment in the first photographing queue;
using, as a reference frame, an image with the highest brightness among the at least one first image;
determining at least one second image, of which image acquisition time is close to acquisition time of the reference frame, in the second photographing queue; and
using the at least one second image as an auxiliary frame, and generating the captured image based on the reference frame and the auxiliary frame.

### Claim 18 (depends on 13)

The electronic device according to claim 13, wherein the generating a captured image based on the at least one first image and the at least one second image comprises:
determining a moment at which the capture button is triggered as a shutter moment;
determining at least one first image of which image acquisition time is close to the shutter moment in the first photographing queue;
using, as a reference frame, an image with the highest brightness among the at least one first image;
determining at least one second image, of which image acquisition time is close to acquisition time of the reference frame, in the second photographing queue; and
determining an image with the highest brightness among the at least one second image as an auxiliary frame, and generating the captured image based on the reference frame and the auxiliary frame.

### Claim 19 (depends on 17)

The electronic device according to claim 17, wherein the generating the captured image based on the reference frame and the auxiliary frame comprises:
determining a first threshold of the reference frame based on banding detection, wherein the first threshold indicates a banding level of the reference frame; and
generating, if the first threshold is greater than a preset threshold, the captured image based on the auxiliary frame; or
generating, if the first threshold is less than or equal to a preset threshold, the captured image based on the reference frame and the auxiliary frame.

### Claim 20 (depends on 19)

The electronic device according to claim 19, wherein the generating, if the first threshold is less than or equal to a preset threshold, the captured image based on the reference frame and the auxiliary frame comprises:
determining a non-motion area and a motion area in the reference frame, wherein the non-motion area is a part, in which a motionless object is located, of the image, and the motion area is a part, in which a target object is located, of the image;
performing pixel fusion on the non-motion area based on the auxiliary frame to reduce banding in the non-motion area, and generating a processed non-motion area;
adjusting a gray level coefficient of the motion area to reduce banding in the motion area, and generating a processed motion area; and
fusing, by using an image fusion algorithm, the processed motion area and the processed non-motion area to generate the captured image.
