IP Library Granted Patent US 12,462,448
Granted Patent B2
US 12,462,448 · App. 18/279,093 · Granted Nov 4, 2025

Image processing method and electronic device

Inventors: Bin Xiao (Shenzhen, CN); Yu Wang (Shenzhen, CN); Tao Shao (Shenzhen, CN); Congchao Zhu (Shenzhen, CN)
Assignee: HONOR DEVICE CO., LTD.
G06T11/001G06T7/11G06T7/90G06V10/56G06T2207/10024G06T2207/20081G06T2207/20084
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 12,462,448
App. No.
18/279,093
Granted
Nov 4, 2025
Kind
B2
Abstract

An image processing method and an electronic device are disclosed, and relate to the field of image processing technologies. The image processing method includes: displaying a first interface, and determining, on the first interface, a first file selected by a user; displaying a second interface, and displaying a generated lookup table on the second interface; determining, on the second interface, a target lookup table selected by the user from the lookup table, and performing color adjustment on the first file by using the target lookup table; and displaying a color-adjusted first file. In the image processing method, an image can be processed according to a user requirement, and difficulty of image processing is reduced.

Claims (55)

1 . An image processing method, wherein the method comprises:

displaying a first interface, and determining, on the first interface, a first file selected by a user;

displaying a second interface, and displaying a generated lookup table on the second interface; wherein, the lookup table is generated by a preset deep neural network model or a polynomial fitting algorithm;

determining, on the second interface, a target lookup table selected by the user from the lookup table, and performing color adjustment on the first file by using the target lookup table; and

displaying a color-adjusted first file,

wherein the method further comprises:

determining a first image selected by the user and a second image corresponding to the first image, wherein the second image is an image obtained through first color adjustment on the first image; and

generating, based on the first image, the second image, and the deep neural network model, a lookup table corresponding to the first color adjustment; and generating, based on the first image, the second image, and the polynomial fitting algorithm, a lookup table corresponding to the first color adjustment, wherein the lookup table corresponding to the first color adjustment is used for enabling the first file and the second image to have same color adjustment effect during the color adjustment on the first file.

2 . The method according to claim 1 , wherein the lookup table comprises a global lookup table and a local lookup table.

3 . The method according to claim 1 , wherein the generating, based on the first image, the second image, and the deep neural network model, the lookup table corresponding to the first color adjustment comprises:

inputting the first image and the second image to a preset deep neural network model, to obtain a global lookup table output by the deep neural network model.

4 . The method according to claim 1 , wherein the generating, based on the first image, the second image, and the deep neural network model, the lookup table corresponding to the first color adjustment comprises:

segmenting the first image and the second image into N subblocks in a same segmentation manner;

combining a first subblock in the first image and a second subblock in the second image into an input data pair to obtain N input data pairs, wherein a location of the first subblock of the input data pair in the first image is the same as a location of the second subblock in the second image;

inputting the N input data pairs to the deep neural network model to obtain N subblock lookup tables; and

combining the N subblock lookup tables to obtain a local lookup table, wherein N is a positive integer.

5 . The method according to claim 4 , wherein the combining the N subblock lookup tables to obtain a local lookup table comprises:

smoothing each subblock lookup table; and

combining smoothed N subblock lookup tables to obtain the local lookup table.

6 . The method according to claim 5 , wherein the smoothing each subblock lookup table comprises:

determining a weight corresponding to each subblock lookup table;

obtaining a first product of an output value of an N th subblock lookup table and a weight corresponding to the N th subblock lookup table, and a second product of an output value of an adjacent lookup table and a weight corresponding to a adjacent lookup table, wherein the adjacent lookup table is a subblock lookup table adjacent to the N th subblock lookup table; and

replacing the output value of the N th subblock lookup table with a sum of the first product and the second product.

7 . The method according to claim 1 , wherein before the generating, based on the first image, the second image, and the deep neural network model, the lookup table corresponding to the first color adjustment, the method further comprises:

obtaining a first sample and a plurality of second samples obtained through different color adjustment on the first sample;

combining the first sample and the second sample of the first sample into a sample pair, wherein each sample pair comprises a first sample and a second sample of the first sample; and

inputting the sample pair to the deep neural network model to train the deep neural network model, so that a trained deep neural network model can output a global lookup table corresponding to each sample pair.

8 . The method according to claim 1 , wherein the generating, based on the first image, the second image, and the polynomial fitting algorithm, the lookup table corresponding to the first color adjustment comprises:

using a color value of the first image as an input value, and using a color value of the second image as an output value;

determining a target polynomial between the input value and the output value by using a polynomial fitting algorithm; and

outputting, by using the target polynomial, the lookup table corresponding to first color adjustment effect.

9 . The method according to claim 1 , wherein before the displaying a second interface, and displaying a generated lookup table on the second interface, the method further comprises:

displaying a third interface, and determining, on the third interface, a lookup table type selected by the user, wherein the lookup table type comprises a global lookup table and a local lookup table; and

obtaining a lookup table corresponding to the lookup table type, to display the lookup table corresponding to the lookup table type on the second interface.

10 . The method according to claim 1 , wherein the first file comprises at least one of an image or a video.

11 . An electronic device, comprising:

a display;

one or more processors; and

a memory, wherein

the display is configured to display an image generated by the processor, the memory stores one or more computer programs, including instructions that, when executed by the electronic device, enable the electronic device to perform image processing operations comprising:

displaying a first interface, and determining on the first interface, a first file selected by a user;

displaying a second interface, and displaying a generated lookup table on the second interface; wherein, the lookup table is generated by a preset deep neural network model or a polynomial fitting algorithm;

determining, on the second interface, a target lookup table selected by the user from the lookup table, and performing color adjustment on the first file by using the target lookup table; and

displaying a color-adjusted first file;

wherein the image processing operations further comprise:

determining a first image selected by the user and a second image corresponding to the first image, wherein the second image is an image obtained through first color adjustment on the first image; and

generating, based on the first image, the second image, and the deep neural network model, a lookup table corresponding to the first color adjustment; and generating, based on the first image. the second image, and the polynomial fitting algorithm, a lookup table corresponding to the first color adjustment, wherein the lookup table corresponding to the first color adjustment is used for enabling the first file and the second image to have same color adjustment effect during the color adjustment on the first file.

12 . A non-transitory computer-readable storage medium, storing instructions that, when run on an electronic device, enable the electronic device to perform image processing operations comprising:

displaying a first interface, and determining, on the first interface, a first file selected by a user,

displaying a second interface, and displaying a generated lookup table on the second interface, wherein, the lookup table is generated by a preset deep neural network model or a polynomial fitting algorithm;

determining, on the second interface, a target lookup table selected by the user from the lookup table, and performing color adjustment on the first file by using the target lookup table;

and displaying a color-adjusted first file;

wherein the image processing operations further comprise:

determining a first image selected by the user and a second image corresponding to the first image, wherein the second image is an image obtained through first color adjustment on the first image; and

generating, based on the first image, the second image, and the deep neural network model, a lookup table corresponding to the first color adjustment; and generating, based on the first image, the second image, and the polynomial fitting algorithm, a lookup table corresponding to the first color adjustment, wherein the lookup table corresponding to the first color adjustment is used for enabling the first file and the second image to have same color adjustment effect during the color adjustment on the first file.

Assignments (1)
ASSIGNMENT OF ASSIGNOR'S INTEREST Recorded Jun 18, 2024
From: XIAO, BIN; WANG, YU; SHAO, TAO; ZHU, CONGCHAO
To: HONOR DEVICE CO., LTD.
Reel/Frame 067751/0320 →
Priority Claims (1)
CN 202110964854.1 · Aug 20, 2021 · national
Continuity (1)
Related Publication 20240153157A1 · May 9, 2024
References Cited (24)
US 6480299B1 · Drakopoulos et al. · 2002 [cited by applicant]
US 8849056B2 · Wakazono · 2014 [cited by applicant]
US 9532019B2 · Wang et al. · 2016 [cited by applicant]
US 9639936B2 · Kondo · 2017 [cited by applicant]
US 10839589B2 · Cilingir · 2020 [cited by examiner]
US 11567770B2 · Pineda De Gyvez et al. · 2023 [cited by applicant]
US 20030185457A1 · Campbell · 2003 [cited by applicant]
US 20120057785A1 · Morovic · 2012 [cited by examiner]
US 20160133174A1 · Ji-Yeon et al. · 2016 [cited by applicant]
US 20170185891A1 · Hosokawa et al. · 2017 [cited by applicant]
US 20180314726A1 · Bath et al. · 2018 [cited by applicant]
US 20200159871A1 · Bowen · 2020 [cited by examiner]
US 20210248716A1 · Vera-Gonzalez et al. · 2021 [cited by applicant]
US 20220392038A1 · Sun · 2022 [cited by examiner]
CN 102385746A · 2012 [cited by applicant]
CN 103733219A · 2014 [cited by applicant]
CN 106791756A · 2017 [cited by applicant]
CN 104813272B · 2019 [cited by applicant]
CN 108307088B · 2019 [cited by applicant]
CN 112435156A · 2021 [cited by applicant]
CN 113256504A · 2021 [cited by applicant]
EP 3388981A1 · 2018 [cited by applicant]
KR 20190074938A · 2019 [cited by applicant]
WO 2021052342A1 · 2021 [cited by applicant]