IP Library › Granted Patent US 12,407,944
Granted Patent B2
US 12,407,944 · App. 18/009,858 · Granted Sep 2, 2025

Image processing method and electronic device

Inventors: Ning Wang (Shenzhen, CN); Bin Chen (Shenzhen, CN); Xiangrui Zeng (Shenzhen, CN); Yu Wang (Shenzhen, CN)
Assignee: Honor Device Co., Ltd.
H04N23/843G06T3/4015H04N5/77H04N23/62H04N23/632H04N23/667
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,407,944
App. No.
18/009,858
Granted
Sep 2, 2025
Kind
B2
Abstract

An image processing method and an electronic device are provided. The image processing method includes: displaying a first interface, where the first interface includes a first control; detecting a first operation on the first control; obtaining a first image stream in response to the first operation, where the first image stream is an image stream of first color space; converting the first image stream into a second image stream of second color space according to a demosaicing algorithm; performing downsampling and resampling on the second image stream to obtain a third image stream, where the third image stream is an image stream of the first color space, and a size of the third image stream is less than that of the first image stream; and performing image processing on the third image stream to obtain a fourth image stream.

Claims (52)

1. An image processing method, the method comprising:

displaying, by an electronic device, a first interface, wherein the first interface comprises a first control;

detecting, by the electronic device, a first operation on the first control;

obtaining, by the electronic device, a first image stream in response to the first operation, wherein the first image stream is an image stream of first color space;

converting, by the electronic device, the first image stream into a second image stream of second color space according to a demosaicing algorithm;

performing, by the electronic device, downsampling and resampling on the second image stream to obtain a third image stream, wherein the third image stream is an image stream of the first color space, and a size of the third image stream is less than that a size of the first image stream; and

performing, by the electronic device, image processing on the third image stream to obtain a fourth image stream.

2. The image processing method according to claim 1 , wherein the image processing comprises processing according to an algorithm of the first color space, and the algorithm of the first color space comprises at least one of the following algorithms:

a denoising algorithm, a super-resolution algorithm, or a deblurring algorithm.

3. The image processing method according to claim 1 , further comprising:

storing the fourth image stream, wherein the fourth image stream is used for playback.

4. The image processing method according to claim 1 , wherein the fourth image stream is a preview image stream.

5. The image processing method according to claim 2 ,

wherein the electronic device comprises a camera algorithm library;

wherein the camera algorithm library is set at a hardware abstraction layer; and

wherein the camera algorithm library comprises an algorithm used for the downsampling, an algorithm used for the resampling, or the algorithm of the first color space.

6. The image processing method according to claim 1 , further comprising:

detecting, by the electronic device, a second operation, wherein the second operation is used to enable a night mode of the electronic device, and the night mode is a photographing mode in which an amount of entering light of the electronic device is less than a preset threshold.

7. The image processing method according to claim 1 , wherein the first interface is a home screen of the electronic device, the home screen comprises a camera application, and the first control is a control corresponding to the camera application.

8. The image processing method according to claim 1 , wherein the first interface is a video recording interface, and the first control is a control used to indicate video recording.

9. The image processing method according to claim 1 , wherein the first interface is a video call interface, and the first control is a control used to indicate video calling.

10. An electronic device, comprising:

one or more processors; and

a memory that is coupled to the one or more processors, wherein the memory is configured to store computer program code, the computer program code comprises computer instructions, and the one or more processors invoke the computer instructions, so that the electronic device performs the following steps:

displaying a first interface, wherein the first interface comprises a first control;

detecting a first operation on the first control;

obtaining a first image stream in response to the first operation, wherein the first image stream is an image stream of first color space;

converting the first image stream into a second image stream of second color space according to a demosaicing algorithm;

performing downsampling and resampling on the second image stream to obtain a third image stream, wherein the third image stream is an image stream of the first color space, and a size of the third image stream is less than a size of the first image stream; and

performing image processing on the third image stream to obtain a fourth image stream.

11. The electronic device according to claim 10 , wherein the image processing comprises processing according to an algorithm of the first color space, and

the algorithm of the first color space comprises at least one of the following algorithms: a denoising algorithm, a super-resolution algorithm, or a deblurring algorithm.

12. The electronic device according to claim 10 , wherein the one or more processors invoke the computer instructions so that the electronic device further performs the following step:

storing the fourth image stream, wherein the fourth image stream is used for playback.

13. The electronic device according to claim 10 , wherein the fourth image stream is a preview image stream.

14. The electronic device according to claim 11 , further comprising:

a camera algorithm library;

wherein the camera algorithm library is set at a hardware abstraction layer; and

wherein the camera algorithm library comprises an algorithm used for the downsampling, an algorithm used for the resampling, or the algorithm of the first color space.

15. The electronic device according to claim 10 , wherein the one or more processors invoke the computer instructions so that the electronic device further performs the following step:

detecting a second operation, wherein the second operation is used to enable a night mode of the electronic device, and the night mode is a photographing mode in which an amount of entering light of the electronic device is less than a preset threshold.

16. The electronic device according to claim 10 , wherein the first interface is a home screen of the electronic device, the home screen comprises a camera application, and the first control is a control corresponding to the camera application.

17. The electronic device according to claim 10 , wherein the first interface is a video recording interface, and the first control is a control used to indicate video recording.

18. The electronic device according to claim 10 , wherein the first interface is a video call interface, and the first control is a control used to indicate video calling.

19. The electronic device according to claim 10 , wherein the first color space refers to a raw domain, and the second color space comprises an RGB domain or a YUV domain.

20. A non-transitory computer-readable storage medium that stores a computer program, such that when the computer program is executed by a processor, the processor is enabled to perform the following steps:

displaying a first interface, wherein the first interface comprises a first control;

detecting a first operation on the first control;

obtaining a first image stream in response to the first operation, wherein the first image stream is an image stream of first color space;

converting the first image stream into a second image stream of second color space according to a demosaicing algorithm;

performing downsampling and resampling on the second image stream to obtain a third image stream, wherein the third image stream is an image stream of the first color space, and a size of the third image stream is less than a size of the first image stream; and

performing image processing on the third image stream to obtain a fourth image stream.

Assignments (1)
ASSIGNMENT OF ASSIGNOR'S INTEREST Recorded Jul 17, 2023
From: WANG, NING; CHEN, BIN; ZENG, XIANGRUI; WANG, YU
To: HONOR DEVICE CO., LTD.
Reel/Frame 064289/0908 →
Priority Claims (2)
CN 202111034292.7 · Sep 3, 2021 · national
CN 202111294313.9 · Nov 3, 2021 · national
Continuity (1)
Related Publication 20240107182A1 · Mar 28, 2024
References Cited (41)
US 7218344B2 · Cooper · 2007 [cited by examiner]
US 9210391B1 · Mills · 2015 [cited by applicant]
US 9219870B1 · Mills et al. · 2015 [cited by applicant]
US 9697796B2 · Darshan · 2017 [cited by examiner]
US 9911174B2 · Lim et al. · 2018 [cited by applicant]
US 10715816B2 · Tourapis · 2020 [cited by examiner]
US 11847759B2 · Okamura · 2023 [cited by examiner]
US 12022205B2 · Jang · 2024 [cited by examiner]
US 20070153020A1 · Inoue · 2007 [cited by examiner]
US 20100208989A1 · Narroschke et al. · 2010 [cited by applicant]
US 20110052070A1 · Nakagomi · 2011 [cited by examiner]
US 20110058747A1 · Nakagomi · 2011 [cited by examiner]
US 20130004071A1 · Chang · 2013 [cited by examiner]
US 20130051665A1 · Shinozaki · 2013 [cited by examiner]
US 20130114000A1 · Atkins · 2013 [cited by examiner]
US 20130322746A1 · Cote et al. · 2013 [cited by applicant]
US 20140132715A1 · Raghoebardayal · 2014 [cited by examiner]
US 20150296193A1 · Cote et al. · 2015 [cited by applicant]
US 20160037073A1 · Mills et al. · 2016 [cited by applicant]
US 20160110843A1 · Mills et al. · 2016 [cited by applicant]
US 20160284314A1 · Darshan et al. · 2016 [cited by applicant]
US 20170134731A1 · Tourapis et al. · 2017 [cited by applicant]
US 20180293704A1 · Tokizaki · 2018 [cited by examiner]
US 20180300935A1 · Imai · 2018 [cited by examiner]
US 20180315172A1 · Smirnov et al. · 2018 [cited by applicant]
US 20200051209A1 · Smirnov · 2020 [cited by examiner]
US 20210134326A1 · Liu · 2021 [cited by examiner]
US 20220182590A1 · Cho · 2022 [cited by examiner]
US 20220189029A1 · Mequanint · 2022 [cited by examiner]
US 20230177746A1 · Shao · 2023 [cited by examiner]
US 20230269496A1 · Yang · 2023 [cited by examiner]
CN 101796843A · 2010 [cited by applicant]
CN 107924554A · 2018 [cited by applicant]
CN 111402146A · 2020 [cited by applicant]
CN 111741277A · 2020 [cited by applicant]
CN 112261391A · 2021 [cited by applicant]
CN 112381102A · 2021 [cited by applicant]
CN 113487528A · 2021 [cited by applicant]
JP 201535775A · 2015 [cited by applicant]
JP 201682452A · 2016 [cited by applicant]
KR 1020070069890A · 2007 [cited by applicant]