[go: up one dir, main page]

WO2019129092A1 - Frame rate-lowered photographing method, mobile terminal and storage medium - Google Patents

Frame rate-lowered photographing method, mobile terminal and storage medium Download PDF

Info

Publication number
WO2019129092A1
WO2019129092A1 PCT/CN2018/123996 CN2018123996W WO2019129092A1 WO 2019129092 A1 WO2019129092 A1 WO 2019129092A1 CN 2018123996 W CN2018123996 W CN 2018123996W WO 2019129092 A1 WO2019129092 A1 WO 2019129092A1
Authority
WO
WIPO (PCT)
Prior art keywords
exposure
frame
current
environment
data
Prior art date
Application number
PCT/CN2018/123996
Other languages
French (fr)
Chinese (zh)
Inventor
史豪君
Original Assignee
捷开通讯(深圳)有限公司
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 捷开通讯(深圳)有限公司 filed Critical 捷开通讯(深圳)有限公司
Publication of WO2019129092A1 publication Critical patent/WO2019129092A1/en

Links

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N23/00Cameras or camera modules comprising electronic image sensors; Control thereof
    • H04N23/70Circuitry for compensating brightness variation in the scene
    • H04N23/76Circuitry for compensating brightness variation in the scene by influencing the image signals
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N23/00Cameras or camera modules comprising electronic image sensors; Control thereof
    • H04N23/80Camera processing pipelines; Components thereof
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N23/00Cameras or camera modules comprising electronic image sensors; Control thereof
    • H04N23/95Computational photography systems, e.g. light-field imaging systems
    • H04N23/951Computational photography systems, e.g. light-field imaging systems by using two or more images to influence resolution, frame rate or aspect ratio

Definitions

  • the present invention relates to the field of mobile terminal technologies, and in particular, to a frame dropping rate photographing method, a mobile terminal, and a storage medium.
  • the Android operating system is an intelligent mobile terminal operating system launched by Google.
  • the camera application of mobile terminals has become more and more widespread; but in low light environment Especially in the night scene, due to the hardware limitations of the mobile terminal itself and the limitations of the lighting conditions of the environment, when the shooting is taken, there will be a phenomenon of poor picture sharpness and noise.
  • Embodiments of the present invention provide a frame dropping rate photographing method, a mobile terminal, and a storage medium, which can output a high-quality photo with an original camera by dynamically reducing a frame rate, and solve a poor photo definition in a low-light environment from a source. And the problem of more noise, improve the quality of photos, and is convenient for users.
  • an embodiment of the present invention provides a method for photographing a frame down rate, where the method for photographing a frame down rate includes:
  • the exposure parameter is modified according to a preset algorithm, and corresponding frame data is output according to the exposure parameter;
  • Frame data whose exposure time satisfies a predetermined value is selected, and an image is output through the selected frame data.
  • the method for photographing a frame down rate wherein the step of acquiring a preview frame rate of a current environment by a camera preview and collecting exposure information of each frame of data in real time includes the following steps:
  • the exposure information of each frame of data is collected in real time, and the exposure information includes an exposure time length, a sensitivity value, and an exposure stability flag.
  • the method for photographing a frame down rate wherein determining a predetermined value of the low light environment is:
  • the exposure time is greater than 1/17 second
  • the sensitivity value is greater than 1200 degrees
  • the preset frame rate is less than 15 frames
  • the sensitivity value is greater than 1200 degrees, and the preset frame rate is less than 15 frames, it is determined that the current photographing environment is a low light environment.
  • the method for photographing a frame down rate wherein when it is determined that the current photographing environment is a non-low light environment, the normal photographing mode is continued.
  • the method for photographing a frame down rate wherein, when it is determined that the current photographing environment is a low light environment with a predetermined value, the exposure parameter is modified according to a preset algorithm, and corresponding frame data is output according to the exposure parameter.
  • the steps include the following steps:
  • the camera takes a photo according to the modified exposure line number and exposure gain, and outputs frame data of the captured photo.
  • the frame down rate photographing method wherein the down frame factor, the modified number of exposure lines, and the modified exposure gain satisfy the following relationship:
  • the number of exposed exposure lines the current number of exposure lines * the frame down factor
  • Modified exposure gain current exposure gain / frame down factor
  • the frame down factor is a default value of 4.
  • the frame down factor is adjusted to the value of the current frame rate divided by 4, otherwise the frame down factor is the default value of 4.
  • the method for photographing a frame down rate wherein the step of selecting frame data whose exposure time satisfies a predetermined value and outputting an image through the selected frame data specifically includes the following steps:
  • the frame data When it is detected that the exposure time of the frame data satisfies a predetermined value, the frame data is selected, and an image is output.
  • the frame down rate photographing method wherein the predetermined value of the exposure time is 1/4 second.
  • an embodiment of the present invention provides a mobile terminal, including a processor, and a memory connected to the processor, where the memory stores a frame down rate photographing program, and the frame down rate photographing program is The processor is executed to implement the following steps:
  • the exposure parameter is modified according to a preset algorithm, and corresponding frame data is output according to the exposure parameter;
  • Frame data whose exposure time satisfies a predetermined value is selected, and an image is output through the selected frame data.
  • the mobile terminal wherein the step of acquiring a preview frame rate of a current environment by a camera preview and collecting exposure information of each frame of data in real time includes the following steps:
  • the exposure information of each frame of data is collected in real time, and the exposure information includes an exposure time length, a sensitivity value, and an exposure stability flag.
  • the step of modifying an exposure parameter according to a preset algorithm and outputting corresponding frame data according to the exposure parameter specifically including the following, when determining that the current photographing environment is a low-light environment with a predetermined value step:
  • the camera takes a photo according to the modified exposure line number and exposure gain, and outputs frame data of the captured photo.
  • the mobile terminal wherein the down frame factor, the modified number of exposure lines, and the modified exposure gain satisfy the following relationship:
  • the number of exposed exposure lines the current number of exposure lines * the frame down factor
  • Modified exposure gain current exposure gain / frame down factor
  • the frame down factor is a default value of 4.
  • the frame down factor is adjusted to the value of the current frame rate divided by 4, otherwise the frame down factor is the default value of 4.
  • the mobile terminal wherein the step of selecting frame data whose exposure time satisfies a predetermined value and outputting an image through the selected frame data specifically includes the following steps:
  • the frame data When it is detected that the exposure time of the frame data satisfies a predetermined value, the frame data is selected, and an image is output.
  • an embodiment of the present invention provides a storage medium, where the storage medium stores a frame down rate photographing program, and the frame down rate photographing program is used by the processor to implement the following steps:
  • the exposure parameter is modified according to a preset algorithm, and corresponding frame data is output according to the exposure parameter;
  • Frame data whose exposure time satisfies a predetermined value is selected, and an image is output through the selected frame data.
  • the storage medium wherein the step of acquiring a preview frame rate of a current environment by a camera preview and collecting exposure information of each frame of data in real time includes the following steps:
  • the exposure information of each frame of data is collected in real time, and the exposure information includes an exposure time length, a sensitivity value, and an exposure stability flag.
  • the storage medium wherein the predetermined value of the low light environment is determined as:
  • the exposure time is greater than 1/17 second
  • the sensitivity value is greater than 1200 degrees
  • the preset frame rate is less than 15 frames
  • the sensitivity value is greater than 1200 degrees, and the preset frame rate is less than 15 frames, it is determined that the current photographing environment is a low light environment.
  • the storage medium wherein when it is determined that the current photographing environment is a non-low light environment, the normal photographing mode is continued.
  • the storage medium wherein the step of modifying an exposure parameter according to a preset algorithm and outputting corresponding frame data according to the exposure parameter when the current photo environment is determined to be a low-light environment of a predetermined value, specifically includes the following step:
  • the camera takes a photo according to the modified exposure line number and exposure gain, and outputs frame data of the captured photo.
  • the storage medium wherein the down frame factor, the modified number of exposure lines, and the modified exposure gain satisfy the following relationship:
  • the number of exposed exposure lines the current number of exposure lines * the frame down factor
  • Modified exposure gain current exposure gain / frame down factor
  • the frame down factor is a default value of 4.
  • the frame down factor is adjusted to the value of the current frame rate divided by 4, otherwise the frame down factor is the default value of 4.
  • the storage medium wherein the step of selecting the frame data whose exposure time satisfies a predetermined value and outputting the image through the selected frame data specifically includes the following steps:
  • the frame data When it is detected that the exposure time of the frame data satisfies a predetermined value, the frame data is selected, and an image is output.
  • the invention provides a frame dropping rate photographing method, a mobile terminal and a storage medium, the method comprising: obtaining a preview frame rate of a current environment through a camera preview, and collecting exposure information of each frame data in real time; according to the exposure information And a preview frame rate to determine whether the current photographing environment is a low-light environment of a predetermined value; when it is determined that the current photographing environment is a low-light environment with a predetermined value, the exposure parameter is modified according to a preset algorithm, and the corresponding frame is output according to the exposure parameter.
  • Data frame data whose exposure time satisfies a predetermined value is selected, and an image is output through the selected frame data.
  • FIG. 1 is a flow chart of a first preferred embodiment of a method for photographing a frame down rate provided by the present invention.
  • FIG. 2 is a functional block diagram of a preferred embodiment of a mobile terminal provided by the present invention.
  • FIG. 3 is a schematic structural diagram of a mobile terminal according to an embodiment of the present invention.
  • FIG. 1 is a flowchart of a first preferred embodiment of a method for photographing a frame down rate according to an embodiment of the present invention. As shown in FIG. 1 , a method for photographing a frame down rate, comprising the following steps:
  • step S100 the preview frame rate of the current environment is obtained through camera preview, and the exposure information of each frame of data is collected in real time.
  • the data of each frame is fed back by the metadata, and the feedback information includes the required exposure information; when the feedback information is stable, the mobile terminal uses the exposure information.
  • the storage information includes an exposure time length, a sensitivity value, and an exposure stability flag; when the exposure information is unstable, the exposure information is cleared; meanwhile, when the exposure information is acquired, the frame rate information needs to be collected and exposed. Information and frame rate information is stored to the corresponding data packet.
  • the exposure information includes:
  • Exposure time the exposure time of the current frame data
  • Sensitivity value the sensitivity value of the current frame data
  • Exposure stability mark indicates that the exposure has entered a steady state, all data has no deviation, and the camera has correctly detected the current brightness value.
  • step S100 specifically includes the following steps:
  • S102 Collect exposure information of each frame of data in real time, and the exposure information includes an exposure duration, a sensitivity value, and an exposure stability flag.
  • Step S200 Determine, according to the exposure information and the preview frame rate, whether the current photographing environment is a low-light environment with a predetermined value.
  • the photographing thread of the mobile terminal when receiving the photographing request of the user, it is necessary to obtain the exposure duration, the sensitivity value, the exposure stability flag, and the current frame rate from the stored exposure information; When the exposure is stable, it can be further judged whether the requirements of low light environment are met.
  • determining, according to the exposure information and the preview frame rate, whether the current photographing environment is a low-light environment with a predetermined value, and determining a predetermined value of the low-light environment is:
  • the exposure time is greater than 1/17 second
  • the sensitivity value is greater than 1200 degrees
  • the preset frame rate is less than 15 frames
  • the camera is controlled to enter the down frame. mode.
  • the current environment cannot be determined to be a low-light environment, that is, the current environment is a non-low-light environment.
  • the camera is controlled to continue the normal photographing mode.
  • Step S300 When it is determined that the current photographing environment is a low-light environment with a predetermined value, the exposure parameter is modified according to a preset algorithm, and corresponding frame data is output according to the exposure parameter.
  • the main task of the down frame mode in a low light environment is to calculate a suitable exposure parameter and apply it to the camera, that is, a method of modifying the exposure information, so that the camera extends the exposure time, and at the same time, in order to ensure The brightness value of the exposure does not change, and the gain of the exposure needs to be adjusted to achieve the exposure balance.
  • the exposure information is the exposure duration, the number of exposure lines, and the exposure gain of the current frame.
  • the frame down factor is the amplitude value of the frame down, which has a default value (the default value is 4), but in actual shooting, the frame down factor needs to be recalculated according to the current exposure, and the purpose is to reduce the frame.
  • the amplitude is controlled within a certain range to achieve a balance between shooting and image quality.
  • the calculation method is as follows: the current exposure time is down-framed to ensure that the exposure time is within 1/4 second. When the current exposure time exceeds 1/4 second, adjust the frame down factor to ensure that the final exposure time is 1/4 second; when the current exposure time does not exceed 1/4 second, the default frame down factor is used; That is, first set a default frame down factor value equal to "4", if the current frame rate is divided by the default frame down factor, the value obtained is less than 4, then the frame down factor is adjusted to the current frame rate divided by 4; otherwise Just use the default frame down factor.
  • the number of exposure lines and the exposure gain are recalculated by the calculation result of the frame down factor, and the number of exposure lines and the exposure gain are calculated as follows:
  • the number of exposed exposure lines the current number of exposure lines * the frame down factor
  • Modified exposure gain current exposure gain / frame down factor
  • the frame down factor is a default value of 4.
  • the frame down factor is adjusted to the value of the current frame rate divided by 4, otherwise the frame down factor is the default value of 4.
  • the newly calculated exposure line number and exposure gain are applied to the camera by parameter setting (generally written in the corresponding register).
  • step S300 includes the following steps:
  • the camera takes a photo according to the modified exposure line number and the exposure gain, and outputs frame data of the captured photo.
  • step S400 frame data whose exposure time satisfies a predetermined value is selected, and an image is output through the selected frame data.
  • the purpose of selecting the captured data frame is to select the frame data generated by the down frame mode, and in combination with the actual situation of the Android system, the image data from the camera is buffered into a fixed length team.
  • the frame data output will be directly obtained from this queue. This is a pair of captured images; in low-light shooting, the exposure parameters are modified and applied to the camera, and then the camera applies these modified exposure parameters. Execution of the exposure, and finally buffer the image data into the queue; this whole process takes a certain amount of time, and during this period, there will be frame data after the application of the new and old exposure parameters in the queue, so it is necessary to identify the frame data and select Valid frame data.
  • the data frame queue is also emptied once to ensure that the data frames acquired from the queue are the same; when the frame data is selected, the corresponding selection
  • the program obtains the frame data from the head of the frame data queue, and then detects the exposure duration of the frame data. If the exposure duration satisfies the expected value, it indicates that the frame data is already subjected to the frame down processing, that is, it is considered to be The valid frame is then output as the captured image; otherwise, the next frame of data is retrieved from the frame data queue, and this operation is repeated until a valid frame is obtained.
  • step S400 includes the following steps:
  • S401 Acquire all frame data of the shooting, and detect whether an exposure time of each frame data meets a predetermined value
  • the program may be stored in a computer readable storage medium, and the program may include the flow of the method embodiments as described above when executed.
  • the storage medium described therein may be a memory, a magnetic disk, an optical disk, or the like.
  • the embodiment of the present invention further provides a mobile terminal.
  • the mobile terminal in the embodiment of the present invention may be a mobile phone (or a tablet computer), wherein the mobile terminal in this embodiment includes a processor 10, and a The memory 20 connected to the processor 10;
  • the memory 20 stores a frame down rate photographing program for implementing the frame down rate photographing method when the frame down rate photographing program is executed by the processor 10; as described above.
  • a storage medium wherein the storage medium stores a frame down rate photographing program, and the frame down rate photographing program is used by the processor 10 to implement the down frame rate photographing method; specifically as described above.
  • FIG. 3 is a block diagram showing a specific structure of a mobile terminal according to an embodiment of the present invention.
  • the mobile terminal can be used to implement the frame down rate photographing method provided in the foregoing embodiment.
  • the mobile terminal 1200 can be a smartphone or a tablet.
  • the mobile terminal 1200 may include an RF (Radio Frequency) circuit 110, a memory 120 including one or more (only one shown) computer-readable storage medium, an input unit 130, and a display unit. 140, sensor 150, audio circuit 160, transmission module 170, including processor 180 having one or more processing cores (only one shown) and power supply 190 and the like.
  • RF Radio Frequency
  • FIG. 3 does not constitute a limitation of the mobile terminal 1200, and may include more or less components than those illustrated, or combine some components or different components. Arrangement. among them:
  • the RF circuit 110 is configured to receive and transmit electromagnetic waves, and realize mutual conversion between electromagnetic waves and electrical signals, thereby communicating with a communication network or other devices.
  • the RF circuit 110 may include various existing circuit elements for performing these functions, such as an antenna, a radio frequency transceiver, a digital signal processor, an encryption/decryption chip, a Subscriber Identity Module (SIM) card, a memory, and the like.
  • SIM Subscriber Identity Module
  • the RF circuit 110 can communicate with various networks such as the Internet, an intranet, a wireless network, or communicate with other devices over a wireless network.
  • the wireless network described above may include a cellular telephone network, a wireless local area network, or a metropolitan area network.
  • the above wireless networks may use various communication standards, protocols and technologies, including but not limited to global mobile communication systems (Global System for Mobile Communication, GSM), Enhanced Mobile Communication Technology (Enhanced Data GSM Environment, EDGE), Wideband Code Division Multiple Access (Wideband Code) Division Multiple Access, WCDMA), Code Division Multiple Access (Code Division) Access, CDMA), Time Division Multiple Access (TDMA), Wireless Fidelity (Wireless Fidelity, Wi-Fi) (such as the Institute of Electrical and Electronics Engineers Standard IEEE 802.11a, IEEE 802.11b, IEEE 802.11g and / or IEEE 802.11n), VoIP (Voice) Over Internet Protocol, VoIP), Worldwide Interoperability for Microwave Access (Worldwide Interoperability for Microwave Access, Wi-Max, other protocols for mail, instant messaging, and short messages, as well as any other suitable communication protocol, may even include protocols that are not currently being developed.
  • GSM Global System for Mobile Communication
  • EDGE Enhanced Mobile Communication Technology
  • WCDMA Wideband Code Division Multiple Access
  • CDMA Code Division Multiple
  • the memory 120 can be used to store software programs and modules, such as program instructions/modules corresponding to the frame down rate photographing method in the above embodiment, and the processor 180 executes various functional applications by running software programs and modules stored in the memory 120. Data processing, that is, the function of realizing frame down rate shooting.
  • Memory 120 may include high speed random access memory, and may also include non-volatile memory, such as one or more magnetic storage devices, flash memory, or other non-volatile solid state memory.
  • memory 120 can further include memory remotely located relative to processor 180, which can be connected to mobile terminal 1200 via a network. Examples of such networks include, but are not limited to, the Internet, intranets, local area networks, mobile communication networks, and combinations thereof.
  • the input unit 130 can be configured to receive input numeric or character information and to generate keyboard, mouse, joystick, optical or trackball signal inputs related to user settings and function controls.
  • input unit 130 can include touch-sensitive surface 131 as well as other input devices 132.
  • Touch-sensitive surface 131 also referred to as a touch display or trackpad, can collect touch operations on or near the user (such as a user using a finger, stylus, etc., on any suitable object or accessory on touch-sensitive surface 131 or The operation near the touch-sensitive surface 131) and driving the corresponding connecting device according to a preset program.
  • the touch-sensitive surface 131 can include two portions of a touch detection device and a touch controller.
  • the touch detection device detects the touch orientation of the user, and detects a signal brought by the touch operation, and transmits the signal to the touch controller; the touch controller receives the touch information from the touch detection device, converts the touch information into contact coordinates, and sends the touch information.
  • the processor 180 is provided and can receive commands from the processor 180 and execute them.
  • the touch-sensitive surface 131 can be implemented in various types such as resistive, capacitive, infrared, and surface acoustic waves.
  • the input unit 130 can also include other input devices 132.
  • other input devices 132 may include, but are not limited to, one or more of a physical keyboard, function keys (such as volume control buttons, switch buttons, etc.), trackballs, mice, joysticks, and the like.
  • the display unit 140 can be used to display information input by the user or information provided to the user and various graphical user interfaces of the mobile terminal 1200, which can be composed of graphics, text, icons, video, and any combination thereof.
  • the display unit 140 may include a display panel 141, and optionally, an LCD (Liquid Crystal) Display, LCD), OLED (Organic
  • the display panel 141 is configured in the form of a Light-Emitting Diode or the like.
  • the touch-sensitive surface 131 may cover the display panel 141, and when the touch-sensitive surface 131 detects a touch operation thereon or nearby, it is transmitted to the processor 180 to determine the type of the touch event, and then the processor 180 according to the touch event The type provides a corresponding visual output on display panel 141.
  • touch-sensitive surface 131 and display panel 141 are implemented as two separate components to implement input and output functions, in some embodiments, touch-sensitive surface 131 can be integrated with display panel 141 for input. And output function.
  • Mobile terminal 1200 may also include at least one type of sensor 150, such as a light sensor, motion sensor, and other sensors.
  • the light sensor may include an ambient light sensor and a proximity sensor, wherein the ambient light sensor may adjust the brightness of the display panel 141 according to the brightness of the ambient light, and the proximity sensor may close the display panel 141 when the mobile terminal 1200 moves to the ear. And / or backlight.
  • the gravity acceleration sensor can detect the magnitude of acceleration in all directions (usually three axes). When it is stationary, it can detect the magnitude and direction of gravity.
  • the mobile terminal 1200 can also be configured with gyroscopes, barometers, hygrometers, thermometers, infrared sensors and other sensors, here No longer.
  • the audio circuit 160, the speaker 161, and the microphone 162 can provide an audio interface between the user and the mobile terminal 1200.
  • the audio circuit 160 can transmit the converted electrical data of the received audio data to the speaker 161 for conversion to the sound signal output by the speaker 161; on the other hand, the microphone 162 converts the collected sound signal into an electrical signal by the audio circuit 160. After receiving, it is converted into audio data, and then processed by the audio data output processor 180, transmitted to the mobile terminal 110 via the RF circuit 110, or outputted to the memory 120 for further processing.
  • the audio circuit 160 may also include an earbud jack to provide communication of the peripheral earphones with the mobile terminal 1200.
  • the mobile terminal 1200 can help the user to send and receive emails, browse web pages, access streaming media, etc. through the transmission module 170 (eg, Wi-Fi module), which provides wireless broadband Internet access to the user.
  • the transmission module 170 eg, Wi-Fi module
  • FIG. 3 shows the transmission module 170, it can be understood that it does not belong to the essential configuration of the mobile terminal 1200, and may be omitted as needed within the scope of not changing the essence of the invention.
  • the processor 180 is a control center of the mobile terminal 1200 that connects various portions of the entire handset with various interfaces and lines, by running or executing software programs and/or modules stored in the memory 120, and recalling data stored in the memory 120.
  • the various functions and processing data of the mobile terminal 1200 are executed to perform overall monitoring of the mobile phone.
  • the processor 180 may include one or more processing cores; in some embodiments, the processor 180 may integrate an application processor and a modem processor, wherein the application processor mainly processes an operating system, a user interface, and For applications, etc., the modem processor primarily handles wireless communications. It can be understood that the above modem processor may not be integrated into the processor 180.
  • the mobile terminal 1200 also includes a power source 190 (such as a battery) that powers the various components.
  • the power source can be logically coupled to the processor 180 through a power management system to manage charging, discharging, and power consumption through the power management system. Management and other functions.
  • Power supply 190 may also include any one or more of a DC or AC power source, a recharging system, a power failure detection circuit, a power converter or inverter, a power status indicator, and the like.
  • the mobile terminal 1200 may further include a camera (such as a front camera, a rear camera), a Bluetooth module, and the like, and details are not described herein.
  • the display unit of the mobile terminal is a touch screen display
  • the mobile terminal further includes a memory, and one or more programs, wherein one or more programs are stored in the memory and configured to be one or one
  • the above processor executes one or more programs that include instructions for performing the following operations:
  • the exposure parameter is modified according to a preset algorithm, and corresponding frame data is output according to the exposure parameter;
  • Frame data whose exposure time satisfies a predetermined value is selected, and an image is output through the selected frame data.
  • the step of acquiring a preview frame rate of the current environment by using a camera preview and collecting exposure information of each frame of data in real time includes the following steps:
  • the exposure information of each frame of data is collected in real time, and the exposure information includes an exposure time length, a sensitivity value, and an exposure stability flag.
  • the predetermined value of the low light environment is determined to be:
  • the exposure time is greater than 1/17 second
  • the sensitivity value is greater than 1200 degrees
  • the preset frame rate is less than 15 frames
  • the sensitivity value is greater than 1200 degrees, and the preset frame rate is less than 15 frames, it is determined that the current photographing environment is a low light environment.
  • the normal photographing mode is continued.
  • the step of modifying the exposure parameter according to the preset algorithm, and outputting the corresponding frame data according to the exposure parameter specifically includes the following steps:
  • the camera takes a photo according to the modified exposure line number and exposure gain, and outputs frame data of the captured photo.
  • the down frame factor, the modified number of exposure lines, and the modified exposure gain satisfy the following relationship:
  • the number of exposed exposure lines the current number of exposure lines * the frame down factor
  • Modified exposure gain current exposure gain / frame down factor
  • the frame down factor is a default value of 4.
  • the frame down factor is adjusted to the value of the current frame rate divided by 4, otherwise the frame down factor is the default value of 4.
  • the step of selecting the frame data whose exposure time satisfies a predetermined value and outputting the image through the selected frame data specifically includes the following steps:
  • the frame data When it is detected that the exposure time of the frame data satisfies a predetermined value, the frame data is selected, and an image is output.
  • the present invention discloses a frame dropping rate photographing method, a mobile terminal, and a storage medium.
  • the method includes: obtaining a preview frame rate of a current environment through a camera preview, and collecting exposure information of each frame of data in real time; Determining, according to the exposure information and the preview frame rate, whether the current photographing environment is a low-light environment of a predetermined value; when determining that the current photographing environment is a low-light environment with a predetermined value, modifying the exposure parameter according to a preset algorithm, and according to the exposure
  • the parameter outputs corresponding frame data; the frame data whose exposure time satisfies a predetermined value is selected, and the image is output through the selected frame data.
  • the invention outputs high-quality photos with the original camera, and solves the problem of poor picture definition and noise in the low-light environment from the source, improves the quality of the photos, and is convenient for the user to use.

Landscapes

  • Engineering & Computer Science (AREA)
  • Multimedia (AREA)
  • Signal Processing (AREA)
  • Computing Systems (AREA)
  • Theoretical Computer Science (AREA)
  • Studio Devices (AREA)

Abstract

Disclosed are a frame rate-lowered photographing method, a mobile terminal and a storage medium. The method comprises: obtaining a preview frame rate of a current environment by means of camera preview, and collecting exposure information of each frame of data in real time; determining whether the current photographing environment is a low-light environment or not according to the exposure information and the preview frame rate; if the current photographing environment is a low-light environment, modifying exposure parameters according to a preset algorithm, and outputting corresponding frame data according to the exposure parameters; and selecting the frame data with the exposure time satisfying a preset value, and outputting an image according to the selected frame data.

Description

一种降帧率拍照方法、移动终端及存储介质Frame dropping rate photographing method, mobile terminal and storage medium

本申请要求于2017年12月29日提交中国专利局、申请号为201711476901.8、发明名称为“一种降帧率拍照方法、移动终端及存储介质”的中国专利申请的优先权,其全部内容通过引用结合在本申请中。This application claims the priority of the Chinese patent application filed on December 29, 2017, the Chinese Patent Office, the application number is 201711476901.8, and the invention name is "a frame down rate photographing method, mobile terminal and storage medium", the entire contents of which are The citations are incorporated herein by reference.

技术领域Technical field

本发明涉及移动终端技术领域,具体涉及一种降帧率拍照方法、移动终端及存储介质。The present invention relates to the field of mobile terminal technologies, and in particular, to a frame dropping rate photographing method, a mobile terminal, and a storage medium.

背景技术Background technique

Android操作系统是谷歌推出的一种智能的移动终端操作系统,近年来,随着移动终端硬件和软件等技术的发展,移动终端的相机应用变得越来越广泛;但在低光的环境下,尤其是在夜景的时候,由于移动终端本身的硬件限制以及环境的光照因素的限制,在拍摄的时候,会出现照片清晰度差和噪点多的现象。The Android operating system is an intelligent mobile terminal operating system launched by Google. In recent years, with the development of technologies such as mobile terminal hardware and software, the camera application of mobile terminals has become more and more widespread; but in low light environment Especially in the night scene, due to the hardware limitations of the mobile terminal itself and the limitations of the lighting conditions of the environment, when the shooting is taken, there will be a phenomenon of poor picture sharpness and noise.

因此,改善低光下拍照质量对于用户来说显得特别重要;在当前的技术中,虽然可以通过多帧合成软件技术来改善照片质量,但是由于原始的摄像头输出的图像本身质量低,软件算法纠正的方式无法得到很好的效果,很难得到高质量的图片。Therefore, improving the quality of photographs in low light is particularly important for users; in the current technology, although the quality of photographs can be improved by multi-frame synthesis software technology, the quality of the images output by the original camera is low, and the software algorithm corrects them. The way you can't get good results, it's hard to get high quality pictures.

因此,现有技术还有待于改进和发展。Therefore, the prior art has yet to be improved and developed.

技术问题technical problem

本发明实施例提供一种降帧率拍照方法、移动终端及存储介质,能够通过动态降低帧率的方式,以原始的摄像头输出高质量照片,从源头上解决在低光环境下照片清晰度差和噪点多的问题,提高照片的质量,方便用户使用。Embodiments of the present invention provide a frame dropping rate photographing method, a mobile terminal, and a storage medium, which can output a high-quality photo with an original camera by dynamically reducing a frame rate, and solve a poor photo definition in a low-light environment from a source. And the problem of more noise, improve the quality of photos, and is convenient for users.

技术解决方案Technical solution

本发明解决技术问题所采用的技术方案如下:The technical solution adopted by the present invention to solve the technical problem is as follows:

第一方面,本发明实施例提供一种降帧率拍照方法,其中,所述降帧率拍照方法包括:In a first aspect, an embodiment of the present invention provides a method for photographing a frame down rate, where the method for photographing a frame down rate includes:

通过相机预览获取当前环境的预览帧率,并实时收集每一帧数据的曝光信息;Obtain a preview frame rate of the current environment through camera preview, and collect exposure information of each frame of data in real time;

根据所述曝光信息和预览帧率判断当前拍照环境是否为预定值的低光环境;Determining, according to the exposure information and the preview frame rate, whether the current photographing environment is a low-light environment with a predetermined value;

当判断到当前拍照环境为预定值的低光环境时,根据预设算法修改曝光参数,并根据所述曝光参数输出对应的帧数据;When it is determined that the current photographing environment is a low-light environment with a predetermined value, the exposure parameter is modified according to a preset algorithm, and corresponding frame data is output according to the exposure parameter;

选择曝光时间满足预定数值的帧数据,并通过所选择的帧数据输出图像。Frame data whose exposure time satisfies a predetermined value is selected, and an image is output through the selected frame data.

进一步地,所述的降帧率拍照方法,其中,所述通过相机预览获取当前环境的预览帧率,并实时收集每一帧数据的曝光信息的步骤,具体包括以下步骤:Further, the method for photographing a frame down rate, wherein the step of acquiring a preview frame rate of a current environment by a camera preview and collecting exposure information of each frame of data in real time includes the following steps:

通过相机预览获取当前环境的预览帧率;Get the preview frame rate of the current environment through camera preview;

实时收集每一帧数据的曝光信息,所述曝光信息包括曝光时长、感光度值以及曝光稳定性标记。The exposure information of each frame of data is collected in real time, and the exposure information includes an exposure time length, a sensitivity value, and an exposure stability flag.

进一步地,所述的降帧率拍照方法,其中,判断所述低光环境的预定值为:Further, the method for photographing a frame down rate, wherein determining a predetermined value of the low light environment is:

曝光时长为大于1/17秒;The exposure time is greater than 1/17 second;

感光度值为大于1200度;The sensitivity value is greater than 1200 degrees;

预设帧率为小于15帧;The preset frame rate is less than 15 frames;

当且仅当曝光时长大于1/17秒、感光度值大于1200度、预设帧率小于15帧时,则判断当前拍照环境为低光环境。If and only when the exposure time is greater than 1/17 second, the sensitivity value is greater than 1200 degrees, and the preset frame rate is less than 15 frames, it is determined that the current photographing environment is a low light environment.

进一步地,所述的降帧率拍照方法,其中,当判断到当前拍照环境为非低光环境时,则继续进行普通拍照模式。Further, the method for photographing a frame down rate, wherein when it is determined that the current photographing environment is a non-low light environment, the normal photographing mode is continued.

进一步地,所述的降帧率拍照方法,其中,所述当判断到当前拍照环境为预定值的低光环境时,根据预设算法修改曝光参数,并根据所述曝光参数输出对应的帧数据的步骤,具体包括以下步骤:Further, the method for photographing a frame down rate, wherein, when it is determined that the current photographing environment is a low light environment with a predetermined value, the exposure parameter is modified according to a preset algorithm, and corresponding frame data is output according to the exposure parameter. The steps include the following steps:

当判断到当前拍照环境为预定值的低光环境时,获取当前帧的曝光时长、曝光行数和曝光增益;Obtaining an exposure duration, an exposure line number, and an exposure gain of the current frame when it is determined that the current photographing environment is a low-light environment with a predetermined value;

根据当前帧的曝光时长计算降帧因子;Calculating the frame down factor according to the exposure duration of the current frame;

根据所述降帧因子修改所述曝光行数和曝光增益,并将修改后的曝光行数和曝光增益应用到摄像头;Modifying the number of exposure lines and the exposure gain according to the frame down factor, and applying the modified number of exposure lines and exposure gain to the camera;

所述摄像头根据修改后的曝光行数和曝光增益拍摄照片,并输出所拍摄照片的帧数据。The camera takes a photo according to the modified exposure line number and exposure gain, and outputs frame data of the captured photo.

进一步地,所述的降帧率拍照方法,其中,所述降帧因子、修改后的曝光行数以及修改后的曝光增益满足以下关系:Further, the frame down rate photographing method, wherein the down frame factor, the modified number of exposure lines, and the modified exposure gain satisfy the following relationship:

修改后的曝光行数=当前的曝光行数*降帧因子;The number of exposed exposure lines = the current number of exposure lines * the frame down factor;

修改后的曝光增益=当前的曝光增益/降帧因子;Modified exposure gain = current exposure gain / frame down factor;

所述降帧因子为默认数值4;The frame down factor is a default value of 4;

当当前帧率除以默认数值4小于4时,则将所述降帧因子调整为当前帧率除以4的值,否则所述降帧因子为默认数值4。When the current frame rate is divided by the default value of 4 and less than 4, the frame down factor is adjusted to the value of the current frame rate divided by 4, otherwise the frame down factor is the default value of 4.

进一步地,所述的降帧率拍照方法,其中,所述选择曝光时间满足预定数值的帧数据,并通过所选择的帧数据输出图像的步骤,具体包括以下步骤:Further, the method for photographing a frame down rate, wherein the step of selecting frame data whose exposure time satisfies a predetermined value and outputting an image through the selected frame data specifically includes the following steps:

获取拍摄的所有帧数据,并检测每一帧数据的曝光时间是否满足预定数值;Obtaining all frame data of the shooting, and detecting whether the exposure time of each frame data satisfies a predetermined value;

当检测到帧数据的曝光时间满足预定数值时,选择所述帧数据,并输出图像。When it is detected that the exposure time of the frame data satisfies a predetermined value, the frame data is selected, and an image is output.

进一步地,所述的降帧率拍照方法,其中,所述曝光时间的预定数值为1/4秒。Further, the frame down rate photographing method, wherein the predetermined value of the exposure time is 1/4 second.

第二方面,本发明实施例提供一种移动终端,其中,包括处理器,以及与所述处理器连接的存储器,所述存储器存储有降帧率拍照程序,所述降帧率拍照程序被所述处理器执行时用于实现如下步骤:In a second aspect, an embodiment of the present invention provides a mobile terminal, including a processor, and a memory connected to the processor, where the memory stores a frame down rate photographing program, and the frame down rate photographing program is The processor is executed to implement the following steps:

通过相机预览获取当前环境的预览帧率,并实时收集每一帧数据的曝光信息;Obtain a preview frame rate of the current environment through camera preview, and collect exposure information of each frame of data in real time;

根据所述曝光信息和预览帧率判断当前拍照环境是否为预定值的低光环境;Determining, according to the exposure information and the preview frame rate, whether the current photographing environment is a low-light environment with a predetermined value;

当判断到当前拍照环境为预定值的低光环境时,根据预设算法修改曝光参数,并根据所述曝光参数输出对应的帧数据;When it is determined that the current photographing environment is a low-light environment with a predetermined value, the exposure parameter is modified according to a preset algorithm, and corresponding frame data is output according to the exposure parameter;

选择曝光时间满足预定数值的帧数据,并通过所选择的帧数据输出图像。Frame data whose exposure time satisfies a predetermined value is selected, and an image is output through the selected frame data.

所述的移动终端,其中,所述通过相机预览获取当前环境的预览帧率,并实时收集每一帧数据的曝光信息的步骤,具体包括以下步骤:The mobile terminal, wherein the step of acquiring a preview frame rate of a current environment by a camera preview and collecting exposure information of each frame of data in real time includes the following steps:

通过相机预览获取当前环境的预览帧率;Get the preview frame rate of the current environment through camera preview;

实时收集每一帧数据的曝光信息,所述曝光信息包括曝光时长、感光度值以及曝光稳定性标记。The exposure information of each frame of data is collected in real time, and the exposure information includes an exposure time length, a sensitivity value, and an exposure stability flag.

所述的移动终端,其中,所述当判断到当前拍照环境为预定值的低光环境时,根据预设算法修改曝光参数,并根据所述曝光参数输出对应的帧数据的步骤,具体包括以下步骤:In the mobile terminal, the step of modifying an exposure parameter according to a preset algorithm and outputting corresponding frame data according to the exposure parameter, specifically including the following, when determining that the current photographing environment is a low-light environment with a predetermined value step:

当判断到当前拍照环境为预定值的低光环境时,获取当前帧的曝光时长、曝光行数和曝光增益;Obtaining an exposure duration, an exposure line number, and an exposure gain of the current frame when it is determined that the current photographing environment is a low-light environment with a predetermined value;

根据当前帧的曝光时长计算降帧因子;Calculating the frame down factor according to the exposure duration of the current frame;

根据所述降帧因子修改所述曝光行数和曝光增益,并将修改后的曝光行数和曝光增益应用到摄像头;Modifying the number of exposure lines and the exposure gain according to the frame down factor, and applying the modified number of exposure lines and exposure gain to the camera;

所述摄像头根据修改后的曝光行数和曝光增益拍摄照片,并输出所拍摄照片的帧数据。The camera takes a photo according to the modified exposure line number and exposure gain, and outputs frame data of the captured photo.

所述的移动终端,其中,所述降帧因子、修改后的曝光行数以及修改后的曝光增益满足以下关系:The mobile terminal, wherein the down frame factor, the modified number of exposure lines, and the modified exposure gain satisfy the following relationship:

修改后的曝光行数=当前的曝光行数*降帧因子;The number of exposed exposure lines = the current number of exposure lines * the frame down factor;

修改后的曝光增益=当前的曝光增益/降帧因子;Modified exposure gain = current exposure gain / frame down factor;

所述降帧因子为默认数值4;The frame down factor is a default value of 4;

当当前帧率除以默认数值4小于4时,则将所述降帧因子调整为当前帧率除以4的值,否则所述降帧因子为默认数值4。When the current frame rate is divided by the default value of 4 and less than 4, the frame down factor is adjusted to the value of the current frame rate divided by 4, otherwise the frame down factor is the default value of 4.

所述的移动终端,其中,所述选择曝光时间满足预定数值的帧数据,并通过所选择的帧数据输出图像的步骤,具体包括以下步骤:The mobile terminal, wherein the step of selecting frame data whose exposure time satisfies a predetermined value and outputting an image through the selected frame data specifically includes the following steps:

获取拍摄的所有帧数据,并检测每一帧数据的曝光时间是否满足预定数值;Obtaining all frame data of the shooting, and detecting whether the exposure time of each frame data satisfies a predetermined value;

当检测到帧数据的曝光时间满足预定数值时,选择所述帧数据,并输出图像。When it is detected that the exposure time of the frame data satisfies a predetermined value, the frame data is selected, and an image is output.

第三方面,本发明实施例提供一种存储介质,其中,所述存储介质存储有降帧率拍照程序,所述降帧率拍照程序被处理器执行时用于实现如下步骤:In a third aspect, an embodiment of the present invention provides a storage medium, where the storage medium stores a frame down rate photographing program, and the frame down rate photographing program is used by the processor to implement the following steps:

通过相机预览获取当前环境的预览帧率,并实时收集每一帧数据的曝光信息;Obtain a preview frame rate of the current environment through camera preview, and collect exposure information of each frame of data in real time;

根据所述曝光信息和预览帧率判断当前拍照环境是否为预定值的低光环境;Determining, according to the exposure information and the preview frame rate, whether the current photographing environment is a low-light environment with a predetermined value;

当判断到当前拍照环境为预定值的低光环境时,根据预设算法修改曝光参数,并根据所述曝光参数输出对应的帧数据;When it is determined that the current photographing environment is a low-light environment with a predetermined value, the exposure parameter is modified according to a preset algorithm, and corresponding frame data is output according to the exposure parameter;

选择曝光时间满足预定数值的帧数据,并通过所选择的帧数据输出图像。Frame data whose exposure time satisfies a predetermined value is selected, and an image is output through the selected frame data.

所述的存储介质,其中,所述通过相机预览获取当前环境的预览帧率,并实时收集每一帧数据的曝光信息的步骤,具体包括以下步骤:The storage medium, wherein the step of acquiring a preview frame rate of a current environment by a camera preview and collecting exposure information of each frame of data in real time includes the following steps:

通过相机预览获取当前环境的预览帧率;Get the preview frame rate of the current environment through camera preview;

实时收集每一帧数据的曝光信息,所述曝光信息包括曝光时长、感光度值以及曝光稳定性标记。The exposure information of each frame of data is collected in real time, and the exposure information includes an exposure time length, a sensitivity value, and an exposure stability flag.

所述的存储介质,其中,判断所述低光环境的预定值为:The storage medium, wherein the predetermined value of the low light environment is determined as:

曝光时长为大于1/17秒;The exposure time is greater than 1/17 second;

感光度值为大于1200度;The sensitivity value is greater than 1200 degrees;

预设帧率为小于15帧;The preset frame rate is less than 15 frames;

当且仅当曝光时长大于1/17秒、感光度值大于1200度、预设帧率小于15帧时,则判断当前拍照环境为低光环境。If and only when the exposure time is greater than 1/17 second, the sensitivity value is greater than 1200 degrees, and the preset frame rate is less than 15 frames, it is determined that the current photographing environment is a low light environment.

所述的存储介质,其中,当判断到当前拍照环境为非低光环境时,则继续进行普通拍照模式。The storage medium, wherein when it is determined that the current photographing environment is a non-low light environment, the normal photographing mode is continued.

所述的存储介质,其中,所述当判断到当前拍照环境为预定值的低光环境时,根据预设算法修改曝光参数,并根据所述曝光参数输出对应的帧数据的步骤,具体包括以下步骤:The storage medium, wherein the step of modifying an exposure parameter according to a preset algorithm and outputting corresponding frame data according to the exposure parameter when the current photo environment is determined to be a low-light environment of a predetermined value, specifically includes the following step:

当判断到当前拍照环境为预定值的低光环境时,获取当前帧的曝光时长、曝光行数和曝光增益;Obtaining an exposure duration, an exposure line number, and an exposure gain of the current frame when it is determined that the current photographing environment is a low-light environment with a predetermined value;

根据当前帧的曝光时长计算降帧因子;Calculating the frame down factor according to the exposure duration of the current frame;

根据所述降帧因子修改所述曝光行数和曝光增益,并将修改后的曝光行数和曝光增益应用到摄像头;Modifying the number of exposure lines and the exposure gain according to the frame down factor, and applying the modified number of exposure lines and exposure gain to the camera;

所述摄像头根据修改后的曝光行数和曝光增益拍摄照片,并输出所拍摄照片的帧数据。The camera takes a photo according to the modified exposure line number and exposure gain, and outputs frame data of the captured photo.

所述的存储介质,其中,所述降帧因子、修改后的曝光行数以及修改后的曝光增益满足以下关系:The storage medium, wherein the down frame factor, the modified number of exposure lines, and the modified exposure gain satisfy the following relationship:

修改后的曝光行数=当前的曝光行数*降帧因子;The number of exposed exposure lines = the current number of exposure lines * the frame down factor;

修改后的曝光增益=当前的曝光增益/降帧因子;Modified exposure gain = current exposure gain / frame down factor;

所述降帧因子为默认数值4;The frame down factor is a default value of 4;

当当前帧率除以默认数值4小于4时,则将所述降帧因子调整为当前帧率除以4的值,否则所述降帧因子为默认数值4。When the current frame rate is divided by the default value of 4 and less than 4, the frame down factor is adjusted to the value of the current frame rate divided by 4, otherwise the frame down factor is the default value of 4.

所述的存储介质,其中,所述选择曝光时间满足预定数值的帧数据,并通过所选择的帧数据输出图像的步骤,具体包括以下步骤:The storage medium, wherein the step of selecting the frame data whose exposure time satisfies a predetermined value and outputting the image through the selected frame data specifically includes the following steps:

获取拍摄的所有帧数据,并检测每一帧数据的曝光时间是否满足预定数值;Obtaining all frame data of the shooting, and detecting whether the exposure time of each frame data satisfies a predetermined value;

当检测到帧数据的曝光时间满足预定数值时,选择所述帧数据,并输出图像。When it is detected that the exposure time of the frame data satisfies a predetermined value, the frame data is selected, and an image is output.

有益效果Beneficial effect

本发明提供了一种降帧率拍照方法、移动终端及存储介质,所述方法包括:通过相机预览获取当前环境的预览帧率,并实时收集每一帧数据的曝光信息;根据所述曝光信息和预览帧率判断当前拍照环境是否为预定值的低光环境;当判断到当前拍照环境为预定值的低光环境时,根据预设算法修改曝光参数,并根据所述曝光参数输出对应的帧数据;选择曝光时间满足预定数值的帧数据,并通过所选择的帧数据输出图像。本发明通过动态降低帧率的方式,以原始的摄像头输出高质量照片,从源头上解决了在低光环境下照片清晰度差和噪点多的问题,提高了照片的质量,方便了用户使用。The invention provides a frame dropping rate photographing method, a mobile terminal and a storage medium, the method comprising: obtaining a preview frame rate of a current environment through a camera preview, and collecting exposure information of each frame data in real time; according to the exposure information And a preview frame rate to determine whether the current photographing environment is a low-light environment of a predetermined value; when it is determined that the current photographing environment is a low-light environment with a predetermined value, the exposure parameter is modified according to a preset algorithm, and the corresponding frame is output according to the exposure parameter. Data; frame data whose exposure time satisfies a predetermined value is selected, and an image is output through the selected frame data. By dynamically reducing the frame rate, the invention outputs high-quality photos with the original camera, and solves the problem of poor picture definition and noise in the low-light environment from the source, improves the quality of the photos, and is convenient for the user to use.

附图说明DRAWINGS

图1是本发明提供的一种降帧率拍照方法的第一较佳实施例的流程图。1 is a flow chart of a first preferred embodiment of a method for photographing a frame down rate provided by the present invention.

图2是本发明提供的移动终端较佳实施例功能原理框图。2 is a functional block diagram of a preferred embodiment of a mobile terminal provided by the present invention.

图3是本发明实施例提供的移动终端的具体结构示意图。FIG. 3 is a schematic structural diagram of a mobile terminal according to an embodiment of the present invention.

本发明的实施方式Embodiments of the invention

为使本发明的目的、技术方案及优点更加清楚、明确,以下参照附图并举实施例对本发明进一步详细说明。应当理解,此处所描述的具体实施例仅仅用以解释本发明,并不用于限定本发明。The present invention will be further described in detail below with reference to the accompanying drawings. It is understood that the specific embodiments described herein are merely illustrative of the invention and are not intended to limit the invention.

实施例一Embodiment 1

请参见图1,图1是本发明实施例提供的降帧率拍照方法的第一较佳实施例的流程图。如图1所示,一种降帧率拍照方法,其中,包括以下步骤:Referring to FIG. 1, FIG. 1 is a flowchart of a first preferred embodiment of a method for photographing a frame down rate according to an embodiment of the present invention. As shown in FIG. 1 , a method for photographing a frame down rate, comprising the following steps:

步骤S100,通过相机预览获取当前环境的预览帧率,并实时收集每一帧数据的曝光信息。In step S100, the preview frame rate of the current environment is obtained through camera preview, and the exposure information of each frame of data is collected in real time.

本发明实施例中,在移动终端的预览回调线程中,每一帧的数据都由元数据反馈,反馈信息里包含了需要的曝光信息;当反馈的曝光信息稳定时,移动终端将该曝光信息进行存储;所述曝光信息包括曝光时长、感光度值和曝光稳定性标记;当曝光信息不稳定时,则清空曝光信息;同时,在获取曝光信息时,还需要收集帧率信息,并将曝光信息和帧率信息存储到对应的数据包。In the embodiment of the present invention, in the preview callback thread of the mobile terminal, the data of each frame is fed back by the metadata, and the feedback information includes the required exposure information; when the feedback information is stable, the mobile terminal uses the exposure information. The storage information includes an exposure time length, a sensitivity value, and an exposure stability flag; when the exposure information is unstable, the exposure information is cleared; meanwhile, when the exposure information is acquired, the frame rate information needs to be collected and exposed. Information and frame rate information is stored to the corresponding data packet.

进一步地,所述曝光信息包括:Further, the exposure information includes:

1)曝光时长:当前这一帧数据的曝光时长;1) Exposure time: the exposure time of the current frame data;

2)感光度值:当前这一帧数据的感光度值;2) Sensitivity value: the sensitivity value of the current frame data;

3)曝光稳定性标记:表示曝光已经进入稳定状态,所有的数据没有偏差,且相机已正确检测到当前的亮度值。3) Exposure stability mark: indicates that the exposure has entered a steady state, all data has no deviation, and the camera has correctly detected the current brightness value.

具体地,步骤S100具体包括如下步骤:Specifically, step S100 specifically includes the following steps:

S101,通过相机预览获取当前环境的预览帧率;S101. Obtain a preview frame rate of the current environment by using a camera preview.

S102,实时收集每一帧数据的曝光信息,所述曝光信息包括曝光时长、感光度值以及曝光稳定性标记。S102. Collect exposure information of each frame of data in real time, and the exposure information includes an exposure duration, a sensitivity value, and an exposure stability flag.

步骤S200,根据所述曝光信息和预览帧率判断当前拍照环境是否为预定值的低光环境。Step S200: Determine, according to the exposure information and the preview frame rate, whether the current photographing environment is a low-light environment with a predetermined value.

本发明实施例中,在移动终端的拍照线程中,当接收到用户的拍照请求时,需要从存储的曝光信息中获取曝光时长、感光度值、曝光稳定性标记和当前帧率;只有在系统曝光稳定的时候,才能进一步判断是否满足低光环境的要求。In the embodiment of the present invention, in the photographing thread of the mobile terminal, when receiving the photographing request of the user, it is necessary to obtain the exposure duration, the sensitivity value, the exposure stability flag, and the current frame rate from the stored exposure information; When the exposure is stable, it can be further judged whether the requirements of low light environment are met.

进一步地,根据所述曝光信息和预览帧率判断当前拍照环境是否为预定值的低光环境,判断所述低光环境的预定值为:Further, determining, according to the exposure information and the preview frame rate, whether the current photographing environment is a low-light environment with a predetermined value, and determining a predetermined value of the low-light environment is:

曝光时长为大于1/17秒;The exposure time is greater than 1/17 second;

感光度值为大于1200度;The sensitivity value is greater than 1200 degrees;

预设帧率为小于15帧;The preset frame rate is less than 15 frames;

进一步地,当且仅当曝光时长大于1/17秒、感光度值大于1200度、预设帧率小于15帧时,则判断当前拍照环境为低光环境,此时,控制相机进入降帧拍照模式。Further, if and only when the exposure time is greater than 1/17 second, the sensitivity value is greater than 1200 degrees, and the preset frame rate is less than 15 frames, it is determined that the current photographing environment is a low light environment, and at this time, the camera is controlled to enter the down frame. mode.

进一步地,当上述三个判断条件有一未满足时,不能判定当前环境为低光环境,即当前环境为非低光环境,此时,控制相机继续进行普通拍照模式。Further, when the above three determination conditions are unsatisfied, the current environment cannot be determined to be a low-light environment, that is, the current environment is a non-low-light environment. At this time, the camera is controlled to continue the normal photographing mode.

步骤S300,当判断到当前拍照环境为预定值的低光环境时,根据预设算法修改曝光参数,并根据所述曝光参数输出对应的帧数据。Step S300: When it is determined that the current photographing environment is a low-light environment with a predetermined value, the exposure parameter is modified according to a preset algorithm, and corresponding frame data is output according to the exposure parameter.

本发明实施例中,低光环境下的降帧模式的主要任务是计算出合适的曝光参数并应用到摄像头中,即修改曝光信息的方法,让摄像头延长曝光的时间,与此同时,为了保证曝光的亮度值不变,需要调整曝光的增益以达到曝光平衡。In the embodiment of the present invention, the main task of the down frame mode in a low light environment is to calculate a suitable exposure parameter and apply it to the camera, that is, a method of modifying the exposure information, so that the camera extends the exposure time, and at the same time, in order to ensure The brightness value of the exposure does not change, and the gain of the exposure needs to be adjusted to achieve the exposure balance.

进一步地,在进行降低帧率修改曝光信息时,需要进行以下步骤:Further, when performing the reduction of the frame rate to modify the exposure information, the following steps are required:

1)获取当前的曝光信息:1) Get the current exposure information:

所述曝光信息为当前帧的曝光时长、曝光行数和曝光增益,通过获取当前帧的曝光时长、曝光行数和曝光增益,修改当前帧的曝光时长、曝光行数和曝光增益,以达到降帧拍照的目的。The exposure information is the exposure duration, the number of exposure lines, and the exposure gain of the current frame. By acquiring the exposure duration, the number of exposure lines, and the exposure gain of the current frame, the exposure duration, the number of exposure lines, and the exposure gain of the current frame are modified to achieve a drop. The purpose of frame photography.

2)计算降帧因子:2) Calculate the frame down factor:

所述降帧因子为降帧的幅度值,其有一个默认值(默认值是4),但在实际拍摄的时候,需要根据当前曝光的情况,重新计算降帧因子,目的是将降帧的幅度控制在一定的范围内,以达到拍摄和图像质量之间的一个平衡。The frame down factor is the amplitude value of the frame down, which has a default value (the default value is 4), but in actual shooting, the frame down factor needs to be recalculated according to the current exposure, and the purpose is to reduce the frame. The amplitude is controlled within a certain range to achieve a balance between shooting and image quality.

计算方式为:将当前的曝光时长进行降帧,以保证曝光时长在1/4秒之内。在当前的曝光时长超过了1/4秒时,调整降帧因子,以保证最终的曝光时长为1/4秒;在当前的曝光时长未超过1/4秒时,使用默认的降帧因子;即先设置一个默认降帧因子数值等于“4”,如果当前帧率除以默认的降帧因子,得出的数值小于4,则将降帧因子调整成当前帧率除以4的值;否则就使用默认的降帧因子。The calculation method is as follows: the current exposure time is down-framed to ensure that the exposure time is within 1/4 second. When the current exposure time exceeds 1/4 second, adjust the frame down factor to ensure that the final exposure time is 1/4 second; when the current exposure time does not exceed 1/4 second, the default frame down factor is used; That is, first set a default frame down factor value equal to "4", if the current frame rate is divided by the default frame down factor, the value obtained is less than 4, then the frame down factor is adjusted to the current frame rate divided by 4; otherwise Just use the default frame down factor.

3)修改曝光行数和曝光增益:3) Modify the number of exposure lines and exposure gain:

通过降帧因子的计算结果重新计算曝光行数和曝光增益,所述曝光行数和曝光增益的计算方式为:The number of exposure lines and the exposure gain are recalculated by the calculation result of the frame down factor, and the number of exposure lines and the exposure gain are calculated as follows:

修改后的曝光行数=当前的曝光行数*降帧因子;The number of exposed exposure lines = the current number of exposure lines * the frame down factor;

修改后的曝光增益=当前的曝光增益/降帧因子;Modified exposure gain = current exposure gain / frame down factor;

所述降帧因子为默认数值4;The frame down factor is a default value of 4;

当当前帧率除以默认数值4小于4时,则将所述降帧因子调整为当前帧率除以4的值,否则所述降帧因子为默认数值4。When the current frame rate is divided by the default value of 4 and less than 4, the frame down factor is adjusted to the value of the current frame rate divided by 4, otherwise the frame down factor is the default value of 4.

最后将新计算出来的曝光行数和曝光增益,通过参数设置的方式应用到摄像头中(一般都是写入对应的寄存器中)。Finally, the newly calculated exposure line number and exposure gain are applied to the camera by parameter setting (generally written in the corresponding register).

具体地,步骤S300包括如下步骤:Specifically, step S300 includes the following steps:

S301,当判断到当前拍照环境为预定值的低光环境时,获取当前帧的曝光时长、曝光行数和曝光增益;S301, when it is determined that the current photographing environment is a low-light environment with a predetermined value, acquiring an exposure duration, an exposure line number, and an exposure gain of the current frame;

S302,根据当前帧的曝光时长计算降帧因子;S302. Calculate a frame down factor according to an exposure duration of the current frame.

S303,根据所述降帧因子修改所述曝光行数和曝光增益,并将修改后的曝光行数和曝光增益应用到摄像头;S303, modifying the exposure line number and the exposure gain according to the frame down factor, and applying the modified exposure line number and exposure gain to the camera;

S304,所述摄像头根据修改后的曝光行数和曝光增益拍摄照片,并输出所拍摄照片的帧数据。S304. The camera takes a photo according to the modified exposure line number and the exposure gain, and outputs frame data of the captured photo.

步骤S400,选择曝光时间满足预定数值的帧数据,并通过所选择的帧数据输出图像。In step S400, frame data whose exposure time satisfies a predetermined value is selected, and an image is output through the selected frame data.

本发明实施例中,对所拍摄的数据帧进行选择的目的就是选中降帧模式所产生的帧数据,结合Android系统的实际情况,从摄像头出来的图像数据会被缓冲到固定长度的队里中,在拍摄的时候,会直接从这个队列中获取帧数据输出,这就是一副拍摄的图像;在低光拍摄的时候,修改曝光参数后应用到摄像头中,然后摄像头应用这些修改后的曝光参数执行曝光,最终把图像数据缓冲到队列中;这一整套流程一下需要一定的时间,而且在这期间,队列中会有新旧曝光参数应用后的帧数据存在,因此需要鉴别这些帧数据,并选中有效的帧数据。In the embodiment of the present invention, the purpose of selecting the captured data frame is to select the frame data generated by the down frame mode, and in combination with the actual situation of the Android system, the image data from the camera is buffered into a fixed length team. At the time of shooting, the frame data output will be directly obtained from this queue. This is a pair of captured images; in low-light shooting, the exposure parameters are modified and applied to the camera, and then the camera applies these modified exposure parameters. Execution of the exposure, and finally buffer the image data into the queue; this whole process takes a certain amount of time, and during this period, there will be frame data after the application of the new and old exposure parameters in the queue, so it is necessary to identify the frame data and select Valid frame data.

进一步地,在相机进入低光拍照模式的时候,同时也对数据帧队列做了一次清空,以保证从队列中获取到的数据帧是相同的;在对帧数据进行选择的时候,对应的选择程序从帧数据队列的头部获取帧数据,然后对这帧数据的曝光时长进行检测,如果曝光时长满足预期的数值,说明这一帧数据已经是经过降帧处理后的数据,即被认为是有效的帧,然后被当做拍摄的图像输出;否则就从帧数据队列中获取下一帧的数据,重复此操作,直到获取到有效帧为止。Further, when the camera enters the low-light photo mode, the data frame queue is also emptied once to ensure that the data frames acquired from the queue are the same; when the frame data is selected, the corresponding selection The program obtains the frame data from the head of the frame data queue, and then detects the exposure duration of the frame data. If the exposure duration satisfies the expected value, it indicates that the frame data is already subjected to the frame down processing, that is, it is considered to be The valid frame is then output as the captured image; otherwise, the next frame of data is retrieved from the frame data queue, and this operation is repeated until a valid frame is obtained.

具体地,步骤S400包括如下步骤:Specifically, step S400 includes the following steps:

S401,获取拍摄的所有帧数据,并检测每一帧数据的曝光时间是否满足预定数值;S401: Acquire all frame data of the shooting, and detect whether an exposure time of each frame data meets a predetermined value;

S402,当检测到帧数据的曝光时间满足预定数值时,选择所述帧数据,并输出图像。S402, when it is detected that the exposure time of the frame data satisfies a predetermined value, the frame data is selected, and an image is output.

当然,本领域普通技术人员可以理解实现上述实施例方法中的全部或部分流程,是可以通过降帧率拍照的程序来指令相关硬件(如处理器,控制器等)来完成,所述的程序可存储于一计算机可读取的存储介质中,该程序在执行时可包括如上述各方法实施例的流程。其中所述的存储介质可为存储器、磁碟、光盘等。Certainly, those skilled in the art can understand that all or part of the process in implementing the foregoing embodiment method can be completed by instructing related hardware (such as a processor, a controller, etc.) by a program that takes pictures at a frame down rate. The program may be stored in a computer readable storage medium, and the program may include the flow of the method embodiments as described above when executed. The storage medium described therein may be a memory, a magnetic disk, an optical disk, or the like.

实施例二Embodiment 2

本发明实施例还提供了一种移动终端,如图2所示,本发明实施例的移动终端可以为手机(或者平板电脑),其中,本实施例的移动终端包括处理器10,以及与所述处理器10连接的存储器20;The embodiment of the present invention further provides a mobile terminal. As shown in FIG. 2, the mobile terminal in the embodiment of the present invention may be a mobile phone (or a tablet computer), wherein the mobile terminal in this embodiment includes a processor 10, and a The memory 20 connected to the processor 10;

所述存储器20存储有降帧率拍照程序,该降帧率拍照程序被所述处理器10执行时用于实现所述降帧率拍照方法;具体如上所述。The memory 20 stores a frame down rate photographing program for implementing the frame down rate photographing method when the frame down rate photographing program is executed by the processor 10; as described above.

实施例三Embodiment 3

一种存储介质,其中,所述存储介质存储有降帧率拍照程序,该降帧率拍照程序被处理器10执行时用于实现所述降帧率拍照方法;具体如上所述。A storage medium, wherein the storage medium stores a frame down rate photographing program, and the frame down rate photographing program is used by the processor 10 to implement the down frame rate photographing method; specifically as described above.

图3示出了本发明实施例提供的移动终端的具体结构框图,该移动终端可以用于实施上述实施例中提供的降帧率拍照方法。该移动终端1200可以为智能手机或平板电脑。FIG. 3 is a block diagram showing a specific structure of a mobile terminal according to an embodiment of the present invention. The mobile terminal can be used to implement the frame down rate photographing method provided in the foregoing embodiment. The mobile terminal 1200 can be a smartphone or a tablet.

如图3所示,移动终端1200可以包括RF(Radio Frequency,射频)电路110、包括有一个或一个以上(图中仅示出一个)计算机可读存储介质的存储器120、输入单元130、显示单元140、传感器150、音频电路160、传输模块170、包括有一个或者一个以上(图中仅示出一个)处理核心的处理器180以及电源190等部件。本领域技术人员可以理解,图3中示出的移动终端1200结构并不构成对移动终端1200的限定,可以包括比图示更多或更少的部件,或者组合某些部件,或者不同的部件布置。其中:As shown in FIG. 3, the mobile terminal 1200 may include an RF (Radio Frequency) circuit 110, a memory 120 including one or more (only one shown) computer-readable storage medium, an input unit 130, and a display unit. 140, sensor 150, audio circuit 160, transmission module 170, including processor 180 having one or more processing cores (only one shown) and power supply 190 and the like. It will be understood by those skilled in the art that the structure of the mobile terminal 1200 shown in FIG. 3 does not constitute a limitation of the mobile terminal 1200, and may include more or less components than those illustrated, or combine some components or different components. Arrangement. among them:

RF电路110用于接收以及发送电磁波,实现电磁波与电信号的相互转换,从而与通讯网络或者其他设备进行通讯。RF电路110可包括各种现有的用于执行这些功能的电路元件,例如,天线、射频收发器、数字信号处理器、加密/解密芯片、用户身份模块(SIM)卡、存储器等等。RF电路110可与各种网络如互联网、企业内部网、无线网络进行通讯或者通过无线网络与其他设备进行通讯。上述的无线网络可包括蜂窝式电话网、无线局域网或者城域网。上述的无线网络可以使用各种通信标准、协议及技术,包括但并不限于全球移动通信系统(Global System for Mobile Communication, GSM)、增强型移动通信技术(Enhanced Data GSM Environment, EDGE),宽带码分多址技术(Wideband Code Division Multiple Access, WCDMA),码分多址技术(Code Division Access, CDMA)、时分多址技术(Time Division Multiple Access, TDMA),无线保真技术(Wireless Fidelity, Wi-Fi)(如美国电气和电子工程师协会标准 IEEE 802.11a, IEEE 802.11b, IEEE802.11g 和/或 IEEE 802.11n)、网络电话(Voice over Internet Protocol, VoIP)、全球微波互联接入(Worldwide Interoperability for Microwave Access, Wi-Max)、其他用于邮件、即时通讯及短消息的协议,以及任何其他合适的通讯协议,甚至可包括那些当前仍未被开发出来的协议。The RF circuit 110 is configured to receive and transmit electromagnetic waves, and realize mutual conversion between electromagnetic waves and electrical signals, thereby communicating with a communication network or other devices. The RF circuit 110 may include various existing circuit elements for performing these functions, such as an antenna, a radio frequency transceiver, a digital signal processor, an encryption/decryption chip, a Subscriber Identity Module (SIM) card, a memory, and the like. The RF circuit 110 can communicate with various networks such as the Internet, an intranet, a wireless network, or communicate with other devices over a wireless network. The wireless network described above may include a cellular telephone network, a wireless local area network, or a metropolitan area network. The above wireless networks may use various communication standards, protocols and technologies, including but not limited to global mobile communication systems (Global System for Mobile Communication, GSM), Enhanced Mobile Communication Technology (Enhanced Data GSM Environment, EDGE), Wideband Code Division Multiple Access (Wideband Code) Division Multiple Access, WCDMA), Code Division Multiple Access (Code Division) Access, CDMA), Time Division Multiple Access (TDMA), Wireless Fidelity (Wireless Fidelity, Wi-Fi) (such as the Institute of Electrical and Electronics Engineers Standard IEEE 802.11a, IEEE 802.11b, IEEE 802.11g and / or IEEE 802.11n), VoIP (Voice) Over Internet Protocol, VoIP), Worldwide Interoperability for Microwave Access (Worldwide Interoperability for Microwave Access, Wi-Max, other protocols for mail, instant messaging, and short messages, as well as any other suitable communication protocol, may even include protocols that are not currently being developed.

存储器120可用于存储软件程序以及模块,如上述实施例中降帧率拍照方法对应的程序指令/模块,处理器180通过运行存储在存储器120内的软件程序以及模块,从而执行各种功能应用以及数据处理,即实现降帧率拍照的功能。存储器120可包括高速随机存储器,还可包括非易失性存储器,如一个或者多个磁性存储装置、闪存、或者其他非易失性固态存储器。在一些实例中,存储器120可进一步包括相对于处理器180远程设置的存储器,这些远程存储器可以通过网络连接至移动终端1200。上述网络的实例包括但不限于互联网、企业内部网、局域网、移动通信网及其组合。The memory 120 can be used to store software programs and modules, such as program instructions/modules corresponding to the frame down rate photographing method in the above embodiment, and the processor 180 executes various functional applications by running software programs and modules stored in the memory 120. Data processing, that is, the function of realizing frame down rate shooting. Memory 120 may include high speed random access memory, and may also include non-volatile memory, such as one or more magnetic storage devices, flash memory, or other non-volatile solid state memory. In some examples, memory 120 can further include memory remotely located relative to processor 180, which can be connected to mobile terminal 1200 via a network. Examples of such networks include, but are not limited to, the Internet, intranets, local area networks, mobile communication networks, and combinations thereof.

输入单元130可用于接收输入的数字或字符信息,以及产生与用户设置以及功能控制有关的键盘、鼠标、操作杆、光学或者轨迹球信号输入。具体地,输入单元130可包括触敏表面131以及其他输入设备132。触敏表面131,也称为触摸显示屏或者触控板,可收集用户在其上或附近的触摸操作(比如用户使用手指、触笔等任何适合的物体或附件在触敏表面131上或在触敏表面131附近的操作),并根据预先设定的程式驱动相应的连接装置。可选的,触敏表面131可包括触摸检测装置和触摸控制器两个部分。其中,触摸检测装置检测用户的触摸方位,并检测触摸操作带来的信号,将信号传送给触摸控制器;触摸控制器从触摸检测装置上接收触摸信息,并将它转换成触点坐标,再送给处理器180,并能接收处理器180发来的命令并加以执行。此外,可以采用电阻式、电容式、红外线以及表面声波等多种类型实现触敏表面131。除了触敏表面131,输入单元130还可以包括其他输入设备132。具体地,其他输入设备132可以包括但不限于物理键盘、功能键(比如音量控制按键、开关按键等)、轨迹球、鼠标、操作杆等中的一种或多种。The input unit 130 can be configured to receive input numeric or character information and to generate keyboard, mouse, joystick, optical or trackball signal inputs related to user settings and function controls. In particular, input unit 130 can include touch-sensitive surface 131 as well as other input devices 132. Touch-sensitive surface 131, also referred to as a touch display or trackpad, can collect touch operations on or near the user (such as a user using a finger, stylus, etc., on any suitable object or accessory on touch-sensitive surface 131 or The operation near the touch-sensitive surface 131) and driving the corresponding connecting device according to a preset program. Alternatively, the touch-sensitive surface 131 can include two portions of a touch detection device and a touch controller. Wherein, the touch detection device detects the touch orientation of the user, and detects a signal brought by the touch operation, and transmits the signal to the touch controller; the touch controller receives the touch information from the touch detection device, converts the touch information into contact coordinates, and sends the touch information. The processor 180 is provided and can receive commands from the processor 180 and execute them. In addition, the touch-sensitive surface 131 can be implemented in various types such as resistive, capacitive, infrared, and surface acoustic waves. In addition to the touch-sensitive surface 131, the input unit 130 can also include other input devices 132. Specifically, other input devices 132 may include, but are not limited to, one or more of a physical keyboard, function keys (such as volume control buttons, switch buttons, etc.), trackballs, mice, joysticks, and the like.

显示单元140可用于显示由用户输入的信息或提供给用户的信息以及移动终端1200的各种图形用户接口,这些图形用户接口可以由图形、文本、图标、视频和其任意组合来构成。显示单元140可包括显示面板141,可选的,可以采用LCD(Liquid Crystal Display,液晶显示器)、OLED(Organic Light-Emitting Diode,有机发光二极管)等形式来配置显示面板141。进一步的,触敏表面131可覆盖显示面板141,当触敏表面131检测到在其上或附近的触摸操作后,传送给处理器180以确定触摸事件的类型,随后处理器180根据触摸事件的类型在显示面板141上提供相应的视觉输出。虽然在图3中,触敏表面131与显示面板141是作为两个独立的部件来实现输入和输出功能,但是在某些实施例中,可以将触敏表面131与显示面板141集成而实现输入和输出功能。The display unit 140 can be used to display information input by the user or information provided to the user and various graphical user interfaces of the mobile terminal 1200, which can be composed of graphics, text, icons, video, and any combination thereof. The display unit 140 may include a display panel 141, and optionally, an LCD (Liquid Crystal) Display, LCD), OLED (Organic The display panel 141 is configured in the form of a Light-Emitting Diode or the like. Further, the touch-sensitive surface 131 may cover the display panel 141, and when the touch-sensitive surface 131 detects a touch operation thereon or nearby, it is transmitted to the processor 180 to determine the type of the touch event, and then the processor 180 according to the touch event The type provides a corresponding visual output on display panel 141. Although in FIG. 3, touch-sensitive surface 131 and display panel 141 are implemented as two separate components to implement input and output functions, in some embodiments, touch-sensitive surface 131 can be integrated with display panel 141 for input. And output function.

移动终端1200还可包括至少一种传感器150,比如光传感器、运动传感器以及其他传感器。具体地,光传感器可包括环境光传感器及接近传感器,其中,环境光传感器可根据环境光线的明暗来调节显示面板141的亮度,接近传感器可在移动终端1200移动到耳边时,关闭显示面板141和/或背光。作为运动传感器的一种,重力加速度传感器可检测各个方向上(一般为三轴)加速度的大小,静止时可检测出重力的大小及方向,可用于识别手机姿态的应用(比如横竖屏切换、相关游戏、磁力计姿态校准)、振动识别相关功能(比如计步器、敲击)等; 至于移动终端1200还可配置的陀螺仪、气压计、湿度计、温度计、红外线传感器等其他传感器,在此不再赘述。Mobile terminal 1200 may also include at least one type of sensor 150, such as a light sensor, motion sensor, and other sensors. Specifically, the light sensor may include an ambient light sensor and a proximity sensor, wherein the ambient light sensor may adjust the brightness of the display panel 141 according to the brightness of the ambient light, and the proximity sensor may close the display panel 141 when the mobile terminal 1200 moves to the ear. And / or backlight. As a kind of motion sensor, the gravity acceleration sensor can detect the magnitude of acceleration in all directions (usually three axes). When it is stationary, it can detect the magnitude and direction of gravity. It can be used to identify the gesture of the mobile phone (such as horizontal and vertical screen switching, related Game, magnetometer attitude calibration), vibration recognition related functions (such as pedometer, tapping), etc.; as for the mobile terminal 1200 can also be configured with gyroscopes, barometers, hygrometers, thermometers, infrared sensors and other sensors, here No longer.

音频电路160、扬声器161,传声器162可提供用户与移动终端1200之间的音频接口。音频电路160可将接收到的音频数据转换后的电信号,传输到扬声器161,由扬声器161转换为声音信号输出;另一方面,传声器162将收集的声音信号转换为电信号,由音频电路160接收后转换为音频数据,再将音频数据输出处理器180处理后,经RF电路110以发送给比如另一移动终端,或者将音频数据输出至存储器120以便进一步处理。音频电路160还可能包括耳塞插孔,以提供外设耳机与移动终端1200的通信。The audio circuit 160, the speaker 161, and the microphone 162 can provide an audio interface between the user and the mobile terminal 1200. The audio circuit 160 can transmit the converted electrical data of the received audio data to the speaker 161 for conversion to the sound signal output by the speaker 161; on the other hand, the microphone 162 converts the collected sound signal into an electrical signal by the audio circuit 160. After receiving, it is converted into audio data, and then processed by the audio data output processor 180, transmitted to the mobile terminal 110 via the RF circuit 110, or outputted to the memory 120 for further processing. The audio circuit 160 may also include an earbud jack to provide communication of the peripheral earphones with the mobile terminal 1200.

移动终端1200通过传输模块170(例如Wi-Fi模块)可以帮助用户收发电子邮件、浏览网页和访问流式媒体等,它为用户提供了无线的宽带互联网访问。虽然图3示出了传输模块170,但是可以理解的是,其并不属于移动终端1200的必须构成,完全可以根据需要在不改变发明的本质的范围内而省略。The mobile terminal 1200 can help the user to send and receive emails, browse web pages, access streaming media, etc. through the transmission module 170 (eg, Wi-Fi module), which provides wireless broadband Internet access to the user. Although FIG. 3 shows the transmission module 170, it can be understood that it does not belong to the essential configuration of the mobile terminal 1200, and may be omitted as needed within the scope of not changing the essence of the invention.

处理器180是移动终端1200的控制中心,利用各种接口和线路连接整个手机的各个部分,通过运行或执行存储在存储器120内的软件程序和/或模块,以及调用存储在存储器120内的数据,执行移动终端1200的各种功能和处理数据,从而对手机进行整体监控。可选的,处理器180可包括一个或多个处理核心;在一些实施例中,处理器180可集成应用处理器和调制解调处理器,其中,应用处理器主要处理操作系统、用户界面和应用程序等,调制解调处理器主要处理无线通信。可以理解的是,上述调制解调处理器也可以不集成到处理器180中。The processor 180 is a control center of the mobile terminal 1200 that connects various portions of the entire handset with various interfaces and lines, by running or executing software programs and/or modules stored in the memory 120, and recalling data stored in the memory 120. The various functions and processing data of the mobile terminal 1200 are executed to perform overall monitoring of the mobile phone. Optionally, the processor 180 may include one or more processing cores; in some embodiments, the processor 180 may integrate an application processor and a modem processor, wherein the application processor mainly processes an operating system, a user interface, and For applications, etc., the modem processor primarily handles wireless communications. It can be understood that the above modem processor may not be integrated into the processor 180.

移动终端1200还包括给各个部件供电的电源190(比如电池),在一些实施例中,电源可以通过电源管理系统与处理器180逻辑相连,从而通过电源管理系统实现管理充电、放电、以及功耗管理等功能。电源190还可以包括一个或一个以上的直流或交流电源、再充电系统、电源故障检测电路、电源转换器或者逆变器、电源状态指示器等任意组件。The mobile terminal 1200 also includes a power source 190 (such as a battery) that powers the various components. In some embodiments, the power source can be logically coupled to the processor 180 through a power management system to manage charging, discharging, and power consumption through the power management system. Management and other functions. Power supply 190 may also include any one or more of a DC or AC power source, a recharging system, a power failure detection circuit, a power converter or inverter, a power status indicator, and the like.

尽管未示出,移动终端1200还可以包括摄像头(如前置摄像头、后置摄像头)、蓝牙模块等,在此不再赘述。具体在本实施例中,移动终端的显示单元是触摸屏显示器,移动终端还包括有存储器,以及一个或者一个以上的程序,其中一个或者一个以上程序存储于存储器中,且经配置以由一个或者一个以上处理器执行述一个或者一个以上程序包含用于进行以下操作的指令:Although not shown, the mobile terminal 1200 may further include a camera (such as a front camera, a rear camera), a Bluetooth module, and the like, and details are not described herein. Specifically, in this embodiment, the display unit of the mobile terminal is a touch screen display, the mobile terminal further includes a memory, and one or more programs, wherein one or more programs are stored in the memory and configured to be one or one The above processor executes one or more programs that include instructions for performing the following operations:

通过相机预览获取当前环境的预览帧率,并实时收集每一帧数据的曝光信息;Obtain a preview frame rate of the current environment through camera preview, and collect exposure information of each frame of data in real time;

根据所述曝光信息和预览帧率判断当前拍照环境是否为预定值的低光环境;Determining, according to the exposure information and the preview frame rate, whether the current photographing environment is a low-light environment with a predetermined value;

当判断到当前拍照环境为预定值的低光环境时,根据预设算法修改曝光参数,并根据所述曝光参数输出对应的帧数据;When it is determined that the current photographing environment is a low-light environment with a predetermined value, the exposure parameter is modified according to a preset algorithm, and corresponding frame data is output according to the exposure parameter;

选择曝光时间满足预定数值的帧数据,并通过所选择的帧数据输出图像。Frame data whose exposure time satisfies a predetermined value is selected, and an image is output through the selected frame data.

在一些实施例中,所述通过相机预览获取当前环境的预览帧率,并实时收集每一帧数据的曝光信息的步骤,具体包括以下步骤:In some embodiments, the step of acquiring a preview frame rate of the current environment by using a camera preview and collecting exposure information of each frame of data in real time includes the following steps:

通过相机预览获取当前环境的预览帧率;Get the preview frame rate of the current environment through camera preview;

实时收集每一帧数据的曝光信息,所述曝光信息包括曝光时长、感光度值以及曝光稳定性标记。The exposure information of each frame of data is collected in real time, and the exposure information includes an exposure time length, a sensitivity value, and an exposure stability flag.

在一些实施例中,判断所述低光环境的预定值为:In some embodiments, the predetermined value of the low light environment is determined to be:

曝光时长为大于1/17秒;The exposure time is greater than 1/17 second;

感光度值为大于1200度;The sensitivity value is greater than 1200 degrees;

预设帧率为小于15帧;The preset frame rate is less than 15 frames;

当且仅当曝光时长大于1/17秒、感光度值大于1200度、预设帧率小于15帧时,则判断当前拍照环境为低光环境。If and only when the exposure time is greater than 1/17 second, the sensitivity value is greater than 1200 degrees, and the preset frame rate is less than 15 frames, it is determined that the current photographing environment is a low light environment.

在一些实施例中,当判断到当前拍照环境为非低光环境时,则继续进行普通拍照模式。In some embodiments, when it is determined that the current photographing environment is a non-low light environment, the normal photographing mode is continued.

在一些实施例中,所述当判断到当前拍照环境为预定值的低光环境时,根据预设算法修改曝光参数,并根据所述曝光参数输出对应的帧数据的步骤,具体包括以下步骤:In some embodiments, when it is determined that the current photographing environment is a low-light environment with a predetermined value, the step of modifying the exposure parameter according to the preset algorithm, and outputting the corresponding frame data according to the exposure parameter, specifically includes the following steps:

当判断到当前拍照环境为预定值的低光环境时,获取当前帧的曝光时长、曝光行数和曝光增益;Obtaining an exposure duration, an exposure line number, and an exposure gain of the current frame when it is determined that the current photographing environment is a low-light environment with a predetermined value;

根据当前帧的曝光时长计算降帧因子;Calculating the frame down factor according to the exposure duration of the current frame;

根据所述降帧因子修改所述曝光行数和曝光增益,并将修改后的曝光行数和曝光增益应用到摄像头;Modifying the number of exposure lines and the exposure gain according to the frame down factor, and applying the modified number of exposure lines and exposure gain to the camera;

所述摄像头根据修改后的曝光行数和曝光增益拍摄照片,并输出所拍摄照片的帧数据。The camera takes a photo according to the modified exposure line number and exposure gain, and outputs frame data of the captured photo.

在一些实施例中,所述降帧因子、修改后的曝光行数以及修改后的曝光增益满足以下关系:In some embodiments, the down frame factor, the modified number of exposure lines, and the modified exposure gain satisfy the following relationship:

修改后的曝光行数=当前的曝光行数*降帧因子;The number of exposed exposure lines = the current number of exposure lines * the frame down factor;

修改后的曝光增益=当前的曝光增益/降帧因子;Modified exposure gain = current exposure gain / frame down factor;

所述降帧因子为默认数值4;The frame down factor is a default value of 4;

当当前帧率除以默认数值4小于4时,则将所述降帧因子调整为当前帧率除以4的值,否则所述降帧因子为默认数值4。When the current frame rate is divided by the default value of 4 and less than 4, the frame down factor is adjusted to the value of the current frame rate divided by 4, otherwise the frame down factor is the default value of 4.

在一些实施例中,所述选择曝光时间满足预定数值的帧数据,并通过所选择的帧数据输出图像的步骤,具体包括以下步骤:In some embodiments, the step of selecting the frame data whose exposure time satisfies a predetermined value and outputting the image through the selected frame data specifically includes the following steps:

获取拍摄的所有帧数据,并检测每一帧数据的曝光时间是否满足预定数值;Obtaining all frame data of the shooting, and detecting whether the exposure time of each frame data satisfies a predetermined value;

当检测到帧数据的曝光时间满足预定数值时,选择所述帧数据,并输出图像。When it is detected that the exposure time of the frame data satisfies a predetermined value, the frame data is selected, and an image is output.

综上所述,本发明公开了一种降帧率拍照方法、移动终端及存储介质,所述方法包括:通过相机预览获取当前环境的预览帧率,并实时收集每一帧数据的曝光信息;根据所述曝光信息和预览帧率判断当前拍照环境是否为预定值的低光环境;当判断到当前拍照环境为预定值的低光环境时,根据预设算法修改曝光参数,并根据所述曝光参数输出对应的帧数据;选择曝光时间满足预定数值的帧数据,并通过所选择的帧数据输出图像。本发明通过动态降低帧率的方式,以原始的摄像头输出高质量照片,从源头上解决了在低光环境下照片清晰度差和噪点多的问题,提高了照片的质量,方便了用户使用。In summary, the present invention discloses a frame dropping rate photographing method, a mobile terminal, and a storage medium. The method includes: obtaining a preview frame rate of a current environment through a camera preview, and collecting exposure information of each frame of data in real time; Determining, according to the exposure information and the preview frame rate, whether the current photographing environment is a low-light environment of a predetermined value; when determining that the current photographing environment is a low-light environment with a predetermined value, modifying the exposure parameter according to a preset algorithm, and according to the exposure The parameter outputs corresponding frame data; the frame data whose exposure time satisfies a predetermined value is selected, and the image is output through the selected frame data. By dynamically reducing the frame rate, the invention outputs high-quality photos with the original camera, and solves the problem of poor picture definition and noise in the low-light environment from the source, improves the quality of the photos, and is convenient for the user to use.

应当理解的是,本发明的应用不限于上述的举例,对本领域普通技术人员来说,可以根据上述说明加以改进或变换,所有这些改进和变换都应属于本发明所附权利要求的保护范围。It is to be understood that the application of the present invention is not limited to the above-described examples, and those skilled in the art can make modifications and changes in accordance with the above description, all of which are within the scope of the appended claims.

Claims (20)

一种降帧率拍照方法,其中,所述降帧率拍照方法包括:A method for photographing a frame down rate, wherein the method for photographing a frame down rate comprises: 通过相机预览获取当前环境的预览帧率,并实时收集每一帧数据的曝光信息;Obtain a preview frame rate of the current environment through camera preview, and collect exposure information of each frame of data in real time; 根据所述曝光信息和预览帧率判断当前拍照环境是否为预定值的低光环境;Determining, according to the exposure information and the preview frame rate, whether the current photographing environment is a low-light environment with a predetermined value; 当判断到当前拍照环境为预定值的低光环境时,根据预设算法修改曝光参数,并根据所述曝光参数输出对应的帧数据;When it is determined that the current photographing environment is a low-light environment with a predetermined value, the exposure parameter is modified according to a preset algorithm, and corresponding frame data is output according to the exposure parameter; 选择曝光时间满足预定数值的帧数据,并通过所选择的帧数据输出图像。Frame data whose exposure time satisfies a predetermined value is selected, and an image is output through the selected frame data. 根据权利要求1所述的降帧率拍照方法,其中,所述通过相机预览获取当前环境的预览帧率,并实时收集每一帧数据的曝光信息的步骤,具体包括以下步骤:The frame dropping rate photographing method according to claim 1, wherein the step of acquiring a preview frame rate of the current environment by the camera preview and collecting the exposure information of each frame of data in real time comprises the following steps: 通过相机预览获取当前环境的预览帧率;Get the preview frame rate of the current environment through camera preview; 实时收集每一帧数据的曝光信息,所述曝光信息包括曝光时长、感光度值以及曝光稳定性标记。The exposure information of each frame of data is collected in real time, and the exposure information includes an exposure time length, a sensitivity value, and an exposure stability flag. 根据权利要求1所述的降帧率拍照方法,其中,判断所述低光环境的预定值为:The frame down rate photographing method according to claim 1, wherein the predetermined value of the low light environment is determined as: 曝光时长为大于1/17秒;The exposure time is greater than 1/17 second; 感光度值为大于1200度;The sensitivity value is greater than 1200 degrees; 预设帧率为小于15帧;The preset frame rate is less than 15 frames; 当且仅当曝光时长大于1/17秒、感光度值大于1200度、预设帧率小于15帧时,则判断当前拍照环境为低光环境。If and only when the exposure time is greater than 1/17 second, the sensitivity value is greater than 1200 degrees, and the preset frame rate is less than 15 frames, it is determined that the current photographing environment is a low light environment. 根据权利要求3所述的降帧率拍照方法,其中,当判断到当前拍照环境为非低光环境时,则继续进行普通拍照模式。The frame dropping rate photographing method according to claim 3, wherein when it is determined that the current photographing environment is a non-low light environment, the normal photographing mode is continued. 根据权利要求1所述的降帧率拍照方法,其中,所述当判断到当前拍照环境为预定值的低光环境时,根据预设算法修改曝光参数,并根据所述曝光参数输出对应的帧数据的步骤,具体包括以下步骤:The frame dropping rate photographing method according to claim 1, wherein when the low light environment in which the current photographing environment is determined to be a predetermined value is determined, the exposure parameter is modified according to a preset algorithm, and the corresponding frame is output according to the exposure parameter. The steps of the data include the following steps: 当判断到当前拍照环境为预定值的低光环境时,获取当前帧的曝光时长、曝光行数和曝光增益;Obtaining an exposure duration, an exposure line number, and an exposure gain of the current frame when it is determined that the current photographing environment is a low-light environment with a predetermined value; 根据当前帧的曝光时长计算降帧因子;Calculating the frame down factor according to the exposure duration of the current frame; 根据所述降帧因子修改所述曝光行数和曝光增益,并将修改后的曝光行数和曝光增益应用到摄像头;Modifying the number of exposure lines and the exposure gain according to the frame down factor, and applying the modified number of exposure lines and exposure gain to the camera; 所述摄像头根据修改后的曝光行数和曝光增益拍摄照片,并输出所拍摄照片的帧数据。The camera takes a photo according to the modified exposure line number and exposure gain, and outputs frame data of the captured photo. 根据权利要求5所述的降帧率拍照方法,其中,所述降帧因子、修改后的曝光行数以及修改后的曝光增益满足以下关系:The frame down rate photographing method according to claim 5, wherein the down frame factor, the modified number of exposure lines, and the modified exposure gain satisfy the following relationship: 修改后的曝光行数=当前的曝光行数*降帧因子;The number of exposed exposure lines = the current number of exposure lines * the frame down factor; 修改后的曝光增益=当前的曝光增益/降帧因子;Modified exposure gain = current exposure gain / frame down factor; 所述降帧因子为默认数值4;The frame down factor is a default value of 4; 当当前帧率除以默认数值4小于4时,则将所述降帧因子调整为当前帧率除以4的值,否则所述降帧因子为默认数值4。When the current frame rate is divided by the default value of 4 and less than 4, the frame down factor is adjusted to the value of the current frame rate divided by 4, otherwise the frame down factor is the default value of 4. 根据权利要求1所述的降帧率拍照方法,其中,所述选择曝光时间满足预定数值的帧数据,并通过所选择的帧数据输出图像的步骤,具体包括以下步骤:The frame down rate photographing method according to claim 1, wherein the step of selecting the frame data whose exposure time satisfies a predetermined value and outputting the image through the selected frame data comprises the following steps: 获取拍摄的所有帧数据,并检测每一帧数据的曝光时间是否满足预定数值;Obtaining all frame data of the shooting, and detecting whether the exposure time of each frame data satisfies a predetermined value; 当检测到帧数据的曝光时间满足预定数值时,选择所述帧数据,并输出图像。When it is detected that the exposure time of the frame data satisfies a predetermined value, the frame data is selected, and an image is output. 根据权利要求7所述的降帧率拍照方法,其中,所述曝光时间的预定数值为1/4秒。The frame down rate photographing method according to claim 7, wherein the predetermined value of the exposure time is 1/4 second. 一种移动终端,其中,包括处理器,以及与所述处理器连接的存储器,所述存储器存储有降帧率拍照程序,所述降帧率拍照程序被所述处理器执行时用于实现如下步骤:A mobile terminal, comprising: a processor, and a memory connected to the processor, wherein the memory stores a frame down rate photographing program, and the frame down rate photographing program is used by the processor to implement the following step: 通过相机预览获取当前环境的预览帧率,并实时收集每一帧数据的曝光信息;Obtain a preview frame rate of the current environment through camera preview, and collect exposure information of each frame of data in real time; 根据所述曝光信息和预览帧率判断当前拍照环境是否为预定值的低光环境;Determining, according to the exposure information and the preview frame rate, whether the current photographing environment is a low-light environment with a predetermined value; 当判断到当前拍照环境为预定值的低光环境时,根据预设算法修改曝光参数,并根据所述曝光参数输出对应的帧数据;When it is determined that the current photographing environment is a low-light environment with a predetermined value, the exposure parameter is modified according to a preset algorithm, and corresponding frame data is output according to the exposure parameter; 选择曝光时间满足预定数值的帧数据,并通过所选择的帧数据输出图像。Frame data whose exposure time satisfies a predetermined value is selected, and an image is output through the selected frame data. 根据权利要求9所述的移动终端,其中,所述通过相机预览获取当前环境的预览帧率,并实时收集每一帧数据的曝光信息的步骤,具体包括以下步骤:The mobile terminal of claim 9, wherein the step of acquiring a preview frame rate of the current environment by the camera preview and collecting the exposure information of each frame of data in real time comprises the following steps: 通过相机预览获取当前环境的预览帧率;Get the preview frame rate of the current environment through camera preview; 实时收集每一帧数据的曝光信息,所述曝光信息包括曝光时长、感光度值以及曝光稳定性标记。The exposure information of each frame of data is collected in real time, and the exposure information includes an exposure time length, a sensitivity value, and an exposure stability flag. 根据权利要求9所述的移动终端,其中,所述当判断到当前拍照环境为预定值的低光环境时,根据预设算法修改曝光参数,并根据所述曝光参数输出对应的帧数据的步骤,具体包括以下步骤:The mobile terminal according to claim 9, wherein the step of modifying an exposure parameter according to a preset algorithm and outputting corresponding frame data according to the exposure parameter when determining that the current photographing environment is a low light environment of a predetermined value Specifically, the following steps are included: 当判断到当前拍照环境为预定值的低光环境时,获取当前帧的曝光时长、曝光行数和曝光增益;Obtaining an exposure duration, an exposure line number, and an exposure gain of the current frame when it is determined that the current photographing environment is a low-light environment with a predetermined value; 根据当前帧的曝光时长计算降帧因子;Calculating the frame down factor according to the exposure duration of the current frame; 根据所述降帧因子修改所述曝光行数和曝光增益,并将修改后的曝光行数和曝光增益应用到摄像头;Modifying the number of exposure lines and the exposure gain according to the frame down factor, and applying the modified number of exposure lines and exposure gain to the camera; 所述摄像头根据修改后的曝光行数和曝光增益拍摄照片,并输出所拍摄照片的帧数据。The camera takes a photo according to the modified exposure line number and exposure gain, and outputs frame data of the captured photo. 根据权利要求11所述的移动终端,其中,所述降帧因子、修改后的曝光行数以及修改后的曝光增益满足以下关系:The mobile terminal of claim 11, wherein the down frame factor, the modified number of exposure lines, and the modified exposure gain satisfy the following relationship: 修改后的曝光行数=当前的曝光行数*降帧因子;The number of exposed exposure lines = the current number of exposure lines * the frame down factor; 修改后的曝光增益=当前的曝光增益/降帧因子;Modified exposure gain = current exposure gain / frame down factor; 所述降帧因子为默认数值4;The frame down factor is a default value of 4; 当当前帧率除以默认数值4小于4时,则将所述降帧因子调整为当前帧率除以4的值,否则所述降帧因子为默认数值4。When the current frame rate is divided by the default value of 4 and less than 4, the frame down factor is adjusted to the value of the current frame rate divided by 4, otherwise the frame down factor is the default value of 4. 根据权利要求9所述的移动终端,其中,所述选择曝光时间满足预定数值的帧数据,并通过所选择的帧数据输出图像的步骤,具体包括以下步骤:The mobile terminal according to claim 9, wherein the step of selecting the frame data whose exposure time satisfies a predetermined value and outputting the image through the selected frame data specifically includes the following steps: 获取拍摄的所有帧数据,并检测每一帧数据的曝光时间是否满足预定数值;Obtaining all frame data of the shooting, and detecting whether the exposure time of each frame data satisfies a predetermined value; 当检测到帧数据的曝光时间满足预定数值时,选择所述帧数据,并输出图像。When it is detected that the exposure time of the frame data satisfies a predetermined value, the frame data is selected, and an image is output. 一种存储介质,其中,所述存储介质存储有降帧率拍照程序,所述降帧率拍照程序被处理器执行时用于实现如下步骤:A storage medium, wherein the storage medium stores a frame down rate photographing program, and the frame down rate photographing program is used by the processor to implement the following steps: 通过相机预览获取当前环境的预览帧率,并实时收集每一帧数据的曝光信息;Obtain a preview frame rate of the current environment through camera preview, and collect exposure information of each frame of data in real time; 根据所述曝光信息和预览帧率判断当前拍照环境是否为预定值的低光环境;Determining, according to the exposure information and the preview frame rate, whether the current photographing environment is a low-light environment with a predetermined value; 当判断到当前拍照环境为预定值的低光环境时,根据预设算法修改曝光参数,并根据所述曝光参数输出对应的帧数据;When it is determined that the current photographing environment is a low-light environment with a predetermined value, the exposure parameter is modified according to a preset algorithm, and corresponding frame data is output according to the exposure parameter; 选择曝光时间满足预定数值的帧数据,并通过所选择的帧数据输出图像。Frame data whose exposure time satisfies a predetermined value is selected, and an image is output through the selected frame data. 根据权利要求14所述的存储介质,其中,所述通过相机预览获取当前环境的预览帧率,并实时收集每一帧数据的曝光信息的步骤,具体包括以下步骤:The storage medium according to claim 14, wherein the step of acquiring a preview frame rate of the current environment by camera preview and collecting exposure information of each frame of data in real time comprises the following steps: 通过相机预览获取当前环境的预览帧率;Get the preview frame rate of the current environment through camera preview; 实时收集每一帧数据的曝光信息,所述曝光信息包括曝光时长、感光度值以及曝光稳定性标记。The exposure information of each frame of data is collected in real time, and the exposure information includes an exposure time length, a sensitivity value, and an exposure stability flag. 根据权利要求14所述的存储介质,其中,判断所述低光环境的预定值为:The storage medium of claim 14, wherein the predetermined value of the low light environment is determined to be: 曝光时长为大于1/17秒;The exposure time is greater than 1/17 second; 感光度值为大于1200度;The sensitivity value is greater than 1200 degrees; 预设帧率为小于15帧;The preset frame rate is less than 15 frames; 当且仅当曝光时长大于1/17秒、感光度值大于1200度、预设帧率小于15帧时,则判断当前拍照环境为低光环境。If and only when the exposure time is greater than 1/17 second, the sensitivity value is greater than 1200 degrees, and the preset frame rate is less than 15 frames, it is determined that the current photographing environment is a low light environment. 根据权利要求16所述的存储介质,其中,当判断到当前拍照环境为非低光环境时,则继续进行普通拍照模式。The storage medium according to claim 16, wherein when it is determined that the current photographing environment is a non-low light environment, the normal photographing mode is continued. 根据权利要求14所述的存储介质,其中,所述当判断到当前拍照环境为预定值的低光环境时,根据预设算法修改曝光参数,并根据所述曝光参数输出对应的帧数据的步骤,具体包括以下步骤:The storage medium according to claim 14, wherein the step of modifying an exposure parameter according to a preset algorithm and outputting corresponding frame data according to the exposure parameter when determining that the current photographing environment is a low light environment of a predetermined value Specifically, the following steps are included: 当判断到当前拍照环境为预定值的低光环境时,获取当前帧的曝光时长、曝光行数和曝光增益;Obtaining an exposure duration, an exposure line number, and an exposure gain of the current frame when it is determined that the current photographing environment is a low-light environment with a predetermined value; 根据当前帧的曝光时长计算降帧因子;Calculating the frame down factor according to the exposure duration of the current frame; 根据所述降帧因子修改所述曝光行数和曝光增益,并将修改后的曝光行数和曝光增益应用到摄像头;Modifying the number of exposure lines and the exposure gain according to the frame down factor, and applying the modified number of exposure lines and exposure gain to the camera; 所述摄像头根据修改后的曝光行数和曝光增益拍摄照片,并输出所拍摄照片的帧数据。The camera takes a photo according to the modified exposure line number and exposure gain, and outputs frame data of the captured photo. 根据权利要求18所述的存储介质,其中,所述降帧因子、修改后的曝光行数以及修改后的曝光增益满足以下关系:The storage medium of claim 18, wherein the down frame factor, the modified number of exposure lines, and the modified exposure gain satisfy the following relationship: 修改后的曝光行数=当前的曝光行数*降帧因子;The number of exposed exposure lines = the current number of exposure lines * the frame down factor; 修改后的曝光增益=当前的曝光增益/降帧因子;Modified exposure gain = current exposure gain / frame down factor; 所述降帧因子为默认数值4;The frame down factor is a default value of 4; 当当前帧率除以默认数值4小于4时,则将所述降帧因子调整为当前帧率除以4的值,否则所述降帧因子为默认数值4。When the current frame rate is divided by the default value of 4 and less than 4, the frame down factor is adjusted to the value of the current frame rate divided by 4, otherwise the frame down factor is the default value of 4. 根据权利要求14所述的存储介质,其中,所述选择曝光时间满足预定数值的帧数据,并通过所选择的帧数据输出图像的步骤,具体包括以下步骤:The storage medium according to claim 14, wherein said step of selecting frame data whose exposure time satisfies a predetermined value and outputting an image through said selected frame data comprises the following steps: 获取拍摄的所有帧数据,并检测每一帧数据的曝光时间是否满足预定数值;Obtaining all frame data of the shooting, and detecting whether the exposure time of each frame data satisfies a predetermined value; 当检测到帧数据的曝光时间满足预定数值时,选择所述帧数据,并输出图像。When it is detected that the exposure time of the frame data satisfies a predetermined value, the frame data is selected, and an image is output.
PCT/CN2018/123996 2017-12-29 2018-12-26 Frame rate-lowered photographing method, mobile terminal and storage medium WO2019129092A1 (en)

Applications Claiming Priority (2)

Application Number Priority Date Filing Date Title
CN201711476901.8 2017-12-29
CN201711476901.8A CN107864341A (en) 2017-12-29 2017-12-29 One kind drop frame per second photographic method, mobile terminal and storage medium

Publications (1)

Publication Number Publication Date
WO2019129092A1 true WO2019129092A1 (en) 2019-07-04

Family

ID=61707669

Family Applications (1)

Application Number Title Priority Date Filing Date
PCT/CN2018/123996 WO2019129092A1 (en) 2017-12-29 2018-12-26 Frame rate-lowered photographing method, mobile terminal and storage medium

Country Status (2)

Country Link
CN (1) CN107864341A (en)
WO (1) WO2019129092A1 (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN114245026A (en) * 2021-12-15 2022-03-25 惠州Tcl移动通信有限公司 Shooting method and device, computer equipment and storage medium

Families Citing this family (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN107864341A (en) * 2017-12-29 2018-03-30 Tcl移动通信科技(宁波)有限公司 One kind drop frame per second photographic method, mobile terminal and storage medium
CN109005369B (en) * 2018-10-22 2020-07-10 Oppo广东移动通信有限公司 Exposure control method, exposure control device, electronic apparatus, and computer-readable storage medium
CN111385484B (en) * 2018-12-28 2021-06-25 北京字节跳动网络技术有限公司 Information processing method and device
CN110072052B (en) * 2019-04-09 2021-08-27 Oppo广东移动通信有限公司 Image processing method and device based on multi-frame image and electronic equipment
CN110753189B (en) * 2019-12-25 2020-05-19 武汉精立电子技术有限公司 Camera image capturing method and system
WO2024021057A1 (en) * 2022-07-29 2024-02-01 Qualcomm Incorporated Dynamic image sensor configuration for improved image stabilization in an image capture device
CN118075617B (en) * 2024-04-22 2024-07-23 杭州涂鸦信息技术有限公司 Image exposure method, device, electronic equipment and storage medium

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103973983A (en) * 2014-05-29 2014-08-06 成都品果科技有限公司 Method for intelligently adjusting brightness of picture on basis of detection of environmental brightness in photographing
CN106127698A (en) * 2016-06-15 2016-11-16 深圳市万普拉斯科技有限公司 Image noise reduction treating method and apparatus
CN107509044A (en) * 2017-08-31 2017-12-22 广东欧珀移动通信有限公司 Image synthesis method, image synthesis device, computer-readable storage medium and computer equipment
CN107864341A (en) * 2017-12-29 2018-03-30 Tcl移动通信科技(宁波)有限公司 One kind drop frame per second photographic method, mobile terminal and storage medium

Family Cites Families (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP4122693B2 (en) * 2000-08-09 2008-07-23 株式会社ニコン Electronic camera
CN102790862A (en) * 2012-07-30 2012-11-21 成都西可科技有限公司 Method for dynamically improving effect of cell phone front camera
CN103024279A (en) * 2012-12-27 2013-04-03 上海华勤通讯技术有限公司 Camera brightness regulating device and implementation method thereof
CN104079842B (en) * 2014-06-27 2017-07-07 广东欧珀移动通信有限公司 The control method and device of camera noise and frame per second
CN105611179B (en) * 2016-03-28 2018-09-04 广东欧珀移动通信有限公司 Multi-frame optimization method and device for hand-held photographing anti-shake and mobile terminal

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103973983A (en) * 2014-05-29 2014-08-06 成都品果科技有限公司 Method for intelligently adjusting brightness of picture on basis of detection of environmental brightness in photographing
CN106127698A (en) * 2016-06-15 2016-11-16 深圳市万普拉斯科技有限公司 Image noise reduction treating method and apparatus
CN107509044A (en) * 2017-08-31 2017-12-22 广东欧珀移动通信有限公司 Image synthesis method, image synthesis device, computer-readable storage medium and computer equipment
CN107864341A (en) * 2017-12-29 2018-03-30 Tcl移动通信科技(宁波)有限公司 One kind drop frame per second photographic method, mobile terminal and storage medium

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN114245026A (en) * 2021-12-15 2022-03-25 惠州Tcl移动通信有限公司 Shooting method and device, computer equipment and storage medium
CN114245026B (en) * 2021-12-15 2023-10-13 惠州Tcl移动通信有限公司 Shooting method, shooting device, computer equipment and storage medium

Also Published As

Publication number Publication date
CN107864341A (en) 2018-03-30

Similar Documents

Publication Publication Date Title
WO2019129092A1 (en) Frame rate-lowered photographing method, mobile terminal and storage medium
WO2018103525A1 (en) Method and device for tracking facial key point, and storage medium
CN110175062B (en) Screen refreshing frame rate method of mobile terminal, mobile terminal and storage medium
WO2019129020A1 (en) Automatic focusing method of camera, storage device and mobile terminal
US20200374386A1 (en) Photographing Method and Terminal
CN108536490B (en) Application program starting method, mobile terminal and computer storage medium
CN108012084A (en) A kind of image generating method, application processor AP and third party's picture processing chip
CN108958695B (en) Audio output method, device and computer readable storage medium
CN110187808B (en) Dynamic wallpaper setting method and device and computer-readable storage medium
WO2018219275A1 (en) Focusing method and device, computer-readable storage medium, and mobile terminal
CN111147919A (en) A playback adjustment method, electronic device and computer-readable storage medium
CN109189303B (en) Text editing method and mobile terminal
WO2018219267A1 (en) Exposure method and device, computer-readable storage medium, and mobile terminal
WO2019047862A1 (en) Fingerprint acquisition method and terminal device and storage medium
WO2019015562A1 (en) Full-vision navigation and positioning method, intelligent terminal and storage device
CN111106902B (en) Data message transmission method, device, device and computer-readable storage medium
WO2021104162A1 (en) Display method and electronic device
WO2019242633A1 (en) Measurement interval processing method, terminal and network node
WO2021000778A1 (en) Uplink transmission discarding method, uplink transmission discarding configuration method and related device
WO2019101207A1 (en) Smart terminal control method, smart terminal, and device having storage function
CN110505660B (en) A network rate adjustment method and terminal equipment
US20220110036A1 (en) Random access method and terminal
CN108008808B (en) Operating parameter adjustment method and mobile terminal
CN107623788B (en) Method, device and computer-readable storage medium for improving application startup speed
CN106851050A (en) Motion detection method and device, mobile device

Legal Events

Date Code Title Description
121 Ep: the epo has been informed by wipo that ep was designated in this application

Ref document number: 18895159

Country of ref document: EP

Kind code of ref document: A1

NENP Non-entry into the national phase

Ref country code: DE

122 Ep: pct application non-entry in european phase

Ref document number: 18895159

Country of ref document: EP

Kind code of ref document: A1