Search

CN-121985206-A - Snapshot method and related device

CN121985206ACN 121985206 ACN121985206 ACN 121985206ACN-121985206-A

Abstract

The application discloses a snapshot method and a related device, wherein after electronic equipment enters a snapshot mode, a picture lens to be called and a picture mode to be adopted are determined according to the current image dynamic range and the lens zoom magnification, so that the picture lens called in the snapshot mode and the picture mode to be adopted are more suitable for the current shooting environment and shooting parameters. When the image captured by the drawing lens at the moment is detected to be a wonderful image, RAW image data of the wonderful image in the drawing mode is cached for processing. When the electronic equipment receives a photographing instruction, if a user triggers a photographing button, further image processing is carried out on RAW image data of the highlight image cached before, and a final snap-shot image is obtained. The method effectively solves the problem of poor image quality in the traditional snapshot, remarkably improves the quality and the use flexibility of the snapshot image, and is suitable for various shooting scenes.

Inventors

  • ZHAO YU

Assignees

  • 荣耀终端股份有限公司

Dates

Publication Date
20260505
Application Date
20241025

Claims (15)

  1. 1. A snapshot method, comprising: In a snap shooting mode, when an image captured by a target lens is detected to be a wonderful image, caching RAW image data of the wonderful image in a target image drawing mode, wherein the target lens and the target image drawing mode are determined according to an image dynamic range and a lens zoom ratio; And when receiving a photographing instruction, performing image processing on the RAW image data to obtain a snap shot image.
  2. 2. The method of claim 1, wherein the caching RAW image data of the highlight image in a target graph mode comprises: Determining a photographing algorithm according to the highlight image and the target lens; And caching RAW image data of the wonderful image in the target graph mode based on the photographing algorithm.
  3. 3. The method of claim 1, wherein the caching RAW image data of the highlight image in a target graph mode comprises: Determining a timestamp of the highlight image; and determining a reference frame from a zero shutter delay ZSL queue of the target lens according to the timestamp, and caching RAW image data of images of the reference frame, wherein the ZSL queue comprises multi-frame images, and the RAW image data of the reference frame images are RAW image data in the target image mode.
  4. 4. The method according to claim 2, wherein the photographing algorithm is configured to indicate that the number of selected frames is N, and the caching RAW image data of the highlight image in the target graph mode based on the photographing algorithm includes: Selecting N frames from a ZSL queue of the target lens, wherein the N frames comprise reference frames and N-1 frame fusion frames, and the reference frames are frames corresponding to the highlight images in the ZSL queue; And caching the RAW image data of the N frames of images as the RAW image data of the wonderful image, wherein the RAW image data of the N frames of images are the RAW image data in the target image mode.
  5. 5. The method of claim 2, wherein the photographing algorithm is configured to indicate that the number of selected frames is N and an image quality requirement of the selected frames; The caching RAW image data of the highlight image in the target image mode based on the photographing algorithm includes: Selecting N frames from a ZSL queue of the target lens, wherein the N frames comprise reference frames and N-1 frame fusion frames, the reference frames are frames corresponding to the highlight images in the ZSL queue, and the image quality of the images corresponding to the N-1 frame fusion frames meets the image quality requirement; And caching the RAW image data of the N frames of images as the RAW image data of the wonderful image, wherein the RAW image data of the N frames of images are the RAW image data in the target image mode.
  6. 6. The method of claim 2, wherein the ZSL queue of the target lens has a frame number of X, wherein RAW image data of a previous Y frame image is RAW image data in a first drawing mode, RAW image data of a subsequent Z frame image is RAW image data in a second drawing mode, and a sum of Y and Z is equal to X; in the case that Y is smaller than N, the caching RAW image data of the highlight image in the target graph mode based on the photographing algorithm includes: Selecting at least one frame from the previous Y frames of the ZSL queue, wherein the at least one frame comprises a reference frame, the reference frame is a frame corresponding to the highlight image in the target lens ZSL queue, and RAW image data of the at least one frame image is RAW image data in the first drawing mode; caching RAW image data of the image of the at least one frame as RAW image data of the highlight image; In the case that Y is greater than or equal to N, the caching RAW image data of the highlight image in the target graph mode based on the photographing algorithm includes: Selecting N frames from the previous Y frames of the ZSL queue, wherein the N frames comprise the reference frames, and RAW image data of the N frames of images are RAW image data in the first image mode; and caching the RAW image data of the N frames of images as the RAW image data of the wonderful images.
  7. 7. The method of any one of claims 3-6, wherein the ZSL queue has a frame number of 9.
  8. 8. The method of claim 1, wherein the graph modes include a default binding mode, an indoor high dynamic SHDR mode, an outdoor high dynamic DCG mode, and a high magnification boost definition Quadra mode.
  9. 9. The method according to any one of claims 1-6, further comprising: Detecting the dynamic range of the image and the zoom magnification of the lens in real time; And adjusting the drawing lens and the drawing mode in real time according to the dynamic range of the image and the zoom magnification of the lens.
  10. 10. The method according to claim 1, wherein the method further comprises: after the RAW image data of the wonderful image are cached, if the photographing instruction is not received after the preset time, the RAW image data of the wonderful image are cleared.
  11. 11. A snapshot device, comprising: The processing module is used for detecting whether the image captured by the target lens is a wonderful image or not in the snapshot mode; The storage module is used for caching RAW image data of the wonderful image in a target image mode when the processing module detects that the image captured by the target lens is the wonderful image, wherein the target lens and the target image mode are determined according to the dynamic range of the image and the zoom magnification of the lens; and the processing module is used for carrying out image processing on the RAW image data stored by the storage module when receiving a photographing instruction to obtain a snap shot image.
  12. 12. A computer readable storage medium having stored thereon a computer program which when executed by the electronic device implements a snap shot method as claimed in any one of claims 1-10.
  13. 13. An electronic device, comprising: one or more processors, image sensors, and memory; The memory is coupled with the one or more processors, and is used for storing computer program codes, the memory The computer program code comprising computer instructions that are invoked by the one or more processors to cause the electronic device to perform the method of any one of claims 1 to 10.
  14. 14. A computer program product comprising executable instructions which, when executed on a terminal, cause the terminal to perform the method of any of claims 1 to 10.
  15. 15. A chip system for application to a terminal, the chip system comprising one or more processors for invoking computer instructions to cause the terminal to input data into the chip system and to output the result of processing after processing the data by performing the method of any of claims 1 to 10.

Description

Snapshot method and related device Technical Field The application relates to the technical field of electronics, in particular to a snapshot method related device. Background With the development of image sensors and image processing technologies, more and more terminal devices (such as smartphones) are provided with a snapshot mode. The snapshot mode refers to a photographing mode in which the terminal device can call an image sensor (such as a camera) to quickly capture an instantaneous image. The snapshot mode is extremely practical and suitable for scenes needing quick response shooting. In snap mode, the image sensor can help the user capture a clear, lively image at a moment, such as capturing a pet's interesting moment, shooting breaking news, recording a child or a wonderful moment in motion, etc. However, there is still a great room for improvement in the quality of the image photographed in the current snapshot mode. Disclosure of Invention The application provides a snapshot method and a related device. In order to solve the technical problems, the application adopts the following technical scheme: In a first aspect, the present application provides a snapshot method, in which an image dynamic range and a lens zoom ratio are detected in real time in a snapshot mode, so as to select a picture lens and a picture mode suitable for a current shooting environment and shooting parameters, and when capturing a highlight image, RAW image data of the highlight image is cached, so that when receiving a shooting instruction, image processing is performed on the RAW image data to obtain a high-quality snapshot image. Compared with the traditional snapshot method, the snapshot method provided by the application effectively improves the quality of the images obtained by snapshot. By dynamically adjusting the lens and the image pattern in real time, it is ensured that the image lens, the image pattern and the shooting condition are highly matched, and excellent image capturing capability can be provided in a high dynamic range or in shooting scenes of different focal lengths. And secondly, the cached RAW image data keeps more original image information, so that the post-processing is more flexible and efficient, and the definition, color restoration and detail expression of the picture can be effectively improved. The method not only improves the capturing capability of the image in the snap-shot mode, but also obviously improves the visual effect of the final image, so that a user can obtain high-quality and professional-level image output even in a quick-response shooting environment. In addition, the method can fully utilize various lenses and various drawing modes of the equipment, realize image snapshot in a multi-focus Duan Duo mode, simplify the operation difficulty of a user, promote the overall shooting experience, and meet various application scenes needing to be shot in a quick response mode. In one possible implementation manner, a photographing algorithm can be determined according to the highlight image and the target lens called when the highlight image is detected, and RAW image data in the target image mode is cached based on the algorithm, so that the image processing quality in the snapshot mode is effectively improved. Through an accurate photographing algorithm, the system can optimize each parameter of image capturing according to different photographing conditions and lens characteristics, so that the finally generated image has higher definition and color accuracy. Through adjustment of a photographing algorithm and RAW image data caching, more image information can be reserved, and more accurate adjustment such as noise reduction and color correction can be performed in post-processing. Even under the condition of quick snapshot, the user can obtain finer and more real image effects, the shooting experience and the image quality are greatly improved, and the shooting requirements of the user are met. In one possible implementation, RAW image data of the reference frame may be extracted and cached from the ZSL queue of the target shot according to the timestamp of the highlight image. The frame corresponding to the highlight image can be accurately locked from the ZSL queue based on the time stamp, and the highlight image can be selected even in a high-speed dynamic scene. The ZSL queue can avoid the loss of key frames caused by image processing delay, and the instantaneity and the accuracy of the snapshot mode are improved. In a possible implementation manner, RAW image data comprising a reference frame and other N-1 frame fusion frames are selected from a ZSL queue of a target lens, and image information at a plurality of moments can be integrated to generate a snapshot image by combining the reference frame with the multi-frame fusion frames, so that image details are increased, and the problem of image blurring or detail missing in a high-speed moving scene in a traditional snapshot