CN115134516A - Shooting method and device - Google Patents

Shooting method and device Download PDF

Info

Publication number
CN115134516A
CN115134516A CN202110336540.7A CN202110336540A CN115134516A CN 115134516 A CN115134516 A CN 115134516A CN 202110336540 A CN202110336540 A CN 202110336540A CN 115134516 A CN115134516 A CN 115134516A
Authority
CN
China
Prior art keywords
frequency
screen
refresh
camera module
refreshing
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.)
Pending
Application number
CN202110336540.7A
Other languages
Chinese (zh)
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 CN202110336540.7A priority Critical patent/CN115134516A/en
Publication of CN115134516A publication Critical patent/CN115134516A/en
Pending legal-status Critical Current

Links

Images

Landscapes

  • Studio Devices (AREA)

Abstract

The disclosure provides a shooting method and a shooting device. The method comprises the following steps: in the shooting process, according to the principle that the refreshing frequency used by the screen is integral multiple of the image output frame rate used by the camera module, the target image output frame rate used by the camera module is determined according to the refreshing frequency currently used by the screen, and the camera module is controlled to output images according to the target image output frame rate, so that the display time of each frame of image output by the camera module on the screen is the same, the smoothness of image display is improved, and the watching experience of a user is improved.

Description

Shooting method and device
Technical Field
The present disclosure relates to the field of computer communications technologies, and in particular, to a shooting method and apparatus.
Background
The electronic device is provided with a camera application and a camera module. After the camera application program is started, the electronic equipment acquires images by using the camera module and displays the acquired images on a screen.
How to improve the image display effect to improve the viewing experience of the user is a technical problem that needs to be solved urgently by the technical personnel in the field.
Disclosure of Invention
To overcome the problems in the related art, the present disclosure provides a photographing method and apparatus.
According to a first aspect of the embodiments of the present disclosure, there is provided a shooting method applied to an electronic device, the method including:
in the shooting process, obtaining the current refreshing frequency of a screen;
determining a target image output frame rate used by a camera module according to the refreshing frequency, wherein the refreshing frequency is an integral multiple of the target image output frame rate;
and controlling the camera module to output images according to the target image output frame rate.
Optionally, the obtaining of the refresh frequency currently used by the screen includes any one of:
determining the refreshing frequency according to the configuration parameters of the screen;
and determining the refreshing frequency according to the actual use data of the screen.
Optionally, the obtaining a refresh frequency currently used by the screen includes:
determining a refresh mode used by the screen, the refresh mode comprising: refreshing according to a fixed refreshing frequency, or refreshing according to a dynamically changing refreshing frequency;
and acquiring the refresh frequency according to a frequency acquisition mode suitable for the refresh mode.
Optionally, the obtaining of the refresh frequency currently used by the screen includes any one of:
responding to the condition that the camera module outputs the image, and acquiring the refreshing frequency;
obtaining the refresh frequency in response to a time interval condition being satisfied, the time interval condition defining: the electronic equipment executes the interval time of the refresh frequency acquisition operation twice adjacently;
acquiring the refresh frequency in response to satisfying a frame number interval condition, the frame number interval condition defining: and the number of frames of the image output by the camera module is obtained between two adjacent times of executing the refreshing frequency acquisition operation by the electronic equipment.
Optionally, the method further comprises:
detecting that the refresh frequency used by the screen is updated;
determining a new image output frame rate used by the camera module according to the updated refreshing frequency;
and controlling the camera module to output an image according to the new image output frame rate.
According to a second aspect of the embodiments of the present disclosure, there is provided a photographing apparatus applied to an electronic device, the apparatus including:
the refreshing frequency obtaining module is configured to obtain the refreshing frequency currently used by the screen in the shooting process;
a first frame rate determination module configured to determine a target image output frame rate used by the camera module according to the refresh frequency, wherein the refresh frequency is an integer multiple of the target image output frame rate;
a first camera module control module configured to control the camera module to output an image at the target image output frame rate.
Optionally, the refresh frequency obtaining module includes any one of:
a first frequency determination sub-module configured to determine the refresh frequency according to a configuration parameter of the screen;
a second frequency determination submodule configured to determine the refresh frequency based on actual usage data of the screen.
Optionally, the refresh frequency obtaining module includes:
a mode determination submodule configured to determine a refresh mode used by the screen, the refresh mode including: refreshing according to a fixed refreshing frequency, or refreshing according to a dynamically changing refreshing frequency;
a refresh frequency determination submodule configured to acquire the refresh frequency in a frequency acquisition manner suitable for the refresh mode.
Optionally, the refresh frequency obtaining module includes any one of:
a first frequency acquisition sub-module configured to acquire the refresh frequency in response to a condition that the camera module outputs an image being satisfied;
a second frequency acquisition submodule configured to acquire the refresh frequency in response to satisfaction of a time interval condition defining: the electronic equipment executes the interval time of the refresh frequency acquisition operation twice adjacently;
a third frequency acquisition submodule configured to acquire the refresh frequency in response to satisfaction of a frame number interval condition, the frame number interval condition defining: and the number of frames of the image output by the camera module is obtained between two adjacent times of executing the refreshing frequency acquisition operation by the electronic equipment.
Optionally, the apparatus further comprises:
a frequency detection module configured to detect that a refresh frequency used by the screen is updated;
a second frame rate determining module configured to determine a new image output frame rate used by the camera module according to the updated refresh frequency;
a second camera module control module configured to control the camera module to output an image at the new image output frame rate.
According to a third aspect of embodiments of the present disclosure, there is provided a non-transitory computer-readable storage medium having stored thereon a computer program which, when executed by a processor, implements the method of any one of the above first aspects.
According to a fourth aspect of the embodiments of the present disclosure, there is provided an electronic apparatus including:
a processor;
a memory for storing the processor-executable instructions;
wherein the processor is configured to execute the instructions to implement the method of any of the first aspect above.
The technical scheme provided by the embodiment of the disclosure can have the following beneficial effects:
the embodiment of the disclosure provides a shooting method, which determines a target image output frame rate used by a camera module according to a principle that a refresh frequency used by a screen is an integral multiple of an image output frame rate used by the camera module in a shooting process and a refresh frequency currently used by the screen, and controls the camera module to output an image according to the target image output frame rate, so that the display time of each frame of image output by the camera module on the screen is the same, the smoothness of image display is improved, and the watching experience of a user 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
FIG. 1 is a flow diagram illustrating a method of capturing according to an exemplary embodiment;
FIG. 2 is a timing diagram that is shown in accordance with an exemplary embodiment;
FIG. 3 is another timing diagram that is shown in accordance with an exemplary embodiment;
FIG. 4 is a block diagram of a camera shown in accordance with an exemplary embodiment;
fig. 5 is a schematic structural diagram of an electronic device according to an exemplary 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.
The terminology used in the present disclosure is for the purpose of describing particular embodiments only and is not intended to be limiting of the disclosure. As used in this disclosure and the appended claims, the singular forms "a," "an," and "the" are intended to include the plural forms as well, unless the context clearly indicates otherwise. It should also be understood that the term "and/or" as used herein refers to and encompasses any and all possible combinations of one or more of the associated listed items.
It is to be understood that although the terms first, second, third, etc. may be used herein to describe various information, such information should not be limited to these terms. These terms are only used to distinguish one type of information from another. 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. The word "if" as used herein may be interpreted as "at … …" or "when … …" or "in response to a determination", depending on the context.
Fig. 1 is a flowchart illustrating a photographing method according to an exemplary embodiment, where the method illustrated in fig. 1 may be applied to an electronic device, and the method illustrated in fig. 1 may include:
in step 101, during shooting, a refresh frequency currently used by a screen is acquired.
The electronic equipment is provided with a screen, and the screen is refreshed according to a certain refreshing frequency in the using process of the electronic equipment.
Based on different screen structures and control methods, some screens can only be refreshed by using a fixed refresh frequency, and some screens can use a dynamically changeable refresh frequency.
In some embodiments, the screen is provided with configuration parameters that may directly include the refresh frequency of screen usage, or the configuration parameters may include information for determining the refresh frequency of screen usage. The electronic device may determine a refresh frequency of the screen according to the configuration parameters of the screen.
For example, before the electronic device leaves the factory, configuration parameters of the screen are set, the configuration parameters include a refresh frequency used by the screen, and after the electronic device leaves the factory, the screen is refreshed by using the refresh frequency included in the configuration parameters.
In some embodiments, the electronic device may determine the refresh frequency of the screen according to the actual usage data of the screen during the shooting process. And obtaining the current used refreshing frequency of the screen.
The actual usage data of the screen is used to determine the refresh frequency currently used by the screen. The actual usage data of the screen may directly include a refresh frequency currently used by the screen, or the actual usage data of the screen may include information for determining the refresh frequency currently used by the screen.
In some embodiments, the screen is provided with refresh modes, and the frequency acquisition mode used in different refresh modes is different, and the frequency acquisition mode defines the mode of acquiring the refresh frequency used by the screen.
Based on this, the refresh frequency currently used by the screen can be obtained by: the method comprises a first step of determining a refresh mode used by a screen, wherein the refresh mode comprises the following steps: refreshing according to a fixed refreshing frequency, or refreshing according to a dynamically changing refreshing frequency; and a second step of acquiring the refresh frequency according to a frequency acquisition mode of the refresh mode suitable for the screen.
For the first step, determining the refresh mode used by the screen can be understood as: the refresh mode currently used by the screen is determined.
There are various ways to determine the refresh mode used by the screen. For example, the configuration parameters of the screen include a refresh mode used by the screen, and the refresh mode used by the screen may be determined according to the configuration parameters of the screen.
For another example, the refresh frequency of the screen used within a period of time is recorded, the electronic device determines whether the refresh frequency of the screen used changes according to the record, if not, the refresh mode of the screen used is determined to be refreshing according to the fixed refresh frequency, and if so, the refresh mode of the screen used is determined to be refreshing according to the dynamically changing refresh frequency.
For the second step, for example, when the refresh mode used by the screen includes refreshing at a dynamically changing refresh frequency, the frequency acquisition manner suitable for the refresh mode may include: and determining the refreshing frequency of the screen according to the configuration parameters of the screen, or determining the refreshing frequency of the screen according to the actual use data of the screen.
For another example, when the refresh mode used by the screen includes refreshing according to the dynamically changing refresh frequency, the frequency acquisition mode suitable for the refresh mode may include: and determining the refreshing frequency of the screen according to the actual use data of the screen.
In some embodiments, the electronic device may perform an operation of acquiring a refresh frequency currently used by the screen when a preset condition is satisfied.
Examples are as follows: the case of the first example: and responding to the condition that the camera module outputs the image, and acquiring the refreshing frequency of the screen.
The camera module may include an image sensor, and an image may be output through the image sensor of the camera module.
The camera module can output images according to the image output frame rate. For example, satisfying the condition that the camera module outputs the image can be understood as: the condition that the camera module determines the image to be output according to the currently used image output frame rate is met.
In this example case, the electronic device obtains the refresh frequency currently used by the screen before outputting the image.
The case of the second example: and acquiring the refreshing frequency of the screen use in response to the condition of the time interval being met.
The electronic equipment sets a time interval condition, and the time interval condition defines that: the electronic device is adjacent to the interval time between two times of executing the refresh frequency acquisition operation.
After the electronic equipment executes the operation of acquiring the refresh frequency of the screen, if the interval time defined by the time interval condition passes, the electronic equipment executes the operation of acquiring the refresh frequency of the screen again.
The length of the interval time defined by the time interval condition can be set according to needs and experience, and the embodiment is not limited herein.
In this exemplary case, the electronic device performs an operation of acquiring the refresh frequency currently used by the screen at intervals.
Case of the third example: and responding to the condition that the frame number interval is met, and acquiring the refreshing frequency of the screen.
Frame number interval condition defines: the number of frames of the image output by the camera module between two consecutive times of performing the refresh frequency acquisition operation by the electronic device.
After the operation of acquiring the refresh frequency of the screen is executed, if the frame number of the image output by the camera module reaches the frame number limited by the frame number interval condition, the operation of acquiring the refresh frequency of the screen is executed again.
The length of the interval time defined by the time interval condition can be set according to needs and experience, and the embodiment is not limited herein.
In step 102, a target image output frame rate used by the camera module is determined according to a currently used refresh frequency of the screen, where the currently used refresh frequency of the screen is an integer multiple of the target image output frame rate.
For example, the refresh frequency currently used by the screen is 60Hz, and the target image output frame rate used by the camera module is determined to be 30fps or 60 fps.
For another example, the current refresh frequency of the screen is 60.6Hz, and the target image output frame rate used by the camera module is determined to be 30.3fps or 60.6 fps.
In step 103, the camera module is controlled to output an image according to the target image output frame rate.
In some embodiments, the current refresh frequency of the screen is an integral multiple of the target image output frame rate used by the camera module, and the camera module is controlled to output images according to the target image output frame rate, so that the display time of each frame of image output by the camera module on the screen is the same, the fluency of image display is improved, and the viewing experience of a user is improved.
For example, fig. 2 is a timing diagram illustrating a screen using a refresh rate of 60.6Hz, a camera module using a target image output frame rate of 30.3fps, and a screen using a refresh rate 2 times the target image output frame rate of the camera module according to an exemplary embodiment, referring to fig. 2. For each frame of image output by the camera module, the time for displaying each frame of image on the screen is all
Figure BDA0002997919960000091
In some embodiments, the refresh frequency currently used by the screen is not an integer multiple of the image output frame rate used by the camera module, which may cause the screen display time of all images output by the camera module to be not completely the same, resulting in unsmooth image display.
For example, fig. 3 is another timing diagram according to an exemplary embodiment, referring to fig. 3, the refresh frequency used by the screen is 60.6Hz, the image output frame rate used by the camera module is 30fps, and the refresh frequency used by the screen is not an integer multiple of the image output frame rate used by the camera module.
For the first frame image output by the camera module, the time for displaying the first frame image on the screen is
Figure BDA0002997919960000092
The screen display time of each frame of image output by the camera module is at least ensured
Figure BDA0002997919960000093
On the premise that each frame of image from the second frame image to the (N-1) th frame image output by the camera module is displayed on the screen for the time of
Figure BDA0002997919960000094
For the Nth frame image output by the camera module, the time for displaying the Nth frame image on the screen is
Figure BDA0002997919960000095
According to the method, the image output by the camera module is displayed.
For the Nth frame image and the (N-1) th frame image output by the camera module, the time for displaying the Nth frame image on the screen is longer than the time for displaying the (N-1) th frame image on the screen, so that the image display is not smooth, and the feeling of picture blocking is brought to a user.
Comparing fig. 2 and fig. 3, it can be seen that, when the refresh frequency used by the screen is not an integral multiple of the image output frame rate used by the camera module, the image output frame rate used by the camera module is adjusted by using the method provided by the embodiment of the present disclosure, so that each frame of image output by the camera module has the same screen display time, and the fluency of image display is ensured.
In some embodiments, the electronic device may further detect whether the refresh frequency used by the screen is updated, and if the refresh frequency used by the screen is updated, determine a new image output frame rate used by the camera module according to the updated refresh frequency, and control the camera module to output an image according to the new image output frame rate.
The electronic device can compare the two detected refresh frequencies used by the screen, and if the detected refresh frequency is different from the last detected refresh frequency, the refresh frequency used by the screen is determined to be updated. Or when the screen updates the refresh frequency, sending an update message to enable a processor in the electronic equipment to determine that the refresh frequency used by the screen is updated according to the update message.
There are many occasions when the electronic device detects whether the refresh frequency used by the screen is updated. For example, the electronic device may detect whether the refresh frequency used by the screen is updated at preset time intervals. For another example, the electronic device may detect whether the refresh frequency of the screen usage is updated according to a user instruction.
And the electronic equipment determines a new image output frame rate used by the camera module according to the updated refreshing frequency according to the principle that the refreshing frequency used by the screen is integral multiple of the image output frame rate used by the camera module.
In this embodiment, the electronic device has a function of dynamically detecting whether the refresh frequency used by the screen is updated, and dynamically adjusting the image output frame rate used by the camera module according to the updated refresh frequency, so as to ensure smooth display of multiple frames of images continuously output by the camera module.
While, for purposes of simplicity of explanation, the foregoing method embodiments have been described as a series of acts or combination of acts, it will be appreciated by those skilled in the art that the present disclosure is not limited by the order of acts, as some steps may, in accordance with the present disclosure, occur in other orders and concurrently.
Further, those skilled in the art should also appreciate that the embodiments described in the specification are exemplary embodiments and that acts and modules referred to are not necessarily required by the disclosure.
Corresponding to the embodiment of the application function implementation method, the disclosure also provides an application function implementation device and a corresponding embodiment.
Fig. 4 is a block diagram illustrating a photographing apparatus according to an exemplary embodiment, and the photographing apparatus illustrated in fig. 4 may be applied to an electronic device, and referring to fig. 4, the apparatus may include:
a refresh frequency acquisition module 21 configured to acquire a refresh frequency currently used by a screen during a shooting process;
a first frame rate determining module 22 configured to determine a target image output frame rate used by the camera module according to the refresh frequency, where the refresh frequency is an integer multiple of the target image output frame rate;
a first camera module control module 23 configured to control the camera module to output an image at the target image output frame rate.
In an alternative embodiment, on the basis of the shooting apparatus shown in fig. 4, the refresh frequency obtaining module 21 may include any one of the following:
a first frequency determination sub-module configured to determine the refresh frequency according to a configuration parameter of the screen;
a second frequency determination submodule configured to determine the refresh frequency based on actual usage data of the screen.
In an alternative embodiment, on the basis of the shooting device shown in fig. 4, the refresh frequency obtaining module 21 may include:
a mode determination submodule configured to determine a refresh mode used by the screen, the refresh mode including: refreshing according to a fixed refreshing frequency, or refreshing according to a dynamically changing refreshing frequency;
a refresh frequency determination submodule configured to acquire the refresh frequency in a frequency acquisition manner suitable for the refresh mode.
In an alternative embodiment, on the basis of the shooting apparatus shown in fig. 4, the refresh frequency obtaining module 21 may include any one of the following:
a first frequency acquisition sub-module configured to acquire the refresh frequency in response to a condition that the camera module outputs an image being satisfied;
a second frequency acquisition submodule configured to acquire the refresh frequency in response to satisfaction of a time interval condition defining: the electronic equipment executes the interval time of the refresh frequency acquisition operation twice adjacently;
a third frequency acquisition submodule configured to acquire the refresh frequency in response to satisfaction of a frame number interval condition, the frame number interval condition defining: and the number of frames of the image output by the camera module is obtained between two adjacent times of executing the refreshing frequency acquisition operation by the electronic equipment.
In an optional embodiment, on the basis of the photographing apparatus shown in fig. 4, the apparatus may further include:
a frequency detection module configured to detect that a refresh frequency used by the screen is updated;
a second frame rate determining module configured to determine a new image output frame rate used by the camera module according to the updated refresh frequency;
a second camera module control module configured to control the camera module to output an image at the new image output frame rate.
Fig. 5 is a schematic diagram illustrating a structure of an electronic device 1600 according to an example embodiment. For example, the electronic device 1600 may be a user device, which may be embodied as a mobile phone, a computer, a digital broadcast, a messaging device, a gaming console, a tablet device, a medical device, a fitness device, a personal digital assistant, a wearable device such as a smart watch, smart glasses, a smart bracelet, a smart running shoe, and the like.
Referring to fig. 5, electronic device 1600 may include one or more of the following components: processing component 1602, memory 1604, power component 1606, multimedia component 1608, audio component 1610, input/output (I/O) interface 1612, sensor component 1614, and communications component 1616.
The processing component 1602 generally controls overall operation of the electronic device 1600, such as operations associated with display, telephone calls, data communications, camera operations, and recording operations. The processing component 1602 may include one or more processors 1620 to execute instructions to perform all or part of the steps of the methods described above. Further, the processing component 1602 can include one or more modules that facilitate interaction between the processing component 1602 and other components. For example, the processing component 1602 can include a multimedia module to facilitate interaction between the multimedia component 1608 and the processing component 1602.
The memory 1604 is configured to store various types of data to support operation at the device 1600. Examples of such data include instructions for any application or method operating on the electronic device 1600, contact data, phonebook data, messages, pictures, videos, and so forth. The memory 1604 may be implemented by any type of volatile or non-volatile memory device or combination thereof, such as Static Random Access Memory (SRAM), electrically erasable programmable read-only memory (EEPROM), erasable programmable read-only memory (EPROM), programmable read-only memory (PROM), read-only memory (ROM), magnetic memory, flash memory, magnetic or optical disk.
The power supply component 1606 provides power to the various components of the electronic device 1600. The power components 1606 may include a power management system, one or more power sources, and other components associated with generating, managing, and distributing power for the electronic device 1600.
The multimedia component 1608 includes a screen that provides an output interface between the electronic device 1600 and a user as described above. 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 the touch or slide action but also detect the duration and pressure associated with the touch or slide operation. In some embodiments, the multimedia component 1608 comprises a front-facing camera and/or a rear-facing camera. The front-facing camera and/or the back-facing camera may receive external multimedia data when device 1600 is in an operational mode, such as an adjustment 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 1610 is configured to output and/or input an audio signal. For example, the audio component 1610 includes a Microphone (MIC) configured to receive external audio signals when the electronic device 1600 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 1604 or transmitted via the communications component 1616. In some embodiments, audio component 1610 further includes a speaker for outputting audio signals.
The I/O interface 1612 provides an interface between the processing component 1602 and peripheral interface modules, such as keyboards, click wheels, buttons, and the like. These buttons may include, but are not limited to: a home button, a volume button, a start button, and a lock button.
Sensor assembly 1614 includes one or more sensors for providing various aspects of status assessment for electronic device 1600. For example, sensor assembly 1614 may detect an open/closed state of device 1600, the relative positioning of components, such as a display and keypad of device 1600, a change in position of device 1600 or a component of device 1600, the presence or absence of user contact with device 1600, orientation or acceleration/deceleration of device 1600, and a change in temperature of device 1600. The sensor assembly 1614 may include a proximity sensor configured to detect the presence of a nearby object without any physical contact. The sensor assembly 1614 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 1614 may also include an acceleration sensor, a gyroscope sensor, a magnetic sensor, a pressure sensor, or a temperature sensor.
The communications component 1616 is configured to facilitate communications between the electronic device 1600 and other devices in a wired or wireless manner. The electronic device 1600 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 1616 receives broadcast signals or broadcast related information from an external broadcast management system via a broadcast channel. In an exemplary embodiment, the aforementioned communication component 1616 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 electronic device 1600 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, there is also provided a non-transitory computer-readable storage medium, such as the memory 1604 including instructions that, when executed by the processor 1620 of the electronic device 1600, enable the electronic device 1600 to perform a shooting method, the method comprising: in the shooting process, obtaining the current refreshing frequency of a screen; determining a target image output frame rate used by a camera module according to the refreshing frequency, wherein the refreshing frequency is an integral multiple of the target image output frame rate; and controlling the camera module to output images according to the target image output frame rate.
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.
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 disclosure 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 (12)

1. A shooting method is applied to electronic equipment and comprises the following steps:
in the shooting process, obtaining the current refreshing frequency of a screen;
determining a target image output frame rate used by a camera module according to the refreshing frequency, wherein the refreshing frequency is an integral multiple of the target image output frame rate;
and controlling the camera module to output images according to the target image output frame rate.
2. The method according to claim 1, wherein the obtaining of the refresh frequency currently used by the screen comprises any one of:
determining the refreshing frequency according to the configuration parameters of the screen;
and determining the refreshing frequency according to the actual use data of the screen.
3. The method of claim 1, wherein obtaining a refresh frequency currently used by a screen comprises:
determining a refresh mode used by the screen, the refresh mode comprising: refreshing according to a fixed refreshing frequency, or refreshing according to a dynamically changing refreshing frequency;
and acquiring the refresh frequency according to a frequency acquisition mode suitable for the refresh mode.
4. The method according to claim 1, wherein the obtaining of the current refresh frequency used by the screen comprises any one of:
responding to the condition that the camera module outputs images, and acquiring the refreshing frequency;
obtaining the refresh frequency in response to a time interval condition being satisfied, the time interval condition defining: the electronic equipment executes the interval time of the refresh frequency acquisition operation twice adjacently;
acquiring the refresh frequency in response to satisfying a frame number interval condition, the frame number interval condition defining: and the number of frames of the image output by the camera module is obtained between two adjacent times of executing the refreshing frequency acquisition operation by the electronic equipment.
5. The method of claim 1, further comprising:
detecting that the refresh frequency used by the screen is updated;
determining a new image output frame rate used by the camera module according to the updated refresh frequency;
and controlling the camera module to output images according to the new image output frame rate.
6. A photographing apparatus applied to an electronic device, the apparatus comprising:
the refreshing frequency obtaining module is configured to obtain the refreshing frequency currently used by the screen in the shooting process;
a first frame rate determining module configured to determine a target image output frame rate used by the camera module according to the refresh frequency, where the refresh frequency is an integer multiple of the target image output frame rate;
a first camera module control module configured to control the camera module to output an image at the target image output frame rate.
7. The apparatus of claim 6, wherein the refresh frequency obtaining module comprises any one of:
a first frequency determination submodule configured to determine the refresh frequency according to a configuration parameter of the screen;
a second frequency determination sub-module configured to determine the refresh frequency according to actual usage data of the screen.
8. The apparatus of claim 6, wherein the refresh frequency obtaining module comprises:
a mode determination submodule configured to determine a refresh mode used by the screen, the refresh mode including: refreshing according to a fixed refreshing frequency, or refreshing according to a dynamically changing refreshing frequency;
a refresh frequency determination submodule configured to acquire the refresh frequency in a frequency acquisition manner suitable for the refresh mode.
9. The apparatus of claim 6, wherein the refresh frequency obtaining module comprises any one of:
a first frequency acquisition sub-module configured to acquire the refresh frequency in response to a condition that the camera module outputs an image being satisfied;
a second frequency acquisition sub-module configured to acquire the refresh frequency in response to a time interval condition being satisfied, the time interval condition defining: the interval time of the electronic equipment for executing the refresh frequency acquisition operation twice is adjacent;
a third frequency acquisition submodule configured to acquire the refresh frequency in response to satisfaction of a frame number interval condition, the frame number interval condition defining: and acquiring the frame number of the image output by the camera module between two adjacent times of executing the refreshing frequency acquisition operation by the electronic equipment.
10. The apparatus of claim 6, further comprising:
a frequency detection module configured to detect that a refresh frequency used by the screen is updated;
a second frame rate determining module configured to determine a new image output frame rate used by the camera module according to the updated refresh frequency;
and the second camera module control module is configured to control the camera module to output images according to the new image output frame rate.
11. A non-transitory computer readable storage medium having stored thereon a computer program, wherein the computer program, when executed by a processor, implements the method of any of claims 1-5.
12. An electronic device, comprising:
a processor;
a memory for storing the processor-executable instructions;
wherein the processor is configured to execute the instructions to implement the method of any one of claims 1-5.
CN202110336540.7A 2021-03-29 2021-03-29 Shooting method and device Pending CN115134516A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202110336540.7A CN115134516A (en) 2021-03-29 2021-03-29 Shooting method and device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202110336540.7A CN115134516A (en) 2021-03-29 2021-03-29 Shooting method and device

Publications (1)

Publication Number Publication Date
CN115134516A true CN115134516A (en) 2022-09-30

Family

ID=83375676

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202110336540.7A Pending CN115134516A (en) 2021-03-29 2021-03-29 Shooting method and device

Country Status (1)

Country Link
CN (1) CN115134516A (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN116347224A (en) * 2022-10-31 2023-06-27 荣耀终端有限公司 Shooting frame rate control method, electronic device, chip system and readable storage medium

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN116347224A (en) * 2022-10-31 2023-06-27 荣耀终端有限公司 Shooting frame rate control method, electronic device, chip system and readable storage medium
CN116347224B (en) * 2022-10-31 2023-11-21 荣耀终端有限公司 Shooting frame rate control method, electronic device, chip system and readable storage medium

Similar Documents

Publication Publication Date Title
CN110662095B (en) Screen projection processing method and device, terminal and storage medium
CN106506448B (en) Live broadcast display method and device and terminal
EP3182716A1 (en) Method and device for video display
CN106775235B (en) Screen wallpaper display method and device
CN107797662B (en) Viewing angle control method and device and electronic equipment
CN115719586A (en) Screen refresh rate adjusting method and device, electronic equipment and storage medium
CN111614910B (en) File generation method and device, electronic equipment and storage medium
CN111340690B (en) Image processing method, device, electronic equipment and storage medium
EP3816778A1 (en) Punch-hole screen display method and apparatus
CN115134516A (en) Shooting method and device
CN108650412B (en) Display method, display device and computer readable storage medium
CN106354464B (en) Information display method and device
CN112333384B (en) Image preview method, image preview device and storage medium
CN106775541B (en) Electronic device and screen display method
CN110069310B (en) Method and device for switching desktop wallpaper and storage medium
CN115248711A (en) Method and device for adjusting refresh rate of display screen, terminal and storage medium
CN108874482B (en) Image processing method and device
CN108769780B (en) Advertisement playing method and device
CN112019680A (en) Screen brightness adjusting method and device
CN111383568A (en) Display control method and apparatus, electronic device, and computer-readable storage medium
CN113551768B (en) Method and device for determining ambient brightness
CN111698415B (en) Image acquisition control method and image acquisition control device
CN115273763B (en) Picture composition frame rate adjustment method and device, display equipment and storage medium
CN106910472B (en) Control method and device for adjusting backlight
CN111462284B (en) Animation generation method, animation generation device and electronic equipment

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