| CPC G06T 5/50 (2013.01) [G06N 3/0464 (2023.01); H04N 23/617 (2023.01); H04N 23/632 (2023.01); H04N 23/667 (2023.01); H04N 23/741 (2023.01); G06T 2207/10144 (2013.01); G06T 2207/20208 (2013.01); G06T 2207/20221 (2013.01)] | 20 Claims |

|
1. An image processing method, applied to an electronic device and comprising:
displaying a first screen, wherein the first screen comprises a first control;
detecting a first operation on the first control;
obtaining a first image sequence in response to the first operation, wherein the first image sequence comprises a first long-exposure image, a first medium-exposure image, and a first short-exposure image;
performing preprocessing on the first image sequence to obtain a second image sequence, wherein the preprocessing is used to select images in the first image sequence that meet a preset condition;
when the second image sequence comprises a second medium-exposure image and a second short-exposure image, performing fusion processing on the second image sequence to obtain a fused image, wherein the fused image comprises a ghosting region, and the ghosting region is an image region that comprises a ghosting artifact in the fused image; and
processing the fused image to obtain a third image, wherein the third image comprises part of the fused image, and the third image does not comprise the ghosting region; and
when the second image sequence comprises only a second medium-exposure image, performing fusion processing on the second image sequence to output a low-dynamic range image.
|