CN112333384A - Image preview method, image preview device and storage medium - Google Patents

Image preview method, image preview device and storage medium Download PDF

Info

Publication number
CN112333384A
CN112333384A CN202011167323.1A CN202011167323A CN112333384A CN 112333384 A CN112333384 A CN 112333384A CN 202011167323 A CN202011167323 A CN 202011167323A CN 112333384 A CN112333384 A CN 112333384A
Authority
CN
China
Prior art keywords
rate
display refresh
display
refresh rate
image
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Granted
Application number
CN202011167323.1A
Other languages
Chinese (zh)
Other versions
CN112333384B (en
Inventor
曾晶
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Beijing Xiaomi Mobile Software Co Ltd
Original Assignee
Beijing Xiaomi Mobile Software Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Beijing Xiaomi Mobile Software Co Ltd filed Critical Beijing Xiaomi Mobile Software Co Ltd
Priority to CN202011167323.1A priority Critical patent/CN112333384B/en
Publication of CN112333384A publication Critical patent/CN112333384A/en
Application granted granted Critical
Publication of CN112333384B publication Critical patent/CN112333384B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N23/00Cameras or camera modules comprising electronic image sensors; Control thereof
    • H04N23/60Control of cameras or camera modules
    • H04N23/63Control of cameras or camera modules by using electronic viewfinders
    • H04N23/631Graphical user interfaces [GUI] specially adapted for controlling image capture or setting capture parameters
    • H04N23/632Graphical user interfaces [GUI] specially adapted for controlling image capture or setting capture parameters for displaying or modifying preview images prior to image capturing, e.g. variety of image resolutions or capturing parameters

Landscapes

  • Engineering & Computer Science (AREA)
  • Human Computer Interaction (AREA)
  • Multimedia (AREA)
  • Signal Processing (AREA)
  • Controls And Circuits For Display Device (AREA)
  • Studio Devices (AREA)

Abstract

The present disclosure relates to an image preview method, an image preview apparatus, and a storage medium. The image previewing method is applied to a terminal, the terminal is provided with a camera device and a display screen, and the method comprises the following steps: responding to the triggering of the camera device for image preview, determining the output frame rate of the camera device for image preview, and acquiring a plurality of display refresh rates of the display screen; determining a target refresh rate among the plurality of display refresh rates according to the output frame rate; and previewing the image according to the target refresh rate. Through the method and the device, the fluency of image preview can be ensured, and the flexibility of display of a display screen of the terminal is improved.

Description

Image preview method, image preview device and storage medium
Technical Field
The present disclosure relates to the field of terminal technologies, and in particular, to an image previewing method, an image previewing apparatus, and a storage medium.
Background
Typically, the display refresh rate of the screen of the mobile terminal is 60 hz, i.e. 60 frames of images are displayed per second. In recent years, along with the development of display technologies of mobile terminals, users have higher demands for fluency of display interfaces, and high-refresh-rate display screens gradually become standard configurations of various terminals, for example, more and more mobile terminals with 90/120 hz refresh rate screens.
Meanwhile, with the development of the imaging technology, more and more cameras are integrated on the mobile terminal, and due to different characteristics of sensors located in the imaging device or various cooperative operating characteristics of multiple cameras, the image frame rate output by the imaging device in different operating modes may differ, for example, 24/25/30/60fps may exist in the image frame rate output by the imaging device, that is, there may be a case where 24 frames, 25 frames, 30 frames or 60 frames are transmitted per second in the image frame rate output by the imaging device. For example, assuming that the image frame rate output by the image capturing device is 30 frames per second, 1/30 seconds are required for each frame of image output. When the display refresh rate of the screen is 90 hz, the terminal will refresh the image every 1/90 seconds and display the next frame of image after every three refreshes.
When the display refresh rate of the screen is an integral multiple of the frame rate of the image output by the image pickup device, that is, the display refresh rate of the screen is matched with the frame rate of the image output by the image pickup device, the image output by the image pickup device can be smoothly displayed. Therefore, since the image capturing device may output different image frame rates in different shooting modes, when the image frame rate output by the image capturing device and the display refresh rate of the screen do not match, image sticking of the image output by the image capturing device may occur.
Disclosure of Invention
To overcome the problems in the related art, the present disclosure provides an image preview method, an image preview apparatus, and a storage medium.
According to a first aspect of the embodiments of the present disclosure, there is provided an image previewing method, which is applied to a terminal, where an image capturing device and a display screen are installed, the method including: responding to the triggering of the camera device for image preview, determining the output frame rate of the camera device for image preview, and acquiring a plurality of display refresh rates of the display screen; determining a target refresh rate among the plurality of display refresh rates according to the output frame rate; and previewing the image according to the target refresh rate.
In one example, the determining a target refresh rate among the plurality of display refresh rates according to the output frame rate includes: and traversing the plurality of display refresh rates, and if a first display refresh rate of which the display refresh rate is an integral multiple of the preview frame rate exists in the plurality of display refresh rates, determining a target refresh rate according to the first display refresh rate.
In one example, the determining a target refresh rate from the first display refresh rate comprises: if the number of the first display refresh rates is one, taking the first display refresh rate as a target refresh rate; and if the number of the first display refresh rates is multiple, taking the first display refresh rate with the largest value in the first display refresh rates as a target refresh rate.
In one example, the determining a target refresh rate among the plurality of display refresh rates according to the output frame rate includes: traversing the plurality of display refresh rates, and if a first display refresh rate of which the display refresh rate is an integral multiple of the preview frame rate does not exist in the plurality of display refresh rates, determining a jitter ratio between the output frame rate and each display refresh rate in the plurality of display refresh rates; and determining a target refresh rate according to the output frame rate and the jitter ratio between the display refresh rates in the plurality of display refresh rates.
In one example, the determining a target refresh rate according to a jitter ratio between the output frame rate and each of the plurality of display refresh rates comprises: determining a ratio of each display refresh rate of the plurality of display refresh rates to the output frame rate, respectively; and determining a target refresh rate according to the ratio.
In one example, the determining a target refresh rate based on the ratio comprises: determining a target refresh rate based on the following formula according to the ratio: r ═ 1-2 { Fd/fc }. does not count
Wherein, R represents the mismatch degree of the output frame rate and the display refresh rate, Fd represents the display refresh rate, fc represents the output frame rate, { } represents the fraction part, and | | represents the absolute value.
According to a second aspect of the embodiments of the present disclosure, there is provided a preview image apparatus applied to a terminal mounted with an image pickup device and a display screen, the apparatus including: the acquisition unit is configured to respond to the image capture device being triggered to perform image preview, determine the output frame rate of the image capture device for performing image preview, and acquire a plurality of display refresh rates of the display screen; a determining unit configured to determine a target refresh rate among the plurality of display refresh rates according to the output frame rate; a display unit configured to preview an image at the target refresh rate.
In one example, the determining unit determines a target refresh rate among the plurality of display refresh rates according to the output frame rate in the following manner: and traversing the plurality of display refresh rates, and if a first display refresh rate of which the display refresh rate is an integral multiple of the preview frame rate exists in the plurality of display refresh rates, determining a target refresh rate according to the first display refresh rate.
In one example, the determining unit determines a target refresh rate from the first display refresh rate in the following manner: if the number of the first display refresh rates is one, taking the first display refresh rate as a target refresh rate; and if the number of the first display refresh rates is multiple, taking the first display refresh rate with the largest value in the first display refresh rates as a target refresh rate.
In one example, the determining unit determines a target refresh rate among the plurality of display refresh rates according to the output frame rate in the following manner: traversing the plurality of display refresh rates, and if a first display refresh rate of which the display refresh rate is an integral multiple of the preview frame rate does not exist in the plurality of display refresh rates, determining a jitter ratio between the output frame rate and each display refresh rate in the plurality of display refresh rates; and determining a target refresh rate according to the output frame rate and the jitter ratio between the display refresh rates in the plurality of display refresh rates.
In one example, the determining unit determines the target refresh rate according to a jitter ratio between the output frame rate and each of the plurality of display refresh rates as follows: determining a ratio of each display refresh rate of the plurality of display refresh rates to the output frame rate, respectively; and determining a target refresh rate according to the ratio.
In one example, the determining unit determines the target refresh rate from the ratio in the following manner: determining a target refresh rate based on the following formula according to the ratio: r ═ 1-2 { Fd/fc }. does not count
Wherein, R represents the mismatch degree of the output frame rate and the display refresh rate, Fd represents the display refresh rate, fc represents the output frame rate, { } represents the fraction part, and | | represents the absolute value.
According to a third aspect of the present disclosure, there is provided an image preview method apparatus, including: a memory configured to store instructions. And a processor configured to invoke instructions to perform the preview image method in the foregoing first aspect or any example of the first aspect.
According to a fourth aspect of the present disclosure, there is provided a non-transitory computer-readable storage medium storing computer-executable instructions that, when executed by a processor, perform the preview image method of the foregoing first aspect or any one of the examples of the first aspect.
The technical scheme provided by the embodiment of the disclosure can have the following beneficial effects: the method comprises the steps of responding to the fact that an image shooting device is triggered to carry out image preview, determining an output frame rate of the image shooting device for carrying out the image preview, obtaining a plurality of display refresh rates of a display screen, and determining a target refresh rate in the display refresh rates according to the output frame rate, so that even if the output frame rate of a preview image is not matched with the display refresh rate of an initial display screen, the target refresh rate matched with the output frame rate of the preview image can be determined, the image is previewed according to the target refresh rate, the smoothness of the image preview is guaranteed, and the flexibility of display of the display screen of the terminal is improved.
It is to be understood that both the foregoing general description and the following detailed description are exemplary and explanatory only and are not restrictive of the disclosure.
Drawings
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 disclosure.
Fig. 1 is a timing chart illustrating display of each frame image when a terminal screen refreshes an image and an image is previewed by an image pickup apparatus according to an exemplary embodiment.
Fig. 2 is a timing chart of image display of each frame when a terminal screen refreshes an image and an image is previewed by an image pickup device according to an exemplary embodiment.
FIG. 3 is a flow diagram illustrating a method of previewing images according to an exemplary embodiment.
FIG. 4 is a flow diagram illustrating a method of previewing images according to an exemplary embodiment.
FIG. 5 is a flow diagram illustrating a method of previewing images according to an exemplary embodiment.
Fig. 6 is a block diagram illustrating a preview image apparatus according to an exemplary embodiment.
FIG. 7 is a block diagram illustrating an apparatus in accordance with an example embodiment.
Detailed Description
Reference will now be made in detail to the exemplary embodiments, examples of which are illustrated in the accompanying drawings. When the following description refers to the accompanying drawings, like numbers in different drawings represent the same or similar elements unless otherwise indicated. The implementations described in the exemplary embodiments below are not intended to represent all implementations 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.
In the related art, when an application is in foreground operation, a display screen can refresh foreground application by adopting an initial display refresh rate set by default so as to improve the display fluency of the application. Moreover, if the video to be played is to be played smoothly, the display duration of each frame of image in the video to be played should be equal.
However, when the image capturing apparatus is operated, since the preview frame rate of the preview image may vary in different shooting modes of the image capturing apparatus, referring to fig. 1, fig. 1 is a timing chart illustrating a terminal screen refresh image and a display of each frame image when the image capturing apparatus previews the image according to an exemplary embodiment.
In fig. 1, the preview image frames include the 1 st, 2 nd, 3 rd to 6 th frames … …, and the output frame rate of the image preview by the image pickup apparatus is 30fps, that is, 30 frames per second, and 1/30 seconds (about 33.33ms) are required for each image output. When the display refresh rate of the screen is 60 Hz, the terminal refreshes the image every 1/60 seconds (about 16.67ms), the display refresh rate is integral multiple of the output frame rate, when the output image frame is displayed on the display screen, the display refresh rate of the screen and the output frame rate of the image preview are synchronized according to a Vertical Synchronization (VSync) mode, each preview image frame is displayed on the screen in 2 display periods, the display period of each preview image frame is the same, the display refresh rate of the display screen is matched with the image frame rate output by the camera device, and the output image frame is seen to be smooth.
Fig. 2 is a timing chart of image display of each frame when a terminal screen refreshes an image and an image is previewed by an image pickup device according to an exemplary embodiment.
In fig. 2, the preview image frames include the 1 st, 2 nd, 3 rd to 4 th frames … …, and the output frame rate of the image preview by the image pickup apparatus is 24fps, that is, 24 frames per second, and 1/24 seconds (about 41.67ms) are required for each image output. When the display refresh rate of the screen is 60 hertz, the terminal refreshes the image every 1/60 seconds (about 16.67ms), the display refresh rate is 2.5 times (non-integral multiple) of the output frame rate, when the output image frame is displayed on the display screen, the display refresh rate of the screen and the output frame rate of the image preview are synchronized according to the VSync mode, the 1 st frame needs 3 periods for display, the 2 nd frame needs 4 periods for display, and the 3 rd frame displays 3 periods, so that the terminal has a visual feeling of frustration at this time.
At present, there are more and more cameras integrated on mobile terminals, and due to different characteristics of sensors located in the image capturing device or various cooperative operating characteristics of multiple cameras, the image frame rates output by the image capturing device in different operating modes may be different, for example, the image frame rate output by the image capturing device may be transmitted 24 frames, 25 frames, 30 frames or 60 frames per second. If the image capturing device is in different operating modes, the display refresh rate of the screen displays the output preview image at the default initial display refresh rate (e.g. 90 hz), and the display refresh rate of the screen cannot match with all the output frame rates.
The embodiment of the disclosure provides a method for previewing an image. In the image previewing method, the image previewing is triggered to be performed by the image pickup device, the output frame rate of the image previewing performed by the image pickup device is determined, the plurality of display refresh rates of the display screen are obtained, and the target refresh rate is determined in the plurality of display refresh rates according to the output frame rate, so that even if the output frame rate of the previewed image is not matched with the display refresh rate of the initial display screen, the target refresh rate matched with the output frame rate of the previewed image can be determined, the image is previewed according to the target refresh rate, the fluency of the image previewing is ensured, and the flexibility of the display screen of the terminal is improved.
Fig. 3 is a flowchart illustrating an image preview method according to an exemplary embodiment, where the image preview method is used in a terminal having an image pickup device and a display screen mounted thereon as shown in fig. 3, and the image preview method includes the following steps.
In step S11, in response to the image capturing apparatus being triggered to perform image preview, an output frame rate at which the image capturing apparatus performs image preview is determined, and a plurality of display refresh rates of the display screen are acquired.
In the disclosure, after the image capturing device in the terminal is started, based on the selection of the user for the shooting mode of the image capturing device, and after the image capturing device is triggered to perform image preview, the output frame rate of the image preview performed by the image capturing device can be determined based on the shooting mode currently located by the image capturing device.
For example, the current shooting mode is portrait shooting, and the output frame rate of image preview by the image pickup apparatus may be 24 fps. For another example, the current shooting mode is 8K high-definition imaging, and the output frame rate of image preview by the imaging device may be 30 fps.
In step S12, a target refresh rate is determined among the plurality of display refresh rates according to the output frame rate.
In order to ensure that the display screen smoothly displays the preview image frame output by the camera device, in one embodiment, an optimal target refresh rate is determined among a plurality of display refresh rates according to the output frame rate. And smoothly previewing the image according to the target refresh rate.
And when the terminal camera device quits operation, the display refresh rate of the terminal display screen can be restored to the default initial display refresh rate.
In step S13, the image is previewed at the target refresh rate.
In the exemplary embodiment of the disclosure, in response to the fact that the image capturing device is triggered to perform image preview, the output frame rate of the image preview by the image capturing device is determined, the plurality of display refresh rates of the display screen are obtained, and the target refresh rate is determined in the plurality of display refresh rates according to the output frame rate, so that even if the output frame rate of the preview image is not matched with the display refresh rate of the initial display screen, the determined target refresh rate matched with the output frame rate of the preview image can be determined, the image is previewed according to the target refresh rate, the fluency of the image preview is ensured, and the flexibility of the display screen of the terminal is improved.
The present disclosure will be described in detail below with respect to how a target refresh rate is determined among a plurality of display refresh rates according to an output frame rate at which an image capturing apparatus performs image preview.
Fig. 4 is a flowchart illustrating an image preview method according to an exemplary embodiment, where the image preview method is used in a terminal as shown in fig. 4, and includes the following steps.
In step S21, in response to the image capturing apparatus being triggered to perform image preview, an output frame rate at which the image capturing apparatus performs image preview is determined, and a plurality of display refresh rates of the display screen are acquired.
In step S22, the target refresh rate is determined according to a first display refresh rate that is an integer multiple of the preview frame rate, if the plurality of display refresh rates have the first display refresh rate that is an integer multiple of the preview frame rate.
In one embodiment, the first display refresh rate is set as the target refresh rate if the number of first display refresh rates is one.
On the premise of guaranteeing that the preview image can be smoothly displayed, namely, the display duration of each frame of image in the preview image is equal, the higher the display refresh rate of the display screen is, the better the image display smoothness is, and further, if the number of the first display refresh rates is multiple, the first display refresh rate with the largest value in the first display refresh rates is taken as the target refresh rate.
For example, if the first display refresh rate that is an integer multiple of the preview frame rate includes 30 hz and 60 hz, the smoothness of the display will be better due to the display refresh rate of 60 hz, and the display refresh rate of 60 hz is further used as the target refresh rate.
And when the user operates the camera device to change the shooting mode of the camera device, traversing the plurality of display refresh rates again according to the output frame rate of the image preview corresponding to the changed shooting mode, and re-determining the target refresh rate in the plurality of display refresh rates according to the output frame rate.
In step S23, the image is previewed at the target refresh rate.
In the exemplary embodiment of the disclosure, in response to the fact that the image capturing device is triggered to perform image preview, the output frame rate of the image preview by the image capturing device is determined, the plurality of display refresh rates are traversed according to the output frame rate, if a first display refresh rate exists in the plurality of display refresh rates, the first display refresh rate being an integral multiple of the preview frame rate, a target refresh rate is determined according to the first display refresh rate, so that even if the output frame rate of the preview image is not matched with the display refresh rate of the initial display screen, the determined target refresh rate matched with the output frame rate of the preview image can be determined, the image can be previewed according to the target refresh rate, the fluency of image preview is ensured, and the flexibility of display of the display screen of the terminal is improved.
Fig. 5 is a flowchart illustrating an image preview method according to an exemplary embodiment, where the image preview method is used in a terminal as shown in fig. 5, and includes the following steps.
In step S31, in response to the image capturing apparatus being triggered to perform image preview, an output frame rate at which the image capturing apparatus performs image preview is determined, and a plurality of display refresh rates of the display screen are acquired.
In step S32, the plurality of display refresh rates are traversed, and if there is no first display refresh rate of the plurality of display refresh rates that is an integer multiple of the preview frame rate, a jitter ratio between the output frame rate and each of the plurality of display refresh rates is determined.
In one embodiment, the plurality of display refresh rates are traversed, and if there is no first display refresh rate of the plurality of display refresh rates that is an integer multiple of the preview frame rate, a jitter ratio between the output frame rate and each of the plurality of display refresh rates is determined, and the target refresh rate is determined based on the jitter ratio between the output frame rate and each of the plurality of display refresh rates.
The jitter ratio between the output frame rate and each of the plurality of display refresh rates is determined, for example, by the following formula:
R=|1-2*{Fd/fc}|
wherein, R represents the jitter ratio, Fd represents the display refresh rate, fc represents the output frame rate of the image preview by the camera device, Fd/fc represents the ratio of the display refresh rate to the output frame rate, { } represents the fractional part, and | | represents the absolute value.
In step S33, a target refresh rate is determined based on the output frame rate and a jitter ratio between each of the plurality of display refresh rates.
In practical application, the smaller the jitter ratio R is, the more obvious the jitter is at the display refresh rate, so the value of the maximum R in the list is selected as the optimal refresh rate to be returned.
When there are a plurality of cases where the jitter ratios R are equal and all are maximum, the maximum value of the display refresh rate therein is returned as the target refresh rate to reduce the feeling of frustration when previewing an image.
In step S34, the image is previewed at the target refresh rate.
In an exemplary embodiment of the present disclosure, in response to the image capturing apparatus being triggered to perform image preview, an output frame rate at which the image capturing apparatus performs image preview is determined, traversing the plurality of display refresh rates according to the output frame rate, if there is no first display refresh rate of the plurality of display refresh rates that has a display refresh rate that is an integer multiple of the preview frame rate, a jitter fraction between the output frame rate and each of the plurality of display refresh rates is determined, determining a target refresh rate based on the output frame rate and a jitter ratio between each of the plurality of display refresh rates, so that even if the output frame rate of the preview image does not match the display refresh rate of the initial display screen, a target refresh rate matching the output frame rate of the preview image can be determined, and the image is previewed according to the target refresh rate, so that the smoothness of image previewing is ensured, and the flexibility of display of a terminal display screen is improved.
Based on the same conception, the embodiment of the disclosure also provides an image previewing device.
It is understood that the preview image device provided by the embodiment of the present disclosure includes a hardware structure and/or a software module corresponding to each function in order to implement the above functions. The disclosed embodiments can be implemented in hardware or a combination of hardware and computer software, in combination with the exemplary elements and algorithm steps disclosed in the disclosed embodiments. Whether a function is performed as hardware or computer software drives hardware depends upon the particular application and design constraints imposed on the solution. Skilled artisans may implement the described functionality in varying ways for each particular application, but such implementation decisions should not be interpreted as causing a departure from the scope of the present disclosure.
Fig. 6 is a block diagram illustrating a preview image apparatus according to an exemplary embodiment. Referring to fig. 6, a preview image apparatus 600 is applied to a terminal mounted with an image pickup apparatus and a display screen, and the preview image apparatus 600 includes an acquisition unit 601 and a determination unit 602.
Wherein: an obtaining unit 601, configured to perform image preview in response to the image capturing apparatus being triggered, determine an output frame rate at which the image capturing apparatus performs image preview, and obtain a plurality of display refresh rates of the display screen; a determining unit 602 configured to determine a target refresh rate among the plurality of display refresh rates according to the output frame rate; a display unit configured to preview an image at the target refresh rate.
In an example, the determining unit 602 determines a target refresh rate among the plurality of display refresh rates according to the output frame rate in the following manner: and traversing the plurality of display refresh rates, and if a first display refresh rate of which the display refresh rate is an integral multiple of the preview frame rate exists in the plurality of display refresh rates, determining a target refresh rate according to the first display refresh rate.
In one example, the determining unit 602 determines a target refresh rate from the first display refresh rate as follows: if the number of the first display refresh rates is one, taking the first display refresh rate as a target refresh rate; and if the number of the first display refresh rates is multiple, taking the first display refresh rate with the largest value in the first display refresh rates as a target refresh rate.
In an example, the determining unit 602 determines a target refresh rate among the plurality of display refresh rates according to the output frame rate in the following manner: traversing the plurality of display refresh rates, and if a first display refresh rate of which the display refresh rate is an integral multiple of the preview frame rate does not exist in the plurality of display refresh rates, determining a jitter ratio between the output frame rate and each display refresh rate in the plurality of display refresh rates; and determining a target refresh rate according to the output frame rate and the jitter ratio between the display refresh rates in the plurality of display refresh rates.
In an example, the determining unit 602 determines the target refresh rate according to a jitter ratio between the output frame rate and each of the plurality of display refresh rates as follows: determining a ratio of each display refresh rate of the plurality of display refresh rates to the output frame rate, respectively; and determining a target refresh rate according to the ratio.
In one example, the determining unit 602 determines the target refresh rate according to the ratio by: determining a target refresh rate based on the following formula according to the ratio: r ═ 1-2 { Fd/fc }. does not count
Wherein, R represents the mismatch degree of the output frame rate and the display refresh rate, Fd represents the display refresh rate, fc represents the output frame rate, { } represents the fraction part, and | | represents the absolute value.
With regard to the apparatus in the above-described embodiment, the specific manner in which each module performs the operation has been described in detail in the embodiment related to the method, and will not be elaborated here.
Fig. 7 is a block diagram illustrating an apparatus 700 for previewing an image according to an exemplary embodiment. For example, the apparatus 700 may be a mobile phone, a computer, a digital broadcast terminal, a messaging device, a game console, a tablet device, a medical device, an exercise device, a personal digital assistant, and the like.
Referring to fig. 7, apparatus 700 may include one or more of the following components: a processing component 702, a memory 704, a power component 706, a multimedia component 708, an audio component 710, an input/output (I/O) interface 712, a sensor component 714, and a communication component 716.
The processing component 702 generally controls overall operation of the device 700, such as operations associated with display, telephone calls, data communications, camera operations, and recording operations. The processing components 702 may include one or more processors 720 to execute instructions to perform all or a portion of the steps of the methods described above. Further, the processing component 702 may include one or more modules that facilitate interaction between the processing component 702 and other components. For example, the processing component 702 may include a multimedia module to facilitate interaction between the multimedia component 708 and the processing component 702.
The memory 704 is configured to store various types of data to support operations at the apparatus 700. Examples of such data include instructions for any application or method operating on device 700, contact data, phonebook data, messages, pictures, videos, and so forth. The memory 704 may be implemented by any type or combination of volatile or non-volatile memory devices 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 or optical disks.
The power component 706 provides power to the various components of the device 700. The power components 706 may include a power management system, one or more power sources, and other components associated with generating, managing, and distributing power for the apparatus 700.
The multimedia component 708 includes a screen that provides an output interface between the device 700 and a 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 an input signal from a 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 boundary of a touch or slide action, but also detect the duration and pressure associated with the touch or slide operation. In some embodiments, the multimedia component 708 includes a front facing camera and/or a rear facing camera. The front camera and/or the rear camera may receive external multimedia data when the device 700 is in an operation mode, such as a photographing mode or a video mode. Each front camera and rear camera may be a fixed optical lens system or have a focal length and optical zoom capability.
The audio component 710 is configured to output and/or input audio signals. For example, audio component 710 includes a Microphone (MIC) configured to receive external audio signals when apparatus 700 is in an operational mode, such as a call mode, a recording mode, and a voice recognition mode. The received audio signal may further be stored in the memory 704 or transmitted via the communication component 716. In some embodiments, audio component 710 also includes a speaker for outputting audio signals.
The I/O interface 712 provides an interface between the processing component 702 and peripheral interface modules, which may be 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.
The sensor assembly 714 includes one or more sensors for providing status assessment of various aspects of the apparatus 700. For example, sensor assembly 714 may detect an open/closed state of device 700, the relative positioning of components, such as a display and keypad of device 700, sensor assembly 714 may also detect a change in position of device 700 or a component of device 700, the presence or absence of user contact with device 700, orientation or acceleration/deceleration of device 700, and a change in temperature of device 700. The sensor assembly 714 may include a proximity sensor configured to detect the presence of a nearby object without any physical contact. The sensor assembly 714 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 714 may also include an acceleration sensor, a gyroscope sensor, a magnetic sensor, a pressure sensor, or a temperature sensor.
The communication component 716 is configured to facilitate wired or wireless communication between the apparatus 700 and other devices. The apparatus 700 may 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 716 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 716 further includes a Near Field Communication (NFC) module to facilitate short-range communications. For example, the NFC module may be implemented based on Radio Frequency Identification (RFID) technology, infrared data association (IrDA) technology, Ultra Wideband (UWB) technology, Bluetooth (BT) technology, and other technologies.
In an exemplary embodiment, the apparatus 700 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, micro-controllers, microprocessors or other electronic components for performing the above-described methods.
In an exemplary embodiment, a non-transitory computer readable storage medium comprising instructions, such as the memory 704 comprising instructions, executable by the processor 720 of the device 700 to perform the above-described method is also provided. For example, the non-transitory computer readable storage medium may be a ROM, a Random Access Memory (RAM), a CD-ROM, a magnetic tape, a floppy disk, an optical data storage device, and the like.
It is understood that "a plurality" in this disclosure means two or more, and other words are analogous. "and/or" describes the association relationship of the associated objects, meaning that there may be three relationships, e.g., a and/or B, which may mean: a exists alone, A and B exist simultaneously, and B exists alone. The character "/" generally indicates that the former and latter associated objects are in an "or" relationship. The singular forms "a", "an", and "the" are intended to include the plural forms as well, unless the context clearly indicates otherwise.
It will be further understood that the terms "first," "second," and the like are used to describe various information and that such information should not be limited by these terms. These terms are only used to distinguish one type of information from another and do not denote a particular order or importance. Indeed, the terms "first," "second," and the like are fully interchangeable. For example, first information may also be referred to as second information, and similarly, second information may also be referred to as first information, without departing from the scope of the present disclosure.
It will be further understood that, unless otherwise specified, "connected" includes direct connections between the two without the presence of other elements, as well as indirect connections between the two with the presence of other elements.
It is further to be understood that while operations are depicted in the drawings in a particular order, this is not to be understood as requiring that such operations be performed in the particular order shown or in serial order, or that all illustrated operations be performed, to achieve desirable results. In certain environments, multitasking and parallel processing may be advantageous.
Other embodiments of the disclosure will be apparent to those skilled in the art from consideration of the specification and practice of the disclosure disclosed herein. This application is intended to cover any variations, uses, or adaptations of the disclosure following, in general, the principles of the disclosure and including such departures from the present disclosure as come within known or customary practice within the art to which the disclosure pertains. It is intended that the specification and examples be considered as exemplary only, with a true scope and spirit of the disclosure being indicated by the following claims.
It will be understood that the present disclosure is not limited to the precise arrangements 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 disclosure is limited only by the appended claims.

Claims (14)

1. A method for previewing an image is applied to a terminal, the terminal is provided with a camera device and a display screen, and the method comprises the following steps:
responding to the triggering of the camera device for image preview, determining the output frame rate of the camera device for image preview, and acquiring a plurality of display refresh rates of the display screen;
determining a target refresh rate among the plurality of display refresh rates according to the output frame rate;
and previewing the image according to the target refresh rate.
2. The method for previewing images according to claim 1, wherein said determining a target refresh rate among said plurality of display refresh rates according to said output frame rate comprises:
and traversing the plurality of display refresh rates, and if a first display refresh rate of which the display refresh rate is an integral multiple of the preview frame rate exists in the plurality of display refresh rates, determining a target refresh rate according to the first display refresh rate.
3. The method for previewing images according to claim 2, wherein said determining a target refresh rate according to said first display refresh rate comprises:
if the number of the first display refresh rates is one, taking the first display refresh rate as a target refresh rate;
and if the number of the first display refresh rates is multiple, taking the first display refresh rate with the largest value in the first display refresh rates as a target refresh rate.
4. The method for previewing images according to claim 1, wherein said determining a target refresh rate among said plurality of display refresh rates according to said output frame rate comprises:
traversing the plurality of display refresh rates, and if a first display refresh rate of which the display refresh rate is an integral multiple of the preview frame rate does not exist in the plurality of display refresh rates, determining a jitter ratio between the output frame rate and each display refresh rate in the plurality of display refresh rates;
and determining a target refresh rate according to the output frame rate and the jitter ratio between the display refresh rates in the plurality of display refresh rates.
5. The method of previewing images according to claim 4, wherein said determining a target refresh rate according to a jitter ratio between said output frame rate and each of said plurality of display refresh rates comprises:
determining a ratio of each display refresh rate of the plurality of display refresh rates to the output frame rate, respectively;
and determining a target refresh rate according to the ratio.
6. The method for previewing images according to claim 5, wherein said determining a target refresh rate according to said ratio comprises:
determining a target refresh rate based on the following formula according to the ratio:
R=|1-2*{Fd/fc}|
wherein, R represents the mismatch degree of the output frame rate and the display refresh rate, Fd represents the display refresh rate, fc represents the output frame rate, { } represents the fraction part, and | | represents the absolute value.
7. The utility model provides a preview image device which characterized in that is applied to the terminal, camera device and display screen are installed to the terminal, the device includes:
the acquisition unit is configured to respond to the image capture device being triggered to perform image preview, determine the output frame rate of the image capture device for performing image preview, and acquire a plurality of display refresh rates of the display screen;
a determining unit configured to determine a target refresh rate among the plurality of display refresh rates according to the output frame rate;
a display unit configured to preview an image at the target refresh rate.
8. The preview image apparatus according to claim 7, wherein said determining unit determines a target refresh rate among said plurality of display refresh rates in accordance with said output frame rate in such a manner that:
and traversing the plurality of display refresh rates, and if a first display refresh rate of which the display refresh rate is an integral multiple of the preview frame rate exists in the plurality of display refresh rates, determining a target refresh rate according to the first display refresh rate.
9. The preview image apparatus of claim 8, wherein said determining unit determines a target refresh rate from said first display refresh rate in a manner as follows:
if the number of the first display refresh rates is one, taking the first display refresh rate as a target refresh rate;
and if the number of the first display refresh rates is multiple, taking the first display refresh rate with the largest value in the first display refresh rates as a target refresh rate.
10. The preview image apparatus according to claim 7, wherein said determining unit determines a target refresh rate among said plurality of display refresh rates in accordance with said output frame rate in such a manner that:
traversing the plurality of display refresh rates, and if a first display refresh rate of which the display refresh rate is an integral multiple of the preview frame rate does not exist in the plurality of display refresh rates, determining a jitter ratio between the output frame rate and each display refresh rate in the plurality of display refresh rates;
and determining a target refresh rate according to the output frame rate and the jitter ratio between the display refresh rates in the plurality of display refresh rates.
11. The preview image apparatus of claim 10, wherein the determining unit determines the target refresh rate from a jitter ratio between the output frame rate and each of the plurality of display refresh rates as follows:
determining a ratio of each display refresh rate of the plurality of display refresh rates to the output frame rate, respectively;
and determining a target refresh rate according to the ratio.
12. The preview image apparatus of claim 11, wherein said determining unit determines a target refresh rate from said ratio in a manner as follows:
determining a target refresh rate based on the following formula according to the ratio:
R=|1-2*{Fd/fc}|
wherein, R represents the mismatch degree of the output frame rate and the display refresh rate, Fd represents the display refresh rate, fc represents the output frame rate, { } represents the fraction part, and | | represents the absolute value.
13. A preview image apparatus, comprising:
a processor;
a memory for storing processor-executable instructions;
wherein the processor is configured to perform the preview image method of any of claims 1-6.
14. A non-transitory computer readable storage medium having instructions therein which, when executed by a processor of a mobile terminal, enable the mobile terminal to perform the preview image method of any of claims 1-6.
CN202011167323.1A 2020-10-27 2020-10-27 Image preview method, image preview device and storage medium Active CN112333384B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202011167323.1A CN112333384B (en) 2020-10-27 2020-10-27 Image preview method, image preview device and storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202011167323.1A CN112333384B (en) 2020-10-27 2020-10-27 Image preview method, image preview device and storage medium

Publications (2)

Publication Number Publication Date
CN112333384A true CN112333384A (en) 2021-02-05
CN112333384B CN112333384B (en) 2022-03-18

Family

ID=74296657

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202011167323.1A Active CN112333384B (en) 2020-10-27 2020-10-27 Image preview method, image preview device and storage medium

Country Status (1)

Country Link
CN (1) CN112333384B (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN112995504A (en) * 2021-02-08 2021-06-18 北京小米移动软件有限公司 Image display method and device and storage medium

Citations (10)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20130141642A1 (en) * 2011-12-05 2013-06-06 Microsoft Corporation Adaptive control of display refresh rate based on video frame rate and power efficiency
CN103217897A (en) * 2013-05-03 2013-07-24 上海交通大学 Method and system for optimizing screen refresh rate of touch-screen smart mobile terminal
WO2014077157A1 (en) * 2012-11-15 2014-05-22 シャープ株式会社 Display device
CN105007443A (en) * 2015-07-08 2015-10-28 福州瑞芯微电子股份有限公司 Video frequency conversion playing method and device
CN106205460A (en) * 2016-09-29 2016-12-07 京东方科技集团股份有限公司 The driving method of display device, time schedule controller and display device
CN106933327A (en) * 2017-03-10 2017-07-07 广东欧珀移动通信有限公司 A kind of control method of mobile terminal frame per second, device and mobile terminal
CN109688461A (en) * 2019-01-16 2019-04-26 京东方科技集团股份有限公司 Video broadcasting method and device
CN110572411A (en) * 2019-09-18 2019-12-13 北京云中融信网络科技有限公司 Method and device for testing video transmission quality
CN110875978A (en) * 2018-08-31 2020-03-10 努比亚技术有限公司 Terminal display control method, terminal and computer readable storage medium
CN111610848A (en) * 2020-05-29 2020-09-01 Oppo广东移动通信有限公司 Screen refresh rate adjusting method and device, electronic equipment and storage medium

Patent Citations (10)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20130141642A1 (en) * 2011-12-05 2013-06-06 Microsoft Corporation Adaptive control of display refresh rate based on video frame rate and power efficiency
WO2014077157A1 (en) * 2012-11-15 2014-05-22 シャープ株式会社 Display device
CN103217897A (en) * 2013-05-03 2013-07-24 上海交通大学 Method and system for optimizing screen refresh rate of touch-screen smart mobile terminal
CN105007443A (en) * 2015-07-08 2015-10-28 福州瑞芯微电子股份有限公司 Video frequency conversion playing method and device
CN106205460A (en) * 2016-09-29 2016-12-07 京东方科技集团股份有限公司 The driving method of display device, time schedule controller and display device
CN106933327A (en) * 2017-03-10 2017-07-07 广东欧珀移动通信有限公司 A kind of control method of mobile terminal frame per second, device and mobile terminal
CN110875978A (en) * 2018-08-31 2020-03-10 努比亚技术有限公司 Terminal display control method, terminal and computer readable storage medium
CN109688461A (en) * 2019-01-16 2019-04-26 京东方科技集团股份有限公司 Video broadcasting method and device
CN110572411A (en) * 2019-09-18 2019-12-13 北京云中融信网络科技有限公司 Method and device for testing video transmission quality
CN111610848A (en) * 2020-05-29 2020-09-01 Oppo广东移动通信有限公司 Screen refresh rate adjusting method and device, electronic equipment and storage medium

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN112995504A (en) * 2021-02-08 2021-06-18 北京小米移动软件有限公司 Image display method and device and storage medium
CN112995504B (en) * 2021-02-08 2023-04-07 北京小米移动软件有限公司 Image display method and device and storage medium

Also Published As

Publication number Publication date
CN112333384B (en) 2022-03-18

Similar Documents

Publication Publication Date Title
CN107526494B (en) Keyboard display method, device, terminal and storage medium
US20170178289A1 (en) Method, device and computer-readable storage medium for video display
CN106657780B (en) Image preview method and device
CN107426502B (en) Shooting method and device, electronic equipment and storage medium
EP2991336A1 (en) Image capturing method and apparatus
CN112114765A (en) Screen projection method and device and storage medium
CN106775235B (en) Screen wallpaper display method and device
CN113206948B (en) Image effect previewing method and device, electronic equipment and storage medium
CN106792024B (en) Multimedia information sharing method and device
CN115134505B (en) Preview picture generation method and device, electronic equipment and storage medium
CN112333384B (en) Image preview method, image preview device and storage medium
CN112269525B (en) Small screen window display method and device and storage medium
CN111614910B (en) File generation method and device, electronic equipment and storage medium
CN111610899A (en) Interface display method, interface display device and storage medium
CN115134516A (en) Shooting method and device
CN110312117B (en) Data refreshing method and device
CN114339357A (en) Image acquisition method, image acquisition device and storage medium
CN115248711A (en) Method and device for adjusting refresh rate of display screen, terminal and storage medium
CN111356001A (en) Video display area acquisition method and video picture display method and device
CN112188095B (en) Photographing method, photographing device and storage medium
EP4040437A1 (en) Method and apparatus for playing an animation, device and storage medium
CN111107262B (en) Quick shooting method, equipment and readable storage medium
CN112087572B (en) Method and device for controlling zoom of lens, electronic equipment and readable storage medium
CN110955328B (en) Control method and device of electronic equipment and storage medium
EP3945717A1 (en) Take-off capture method and electronic device, and storage medium

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
GR01 Patent grant
GR01 Patent grant