Photographing preview processing method and device, electronic equipment, medium and program product

By locking the white balance parameters after taking pictures in dark light environments and processing the preview frame image after taking pictures in night scenes, the problem of preview image flickering is solved, and the stability and consistency of the preview image is achieved.

CN120547432APending Publication Date: 2025-08-26BEIJING XIAOMI MOBILE SOFTWARE CO LTD
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202410195506.6
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2024-02-21
Publication Date
2025-08-26

AI Technical Summary

Technical Problem

After taking a photo in a dark environment, the preview image flickers because the nonlinear reduction of white balance parameters is inconsistent during the photo shooting moment and during the preview process.

Method used

By locking the white balance parameter of the first N frame preview frame after night scene photography is the target white balance parameter that is smaller than the actual white balance parameter of the photographing frame and greater than or equal to the actual white balance parameter of the first frame preview frame, the preview image is obtained, and the actual white balance parameter is used to process the preview image in subsequent frames to ensure the stability of the white balance parameter.

Benefits of technology

The preview image flickering problem caused by the nonlinear reduction of white balance parameters is solved, and the stability and consistency of the preview image are achieved.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN120547432A_ABST
    Figure CN120547432A_ABST
Patent Text Reader

Abstract

The invention relates to a photographing preview processing method and device, electronic equipment, a medium and a program product, and relates to the technical field of image processing.The method comprises the steps that in response to completion of night scene photographing, preview images corresponding to first N preview frames after night scene photographing are obtained through processing according to target white balance parameters, the target white balance parameter is smaller than an actual white balance parameter corresponding to the photographing frame and larger than or equal to an actual white balance parameter corresponding to the first preview frame, and for any preview frame after the first N preview frames, processing according to the actual white balance parameter corresponding to any preview frame to obtain a preview image corresponding to the any preview frame. The white balance parameters corresponding to the first N preview frames are locked, and the white balance parameters of the preview images corresponding to the Nth preview frame and the (N + 1) th preview frame can be suddenly changed, so that the problem of flicker of the preview images caused by gradual nonlinear reduction of the white balance parameters of the preview images corresponding to the plurality of preview frames is solved.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present disclosure relates to the field of image processing technology, and in particular to a photo preview processing method, device, electronic device, medium, and program product. Background Art

[0002] In related technologies, when taking photos in a dark environment and triggering night scene photography, the flash mode will be turned on by default. By changing the shooting environment, lengthening the exposure value, increasing the white balance, etc., the image output by the sensor is effectively changed to obtain a clearer and brighter image, ensuring that each synthesized frame of the image is brighter, so as to better generate a brighter image and meet user needs. Summary of the Invention

[0003] To overcome the problems existing in the related art, the present disclosure provides a photo preview processing method, device, electronic device, medium and program product to solve the problem of preview image flickering after night scene photography is completed.

[0004] According to a first aspect of an embodiment of the present disclosure, a photo preview processing method is provided, comprising:

[0005] In response to the completion of the night scene photography, obtaining preview images corresponding to the first N preview frames after the night scene photography according to the target white balance parameter, wherein the target white balance parameter is less than the actual white balance parameter corresponding to the photography frame and greater than or equal to the actual white balance parameter corresponding to the first preview frame, where N is a positive integer;

[0006] For any preview frame after the first N preview frames, a preview image corresponding to the preview frame is obtained by processing the preview frame according to the actual white balance parameters corresponding to the preview frame.

[0007] Optionally, before obtaining preview images corresponding to the first N preview frames after the night scene photographing according to the target white balance parameters, the method further includes:

[0008] When it is determined that the current frame is the first preview frame, the white balance parameters of the preview images corresponding to the first N preview frames obtained after the night scene photography are processed are locked based on the actual white balance parameters corresponding to the first preview frame, so that the actual white balance parameters corresponding to the first preview frame are locked as the target white balance parameters.

[0009] Optionally, the method further includes:

[0010] When the current frame is a preview frame, the previous frame is a photographing frame, and the frame number of the previous frame is adjacent to the frame number of the current frame, the current frame is determined to be the first preview frame, and the frame number is a positive integer.

[0011] Optionally, the method further includes:

[0012] Obtaining first request information corresponding to the current frame and second request information corresponding to the previous frame, wherein the first request information includes a first scene identifier and a first frame number, and the second request information includes a second scene identifier and a second frame number;

[0013] When the first scene is identified as a preview, determining that the current frame is a preview frame;

[0014] When the second scene identifier is taking a photo, determining that the previous frame is a photo frame;

[0015] When the difference between the first frame number and the second frame number is 1, it is determined that the frame number of the previous frame is adjacent to the frame number of the current frame.

[0016] Optionally, when determining that the current frame is the first preview frame, locking the white balance parameters of preview images corresponding to first N preview frames obtained after the night scene photography is processed according to actual white balance parameters corresponding to the first preview frame includes:

[0017] When it is determined that the current frame is the first preview frame, a white balance lock instruction is generated based on actual white balance parameters corresponding to the first preview frame, and the white balance lock instruction is stored in a tag of the camera system. The white balance lock instruction is deleted when the N+1th preview frame is obtained, so as to lock the white balance parameters of the preview images corresponding to the first N preview frames obtained after the night scene photography is processed.

[0018] Optionally, obtaining preview images corresponding to first N preview frames after the night scene photographing according to the target white balance parameter includes:

[0019] For any preview frame among the first N preview frames after the night scene photograph is taken, obtaining target image processing parameters corresponding to the preview frame based on the camera system tag and the preview request information corresponding to the preview frame, the target image processing parameters including the target white balance parameter in the camera system tag and the target exposure parameter and target focus parameter in the preview request information;

[0020] The image data corresponding to the preview frame is processed according to the target image processing parameters to obtain a preview image corresponding to the preview frame.

[0021] According to a second aspect of an embodiment of the present disclosure, a photo preview processing device is provided, comprising:

[0022] A first processing module is configured to, in response to completion of night scene photography, process, according to a target white balance parameter, to obtain preview images corresponding to the first N preview frames after the night scene photography, wherein the target white balance parameter is less than an actual white balance parameter corresponding to the photographed frame and greater than or equal to the actual white balance parameter corresponding to the first preview frame, where N is a positive integer;

[0023] The second processing module is configured to process any preview frame after the first N preview frames according to the actual white balance parameters corresponding to the preview frame to obtain a preview image corresponding to the preview frame.

[0024] According to a third aspect of an embodiment of the present disclosure, there is provided an electronic device, including:

[0025] processor;

[0026] a memory for storing processor-executable instructions;

[0027] The processor is configured to implement the steps of the photo preview processing method provided in the first aspect of the present disclosure when executing.

[0028] According to a fourth aspect of an embodiment of the present disclosure, a computer-readable storage medium is provided, on which computer program instructions are stored. When the program instructions are executed by a processor, the steps of the photo preview processing method provided in the first aspect of the present disclosure are implemented.

[0029] According to a fifth aspect of an embodiment of the present disclosure, a computer program product is provided, including a computer program, which, when executed by a processor, implements the steps of the photo preview processing method provided in the first aspect of the present disclosure.

[0030] The technical solutions provided by the embodiments of the present disclosure may have the following beneficial effects:

[0031] In response to the completion of a night scene photo, preview images corresponding to the first N preview frames after the night scene photo are obtained based on target white balance parameters. The target white balance parameters are less than the actual white balance parameters corresponding to the photo frame and greater than or equal to the actual white balance parameters corresponding to the first preview frame. For any preview frame after the first N preview frames, the target white balance parameters are processed based on the actual white balance parameters corresponding to each preview frame to obtain preview images corresponding to the first N preview frames after the night scene photo. The white balance parameters corresponding to the first N preview frames are locked and processed using target white balance parameters that are less than the actual white balance parameters corresponding to the photo frame and greater than or equal to the actual white balance parameters corresponding to the first preview frame to obtain preview images corresponding to the first N preview frames after the night scene photo is taken. The actual white balance parameters corresponding to each frame are then used to obtain preview images of the corresponding frames. This allows the white balance parameters of the preview images corresponding to the Nth and N+1th preview frames to be abruptly changed to stable actual white balance parameters. This solves the problem of preview image flickering caused by the gradual, nonlinear decrease in the white balance parameters of the preview images corresponding to multiple preview frames.

[0032] It is to be understood that the foregoing general description and the following detailed description are exemplary and explanatory only and are not restrictive of the disclosure. BRIEF DESCRIPTION OF THE DRAWINGS

[0033] The accompanying drawings, which are incorporated in and constitute a part of this specification, illustrate embodiments consistent with the present disclosure and, together with the description, serve to explain the principles of the present disclosure.

[0034] Figure 1 The figure is a schematic diagram showing a photo preview interface according to an exemplary embodiment.

[0035] Figure 2 The figure is a flowchart of a photo preview processing method according to an exemplary embodiment.

[0036] Figure 3 The figure is a flowchart of another photo preview processing method according to an exemplary embodiment.

[0037] Figure 4 The figure is a block diagram of a device for photo preview processing according to an exemplary embodiment.

[0038] Figure 5 It is a block diagram of an electronic device according to an exemplary embodiment. DETAILED DESCRIPTION

[0039] Exemplary embodiments will be described in detail herein, with examples illustrated in the accompanying drawings. In the following description, when referring to the drawings, identical numerals in different figures represent identical or similar elements, unless otherwise indicated. The embodiments described in the following exemplary embodiments are not intended to represent all possible embodiments consistent with the present disclosure. Rather, they are merely examples of apparatus and methods consistent with certain aspects of the present disclosure, as detailed in the appended claims.

[0040] It should be noted that all actions of acquiring signals, information or data in the present disclosure are carried out in compliance with the corresponding data protection laws and policies of the country where they are located and with the authorization given by the owner of the corresponding device.

[0041] In related technologies, when taking photos in a dark environment and triggering night scene photography, the flash mode will be turned on by default. By changing the shooting environment, lengthening the exposure value, increasing the white balance, etc., the image output by the sensor is effectively changed to obtain a clearer and brighter image, ensuring that each synthesized frame of the image is brighter, so as to better generate a brighter image and meet user needs.

[0042] However, this photo processing method ignores the inconsistency in lighting conditions caused by the brightening of the flash at the moment of taking the photo and the slight nonlinear decrease in the white balance parameters corresponding to the preview image after taking the photo. This will cause the preview image to briefly flicker after each night scene photo.

[0043] To address the above technical issues, the present disclosure provides a photo preview processing method, device, electronic device, medium, and program product. By locking the white balance parameters corresponding to the first N preview frames, a target white balance parameter that is less than the actual white balance parameter corresponding to the photo frame and greater than or equal to the actual white balance parameter corresponding to the first preview frame is used to process the preview images corresponding to the first N preview frames after a night scene photo is taken. Subsequently, the actual white balance parameters corresponding to each frame are used to process the preview image of the corresponding frame, so that the white balance parameters of the preview images corresponding to the Nth preview frame and the N+1th preview frame can be suddenly changed to stable actual white balance parameters. This solves the problem of preview image flickering caused by the gradual nonlinear decrease in the white balance parameters of the preview images corresponding to multiple preview frames.

[0044] Figure 2 FIG. 1 is a flow chart of a method for photo preview processing according to an exemplary embodiment. Figure 2 As shown, the method can be applied in a terminal and includes the following steps.

[0045] In step S201, in response to the completion of night scene photography, preview images corresponding to the first N preview frames after the night scene photography are obtained according to the target white balance parameter processing. The target white balance parameter is less than the actual white balance parameter corresponding to the photography frame and is greater than or equal to the actual white balance parameter corresponding to the first preview frame, where N is a positive integer.

[0046] In this embodiment, after a user uses a terminal to take a night scene photo, the terminal can, in response to the completion of the night scene photo, process the image sensor data captured by the sensor using the same target white balance parameters obtained to obtain preview images corresponding to the first N preview frames after the night scene photo is taken. This ensures that the exposure intensity and brightness of the first N preview frames do not change. N is a positive integer, and the first N preview frames may include all preview frames whose actual white balance parameters have changed after the night scene photo is taken. For preview frames after the first N preview frames, the actual white balance parameters remain stable and do not change. The value of N can be set according to actual circumstances. For example, the value of N can be a positive integer greater than or equal to 3, such as 3. That is, the image sensor data corresponding to the first N preview frames after the night scene photo is processed using the same white balance value, thereby obtaining the corresponding preview image.

[0047] After the user opens the camera app on the terminal, the terminal's display interface displays a preview interface, which shows the preview image corresponding to each preview frame. When the user clicks to take a photo, the terminal's display interface displays the photo interface, and the preview interface continues to display after the photo is taken. When taking a photo, due to the flash being turned on, the corresponding white balance parameter is at its maximum. After the photo is taken, the actual white balance parameters corresponding to the multiple preview frames show a nonlinear decrease. That is, the actual white balance parameters corresponding to the first preview frame are smaller than the actual white balance parameters corresponding to the photo frame. The target white balance parameter can be a parameter that is smaller than the actual white balance parameters corresponding to the photo frame and greater than or equal to the actual white balance parameters corresponding to the first preview frame.

[0048] In step S202 , for any preview frame after the first N preview frames, a preview image corresponding to the preview frame is obtained by processing the preview frame according to the actual white balance parameters corresponding to the preview frame.

[0049] In this embodiment, after the Nth preview frame, the image sensing data acquired by the sensor can be processed according to the actual white balance parameters corresponding to the real-time preview frame to obtain the preview image corresponding to the N+1th preview frame and subsequent preview frames after the night scene shooting.

[0050] In this embodiment, the white balance parameters corresponding to the first N preview frames are locked, and preview images corresponding to the first N preview frames after a night scene photo is taken are processed using target white balance parameters that are less than the actual white balance parameters corresponding to the captured frame and greater than or equal to the actual white balance parameters corresponding to the first preview frame. The actual white balance parameters corresponding to each subsequent frame are then used to obtain preview images of the corresponding frames, allowing the white balance parameters of the preview images corresponding to the Nth and N+1th preview frames to be abruptly changed to stable actual white balance parameters. This solves the problem of preview image flickering caused by the gradual, nonlinear decrease in white balance parameters across multiple preview frames.

[0051] In one possible implementation, before obtaining preview images corresponding to the first N preview frames after a night scene photograph is taken based on target white balance parameters, appropriate target white balance parameters may be determined. The target white balance parameters may be determined by, when the current frame is determined to be the first preview frame, locking the white balance parameters of the preview images corresponding to the first N preview frames after the night scene photograph is taken based on actual white balance parameters corresponding to the first preview frame, thereby locking the actual white balance parameters corresponding to the first preview frame as the target white balance parameters.

[0052] In this embodiment, the first preview frame is first determined. Then, based on the actual white balance parameters corresponding to the first preview frame, the white balance parameters corresponding to the first N preview frames after the night scene shooting are locked. The actual white balance parameters are not used, so that the white balance parameters used by the first N preview frames are the same. In other words, the white balance parameters of the preview images corresponding to the first N preview frames are all the actual white balance parameters corresponding to the first preview frame.

[0053] In a possible implementation, a method for determining whether the current frame is the first preview frame may be: when the current frame is a preview frame, the previous frame is a photo frame, and the frame number of the previous frame is adjacent to the frame number of the current frame, the current frame is determined to be the first preview frame, and the frame number is a positive integer.

[0054] In this embodiment, the current frame is a preview frame currently being acquired. The current frame and the previous frame corresponding to the current frame are identified to determine the corresponding scenes and frame numbers. Scenes may include photo capture and preview. Frame numbers are obtained by sequentially numbering multiple consecutive frames and can be positive integers. If the current frame is a preview frame and the previous frame is a photo capture frame, and the frame number of the previous frame is adjacent to the frame number of the current frame, the current frame is determined to be the first preview frame. This allows the actual white balance parameters corresponding to the first preview frame to be obtained to determine the target white balance parameters.

[0055] In a possible implementation, the method further includes: obtaining first request information corresponding to the current frame and second request information corresponding to the previous frame, the first request information including a first scene identifier and a first frame number, and the second request information including a second scene identifier and a second frame number; when the first scene identifier is preview, determining that the current frame is a preview frame; when the second scene identifier is photo taking, determining that the previous frame is a photo taking frame; and when the difference between the first frame number and the second frame number is 1, determining that the frame number of the previous frame is adjacent to the frame number of the current frame.

[0056] In this embodiment, the request information corresponding to each preview frame may include the actual white balance parameters corresponding to that frame, a scene identifier, and a frame number. For example, the scene identifier can be 1 or 2, with 1 indicating preview and 2 indicating capture. Therefore, whether the corresponding frame is a preview frame or a capture frame can be directly determined based on the scene identifier. If the first scene identifier is preview, the current frame is determined to be a preview frame. If the second scene identifier is capture, the previous frame is determined to be a capture frame. Specifically, when searching for the first preview frame, the system first determines whether the current frame is a preview frame. If the current frame is a preview frame, the system then determines whether the previous frame is a capture frame, and if the previous frame's frame number is one less than the current frame's. If the difference between the first and second frame numbers is 1, the system determines that the previous frame's frame number is adjacent to the current frame's, thus determining that the current frame is the first preview frame. For example, if the current frame's frame number is 9, the previous frame's frame number is 8, and the previous frame was a capture frame, while the current frame is a preview frame, then the current frame is the first preview frame after the capture.

[0057] In one possible implementation, when it is determined that the current frame is the first preview frame, locking the white balance parameters of preview images corresponding to the first N preview frames obtained after the night scene photography is processed according to the actual white balance parameters corresponding to the first preview frame includes:

[0058] When it is determined that the current frame is the first preview frame, a white balance lock instruction is generated based on the actual white balance parameters corresponding to the first preview frame, and the white balance lock instruction is stored in a tag of the camera system. The white balance lock instruction is deleted when the N+1th preview frame is obtained, so as to lock the white balance parameters of the preview images corresponding to the first N preview frames after the night scene photography is processed.

[0059] In this embodiment, the generated white balance lock instruction may instruct to lock the actual white balance parameters corresponding to the first preview frame as the white balance parameters used to generate the preview image, and the white balance parameter lock instruction is stored in a tag of the camera system. When each preview frame generates a corresponding preview image, the white balance parameters corresponding to that frame are determined based on the tag. Specifically, the actual white balance parameters corresponding to the first preview frame are obtained as the target white balance parameters, which are then used to generate the preview image corresponding to that preview frame. The white balance lock instruction is then deleted at the N+1th preview frame. At this point, the actual white balance parameters corresponding to the first preview frame are no longer used to generate the preview image, but are instead used to generate the preview image. This effectively locks the white balance parameters of the preview images corresponding to the first N preview frames after the night scene photography process.

[0060] In a possible implementation, obtaining preview images corresponding to the first N preview frames after night scene photography according to the target white balance parameters may include:

[0061] For any preview frame among the first N preview frames after the night scene photo is taken, target image processing parameters corresponding to the preview frame are obtained based on the camera system label and the preview request information corresponding to the preview frame. The target image processing parameters include the target white balance parameter in the camera system label and the target exposure parameter and target focus parameter in the preview request information. The image data corresponding to the preview frame is processed according to the target image processing parameters to obtain a preview image corresponding to the preview frame.

[0062] In this embodiment, after a photo is taken, the camera system issues a preview request message corresponding to each preview frame. This preview request message includes the actual white balance parameters, scene identifier, frame number, exposure parameters, and focus parameters corresponding to the preview frame. For any preview frame, if a white balance lock instruction is included in the tag, the target white balance parameters locked by the white balance lock instruction are used to generate the preview image corresponding to that frame. If a white balance lock instruction is not included in the tag, the actual white balance parameters corresponding to the preview frame are used to generate the preview image. For any preview frame among the first N preview frames after a night scene photo is taken, the target image processing parameters corresponding to that preview frame are obtained based on the camera system's tag and the preview request message corresponding to that preview frame. These target image processing parameters may include target white balance parameters, target exposure parameters, and target focus parameters. Image data obtained by the sensor is processed according to these target white balance parameters, target exposure parameters, and target focus parameters to generate a preview image.

[0063] Figure 3 FIG. 1 is a flow chart of another method for photo preview processing according to an exemplary embodiment. Figure 3As shown, the following steps are included.

[0064] In step S301, the camera application is started. The camera application may be started in response to a camera start operation by the user.

[0065] In step S302, a photo request message is sent. In response to the user's photo request, the camera application sends the photo request message.

[0066] In step S303, the flash is turned on to raise the white balance value. The flash can be turned on to change the environmental conditions, thereby raising the white balance value.

[0067] In step S304, image processing is performed according to a plurality of image processing stages.

[0068] In step S305, the generated image is stored in the album. After the image processing is completed, the corresponding night scene photographic image can be generated and the night scene photographic image is stored in the album.

[0069] In step S306, a preview request message is sent. After the photo is taken, the camera system automatically sends a preview request message for each preview frame according to the actual environment. The preview request message includes the actual white balance parameters of the corresponding preview frame.

[0070] In step S307, it is determined whether the current frame is a preview frame. This can be determined based on the scene identifier in the preview request information. If the current frame is a preview frame, step S308 is executed; if the current frame is not a preview frame, step S310 is executed.

[0071] In step S308, it is determined whether the previous frame is a photographic frame and the frame number differs from the current frame number by 1. If the previous frame is a photographic frame and the frame number differs from the current frame number by 1, step S309 is executed; if not, step S310 is executed.

[0072] In step S309 , the actual white balance parameters corresponding to the first preview frame are sent to the sensor to obtain a preview image of the corresponding frame.

[0073] In step S310 , the actual white balance parameters are sent to the sensor to be processed to obtain a preview image of the corresponding frame.

[0074] Figure 4 FIG. 1 is a block diagram of a device for photo preview processing according to an exemplary embodiment. Figure 4 The photo preview processing device 400 includes a first processing module and a second processing module.

[0075] The first processing module 401 is configured to, in response to completion of a night scene photograph, process the preview images corresponding to the first N preview frames after the night scene photograph according to a target white balance parameter, wherein the target white balance parameter is less than an actual white balance parameter corresponding to the photographed frame and is greater than or equal to the actual white balance parameter corresponding to the first preview frame, where N is a positive integer;

[0076] The second processing module 402 is configured to process any preview frame after the first N preview frames according to the actual white balance parameters corresponding to the preview frame to obtain a preview image corresponding to the preview frame.

[0077] Optionally, the photo preview processing device 400 further includes:

[0078] The locking module is configured to, when determining that the current frame is the first preview frame, lock the white balance parameters of the preview images corresponding to the first N preview frames obtained after the night scene photography is processed based on the actual white balance parameters corresponding to the first preview frame, so as to lock the actual white balance parameters corresponding to the first preview frame as the target white balance parameters.

[0079] Optionally, the photo preview processing device 400 further includes:

[0080] The first determination module is configured to determine that the current frame is the first preview frame when the current frame is a preview frame, the previous frame is a photo frame, and the frame number of the previous frame is adjacent to the frame number of the current frame, and the frame number is a positive integer.

[0081] Optionally, the photo preview processing device 400 further includes:

[0082] an acquisition module configured to acquire first request information corresponding to the current frame and second request information corresponding to the previous frame, wherein the first request information includes a first scene identifier and a first frame number, and the second request information includes a second scene identifier and a second frame number;

[0083] a second determining module, configured to determine that the current frame is a preview frame when the first scene is identified as a preview;

[0084] a third determining module, configured to, when the second scene is identified as taking a photo, determine that the previous frame is a photo frame;

[0085] The fourth determining module is configured to, when a difference between the first frame number and the second frame number is 1, determine that the frame number of the previous frame is adjacent to the frame number of the current frame.

[0086] Optionally, the locking module includes:

[0087] The locking submodule is configured to, when determining that the current frame is the first preview frame, generate a white balance locking instruction based on actual white balance parameters corresponding to the first preview frame, store the white balance locking instruction in a tag of the camera system, and delete the white balance locking instruction when the N+1th preview frame is obtained, so as to lock the white balance parameters of the preview images corresponding to the first N preview frames obtained after the night scene photography is processed.

[0088] Optionally, the first processing module 401 includes:

[0089] an obtaining submodule configured to obtain, for any preview frame among the first N preview frames after the night scene photograph is taken, target image processing parameters corresponding to the preview frame based on the camera system tag and the preview request information corresponding to the preview frame, the target image processing parameters including the target white balance parameter in the camera system tag and the target exposure parameter and target focus parameter in the preview request information;

[0090] The processing submodule is configured to process the image data corresponding to the preview frame according to the target image processing parameters to obtain a preview image corresponding to the preview frame.

[0091] Regarding the photo preview processing device 400 in the above embodiment, the specific manner in which each module performs operations has been described in detail in the embodiment of the method, and will not be elaborated on here.

[0092] The present disclosure also provides a computer-readable storage medium having computer program instructions stored thereon. When the program instructions are executed by a processor, the steps of the photo preview processing method provided by the present disclosure are implemented.

[0093] Figure 5 5 is a block diagram of an electronic device according to an exemplary embodiment. For example, the electronic device 500 may be a mobile phone, a tablet device, a personal digital assistant, etc.

[0094] Reference Figure 5 , the electronic device 500 may include one or more of the following components: a processing component 502 , a memory 504 , a power component 506 , a multimedia component 508 , an audio component 510 , an input / output interface 512 , a sensor component 514 , and a communication component 516 .

[0095] The processing component 502 generally controls the overall operation of the electronic device 500, such as operations associated with display, phone calls, data communications, camera operation, and recording operations. The processing component 502 may include one or more processors 520 to execute instructions to complete all or part of the steps of the above-mentioned photo preview processing method. In addition, the processing component 502 may include one or more modules to facilitate interaction between the processing component 502 and other components. For example, the processing component 502 may include a multimedia module to facilitate interaction between the multimedia component 508 and the processing component 502.

[0096] The memory 504 is configured to store various types of data to support operations on the electronic device 500. Examples of such data include instructions for any application or method operating on the electronic device 500, contact data, phone book data, messages, pictures, videos, etc. The memory 504 can be implemented by any type of volatile or non-volatile storage device, or a combination thereof, such as static random access memory (SRAM), electrically erasable programmable read-only memory (EEPROM), erasable programmable read-only memory (EPROM), programmable read-only memory (PROM), read-only memory (ROM), magnetic memory, flash memory, magnetic disk, or optical disk.

[0097] The power supply assembly 506 provides power to the various components of the electronic device 500. The power supply assembly 506 may include a power management system, one or more power supplies, and other components associated with generating, managing, and distributing power to the electronic device 500.

[0098] The multimedia component 508 includes a screen that provides an output interface between the electronic device 500 and the user. In some embodiments, the screen may include a liquid crystal display (LCD) and a touch panel (TP). If the screen includes a touch panel, the screen may be implemented as a touch screen to receive input signals from the user. The touch panel includes one or more touch sensors to sense touches, slides, and gestures on the touch panel. The touch sensor can not only sense the boundaries of the touch or slide action, but also detect the duration and pressure associated with the touch or slide operation. In some embodiments, the multimedia component 508 includes a front camera and / or a rear camera. When the electronic device 500 is in an operating mode, such as a shooting mode or a video mode, the front camera and / or the rear camera can receive external multimedia data. Each front camera and rear camera can be a fixed optical lens system or have a focal length and optical zoom capability.

[0099] The audio component 510 is configured to output and / or input audio signals. For example, the audio component 510 includes a microphone (MIC), which is configured to receive external audio signals when the electronic device 500 is in an operating mode, such as a call mode, a recording mode, and a voice recognition mode. The received audio signal can be further stored in the memory 504 or transmitted via the communication component 516. In some embodiments, the audio component 510 also includes a speaker for outputting audio signals.

[0100] The input / output interface 512 provides an interface between the processing component 502 and peripheral interface modules, such as a keyboard, a click wheel, buttons, etc. These buttons may include but are not limited to: a home button, a volume button, a start button, and a lock button.

[0101] The sensor assembly 514 includes one or more sensors for providing various aspects of status assessment for the electronic device 500. For example, the sensor assembly 514 can detect the open / closed state of the electronic device 500, the relative positioning of components, such as the display and keypad of the electronic device 500. The sensor assembly 514 can also detect changes in the position of the electronic device 500 or a component of the electronic device 500, the presence or absence of user contact with the electronic device 500, the orientation or acceleration / deceleration of the electronic device 500, and temperature changes of the electronic device 500. The sensor assembly 514 may include a proximity sensor configured to detect the presence of nearby objects without any physical contact. The sensor assembly 514 may also include a light sensor, such as a CMOS or CCD image sensor, for use in imaging applications. In some embodiments, the sensor assembly 514 may also include an accelerometer, a gyroscope sensor, a magnetic sensor, a pressure sensor, or a temperature sensor.

[0102] The communication component 516 is configured to facilitate wired or wireless communication between the electronic device 500 and other devices. The electronic device 500 can access a wireless network based on a communication standard, such as WiFi, 2G or 3G, or a combination thereof. In an exemplary embodiment, the communication component 516 receives a broadcast signal or broadcast-related information from an external broadcast management system via a broadcast channel. In an exemplary embodiment, the communication component 516 also includes a near field communication (NFC) module to facilitate short-range communication. For example, the NFC module can be implemented based on radio frequency identification (RFID) technology, infrared data association (IrDA) technology, ultra-wideband (UWB) technology, Bluetooth (BT) technology and other technologies.

[0103] In an exemplary embodiment, the electronic device 500 may be implemented by one or more application-specific integrated circuits (ASICs), digital signal processors (DSPs), digital signal processing devices (DSPDs), programmable logic devices (PLDs), field programmable gate arrays (FPGAs), controllers, microcontrollers, microprocessors, or other electronic components to execute the above-mentioned photo preview processing method.

[0104] In an exemplary embodiment, a non-transitory computer-readable storage medium including instructions is also provided, such as a memory 504 including instructions. The instructions can be executed by the processor 520 of the electronic device 500 to implement the above-mentioned photo preview processing method. For example, the non-transitory computer-readable storage medium can be a ROM, a random access memory (RAM), a CD-ROM, a magnetic tape, a floppy disk, an optical data storage device, etc.

[0105] In another exemplary embodiment, a computer program product is further provided. The computer program product includes a computer program that can be executed by a programmable device. The computer program has a code portion for executing the above-mentioned photo preview processing method when executed by the programmable device.

[0106] Other embodiments of the present disclosure will readily occur to those skilled in the art after considering the specification and practicing the present disclosure. This disclosure is intended to cover any variations, uses, or adaptations of the present disclosure that follow the general principles of the present disclosure and include common knowledge or customary techniques in the art not disclosed herein. The description and examples are to be considered as exemplary only, with the true scope and spirit of the present disclosure being indicated by the following claims.

[0107] It should be understood that the present disclosure is not limited to the exact structures that have been described above and shown in the drawings, and that various modifications and changes can be made without departing from the scope thereof. The scope of the present disclosure is limited only by the appended claims.

Claims

1. A photo preview processing method, characterized in that: include: In response to the completion of the night scene photography, obtaining preview images corresponding to the first N preview frames after the night scene photography according to the target white balance parameter, wherein the target white balance parameter is less than the actual white balance parameter corresponding to the photography frame and greater than or equal to the actual white balance parameter corresponding to the first preview frame, where N is a positive integer; For any preview frame after the first N preview frames, a preview image corresponding to the preview frame is obtained by processing the preview frame according to the actual white balance parameters corresponding to the preview frame.

2. The photo preview processing method according to claim 1, characterized in that: Before obtaining preview images corresponding to the first N preview frames after the night scene photographing according to the target white balance parameters, the method further includes: When it is determined that the current frame is the first preview frame, the white balance parameters of the preview images corresponding to the first N preview frames obtained after the night scene photography are processed are locked based on the actual white balance parameters corresponding to the first preview frame, so that the actual white balance parameters corresponding to the first preview frame are locked as the target white balance parameters.

3. The photo preview processing method according to claim 2, characterized in that: The method further comprises: When the current frame is a preview frame, the previous frame is a photographing frame, and the frame number of the previous frame is adjacent to the frame number of the current frame, the current frame is determined to be the first preview frame, and the frame number is a positive integer.

4. The photo preview processing method according to claim 3, characterized in that: The method further comprises: Obtaining first request information corresponding to the current frame and second request information corresponding to the previous frame, wherein the first request information includes a first scene identifier and a first frame number, and the second request information includes a second scene identifier and a second frame number; When the first scene is identified as a preview, determining that the current frame is a preview frame; When the second scene identifier is taking a photo, determining that the previous frame is a photo frame; When the difference between the first frame number and the second frame number is 1, it is determined that the frame number of the previous frame is adjacent to the frame number of the current frame.

5. The photo preview processing method according to any one of claims 2 to 4, characterized in that: When determining that the current frame is the first preview frame, locking the white balance parameters of preview images corresponding to the first N preview frames obtained after the night scene photography is processed according to the actual white balance parameters corresponding to the first preview frame, includes: When it is determined that the current frame is the first preview frame, a white balance lock instruction is generated based on actual white balance parameters corresponding to the first preview frame, and the white balance lock instruction is stored in a tag of the camera system. The white balance lock instruction is deleted when the N+1th preview frame is obtained, so as to lock the white balance parameters of the preview images corresponding to the first N preview frames obtained after the night scene photography is processed.

6. The photo preview processing method according to claim 5, characterized in that: The step of obtaining preview images corresponding to the first N preview frames after the night scene photographing according to the target white balance parameter includes: For any preview frame among the first N preview frames after the night scene photograph is taken, obtaining target image processing parameters corresponding to the preview frame based on the camera system tag and the preview request information corresponding to the preview frame, the target image processing parameters including the target white balance parameter in the camera system tag and the target exposure parameter and target focus parameter in the preview request information; The image data corresponding to the preview frame is processed according to the target image processing parameters to obtain a preview image corresponding to the preview frame.

7. A photo preview processing device, characterized in that: include: A first processing module is configured to, in response to completion of night scene photography, process, according to a target white balance parameter, to obtain preview images corresponding to the first N preview frames after the night scene photography, wherein the target white balance parameter is less than an actual white balance parameter corresponding to the photographed frame and greater than or equal to the actual white balance parameter corresponding to the first preview frame, where N is a positive integer; The second processing module is configured to process any preview frame after the first N preview frames according to the actual white balance parameters corresponding to the preview frame to obtain a preview image corresponding to the preview frame.

8. An electronic device, characterized in that: include: processor; a memory for storing processor-executable instructions; The processor is configured to implement the steps of the photo preview processing method according to any one of claims 1 to 6 when executing.

9. A computer-readable storage medium having computer program instructions stored thereon, characterized in that: When the program instructions are executed by a processor, the steps of the photo preview processing method according to any one of claims 1 to 6 are implemented.

10. A computer program product comprising a computer program, characterized in that When the computer program is executed by a processor, the steps of the photo preview processing method according to any one of claims 1 to 6 are implemented.