Preview image display method and device, electronic equipment and storage medium

By determining the preset time interval in the electronic device and sending a synchronous display signal to the preview image queue, the problem of poor preview display effect caused by different image processing times is solved, and the consistency of the image interval length and better preview display effect are achieved. .

CN118695085APending Publication Date: 2024-09-24BEIJING XIAOMI MOBILE SOFTWARE CO LTD
View PDF 0 Cites 1 Cited by

Patent Information

Application Number
CN202310298024.9
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2023-03-24
Publication Date
2024-09-24

Smart Images

  • Figure CN118695085A
    Figure CN118695085A
Patent Text Reader

Abstract

The invention relates to a preview image display method and device, electronic equipment and a storage medium. The method comprises the following steps: sending a synchronous display signal to a preview image queue according to a preset time interval; wherein the preset time interval is determined according to the display frame rate of a screen of the electronic equipment and / or the exposure duration of the camera module; and determining a preview image to be displayed in the preview image queue according to the synchronous display signal, and displaying the preview image to be displayed. According to the method, the preview images in the preview image queue are controlled to be sent and displayed through the synchronous display signal, the problem that the interval durations between the preview images are different when the preview images are directly sent and displayed is avoided, and the preview display effect is improved.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present disclosure relates to the field of computer technology, and in particular to a method, device, electronic device and storage medium for displaying a preview image. Background Art

[0002] When taking photos, electronic devices use image processing algorithms to process the captured original images to improve the quality of the original images, and then preview and display the processed images. This has become a common method. However, when using image processing algorithms to process different images, it may take different amounts of time. Therefore, due to the different processing times of different images, when the electronic device previews and displays the processed images, the intervals between different images are different, resulting in poor preview display effects. Summary of the invention

[0003] In order to overcome the problems existing in the related art, the present disclosure provides a method, device, electronic device and storage medium for displaying a preview image.

[0004] According to a first aspect of an embodiment of the present disclosure, a method for displaying a preview image is provided, which is applied to an electronic device having a screen and a camera module, and the display method includes:

[0005] Sending a synchronous display signal to the preview image queue at a preset time interval; wherein the preset time interval is determined according to a display frame rate of the screen of the electronic device and / or an exposure time of the camera module;

[0006] According to the synchronous display signal, a preview image to be displayed is determined in the preview image queue, and the preview image to be displayed is displayed.

[0007] In some embodiments, determining the preview image to be displayed in the preview image queue includes:

[0008] In the preview image queue, the preview images to be displayed are determined according to the time sequence in which the preview images are added to the preview image queue.

[0009] In some embodiments, sending a synchronous display signal to the preview image queue at a preset time interval includes:

[0010] Determine whether there is a preview image in the preview image queue;

[0011] When the preview image exists in the preview image queue, the preset time interval is determined according to the display frame rate of the screen of the electronic device, and a synchronous display signal is sent to the preview image queue so that the preset time interval is the same as the display duration of each frame of the screen.

[0012] In some embodiments, sending a synchronous display signal to the preview image queue at a preset time interval further includes:

[0013] When the preview image does not exist in the preview image queue, the preset time interval is adjusted according to the current exposure duration of the camera module of the electronic device.

[0014] In some embodiments, sending a synchronous display signal to the preview image queue at a preset time interval further includes:

[0015] When a new preview image is added to the preview image queue, the preset time interval is adjusted according to the current exposure duration of the camera module of the electronic device.

[0016] In some embodiments, adjusting the preset time interval according to the current exposure duration of the camera module of the electronic device includes:

[0017] Determine, according to the current exposure time and the display frame rate of the screen, a maximum value of the current exposure time and the display time of each frame of the screen;

[0018] The preset time interval is determined according to the maximum duration.

[0019] In some embodiments, the display method further includes:

[0020] Under the preset conditions, determine the initial moment;

[0021] The preset time interval is determined at the initial moment based on a display frame rate of a screen of the electronic device.

[0022] In some embodiments, the preset condition includes starting a camera application in the electronic device.

[0023] According to a second aspect of an embodiment of the present disclosure, there is provided a display device for previewing an image, which is configured in an electronic device having a screen and a camera module, and the display device includes:

[0024] A signal sending module is configured to send a synchronous display signal to the preview image queue at a preset time interval; wherein the preset time interval is determined according to a display frame rate of the screen of the electronic device and / or an exposure time of the camera module;

[0025] The image display module is configured to determine the preview image to be displayed in the preview image queue according to the synchronous display signal, and display the preview image to be displayed.

[0026] In some embodiments, the image display module is configured to determine the preview images to be displayed in the preview image queue according to the time sequence in which the preview images are added to the preview image queue.

[0027] In some embodiments, the signal sending module is configured to:

[0028] Determine whether there is a preview image in the preview image queue;

[0029] When the preview image exists in the preview image queue, the preset time interval is determined according to the display frame rate of the screen of the electronic device, and a synchronous display signal is sent to the preview image queue so that the preset time interval is the same as the display duration of each frame of the screen.

[0030] In some embodiments, the signal sending module is further configured to adjust the preset time interval according to the current exposure duration of the camera module of the electronic device when the preview image does not exist in the preview image queue.

[0031] In some embodiments, the signal sending module is further configured to adjust the preset time interval according to the current exposure duration of the camera module of the electronic device when a new preview image is added to the preview image queue.

[0032] In some embodiments, the signal sending module is configured to:

[0033] Determine, according to the current exposure time and the display frame rate of the screen, a maximum value of the current exposure time and the display time of each frame of the screen;

[0034] The preset time interval is determined according to the maximum duration.

[0035] In some embodiments, the display device further comprises:

[0036] An initial time determination module is configured to determine an initial time under preset conditions;

[0037] The time interval determination module is configured to determine the preset time interval based on the display frame rate of the screen of the electronic device at the initial moment.

[0038] In some embodiments, the preset condition includes starting a camera application in the electronic device.

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

[0040] processor;

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

[0042] The processor is configured to execute the method for displaying a preview image as described in any one of the first aspects of the embodiments of the present disclosure.

[0043] According to a fourth aspect of an embodiment of the present disclosure, a non-temporary computer-readable storage medium is provided. When instructions in the storage medium are executed by a processor of an electronic device, the electronic device can execute a method for displaying a preview image as described in any one of the first aspect of the embodiment of the present disclosure.

[0044] The above method of the present disclosure has the following beneficial effects:

[0045] The method provided by the embodiment of the present disclosure sends a synchronous display signal to the preview image queue at a preset time interval, determines a preview image to be displayed in the preview image queue according to the synchronous display signal, and displays the preview image to be displayed. Since the preset time interval is determined according to the display frame rate of the screen of the electronic device and / or the exposure time of the camera module, when displaying the preview image according to the synchronous display signal, the interval between two preview images is the preset time interval, and meets the requirements of the display frame rate of the screen of the electronic device and / or the exposure time of the camera module, thereby controlling the preview image in the preview image queue to be displayed through the synchronous display signal, avoiding the problem of different intervals between preview images when directly displaying the preview image, and improving the preview display effect.

[0046] 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 present disclosure. BRIEF DESCRIPTION OF THE DRAWINGS

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

[0048] Figure 1 is a flowchart of a method for displaying a preview image according to an exemplary embodiment;

[0049] Figure 2 is a flow chart of another method for displaying a preview image according to an exemplary embodiment;

[0050] Figure 3 is a schematic diagram showing a display process of a preview image according to an exemplary embodiment;

[0051] Figure 4 is a device block diagram of a device for displaying a preview image according to an exemplary embodiment;

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

[0053] Exemplary embodiments will be described in detail herein, examples of which are shown in the accompanying drawings. When the following description refers to the drawings, the same numbers in different drawings represent the same or similar elements unless otherwise indicated. The embodiments described in the following exemplary embodiments do not represent all embodiments consistent with the present invention. Instead, they are merely examples of devices and methods consistent with some aspects of the present invention as detailed in the appended claims.

[0054] The display method of the preview image provided by the embodiment of the present disclosure is applied to an electronic device, which may be a mobile phone, a tablet computer, a desktop computer, a wearable device, a smart home device, or other electronic device with a screen and a camera module.

[0055] Figure 1 is a flowchart of a method for displaying a preview image according to an exemplary embodiment, the method being executed by an electronic device, see Figure 1 The method comprises the following steps S101-S102:

[0056] Step S101: sending a synchronous display signal to a preview image queue at a preset time interval, wherein the preset time interval is determined according to a display frame rate of a screen of the electronic device and / or an exposure time of a camera module.

[0057] In the disclosed embodiment, in order to ensure that the interval between two adjacent preview images is the same when previewing and displaying the preview images, a synchronous display signal is sent to the preview image queue at a preset time interval, and the synchronous display signal indicates that a preview image in the preview image queue is sent for display. The preview image queue is used to store preview images, which are images obtained by processing the captured original images and used for preview display.

[0058] Sending a synchronous display signal to the preview image queue at a preset time interval can make the preset time interval between two synchronous display signals. The preset time interval is determined according to the display frame rate of the screen of the electronic device and / or the exposure time of the camera module. The display frame rate of the screen is fixed, and the exposure time of the camera module can be fixed or variable, that is, the exposure time at different times can be the same or different. For example, when the electronic device just starts the camera application, the preset time interval can be determined according to the display frame rate of the screen of the electronic device. After that, during the image capture process, the camera module of the electronic device automatically determines the exposure time according to the environment. At this time, the exposure time of the camera module may change. Therefore, the preset time interval can be determined according to the exposure time of the camera module.

[0059] In addition, the embodiments of the present disclosure do not limit the specific content or form of the synchronous display signal.

[0060] Step S102: determining a preview image to be displayed in a preview image queue according to a synchronous display signal, and displaying the preview image to be displayed.

[0061] In the embodiment of the present disclosure, when a synchronous display signal is received, it indicates that a preview image in the preview image queue needs to be displayed. First, a preview image to be displayed is determined in the preview image queue, and then the preview image to be displayed is displayed. The preview image to be displayed is one of the preview images stored in the preview image queue. After the preview image is acquired, the preview image is stored in the preview image queue, and the preview image in the preview image queue is sent for display when the synchronous display signal is received, so as to avoid the problem of different preview images having different intervals when being displayed when the preview image is directly sent for display.

[0062] The method provided by the embodiment of the present disclosure sends a synchronous display signal to the preview image queue at a preset time interval, determines a preview image to be displayed in the preview image queue according to the synchronous display signal, and displays the preview image to be displayed. Since the preset time interval is determined according to the display frame rate of the screen of the electronic device and / or the exposure time of the camera module, when displaying the preview image according to the synchronous display signal, the interval between two preview images is the preset time interval, and meets the requirements of the display frame rate of the screen of the electronic device and / or the exposure time of the camera module, thereby controlling the preview image in the preview image queue to be displayed through the synchronous display signal, avoiding the problem of different intervals between preview images when directly displaying the preview image, and improving the preview display effect.

[0063] Figure 2 is a flowchart of another method for displaying a preview image according to an exemplary embodiment, the method is executed by an electronic device, and the method includes the following steps S201-S205:

[0064] Step S201, determining whether there is a preview image in the preview image queue.

[0065] The preview image queue is used to store preview images. However, there may be a situation where there is no preview image in the preview image queue, for example, all preview images in the preview image queue have been previewed, but the next preview image has not been obtained, and at this time there is no preview image in the preview image queue.

[0066] In some embodiments, the reasons why there is no preview image in the preview image queue include: the camera module of the electronic device first captures images with a first exposure duration, and when capturing images with the first exposure duration, sends a synchronous display signal to the preview image queue according to a preset time interval corresponding to the first exposure duration to display the preview image in the preview image queue, and then the camera module of the electronic device captures images with a second exposure duration, and the second exposure duration is greater than the first exposure duration. When capturing images with the second exposure duration, if a synchronous display signal is still sent to the preview image queue according to the preset time interval corresponding to the first exposure duration, then the speed of acquiring images will be less than the speed of displaying preview images, resulting in the absence of preview images in the preview image queue. Of course, there may be other reasons that cause the absence of preview images in the preview image queue.

[0067] For the preview image queue, in some embodiments, after the original image is captured and processed to obtain the preview image, the obtained preview image is added to the preview image queue. The processing of the original image includes denoising, sharpening, and other processing to improve the image quality of the original image. The embodiments of the present disclosure do not limit the specific processing method.

[0068] Step S202, when there is a preview image in the preview image queue, determine the preset time interval according to the display frame rate of the screen of the electronic device, and send a synchronous display signal to the preview image queue so that the preset time interval is the same as the display duration of each frame of the screen.

[0069] The display frame rate of the screen of the electronic device refers to the number of frames of the image to be displayed per second. In order to make the preset time interval the same as the display duration of each frame of the screen, the preset time interval is 1000 / display frame rate, and the unit of the preset time interval is milliseconds.

[0070] In some embodiments, under a preset condition, an initial moment is determined, and at the initial moment, a preset time interval is determined based on a display frame rate of a screen of the electronic device. The preset condition includes starting a camera application in the electronic device. That is, when the camera application in the electronic device is started, the preset time interval is determined by default based on the display frame rate of the screen of the electronic device.

[0071] In the embodiment of the present disclosure, after the preset time interval is determined, a synchronous display signal is sent to the preview image queue at every preset time interval, that is, the preset time interval is between two adjacent synchronous display signals.

[0072] Step S203, when there is no preview image in the preview image queue, adjusting the preset time interval according to the current exposure time of the camera module of the electronic device, and sending a synchronous display signal to the preview image queue according to the adjusted preset time interval.

[0073] When there is no preview image in the preview image queue, it may be that the speed of displaying preview images is greater than the speed of acquiring new preview images, which means that the current preset time interval may no longer be applicable and it is necessary to redefine the preset time interval based on the current exposure time of the camera module.

[0074] In some embodiments, according to the current exposure time of the camera module of the electronic device, the preset time interval is adjusted, including: according to the current exposure time and the display frame rate of the screen, determining the maximum value of the current exposure time and the display time of each frame of the screen; according to the maximum value of the time, determining the preset time interval, that is, determining the maximum value of the time as the preset time interval. Among them, the display time of each frame of the screen is 1000 / display frame rate, and the unit of the display time is milliseconds. For example, the current exposure time is 30ms, the display frame rate of the screen is 60PFS, and the display time of each frame of the screen is 16.7ms, then the current exposure time is determined as the preset time interval.

[0075] In some embodiments, the user can manually set the exposure time of the camera module, or the electronic device automatically sets the exposure time, that is, the electronic device uses an automatic exposure algorithm to determine the appropriate exposure time.

[0076] In some embodiments, after the electronic device captures the original image, it will store the shooting parameters corresponding to the original image, and the shooting parameters include shooting time, exposure duration, etc. When there is no preview image in the preview image queue, after the next preview image is obtained, the shooting parameters corresponding to the preview image are read to obtain the exposure duration corresponding to the preview image, and the exposure duration is used as the current exposure duration of the shooting module.

[0077] Step S203 is only a way to adjust the preset time interval. In another embodiment, considering that the exposure time of the camera module of the electronic device may be different at different times, in order to more accurately adjust the preset time interval, when a new preview image is added to the preview image queue, the preset time interval is adjusted according to the current exposure time of the camera module of the electronic device. In other words, each time a preview image is obtained, the preset time interval is determined according to the exposure time when the preview image is taken.

[0078] It should be noted that the disclosed embodiment is described by taking the current determination of the preset time interval according to the display frame rate of the screen of the electronic device as an example. In the case where the preset time interval is determined according to the display frame rate of the screen of the electronic device, when there is a preview image in the preview image queue, it is described that the preview image can be displayed based on sending a synchronous display signal to the preview image queue according to the current preset time interval. When there is no preview image in the preview image queue, it means that the current preset time interval is no longer applicable, and it is necessary to redetermine the preset time interval according to the current exposure duration of the camera module of the electronic device.

[0079] Step S204: in the preview image queue, the preview images to be displayed are determined according to the time sequence in which the preview images are added to the preview image queue.

[0080] Since the original images are shot in a certain order, different original images are processed in the order of shooting, that is, the original images captured first are processed first, and the original images captured later are processed. When a preview image is added to the preview image queue after each processing, the image added to the preview image queue first is the image to be displayed first. Therefore, according to the time sequence of the preview images added to the preview image queue, the preview image added to the preview image queue first in the preview image queue is used as the preview image to be displayed.

[0081] Step S205: displaying the preview image to be displayed.

[0082] In the embodiment of the present disclosure, after determining the preview image to be displayed, the preview image to be displayed can be displayed. Since the synchronous display signals are separated by a preset time interval, when displaying the preview images according to the received synchronous display signals, two adjacent preview images are also displayed at a preset time interval.

[0083] The method provided by the embodiment of the present disclosure sends a synchronous display signal to the preview image queue at a preset time interval, determines a preview image to be displayed in the preview image queue according to the synchronous display signal, and displays the preview image to be displayed. Since the preset time interval is determined according to the display frame rate of the screen of the electronic device and / or the exposure time of the camera module, when displaying the preview image according to the synchronous display signal, the interval between two preview images is the preset time interval, and meets the requirements of the display frame rate of the screen of the electronic device and / or the exposure time of the camera module, thereby controlling the preview image in the preview image queue to be displayed through the synchronous display signal, avoiding the problem of different intervals between preview images when directly displaying the preview image, and improving the preview display effect.

[0084] Furthermore, in the disclosed embodiment, a fixed preset time interval is not always used. Instead, the preset time interval can be adjusted according to the exposure time of the camera module to make the preset time interval real-time, thereby ensuring that a synchronous display signal is sent to the preview image queue at a more appropriate preset time interval, so that the duration of the preview image during the display interval is more consistent with the exposure time of the camera module.

[0085] In some embodiments, the electronic device includes a synchronization module (sendSyncSingle module), a preview image processing module (camera service module), and a display module. Figure 3 is a schematic diagram showing a display process of a preview image according to an exemplary embodiment, see Figure 3 For the sendSyncSingle module, the steps performed by the sendSyncSingle module during the display process of the preview image include the following:

[0086] Step a: Get the display frame rate fps: F sent by the current cameraapp (camera application), opencamera (open the camera), and record the current time as T0.

[0087] Step b: Starting from time T0, a startDisplaySingle signal (synchronous display signal) is sent to the preview image queue (bufferqueue queue D) in the cameraservice module at a preset time interval of 1000 / F ms.

[0088] Step c: If the updateStartSendSyncSingleTime signal (update instruction) sent by the cameraservice module is received, the current exposure duration is obtained, and the preset time interval is updated according to the current exposure duration. Then, based on the updated preset time interval, the operation of step b is continued.

[0089] For the camera service module, the steps performed by the camera service module during the display process of the preview image include the following:

[0090] Step d: After receiving the halbuffer (preview image), it is not sent to the display immediately, but first determines whether the bufferqueue D for sending to the display is empty. If the bufferqueue D is empty, it sends the updateStartSendSyncSingleTime signal to the sendSyncSingle module; if the bufferqueue D is not empty, it adds the halbuffer to the bufferqueue D.

[0091] Of course, in some embodiments, after receiving the halbuffer, the updateStartSendSyncSingleTime signal is directly sent to the sendSyncSingle module, so that the sendSyncSingle module obtains the current exposure time corresponding to the halbuffer. There is no need to send the updateStartSendSyncSingleTime signal to the sendSyncSingle module when the bufferqueue queue D is empty.

[0092] Step e: When the startDisplaySingle signal sent by the sendSyncSingle module is received, the earliest halbuffer in the queue is dequeued from the bufferqueue queue D for display, and sent to the display module for display.

[0093] Compared with the solution in the related art that the camera service module displays the preview image immediately after receiving it reported by the bottom layer, the method provided in the embodiment of the present disclosure has simple implementation logic and low system power consumption. A sendSyncSingle module is added to adjust the display logic of the camera service module after receiving the preview image, and the preview image is sent to the display module based on a preset time interval. This way of displaying the preview image occupies a relatively small system and hardly increases power consumption compared with the method in the related art. It is also simple to apply and has strong versatility, and can be applied to any product device that uses a camera.

[0094] Figure 4 is a device block diagram of a preview image display device according to an exemplary embodiment, which is configured in an electronic device having a screen and a camera module, see Figure 4 , the display device comprises:

[0095] A signal sending module is configured to send a synchronous display signal to the preview image queue at a preset time interval; wherein the preset time interval is determined according to a display frame rate of the screen of the electronic device and / or an exposure time of the camera module;

[0096] The image display module is configured to determine the preview image to be displayed in the preview image queue according to the synchronous display signal, and display the preview image to be displayed.

[0097] The device provided by the embodiment of the present disclosure sends a synchronous display signal to the preview image queue at a preset time interval, determines a preview image to be displayed in the preview image queue according to the synchronous display signal, and displays the preview image to be displayed. Since the preset time interval is determined according to the display frame rate of the screen of the electronic device and / or the exposure time of the camera module, when displaying the preview image according to the synchronous display signal, the interval between two preview images is the preset time interval and meets the requirements of the display frame rate of the screen of the electronic device and / or the exposure time of the camera module, thereby controlling the preview image in the preview image queue to be displayed through the synchronous display signal, avoiding the problem of different intervals between preview images when directly displaying the preview image, and improving the preview display effect.

[0098] In some embodiments, the image display module is configured to determine the preview images to be displayed in the preview image queue according to the time sequence in which the preview images are added to the preview image queue.

[0099] In some embodiments, the signal sending module is configured to:

[0100] Determine whether there is a preview image in the preview image queue;

[0101] When there are preview images in the preview image queue, a preset time interval is determined according to the display frame rate of the screen of the electronic device, and a synchronous display signal is sent to the preview image queue so that the preset time interval is the same as the display duration of each frame of the screen.

[0102] In some embodiments, the signal sending module is further configured to adjust the preset time interval according to the current exposure time of the camera module of the electronic device when there is no preview image in the preview image queue.

[0103] In some embodiments, the signal sending module is further configured to adjust the preset time interval according to the current exposure time of the camera module of the electronic device when a new preview image is added to the preview image queue.

[0104] In some embodiments, the signal sending module is configured to:

[0105] According to the current exposure time and the display frame rate of the screen, determine the maximum value of the current exposure time and the display time of each frame of the screen;

[0106] A preset time interval is determined based on the maximum duration.

[0107] In some embodiments, the display device further comprises:

[0108] An initial time determination module is configured to determine an initial time under preset conditions;

[0109] The time interval determination module is configured to determine a preset time interval based on a display frame rate of a screen of the electronic device at the initial moment.

[0110] In some embodiments, the preset condition includes starting a camera application in the electronic device.

[0111] Regarding the device 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 here.

[0112] An embodiment of the present disclosure further provides an electronic device, comprising: a processor; and a memory for storing instructions executable by the processor; wherein the processor is configured to execute the method for displaying a preview image in the above embodiment.

[0113] Figure 5 is a block diagram of an electronic device 500 according to an exemplary embodiment.

[0114] 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 (I / O) interface 512 , a sensor component 514 , and a communication component 516 .

[0115] 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 operations, and recording operations. The processing component 502 may include one or more processors 620 to execute instructions to complete all or part of the steps of the above-mentioned method. In addition, the processing component 502 may include one or more modules to facilitate the interaction between the processing component 502 and other components. For example, the processing component 502 may include a multimedia module to facilitate the interaction between the multimedia component 508 and the processing component 502.

[0116] 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.

[0117] The power supply component 506 provides power to the various components of the electronic device 500. The power supply component 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.

[0118] 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 touch, slide, and gestures on the touch panel. The touch sensor may 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 may receive external multimedia data. Each front camera and rear camera may be a fixed optical lens system or have a focal length and optical zoom capability.

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

[0120] I / O interface 512 provides an interface between processing component 502 and peripheral interface modules, such as keyboards, click wheels, buttons, etc. These buttons may include but are not limited to: a home button, a volume button, a start button, and a lock button.

[0121] 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, and the sensor assembly 514 can also detect the position change 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 the temperature change 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 an optical 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 acceleration sensor, a gyroscope sensor, a magnetic sensor, a pressure sensor, or a temperature sensor.

[0122] 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.

[0123] 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 perform the above methods.

[0124] In an exemplary embodiment, a non-transitory computer-readable storage medium including instructions is also provided, such as a memory 504 including instructions, and the instructions can be executed by a processor 620 of the electronic device 500 to perform the above 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.

[0125] The embodiments of the present disclosure also provide a non-temporary computer-readable storage medium. When instructions in the storage medium are executed by a processor of an electronic device, the electronic device can execute the method for displaying a preview image in the above embodiment.

[0126] Those skilled in the art will readily appreciate other embodiments of the present invention after considering the specification and practicing the invention disclosed herein. This application is intended to cover any variations, uses or adaptations of the present invention that follow the general principles of the present invention and include common knowledge or customary techniques in the art that are not disclosed in this disclosure. The specification and examples are to be considered exemplary only, and the true scope and spirit of the present invention are indicated by the following claims.

[0127] It should be understood that the present invention is not limited to the exact construction that has been described above and shown in the drawings and that various modifications and changes may be made without departing from the scope thereof. The scope of the present invention is limited only by the appended claims.

Claims

1. A method for displaying a preview image, applied to an electronic device having a screen and a camera module, characterized in that: The display method comprises: Sending a synchronous display signal to the preview image queue at a preset time interval; wherein the preset time interval is determined according to a display frame rate of the screen of the electronic device and / or an exposure time of the camera module; According to the synchronous display signal, a preview image to be displayed is determined in the preview image queue, and the preview image to be displayed is displayed.

2. The method for displaying a preview image according to claim 1, wherein: The step of determining a preview image to be displayed in the preview image queue comprises: In the preview image queue, the preview images to be displayed are determined according to the time sequence in which the preview images are added to the preview image queue.

3. The method for displaying a preview image according to claim 1, wherein: The step of sending a synchronous display signal to the preview image queue at a preset time interval includes: Determine whether there is a preview image in the preview image queue; When the preview image exists in the preview image queue, the preset time interval is determined according to the display frame rate of the screen of the electronic device, and a synchronous display signal is sent to the preview image queue so that the preset time interval is the same as the display duration of each frame of the screen.

4. The method for displaying a preview image according to claim 3, wherein: The step of sending a synchronous display signal to the preview image queue at a preset time interval also includes: When the preview image does not exist in the preview image queue, the preset time interval is adjusted according to the current exposure duration of the camera module of the electronic device.

5. The method for displaying a preview image according to claim 3, characterized in that: The step of sending a synchronous display signal to the preview image queue at a preset time interval also includes: When a new preview image is added to the preview image queue, the preset time interval is adjusted according to the current exposure duration of the camera module of the electronic device.

6. The method for displaying a preview image according to claim 4 or 5, characterized in that: The adjusting the preset time interval according to the current exposure duration of the camera module of the electronic device includes: Determine, according to the current exposure time and the display frame rate of the screen, a maximum value of the current exposure time and the display time of each frame of the screen; The preset time interval is determined according to the maximum duration.

7. The method for displaying a preview image according to claim 1, wherein: The display method further includes: Under the preset conditions, determine the initial moment; The preset time interval is determined at the initial moment based on a display frame rate of a screen of the electronic device.

8. The method for displaying a preview image according to claim 7, characterized in that: The preset condition includes starting a camera application in the electronic device.

9. A preview image display device, configured in an electronic device having a screen and a camera module, characterized in that: The display device comprises: A signal sending module is configured to send a synchronous display signal to the preview image queue at a preset time interval; wherein the preset time interval is determined according to a display frame rate of the screen of the electronic device and / or an exposure time of the camera module; The image display module is configured to determine the preview image to be displayed in the preview image queue according to the synchronous display signal, and display the preview image to be displayed.

10. An electronic device, characterized in that: include: processor; a memory for storing processor-executable instructions; The processor is configured to execute the preview image display method according to any one of claims 1 to 8.

11. A non-transitory computer-readable storage medium, characterized in that: When the instructions in the storage medium are executed by a processor of an electronic device, the electronic device is enabled to execute the method for displaying a preview image as described in any one of claims 1 to 8.

Citation Information

Cited By

  • Inter-board image data synchronous transmission method and system based on Ethernet

    CN120475114A