Search

CN-119255093-B - Frame preview method and device, electronic equipment and storage medium

CN119255093BCN 119255093 BCN119255093 BCN 119255093BCN-119255093-B

Abstract

The embodiment of the application provides a frame previewing method, a device, electronic equipment and a storage medium, wherein the image mode of a camera sensor is adjusted from a first mode to a second mode, the camera sensor is set by utilizing sensor exposure parameters, the sensor exposure parameters comprise normal exposure parameters and variable exposure parameters, the normal exposure frames acquired by the camera sensor under the normal exposure parameters are acquired, the variable exposure frames acquired under the variable exposure parameters are acquired, the variable exposure frames are sent into a photographing passage, and the normal exposure frames are previewed and displayed. The method and the device have the advantages that the image frames can be previewed under the condition of variable exposure photographing, and the previewing experience of a user is improved because the previewed frames are normal exposure frames.

Inventors

  • CHEN CHUNJI
  • CHEN GUOQIAO

Assignees

  • 荣耀终端有限公司

Dates

Publication Date
20260512
Application Date
20240219

Claims (9)

  1. 1. A method of frame previewing, the method comprising: after a shooting request of variable exposure shooting is acquired, triggering a picture mode of a camera sensor to be adjusted from a first mode to a second mode, wherein the second mode is an interlaced high dynamic range imaging mode; Setting the camera sensor by using sensor exposure parameters in response to the graph mode of the camera sensor being adjusted from a first mode to a second mode, wherein the sensor exposure parameters comprise normal exposure parameters and variable exposure parameters; acquiring a normal exposure frame acquired by the camera sensor under the normal exposure parameters and a variable exposure frame acquired by the camera sensor under the variable exposure parameters, wherein the normal exposure frame and the variable exposure frame are acquired by the camera sensor at the same time, and the normal exposure frame is obtained by setting exposure parameters and light ratio parameters through an automatic exposure AE module; sending the exposure-changing frame into a photographing path; And previewing and displaying the normal exposure frame.
  2. 2. The method according to claim 1, wherein the method further comprises: Under the condition that the first mode is the merging mode, acquiring a first exposure parameter of the camera sensor in the merging mode to obtain a normal exposure parameter.
  3. 3. The method according to claim 1, wherein the method further comprises: when the first mode is a dual-gain conversion mode, acquiring a short exposure frame acquired by a camera sensor in a low-gain conversion mode and a long exposure frame acquired by the camera sensor in a high-gain conversion mode, wherein the dual-gain conversion mode comprises the low-gain conversion mode and the high-gain conversion mode; fusing the short exposure frame and the long exposure frame; and determining a second exposure parameter of the fused exposure frame to obtain a normal exposure parameter.
  4. 4. The method according to claim 1, wherein the method further comprises: And when the first mode is a dual-gain conversion mode, acquiring a third exposure parameter of the camera sensor in the low-gain conversion mode and a fourth exposure parameter of the camera sensor in the high-gain conversion mode, wherein the dual-gain conversion mode comprises the low-gain conversion mode and the high-gain conversion mode, and the normal exposure parameters comprise the third exposure parameter and the fourth exposure parameter.
  5. 5. The method of claim 4, wherein the acquiring the normal exposure frame acquired by the camera sensor at the normal exposure parameters comprises: acquiring a short exposure frame acquired by the camera sensor under a third exposure parameter and a long exposure frame acquired by the camera sensor under a fourth exposure parameter; the previewing the normal exposure frame includes: fusing the short exposure frame and the long exposure frame; And previewing and displaying the fused frames.
  6. 6. The method according to claim 1, wherein the method further comprises: after a preset number of variable exposure frames are acquired, triggering a picture mode of the camera sensor to be adjusted from a second mode to a first mode; Restoring the exposure parameters of the camera sensor to the corresponding exposure parameters in the first mode; the camera sensor is driven to acquire image frames according to the corresponding exposure parameters in the first mode.
  7. 7. A frame preview apparatus, the apparatus comprising: The image pattern adjustment module is used for triggering the image pattern of the camera sensor to be adjusted from a first pattern to a second pattern after acquiring a shooting request of variable exposure shooting, wherein the second pattern is an interlaced high dynamic range imaging pattern; An exposure parameter setting module for setting the camera sensor by using a sensor exposure parameter in response to the image pattern of the camera sensor being adjusted from a first mode to a second mode, wherein the sensor exposure parameter comprises a normal exposure parameter and a variable exposure parameter; the acquisition module is used for acquiring a normal exposure frame acquired by the camera sensor under the normal exposure parameters and a variable exposure frame acquired by the camera sensor under the variable exposure parameters, wherein the normal exposure frame and the variable exposure frame are acquired by the camera sensor at the same time, and the normal exposure frame is obtained by setting exposure parameters and light ratio parameters through the automatic exposure AE module; the photographing module is used for sending the exposure-changing frame into a photographing passage; and the preview module is used for previewing and displaying the normal exposure frame.
  8. 8. An electronic device, comprising: One or more processors and memory; the memory is coupled with the one or more processors, the memory for storing computer program code comprising computer instructions that the one or more processors invoke to cause the electronic device to perform the method of any of claims 1-6.
  9. 9. A computer readable storage medium comprising a computer program which, when run on an electronic device, causes the electronic device to perform the method of any one of claims 1-6.

Description

Frame preview method and device, electronic equipment and storage medium Technical Field The present application relates to the field of image processing technologies, and in particular, to a frame previewing method, a frame previewing device, an electronic device, and a storage medium. Background Like backlight, high contrast environment all belong to high dynamic scene, in order to guarantee the dynamic range and the effect of taking a photograph, often adopt the mode of changing exposure to take a photograph. The variable exposure photographing is to adjust the exposure time of the camera sensor through an automatic exposure module (automatic exposure, AE), so as to generate image frames with different exposure. However, when the image frames are previewed under the condition of exposure-changing photographing, the brightness change of the individual image frames is particularly obvious due to different exposure of the image frames, and a user can see the phenomenon that the brightness of the image frames jumps. In order to ensure good preview experience for users, the variable exposure frames are discarded and are not subjected to preview display, so that after the user clicks a shutter control, a preview area in a display screen can have short-time preview blocking. In the case of live photos livephoto, which consist of a small preview segment and a photo, in order to ensure the smoothness of the preview segment, the use of a variable exposure strategy is not allowed when taking live photos, because if the variable exposure strategy is used, the corresponding variable exposure frame is discarded when sending the preview, thereby affecting the smoothness of the preview segment. Disclosure of Invention The embodiment of the application aims to provide a frame previewing method, a frame previewing device, electronic equipment and a storage medium, so as to solve the problem of poor previewing effect when variable exposure photographing is performed. The specific technical scheme is as follows: In order to achieve the above object, an embodiment of the present application provides a frame preview method, including: Setting the camera sensor by using sensor exposure parameters in response to the graph mode of the camera sensor being adjusted from a first mode to a second mode, wherein the sensor exposure parameters comprise normal exposure parameters and variable exposure parameters; acquiring a normal exposure frame acquired by the camera sensor under the normal exposure parameters, and acquiring a variable exposure frame acquired by the camera sensor under the variable exposure parameters; sending the exposure-changing frame into a photographing path; And previewing and displaying the normal exposure frame. In the embodiment of the application, the camera sensor is set by utilizing the sensor exposure parameters in response to the adjustment of the image mode of the camera sensor from the first mode to the second mode, wherein the sensor exposure parameters comprise normal exposure parameters and variable exposure parameters, the normal exposure frames acquired by the camera sensor under the normal exposure parameters are acquired, the variable exposure frames acquired under the variable exposure parameters are acquired, the variable exposure frames are sent into a photographing passage, and the normal exposure frames are previewed and displayed. The method and the device have the advantages that the image frames can be previewed under the condition of variable exposure photographing, and the previewing experience of a user is improved because the previewed frames are normal exposure frames. In one possible embodiment, the method further comprises: Under the condition that the first mode is the merging mode, acquiring a first exposure parameter of the camera sensor in the merging mode to obtain a normal exposure parameter. In the embodiment of the application, aiming at the condition that the first mode is the merging mode, the first exposure parameter of the camera sensor in the merging mode is acquired, so that after the mode of the camera sensor is switched to the second mode, the exposure parameter of the camera sensor can be set by the first exposure parameter and the variable exposure parameter. In one possible embodiment, the method further comprises: when the first mode is a dual-gain conversion mode, acquiring a short exposure frame acquired by a camera sensor in a low-gain conversion mode and a long exposure frame acquired by the camera sensor in a high-gain conversion mode, wherein the dual-gain conversion mode comprises the low-gain conversion mode and the high-gain conversion mode; fusing the short exposure frame and the long exposure frame; and determining a second exposure parameter of the fused exposure frame to obtain a normal exposure parameter. In the embodiment of the application, aiming at the condition that the first mode is a dual-gain conversion mode, a short exposure frame acquire