IP Library Granted Patent US 12671907
Granted Patent B2
US 12671907 · App. 18/833,778 · Granted Jun 30, 2026

Video processing method and electronic device

Inventor: Hantao Cui (Shenzhen, CN)
Assignee: Honor Device Co., Ltd.
H04N23/73G06T5/50G06V10/60H04N23/741H04N23/745G06T2207/10144G06T2207/20208G06T2207/20221
View Patent ↗
Loading inventors, assignments & file history…
Monitor This Case
Get email alerts when status or documents change.
Order Certified Copies
Most orders are placed with the USPTO same day — all within 24 business hours.
Order via The Patent Place →
Pre-filled with this patent's details
Quick Facts
Patent No.
US 12671907
App. No.
18/833,778
Granted
Jun 30, 2026
Kind
B2
Abstract

This application provides a video processing method and an electronic device, and pertains to the field of terminal technologies. The method includes: receiving a first operation input by a user; obtaining a first image in a preset default high-dynamic range HDR exposure manner in response to the first operation; obtaining ambient brightness based on the first image, and determining a target HDR exposure manner based on a preset policy, where the preset policy includes a dynamic range corresponding to video shooting, a flicker status, and a correspondence between the ambient brightness and the target HDR exposure manner; and when the target HDR exposure manner is different from the default HDR exposure manner, switching the default HDR exposure manner to the target HDR exposure manner, and continuing to perform the video shooting.

Claims (71)

1 . A video processing method, applied to an electronic device, wherein the method comprises:

receiving a first operation input by a user, wherein the first operation is used to enable a video recording function of the electronic device;

obtaining a first image in a preset default high-dynamic range (HDR) exposure manner in response to the first operation;

obtaining ambient brightness based on the first image, and determining a first target HDR exposure manner based on a preset policy, wherein the preset policy comprises a plurality of target HDR exposure manners corresponding to a plurality of scenarios, the plurality of scenarios comprise dynamic range information corresponding to video shooting, a flicker status, and at least one correspondence between ambient brightness information and at least one target HDR exposure manner, and the plurality of target HDR exposure manners comprises at least one single frame mode manner and a plurality of dual frame mode manners, the at least one single frame mode manner comprises a binning mode manner, the plurality of dual frame mode manners comprises a stagger high-dynamic range (SHDR) mode manner and a DXG mode manner, and wherein the DXG mode manner is a mode manner in which a dual conversion gain (DCG) mode manner and a dual analog gain (DAG) mode manner are used in superposition; and

when the first target HDR exposure manner is different from the default HDR exposure manner, switching the default HDR exposure manner to the first target HDR exposure manner, and continuing to perform the video shooting to obtain a second image.

2 . The method according to claim 1 , wherein

the method further comprises: fusing images in a first dual frame mode manner of the plurality of dual frame mode manners when the first target HDR exposure manner is the first dual frame mode manner of the plurality of dual frame mode manners.

3 . The method according to claim 2 , wherein the electronic device comprises an automatic exposure control (AEC) module, an image sensor, a sensing module, and a fusion module; and

that images input in the first dual frame mode are fused when the first target HDR exposure manner is the first dual frame mode manner of the plurality of dual frame mode manners specifically comprises:

when the first target HDR exposure manner is the first dual frame mode manner of the plurality of dual frame mode manners, transmitting, by the image sensor, the images in the first dual frame mode manner to the fusion module; and fusing, by the fusion module, the images in the first dual frame mode manner; or

when the target HDR exposure manner is the first dual frame mode manner of the plurality of dual frame mode manners, fusing, by the image sensor, the images in the first dual frame mode manner.

4 . The method according to claim 3 , wherein when fusing the images in the first dual frame mode manner, the fusion module;

separately determines a target photosensitivity ratio between a dual-frame input image in the DCG mode manner and a dual-frame input image in the DAG mode manner based on a photosensitivity ratio required in the DXG mode manner; and

separately performs corresponding superposition on the dual-frame input image in the DCG mode manner and the dual-frame input image in the DAG mode manner based on the target photosensitivity ratio, to obtain a superposed dual-frame input image that meets the photosensitivity ratio in the DXG mode manner.

5 . The method according to claim 3 , wherein when fusing the images in the first dual frame mode manner, the image sensor superposes a dual-frame input image in the DCG mode manner and a dual-frame input image in the DAG mode manner based on a preset photosensitivity ratio.

6 . The method according to claim 1 , wherein the method further comprises:

presetting a target parameter corresponding to an image obtained through the video shooting; and

adjusting, to the target parameter, an initial parameter corresponding to the first image obtained in the at least one single frame mode manner; and/or

adjusting, to the target parameter, an initial parameter corresponding to the second image obtained in the a first dual frame mode manner of the plurality of dual frame mode manners.

7 . The method according to claim 1 , wherein the electronic device comprises an automatic exposure control (AEC) module, an image sensor, and a sensing module; and

the obtaining a first image in a preset default HDR exposure manner in response to the first operation specifically comprises:

sending, by the AEC module, first indication information to the image sensor in response to the first operation, wherein the first indication information is used to indicate to capture an image in the default HDR exposure manner; and

obtaining, by the image sensor, the first image in the default HDR exposure manner in response to the first indication information.

8 . The method according to claim 1 , wherein the electronic device comprises an automatic exposure control (AEC) module, an image sensor, and a sensing module; and

the obtaining ambient brightness based on the first image, and determining a first target HDR exposure manner based on a preset policy specifically comprises:

sending, by the image sensor, the first image to the sensing module;

obtaining, by the sensing module, the ambient brightness based on the first image, and indicating the ambient brightness to the AEC module; and

determining, by the AEC module, the first target HDR exposure manner based on the ambient brightness and the preset policy.

9 . The method according to claim 1 , wherein the determining a first target HDR exposure manner based on a preset policy specifically comprises:

obtaining a dynamic range corresponding to the video shooting;

when the dynamic range information is less than a first threshold, determining that the first target HDR exposure manner is the Binning mode manner;

when the dynamic range information is greater than or equal to the first threshold, detecting whether a flicker exists;

when the flicker exists, determining that the first target HDR exposure manner is the Binning mode manner;

when no flicker exists, determining the first target HDR exposure manner based on the ambient brightness;

when the ambient brightness is greater than a second threshold, determining that the first target HDR exposure manner is the SHDR mode manner;

when the ambient brightness is less than a third threshold and greater than a fourth threshold, determining that the first target HDR exposure manner is the DXG mode manner, wherein the third threshold is less than the second threshold; and

when the ambient brightness is less than the fourth threshold, determining that the first target HDR exposure manner is the Binning mode manner.

10 . The method according to claim 9 , wherein the method further comprises:

detecting whether a thermal escape phenomenon exists in the video shooting; and

wherein the preset policy further comprises when the thermal escape phenomenon exists, determining that the first target HDR exposure manner is the Binning mode manner.

11 . The method according to claim 1 , wherein the electronic device supports a first HDR video mode, wherein the first HDR video mode comprises an HDR10 standard or an HDR10 plus (HDR10+) standard.

12 . The method according to claim 1 , wherein when there is switching between an HDR camera and a non-HDR camera during the video shooting, the method further comprises:

when an exposure manner of the HDR camera is the at least one single frame mode manner and an exposure manner corresponding to the non-HDR camera is the a first dual frame mode manner of the plurality of dual frame mode manners during the switching, adjusting a first dynamic range gain corresponding to the at least one single frame mode manner, so that the first dynamic range gain is closest to a second dynamic range gain corresponding to the first dual frame mode manner.

13 . The method according to claim 1 , wherein the method further comprises:

displaying a first interface, wherein the first interface comprises a first control, and the first control is configured to enable a function of automatically switching the HDR exposure manner.

14 . An electronic device, comprising:

one or more processors; and

one or more memories, wherein

the one or more memories store one or more computer programs, the one or more computer programs comprise instructions, and when the instructions are executed by the one or more processors, the electronic device is enabled to perform:

receiving a first operation input by a user, wherein the first operation is used to enable a video recording function of the electronic device;

obtaining a first image in a preset default high-dynamic range (HDR) exposure manner in response to the first operation;

obtaining ambient brightness based on the first image, and determining a first target HDR exposure manner based on a preset policy, wherein the preset policy comprises a plurality of target HDR exposure manners corresponding to a plurality of scenarios, the plurality of scenarios comprise dynamic range information corresponding to video shooting, a flicker status, and at least one correspondence between ambient brightness information and at least one target HDR exposure manner, and the plurality of target HDR exposure manners comprises at least one single frame mode manner and a plurality of dual frame mode manners, the at least one single frame mode manner comprises a binning mode manner, the plurality of dual frame mode manners comprises a stagger high-dynamic range (SHDR) mode manner and a DXG mode manner, and wherein the DXG mode manner is a mode manner in which a dual conversion gain (DCG) mode manner and a dual analog gain (DAG) mode are used in superposition; and

when the first target HDR exposure manner is different from the default HDR exposure manner, switching the default HDR exposure manner to the first target HDR exposure manner, and continuing to perform the video shooting to obtain a second image.

15 . The electronic device according to claim 14 , wherein the electronic device is further enabled to perform:

fusing images in a first dual frame mode manner of the plurality of dual frame mode manners when the target HDR exposure manner is the first dual frame mode manner of the plurality of dual frame mode manners.

16 . The electronic device according to claim 15 , wherein the electronic device is further enabled to perform:

presetting a target parameter corresponding to an image obtained through the video shooting; and

adjusting, to the target parameter, an initial parameter corresponding to the first image obtained in the at least one single frame mode manner; and/or

adjusting, to the target parameter, an initial parameter corresponding to the second image obtained in the a first dual frame mode manner of the plurality of dual frame mode manners.

17 . The electronic device according to claim 14 , wherein the electronic device supports a first HDR video mode, wherein the first HDR video mode comprises an HDR10 standard or an HDR10 plus (HDR10+) standard.

18 . A non-transitory computer-readable storage medium, wherein the non-transitory computer-readable storage medium stores computer-executable program instructions, and when the computer-executable program instructions are run on a computer, the computer is enabled to:

receive a first operation input by a user, wherein the first operation is used to enable a video recording function of an electronic device;

obtain a first image in a preset default high-dynamic range (HDR) exposure manner in response to the first operation;

obtain ambient brightness based on the first image, and determining a first target HDR exposure manner based on a preset policy, wherein the preset policy comprises a plurality of target HDR exposure manners corresponding to a plurality of scenarios, the plurality of scenarios comprise dynamic range information corresponding to video shooting, a flicker status, and at least one correspondence between ambient brightness information and at least one target HDR exposure manner, and the plurality of target HDR exposure manners comprises at least one single frame mode manner and a plurality of dual frame mode manners, the at least one single frame mode manner comprises a binning mode manner, the plurality of dual frame mode manners comprises a stagger high-dynamic range (SHDR) mode manner and a DXG mode manner, and wherein the DXG mode manner is a mode manner in which a dual conversion gain (DCG) mode manner and a dual analog gain (DAG) mode manner are used in superposition; and

when the first target HDR exposure manner is different from the default HDR exposure manner, switch the default HDR exposure manner to the first target HDR exposure manner, and continuing to perform the video shooting to obtain a second image.

19 . The non-transitory computer-readable storage medium according to claim 18 , wherein the electronic device is further enabled to perform:

fusing images in a first dual frame mode manner of the plurality of dual frame mode manners when the target HDR exposure manner is the first dual frame mode manner of the plurality of dual frame mode manners.

20 . The non-transitory computer-readable storage medium according to claim 19 , wherein when the computer-executable program instructions are run on the computer, the computer is further enabled to:

preset a target parameter corresponding to an image obtained through the video shooting; and

adjust, to the target parameter, an initial parameter corresponding to the first image obtained in the at least one single frame mode manner; and/or

adjust, to the target parameter, an initial parameter corresponding to the second image obtained in the a first dual frame mode manner of the plurality of dual frame mode manners.