Movatterモバイル変換


[0]ホーム

URL:


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
CN112333384ACN202011167323.1ACN202011167323ACN112333384ACN 112333384 ACN112333384 ACN 112333384ACN 202011167323 ACN202011167323 ACN 202011167323ACN 112333384 ACN112333384 ACN 112333384A
Authority
CN
China
Prior art keywords
rate
display refresh
refresh rate
display
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 LtdfiledCriticalBeijing Xiaomi Mobile Software Co Ltd
Priority to CN202011167323.1ApriorityCriticalpatent/CN112333384B/en
Publication of CN112333384ApublicationCriticalpatent/CN112333384A/en
Application grantedgrantedCritical
Publication of CN112333384BpublicationCriticalpatent/CN112333384B/en
Activelegal-statusCriticalCurrent
Anticipated expirationlegal-statusCritical

Links

Images

Classifications

Landscapes

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, apreview image apparatus 600 is applied to a terminal mounted with an image pickup apparatus and a display screen, and thepreview image apparatus 600 includes anacquisition unit 601 and adetermination unit 602.
Wherein: an obtainingunit 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 determiningunit 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 determiningunit 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 determiningunit 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 determiningunit 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 determiningunit 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 determiningunit 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 anapparatus 700 for previewing an image according to an exemplary embodiment. For example, theapparatus 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: aprocessing component 702, amemory 704, apower component 706, amultimedia component 708, anaudio component 710, an input/output (I/O)interface 712, asensor component 714, and acommunication component 716.
Theprocessing component 702 generally controls overall operation of thedevice 700, such as operations associated with display, telephone calls, data communications, camera operations, and recording operations. Theprocessing components 702 may include one ormore processors 720 to execute instructions to perform all or a portion of the steps of the methods described above. Further, theprocessing component 702 may include one or more modules that facilitate interaction between theprocessing component 702 and other components. For example, theprocessing component 702 may include a multimedia module to facilitate interaction between themultimedia component 708 and theprocessing component 702.
Thememory 704 is configured to store various types of data to support operations at theapparatus 700. Examples of such data include instructions for any application or method operating ondevice 700, contact data, phonebook data, messages, pictures, videos, and so forth. Thememory 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.
Thepower component 706 provides power to the various components of thedevice 700. Thepower components 706 may include a power management system, one or more power sources, and other components associated with generating, managing, and distributing power for theapparatus 700.
Themultimedia component 708 includes a screen that provides an output interface between thedevice 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, themultimedia 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 thedevice 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.
Theaudio 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 whenapparatus 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 thememory 704 or transmitted via thecommunication 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 theprocessing 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.
Thesensor assembly 714 includes one or more sensors for providing status assessment of various aspects of theapparatus 700. For example,sensor assembly 714 may detect an open/closed state ofdevice 700, the relative positioning of components, such as a display and keypad ofdevice 700,sensor assembly 714 may also detect a change in position ofdevice 700 or a component ofdevice 700, the presence or absence of user contact withdevice 700, orientation or acceleration/deceleration ofdevice 700, and a change in temperature ofdevice 700. Thesensor assembly 714 may include a proximity sensor configured to detect the presence of a nearby object without any physical contact. Thesensor assembly 714 may also include a light sensor, such as a CMOS or CCD image sensor, for use in imaging applications. In some embodiments, thesensor assembly 714 may also include an acceleration sensor, a gyroscope sensor, a magnetic sensor, a pressure sensor, or a temperature sensor.
Thecommunication component 716 is configured to facilitate wired or wireless communication between theapparatus 700 and other devices. Theapparatus 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, thecommunication component 716 receives a broadcast signal or broadcast related information from an external broadcast management system via a broadcast channel. In an exemplary embodiment, thecommunication 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, theapparatus 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 thememory 704 comprising instructions, executable by theprocessor 720 of thedevice 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)

Translated fromChinese
1.一种预览图像方法,其特征在于,应用于终端,所述终端安装有摄像装置以及显示屏,所述方法包括:1. A method for previewing images, characterized in that it is applied to a terminal, and the terminal is provided with a camera device and a display screen, the method comprising:响应于所述摄像装置被触发进行图像预览,确定所述摄像装置进行图像预览的输出帧率,并获取所述显示屏的多个显示刷新率;In response to the camera device being triggered to perform image preview, determining an output frame rate of the camera device for performing image preview, and acquiring multiple 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;按照所述目标刷新率对图像进行预览。The image is previewed at the target refresh rate.2.根据权利要求1所述的预览图像方法,其特征在于,所述根据所述输出帧率,在所述多个显示刷新率中确定目标刷新率,包括:2 . The method for previewing images according to claim 1 , wherein determining a target refresh rate among the plurality of display refresh rates according to the output frame rate, comprising: 2 .遍历所述多个显示刷新率,若所述多个显示刷新率中存在显示刷新率为所述预览帧率整数倍的第一显示刷新率,根据所述第一显示刷新率确定目标刷新率。The multiple display refresh rates are traversed, and if there is a first display refresh rate whose display refresh rate is an integer multiple of the preview frame rate among the multiple display refresh rates, a target refresh rate is determined according to the first display refresh rate.3.根据权利要求2所述的预览图像方法,其特征在于,所述根据所述第一显示刷新率确定目标刷新率,包括:3. The method for previewing images according to claim 2, wherein the determining a target refresh rate according to the first display refresh rate comprises:若所述第一显示刷新率的数量为一个,则将所述第一显示刷新率作为目标刷新率;If the number of the first display refresh rate is one, the first display refresh rate is used as the target refresh rate;若所述第一显示刷新率的数量为多个,则将所述第一显示刷新率中数值最大的第一显示刷新率,作为目标刷新率。If the number of the first display refresh rates is multiple, the first display refresh rate with the largest value among the first display refresh rates is used as the target refresh rate.4.根据权利要求1所述的预览图像方法,其特征在于,所述根据所述输出帧率,在所述多个显示刷新率中确定目标刷新率,包括:4 . The method for previewing images according to claim 1 , wherein determining a target refresh rate among the plurality of display refresh rates according to the output frame rate, comprising: 4 .遍历所述多个显示刷新率,若所述多个显示刷新率中不存在显示刷新率为所述预览帧率整数倍的第一显示刷新率,则确定所述输出帧率和所述多个显示刷新率中的各显示刷新率之间的抖动占比;Traverse the multiple display refresh rates, and if there is no first display refresh rate whose display refresh rate is an integer multiple of the preview frame rate, determine the output frame rate and the multiple display refresh rates The jitter ratio between each display refresh rate in the display refresh rate;根据所述输出帧率和所述多个显示刷新率中的各显示刷新率之间的抖动占比,确定目标刷新率。The target refresh rate is determined according to the output frame rate and the jitter ratio between each display refresh rate in the plurality of display refresh rates.5.根据权利要求4所述的预览图像方法,其特征在于,所述根据所述输出帧率和所述多个显示刷新率中的各显示刷新率之间的抖动占比,确定目标刷新率,包括:5 . The preview image method according to claim 4 , wherein the target refresh rate is determined according to the output frame rate and a jitter ratio between each display refresh rate in the plurality of display refresh rates. 6 . ,include:分别确定所述多个显示刷新率中的各显示刷新率与所述输出帧率比值;respectively determining the ratio of each display refresh rate in the plurality of display refresh rates to the output frame rate;根据所述比值,确定目标刷新率。Based on the ratio, a target refresh rate is determined.6.根据权利要求5所述的预览图像方法,其特征在于,所述根据所述比值,确定目标刷新率,包括:6. The method for previewing images according to claim 5, wherein the determining a target refresh rate according to the ratio comprises:根据所述比值,基于如下公式确定目标刷新率:According to the ratio, the target refresh rate is determined based on the following formula:R=|1-2*{Fd/fc}|R=|1-2*{Fd/fc}|其中,R表示输出帧率和显示刷新率的不匹配度,Fd表示显示刷新率,fc表示输出帧率,{}表示取小数部分,||表示取绝对值。Among them, R represents the mismatch between the output frame rate and the display refresh rate, Fd represents the display refresh rate, fc represents the output frame rate, {} represents the fractional part, and || represents the absolute value.7.一种预览图像装置,其特征在于,应用于终端,所述终端安装有摄像装置以及显示屏,所述装置包括:7. A preview image device, characterized in that it is applied to a terminal, wherein the terminal is equipped with a camera device and a display screen, the device comprising:获取单元,被配置为响应于所述摄像装置被触发进行图像预览,确定所述摄像装置进行图像预览的输出帧率,并获取所述显示屏的多个显示刷新率;an acquisition unit, configured to determine an output frame rate of the image preview performed by the camera device in response to the camera device being triggered to perform image preview, and acquire multiple display refresh rates of the display screen;确定单元,被配置为根据所述输出帧率,在所述多个显示刷新率中确定目标刷新率;a determination unit configured to determine a target refresh rate among the plurality of display refresh rates according to the output frame rate;显示单元,被配置为按照所述目标刷新率对图像进行预览。The display unit is configured to preview the image according to the target refresh rate.8.根据权利要求7所述的预览图像装置,其特征在于,所述确定单元采用如下方式根据所述输出帧率,在所述多个显示刷新率中确定目标刷新率:8. The preview image device according to claim 7, wherein 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:遍历所述多个显示刷新率,若所述多个显示刷新率中存在显示刷新率为所述预览帧率整数倍的第一显示刷新率,根据所述第一显示刷新率确定目标刷新率。The multiple display refresh rates are traversed, and if there is a first display refresh rate whose display refresh rate is an integral multiple of the preview frame rate among the multiple display refresh rates, a target refresh rate is determined according to the first display refresh rate.9.根据权利要求8所述的预览图像装置,其特征在于,所述确定单元采用如下方式根据所述第一显示刷新率确定目标刷新率:9. The preview image device according to claim 8, wherein the determining unit determines the target refresh rate according to the first display refresh rate in the following manner:若所述第一显示刷新率的数量为一个,则将所述第一显示刷新率作为目标刷新率;If the number of the first display refresh rate is one, the first display refresh rate is used as the target refresh rate;若所述第一显示刷新率的数量为多个,则将所述第一显示刷新率中数值最大的第一显示刷新率,作为目标刷新率。If the number of the first display refresh rates is multiple, the first display refresh rate with the largest value among the first display refresh rates is used as the target refresh rate.10.根据权利要求7所述的预览图像装置,其特征在于,所述确定单元采用如下方式根据所述输出帧率,在所述多个显示刷新率中确定目标刷新率:10. The preview image device according to claim 7, wherein 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:遍历所述多个显示刷新率,若所述多个显示刷新率中不存在显示刷新率为所述预览帧率整数倍的第一显示刷新率,则确定所述输出帧率和所述多个显示刷新率中的各显示刷新率之间的抖动占比;Traverse the multiple display refresh rates, and if there is no first display refresh rate whose display refresh rate is an integer multiple of the preview frame rate, determine the output frame rate and the multiple display refresh rates The jitter ratio between each display refresh rate in the display refresh rate;根据所述输出帧率和所述多个显示刷新率中的各显示刷新率之间的抖动占比,确定目标刷新率。The target refresh rate is determined according to the output frame rate and the jitter ratio between each display refresh rate in the plurality of display refresh rates.11.根据权利要求10所述的预览图像装置,其特征在于,所述确定单元采用如下方式根据所述输出帧率和所述多个显示刷新率中的各显示刷新率之间的抖动占比,确定目标刷新率:11 . The preview image device according to claim 10 , wherein the determining unit adopts the following method according to the jitter ratio between the output frame rate and each display refresh rate in the plurality of display refresh rates. 12 . , to determine the target refresh rate:分别确定所述多个显示刷新率中的各显示刷新率与所述输出帧率比值;respectively determining the ratio of each display refresh rate in the plurality of display refresh rates to the output frame rate;根据所述比值,确定目标刷新率。Based on the ratio, a target refresh rate is determined.12.根据权利要求11所述的预览图像装置,其特征在于,所述确定单元采用如下方式根据所述比值,确定目标刷新率:12. The preview image device according to claim 11, wherein the determining unit determines the target refresh rate according to the ratio in the following manner:根据所述比值,基于如下公式确定目标刷新率:According to the ratio, the target refresh rate is determined based on the following formula:R=|1-2*{Fd/fc}|R=|1-2*{Fd/fc}|其中,R表示输出帧率和显示刷新率的不匹配度,Fd表示显示刷新率,fc表示输出帧率,{}表示取小数部分,||表示取绝对值。Among them, R represents the mismatch between the output frame rate and the display refresh rate, Fd represents the display refresh rate, fc represents the output frame rate, {} represents the fractional part, and || represents the absolute value.13.一种预览图像装置,其特征在于,包括:13. A preview image device, comprising:处理器;processor;用于存储处理器可执行指令的存储器;memory for storing processor-executable instructions;其中,所述处理器被配置为执行权利要求1-6中任一项所述的预览图像方法。Wherein, the processor is configured to perform the preview image method of any one of claims 1-6.14.一种非临时性计算机可读存储介质,当所述存储介质中的指令由移动终端的处理器执行时,使得移动终端能够执行权利要求1-6中任一项所述的预览图像方法。14. A non-transitory computer-readable storage medium, when the instructions in the storage medium are executed by the processor of the mobile terminal, the mobile terminal can execute the preview image method according to any one of claims 1-6 .
CN202011167323.1A2020-10-272020-10-27Image preview method, image preview device and storage mediumActiveCN112333384B (en)

Priority Applications (1)

Application NumberPriority DateFiling DateTitle
CN202011167323.1ACN112333384B (en)2020-10-272020-10-27Image preview method, image preview device and storage medium

Applications Claiming Priority (1)

Application NumberPriority DateFiling DateTitle
CN202011167323.1ACN112333384B (en)2020-10-272020-10-27Image preview method, image preview device and storage medium

Publications (2)

Publication NumberPublication Date
CN112333384Atrue CN112333384A (en)2021-02-05
CN112333384B CN112333384B (en)2022-03-18

Family

ID=74296657

Family Applications (1)

Application NumberTitlePriority DateFiling Date
CN202011167323.1AActiveCN112333384B (en)2020-10-272020-10-27Image preview method, image preview device and storage medium

Country Status (1)

CountryLink
CN (1)CN112333384B (en)

Cited By (2)

* Cited by examiner, † Cited by third party
Publication numberPriority datePublication dateAssigneeTitle
CN112995504A (en)*2021-02-082021-06-18北京小米移动软件有限公司Image display method and device and storage medium
CN115134516A (en)*2021-03-292022-09-30北京小米移动软件有限公司 Shooting method and device

Citations (10)

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

Patent Citations (10)

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

Cited By (3)

* Cited by examiner, † Cited by third party
Publication numberPriority datePublication dateAssigneeTitle
CN112995504A (en)*2021-02-082021-06-18北京小米移动软件有限公司Image display method and device and storage medium
CN112995504B (en)*2021-02-082023-04-07北京小米移动软件有限公司Image display method and device and storage medium
CN115134516A (en)*2021-03-292022-09-30北京小米移动软件有限公司 Shooting method and device

Also Published As

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

Similar Documents

PublicationPublication DateTitle
CN108419016B (en)Shooting method and device and terminal
CN106165430B (en) Live video method and device
CN107526494B (en)Keyboard display method, device, terminal and storage medium
CN106657780B (en)Image preview method and device
CN107426502B (en)Shooting method and device, electronic equipment and storage medium
EP3010226A2 (en)Method and apparatus for obtaining photograph
CN106210496B (en)Photo shooting method and device
CN112114765A (en) Screen projection method, device and storage medium
EP2991336A1 (en)Image capturing method and apparatus
WO2017101485A1 (en)Video display method and device
CN112333384B (en)Image preview method, image preview device and storage medium
CN106792024B (en)Multimedia information sharing method and device
CN113206948B (en)Image effect previewing method and device, electronic equipment and storage medium
CN115134516A (en) Shooting method and device
CN114697517A (en) Video processing method, device, terminal device and storage medium
WO2018219210A1 (en)Image stabilization stroke adjustment method, mobile device, and computer storage medium
CN115134505B (en) Preview screen generation method and device, electronic device, and storage medium
CN111614910B (en)File generation method and device, electronic equipment and storage medium
CN112188095A (en)Photographing method, photographing device and storage medium
CN112269525A (en)Small screen window display method and device and storage medium
CN111356001A (en)Video display area acquisition method and video picture display method and device
CN114943791B (en)Animation playing method, device, equipment and storage medium
CN110312117B (en)Data refreshing method and device
CN114079724A (en)Method and device for taking-off snapshot and storage medium
CN114339357A (en) Image acquisition method, image acquisition device and storage medium

Legal Events

DateCodeTitleDescription
PB01Publication
PB01Publication
SE01Entry into force of request for substantive examination
SE01Entry into force of request for substantive examination
GR01Patent grant
GR01Patent grant

[8]ページ先頭

©2009-2025 Movatter.jp