Search

CN-116233625-B - Image processing method, electronic equipment and chip

CN116233625BCN 116233625 BCN116233625 BCN 116233625BCN-116233625-B

Abstract

An image processing method, electronic equipment and a chip relate to the technical field of image processing and comprise the steps of obtaining an image frame set obtained by shooting a target object, wherein the image frame set comprises a first reference frame, a second reference frame and a plurality of frame image frames, the first reference frame is a fusion frame subjected to multi-frame noise reduction processing, the exposure time of the first reference frame is identical to that of the second reference frame, determining the target reference frame according to the definition of the first reference frame and the second reference frame, registering the target reference frame and the plurality of frame image frames to obtain a registration result, and outputting a result image according to the registration result. The method can improve the image quality of the result image and meet the service requirement.

Inventors

  • ZHANG XUDONG
  • XING YIBO
  • GUO XINTAO

Assignees

  • 荣耀终端有限公司

Dates

Publication Date
20260508
Application Date
20211201

Claims (10)

  1. 1. An image processing method, comprising: Acquiring an image frame set obtained by shooting a target object, wherein the image frame set comprises a first reference frame, a second reference frame and a plurality of frame image frames, the first reference frame is a fusion frame obtained by carrying out multi-frame noise reduction and fusion processing on a plurality of frame preview frames in a preview buffer, and the exposure time of the first reference frame is the same as that of the second reference frame; Determining a target reference frame according to the definition of the first reference frame and the second reference frame; based on pixel displacement between the target reference frame and the multi-frame image frame, registering the target reference frame and the multi-frame image frame to obtain a registration result; Outputting a fusion frame of the target reference frame and the multi-frame image frame under the condition that the registration result represents the registration of the target reference frame and the multi-frame image frame; Outputting the target reference frame under the condition that the registration result represents that the target reference frame is not registered with the multi-frame image frame.
  2. 2. The method of claim 1, wherein when the target reference frame is the second reference frame, the outputting the fused frame of the target reference frame and the multi-frame image frame comprises: and when the registration result represents that the second reference frame is aligned with the multi-frame image frame, fusing the second reference frame with the multi-frame image frame, and outputting a fused frame fused with the second reference frame.
  3. 3. The method of claim 1, wherein when the target reference frame is the second reference frame, the outputting the target reference frame comprises: Outputting the second reference frame when the registration result characterizes that the second reference frame is not aligned with the multi-frame image frame.
  4. 4. The method of claim 1, wherein when the target reference frame is the first reference frame, the outputting the fused frame of the target reference frame and the multi-frame image frame comprises: and when the registration result represents that the first reference frame is aligned with the multi-frame image frame, fusing the first reference frame with the multi-frame image frame, and outputting a fused frame fused with the first reference frame.
  5. 5. The method of claim 1, wherein when the target reference frame is the first reference frame, the outputting the target reference frame comprises: Outputting the first reference frame when the registration result characterizes that the first reference frame is not aligned with the multi-frame image frame.
  6. 6. The method of claim 1, wherein when the target reference frame comprises the first reference frame and the second reference frame, the outputting a resultant image according to the registration result comprises: When the registration result represents that the first reference frame is registered with the multi-frame image frame and the second reference frame is not registered with the multi-frame image frame, fusing the first reference frame with the multi-frame image frame to output a fused frame fused with the first reference frame, or, When the registration result indicates that the first reference frame and the multi-frame image frame are not registered and the second reference frame and the multi-frame image frame are registered, the second reference frame and the multi-frame image frame are fused to output a fusion frame fused with the second reference frame, or, When the registration result represents that the first reference frame is registered with the multi-frame image frame and the second reference frame is registered with the multi-frame image frame, the first reference frame is fused with the multi-frame image frame to output a fused frame fused with the first reference frame, or, Outputting the first reference frame when the registration result characterizes that the first reference frame is not registered with the multi-frame image frame and the second reference frame is not registered with the multi-frame image frame.
  7. 7. The method of any of claims 1-6, wherein the multi-frame image frame comprises a first image frame and a second image frame, the first image frame having an exposure time greater than an exposure time of the first reference frame, the second image frame having an exposure time less than an exposure time of the first reference frame.
  8. 8. An electronic device is characterized by comprising a memory and a processor; One or more computer programs are stored in the memory, the one or more computer programs comprising instructions, which when executed by the processor, cause the electronic device to perform the method of any of claims 1-7.
  9. 9. A computer storage medium storing computer instructions which, when run on an electronic device, perform the method of any one of claims 1 to 7.
  10. 10. A computer program product comprising instructions which, when executed by an electronic device, cause the electronic device to perform the method of any one of claims 1 to 7.

Description

Image processing method, electronic equipment and chip Technical Field The present application relates to the field of image processing technologies, and in particular, to an image processing method, an electronic device, and a chip. Background With the continuous development of image processing technology, the image processing technology is widely applied to electronic devices such as mobile phones, tablet computers, cameras and the like. Based on the above, the electronic device may take a picture of an object such as a person, a landscape, or a building, obtain an image of the object, and record the object by means of the image. In actual shooting, for a scene with a high dynamic range (high-DYNAMIC RANGE, HDR), a continuous shooting mode (also simply referred to as a continuous shooting mode) is generally used to perform shooting in order to obtain a better image quality. The continuous shooting mode is to continuously expose the same object to the image for a plurality of times by the pointer, obtain a plurality of image frames, process the plurality of image frames, for example, fuse the plurality of image frames with different exposure time, and output the processed image. However, in some cases, the image quality may not be improved by performing processing such as fusion on a plurality of image frames, but may be reduced, and it is difficult to satisfy the service requirement. Disclosure of Invention The application aims to provide an image processing method, electronic equipment and a chip, which improve the image quality and meet the service requirement. In order to achieve the above purpose, the application adopts the following technical scheme: In a first aspect, the application provides an image processing method, which can be executed by an electronic device, wherein the method comprises the steps that the electronic device obtains an image frame set obtained by shooting a target object, the image frame set comprises a first reference frame, a second reference frame and a plurality of frames of image frames, the first reference frame is a fusion frame after the multi-frame noise reduction processing, the exposure time of the first reference frame is the same as that of the second reference frame, and then the electronic device can compare the definition of the first reference frame and the definition of the second reference frame, so as to determine the target reference frame. And then carrying out registration processing by utilizing the target reference frame and a plurality of frames of image frames in the image frame set to obtain a registration result, and determining a result image based on the registration result. In the method, the electronic equipment uses the target reference frame with higher definition to carry out subsequent processing, so that the image quality of the result image can be improved. And the first reference frame is a fusion frame obtained after multi-frame noise reduction and fusion processing, and compared with the second reference frame, the first reference frame is clearer, so that the first reference frame can be used for subsequent processing under the condition that the second reference frame is unclear due to hand shake when a user photographs. Therefore, the electronic equipment performs subsequent processing based on the first reference frame with higher definition, so that the image quality of an output result image can be ensured, and the user experience is improved. The following is a detailed description of several different situations: When the target reference frame is the second reference frame, that is, the second reference frame is clearer compared with the first reference frame, the electronic device can use the second reference frame to perform registration processing with the multi-frame image frame, so as to obtain a registration result. When the registration result represents that the second reference frame is not matched with the multi-frame image frame, the second reference frame is directly output, so that the image quality of the output result image is ensured. When the target reference frame is the first reference frame, that is, the first reference frame is clearer than the second reference frame, the electronic device can use the first reference frame to perform registration processing with the multi-frame image frame, so as to obtain a registration result. When the registration result represents that the first reference frame and the multi-frame image frame are not matched, the first reference frame is directly output, so that the image quality of the output result image is ensured. When the target reference frame includes the first reference frame and the second reference frame, that is, the sharpness of the first reference frame is followed by the sharpness of the second reference frame. For example, the difference between the sharpness of the first reference frame and the sharpness of the second reference frame is lower than a pre