CN111406399B - Terminal shooting frame rate selection method, terminal and computer readable storage medium - Google Patents

Terminal shooting frame rate selection method, terminal and computer readable storage medium Download PDF

Info

Publication number
CN111406399B
CN111406399B CN201780096516.2A CN201780096516A CN111406399B CN 111406399 B CN111406399 B CN 111406399B CN 201780096516 A CN201780096516 A CN 201780096516A CN 111406399 B CN111406399 B CN 111406399B
Authority
CN
China
Prior art keywords
frame rate
terminal
application
feature code
target application
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Active
Application number
CN201780096516.2A
Other languages
Chinese (zh)
Other versions
CN111406399A (en
Inventor
缪威
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Shenzhen Transsion Communication Co Ltd
Original Assignee
Shenzhen Transsion Communication Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Shenzhen Transsion Communication Co Ltd filed Critical Shenzhen Transsion Communication Co Ltd
Publication of CN111406399A publication Critical patent/CN111406399A/en
Application granted granted Critical
Publication of CN111406399B publication Critical patent/CN111406399B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04MTELEPHONIC COMMUNICATION
    • H04M1/00Substation equipment, e.g. for use by subscribers
    • H04M1/72Mobile telephones; Cordless telephones, i.e. devices for establishing wireless links to base stations without route selection
    • H04M1/725Cordless telephones

Landscapes

  • Engineering & Computer Science (AREA)
  • Computer Networks & Wireless Communication (AREA)
  • Signal Processing (AREA)
  • Telephone Function (AREA)
  • Studio Devices (AREA)

Abstract

The invention discloses a terminal shooting frame rate selection method, a terminal and a computer readable storage medium, wherein the method comprises the following steps: acquiring a blacklist preset by a terminal, wherein the blacklist comprises a feature code of an application to be repaired; detecting whether the target application contains the feature code of the application to be repaired; and if the target application comprises the feature code of the application to be repaired, the current shooting used frame rate of the terminal is a preset frame rate. The method and the device can ensure that all third-party applications of the terminal can shoot clear, non-overexposure and non-darkness pictures, and ensure user experience.

Description

Terminal shooting frame rate selection method, terminal and computer readable storage medium
Technical Field
The present invention relates to the field of shooting technologies, and in particular, to a method for selecting a shooting frame rate of a terminal, and a computer-readable storage medium.
Background
With the rapid development of the smart phone industry, people have an increasing demand for shooting, and the development of third-party applications of many shooting types is promoted. Different mobile phones have different exposure table settings and the same frame rate, and for the mobile phones with different exposure table settings, the exposure time is different, which causes different imaging effects. Therefore, how to adapt the shooting type third-party application to each mobile phone to ensure a good imaging effect becomes a technical problem to be solved urgently.
Many shooting-type third-party applications store synchronization with a mainstream mobile phone or a mainstream platform, and set a frame rate suitable for the mainstream mobile phone or the platform, for example, a fixed frame rate of 30 frames. Some mobile phones exist, it is determined according to the exposure table that the frame rate corresponding to the current environment may not be 30 frames, and because the bottom layer of the mobile phone is subject to the requirement of the application end, although the actual requirement is not 30 frames, the mobile phone can only shoot with 30 frames, which causes final imaging overexposure or dimness, and affects the user experience.
The above is only for the purpose of assisting understanding of the technical aspects of the present invention, and does not represent an admission that the above is prior art.
Disclosure of Invention
The invention mainly aims to provide a method for selecting a terminal shooting frame rate, and aims to solve the technical problem of overexposure or darkness of imaging caused by inconsistency between a third party application and an actually required frame rate.
In order to achieve the above object, the present invention provides a method for selecting a shooting frame rate of a terminal, including:
acquiring a blacklist preset by a terminal, wherein the blacklist comprises a feature code of an application to be repaired;
detecting whether the target application contains the feature code of the application to be repaired;
and if the target application comprises the feature code of the application to be repaired, the current shooting used frame rate of the terminal is a preset frame rate.
In an optional implementation manner, if the target application includes the feature code of the application to be repaired, the step of setting the current shooting frame rate of the terminal to be a preset frame rate includes:
and if the target application comprises the feature code of the application to be repaired, the current shooting used frame rate of the terminal is a preset dynamic frame rate.
In an optional implementation manner, if the target application includes the feature code of the application to be repaired, the step of setting the current shooting frame rate of the terminal to be a preset frame rate includes:
and acquiring a target frame rate corresponding to the light intensity of the environment where the terminal is located, and storing the target frame rate as a preset frame rate.
In an optional implementation manner, the step of obtaining a blacklist preset by the terminal includes:
acquiring a white list preset by a terminal, wherein the white list comprises a feature code of a non-inspection application;
judging whether the target application contains the feature code of the inspection-free application or not;
if the target application comprises the feature code of the inspection-free application, the frame rate used by current shooting is the frame rate set by the target application;
and if the target application does not contain the feature code of the inspection-free application, executing the step of acquiring a blacklist preset by the terminal.
In an optional implementation manner, the step of, if the target application does not include the feature code of the leave-in application, includes:
if the terminal is in a forced default frame rate mode at present, selecting a preset frame rate as a frame rate used by the terminal for shooting at present;
and if the terminal is not in the forced default frame rate mode currently, executing the step of acquiring the blacklist preset by the terminal.
In an optional implementation manner, the step of detecting whether the target application includes the feature code of the application to be repaired includes:
if the target application does not contain the feature code of the application to be repaired, outputting a selection prompt box for judging whether the preview is normal;
and if a selection instruction which is input by a user and is abnormal in preview is received, storing the feature code of the target application into the preset blacklist.
In an optional implementation manner, the step of detecting whether the target application includes the feature code of the application to be repaired includes:
if the target application does not contain the feature code of the application to be repaired, acquiring the frame rate of the target application;
acquiring a target frame rate corresponding to the light intensity of the environment where the terminal is located, and judging whether the frame rate of the target application is consistent with the target frame rate or not;
and if the frame rate of the target application is not consistent with the target frame rate, storing the feature code of the target application into the preset blacklist.
In an alternative embodiment, the step of storing the feature code of the target application in the preset blacklist includes:
and executing the step of acquiring the blacklist preset by the terminal.
In order to achieve the above object, the present invention further provides a terminal, including: the terminal shooting frame rate selection method comprises a memory, a processor and a terminal shooting frame rate selection program which is stored on the memory and can run on the processor, wherein when the terminal shooting frame rate selection program is executed by the processor, the steps of the terminal shooting frame rate selection method are realized.
In addition, to achieve the above object, the present invention further provides a computer-readable storage medium, wherein a terminal shooting frame rate selection program is stored on the computer-readable storage medium, and when executed by a processor, the terminal shooting frame rate selection program implements the steps of the above terminal shooting frame rate selection method.
In the embodiment, the application with the frame rate not matched with the terminal exposure table is recorded in the blacklist, when the processor executes the third-party application to call the camera each time, whether the third-party application is the application to be repaired, which is recorded in the blacklist and not matched with the terminal, is judged, if the third-party application is the application to be repaired, the processor calls the camera, the preset frame rate of the terminal is selected for shooting, when the processor executes the third-party application to call the camera, final imaging overexposure or partial darkness caused by the fact that the frame rate set by the third-party application is not matched with the terminal is avoided, and user experience is guaranteed.
Drawings
Fig. 1 is a schematic terminal structure diagram of a hardware operating environment according to an embodiment of the present invention;
FIG. 2 is a flowchart illustrating a method for selecting a frame rate for a terminal according to a first embodiment of the present invention;
FIG. 3 is a flowchart illustrating a second embodiment of a method for selecting a frame rate for a terminal according to the present invention;
FIG. 4 is a flowchart illustrating a sixth embodiment of a method for selecting a frame rate for a terminal according to the present invention;
fig. 5 is a schematic diagram of a conventional implementation of a method for selecting a shooting frame rate of a terminal according to a seventh embodiment of the present invention;
fig. 6 is a flowchart illustrating a seventh embodiment of a method for selecting a frame rate for terminal shooting according to the present invention.
The implementation, functional features and advantages of the objects of the present invention will be further explained with reference to the accompanying drawings.
Detailed Description
It should be understood that the specific embodiments described herein are merely illustrative of the invention and are not intended to limit the invention.
As shown in fig. 1, fig. 1 is a schematic terminal structure diagram of a hardware operating environment according to an embodiment of the present invention.
The terminal in the embodiment of the present invention may be a mobile terminal, such as a PC, a smart phone, a tablet computer, an e-book reader, an MP3(Moving Picture Experts Group Audio Layer III, motion video Experts compression standard Audio Layer 3) player, an MP4(Moving Picture Experts Group Audio Layer IV, motion video Experts compression standard Audio Layer 3) player, a portable computer, and other mobile terminal devices having a display function, or may be a fixed terminal.
As shown in fig. 1, the terminal may include: a processor 1001, such as a CPU, a network interface 1004, a user interface 1003, a memory 1005, a communication bus 1002. Wherein a communication bus 1002 is used to enable connective communication between these components. The user interface 1003 may include a Display screen (Display), an input unit such as a Keyboard (Keyboard), and the optional user interface 1003 may also include a standard wired interface, a wireless interface. The network interface 1004 may optionally include a standard wired interface, a wireless interface (e.g., WI-FI interface). The memory 1005 may be a high-speed RAM memory or a non-volatile memory (e.g., a magnetic disk memory). The memory 1005 may alternatively be a storage device separate from the processor 1001.
Optionally, the terminal may further include a camera, a Radio Frequency (RF) circuit, a sensor, an audio circuit, a WiFi module, and the like. Such as light sensors, motion sensors, and other sensors. Specifically, the light sensor may include an ambient light sensor that adjusts brightness of the display screen according to brightness of ambient light, and a proximity sensor that turns off the display screen and/or backlight when the terminal moves to the ear. As one of the motion sensors, the gravity acceleration sensor can detect the magnitude of acceleration in each direction (generally, three axes), detect the magnitude and direction of gravity when the terminal is stationary, and can be used for applications of recognizing terminal gestures (such as horizontal and vertical screen switching, related games, magnetometer gesture calibration), vibration recognition related functions (such as pedometer and tapping), and the like; of course, the terminal may also be configured with other sensors such as a gyroscope, a barometer, a hygrometer, a thermometer, and an infrared sensor, which are not described herein again.
Those skilled in the art will appreciate that the terminal structure shown in fig. 1 is not intended to be limiting and may include more or fewer components than those shown, or some components may be combined, or a different arrangement of components.
As shown in fig. 1, a memory 1005, which is a kind of computer storage medium, may include therein an operating system, a network communication module, a user interface module, and a terminal photographing frame rate selection program.
In the terminal shown in fig. 1, the network interface 1004 is mainly used for connecting to a backend server and performing data communication with the backend server; the user interface 1003 is mainly used for connecting a client (user side) and performing data communication with the client; and the processor 1001 may be configured to call the terminal photographing frame rate selection program stored in the memory 1005, and perform the following operations:
acquiring a blacklist preset by a terminal, wherein the blacklist comprises a feature code of an application to be repaired;
detecting whether the target application contains the feature code of the application to be repaired;
and if the target application comprises the feature code of the application to be repaired, the current shooting used frame rate of the terminal is a preset frame rate.
If the target application contains the feature code of the application to be repaired, the step that the frame rate used by the terminal in the current shooting is the preset frame rate comprises the following steps:
and if the target application comprises the feature code of the application to be repaired, the current shooting used frame rate of the terminal is a preset dynamic frame rate.
Further, the processor 1001 may be configured to call a terminal shooting frame rate selection program stored in the memory 1005, and further perform the following operations:
if the target application contains the feature code of the application to be repaired, the step that the frame rate used by the terminal in the current shooting is the preset frame rate comprises the following steps:
and acquiring a target frame rate corresponding to the light intensity of the environment where the terminal is located, and storing the target frame rate as a preset frame rate.
Further, the processor 1001 may be configured to call a terminal shooting frame rate selection program stored in the memory 1005, and further perform the following operations:
the step of obtaining the blacklist preset by the terminal comprises the following steps:
acquiring a white list preset by a terminal, wherein the white list comprises a feature code of a non-inspection application;
judging whether the target application contains the feature code of the inspection-free application or not;
if the target application comprises the feature code of the inspection-free application, the frame rate used by current shooting is the frame rate set by the target application;
and if the target application does not contain the feature code of the inspection-free application, executing the step of acquiring a blacklist preset by the terminal.
Further, the processor 1001 may be configured to call a terminal shooting frame rate selection program stored in the memory 1005, and further perform the following operations:
the step of, if the target application does not include the feature code of the leave-in application, then includes:
if the terminal is in a forced default frame rate mode at present, selecting a preset frame rate as a frame rate used by the terminal for shooting at present;
and if the terminal is not in the forced default frame rate mode currently, executing the step of acquiring the blacklist preset by the terminal.
Further, the processor 1001 may be configured to call a terminal shooting frame rate selection program stored in the memory 1005, and further perform the following operations:
the step of detecting whether the target application contains the feature code of the application to be repaired comprises the following steps:
if the target application does not contain the feature code of the application to be repaired, outputting a selection prompt box for judging whether the preview is normal;
and if a selection instruction which is input by a user and is abnormal in preview is received, storing the feature code of the target application into the preset blacklist.
Further, the processor 1001 may be configured to call a terminal shooting frame rate selection program stored in the memory 1005, and further perform the following operations:
the step of detecting whether the target application contains the feature code of the application to be repaired comprises the following steps:
if the target application does not contain the feature code of the application to be repaired, acquiring the frame rate of the target application;
acquiring a target frame rate corresponding to the light intensity of the environment where the terminal is located, and judging whether the frame rate of the target application is consistent with the target frame rate or not;
and if the frame rate of the target application is not consistent with the target frame rate, storing the feature code of the target application into the preset blacklist.
Further, the processor 1001 may be configured to call a terminal shooting frame rate selection program stored in the memory 1005, and further perform the following operations:
the step of storing the feature code of the target application into the preset blacklist comprises the following steps:
and executing the step of acquiring the blacklist preset by the terminal.
Referring to fig. 2, in a first embodiment of a method for selecting a shooting frame rate of a terminal according to the present invention, the method for selecting a shooting frame rate of a terminal includes:
step S10, obtaining a blacklist preset by the terminal, wherein the blacklist comprises a feature code of an application to be repaired;
the frame rate set by the third party application is not matched with the exposure table built in the terminal, which may cause overexposure or dimming of the imaging. For the third-party applications, the third-party applications with problems can be collected through market research by manual or technical means, and the feature codes of the third-party applications are stored in a blacklist preset by the terminal, so that when the terminal executes a third-party application program to call a camera, corresponding operation can be executed according to the blacklist, and the technical problems of imaging overexposure or partial darkness and the like caused by the fact that the third-party application frame rate is not matched with the terminal are avoided.
The form of the black list in this embodiment may be various, such as a table, or data stored in a specific address, or all data with some special mark. The specific content (feature code of the third-party application) of the blacklist can be added by manually collecting application information, and can also be automatically added by the terminal according to data fed back by a user or fed back by the third-party application in the running process.
The application to be modified refers to an application whose feature code is recorded on the blacklist. The feature code is a unique identifier representing a third-party application, and can be a package name of the application, or a digital signature or other digital codes.
Step S11, detecting whether the target application contains the feature code of the application to be repaired;
step S12, if the target application includes the feature code of the application to be repaired, the frame rate currently used by the terminal for shooting is a preset frame rate.
The target application refers to an application program which is currently operated by the terminal and needs to call the camera.
In this embodiment, the step of detecting whether the target application includes the feature code of the application to be repaired may specifically be: and acquiring a feature code of the target application, searching whether the feature code of the target application is stored in a blacklist, and if the feature code of the target application is stored in the blacklist, the target application comprises the feature code in the blacklist, namely the feature code of the application to be repaired.
And if the target application contains the feature code of the application to be repaired, the target application is the application to be repaired in the blacklist, the frame rate set by the third-party application is not matched with an exposure table in the terminal, and the terminal can call the preset frame rate in the terminal in order to avoid final imaging overexposure or partial darkness.
If the feature code of the target application is not stored in the blacklist, the target application is not an application to be repaired, the frame rate set by the target application can be directly used for shooting, the conventional setting that the bottom layer obeys the instruction of the upper layer application is followed, or the next judgment step is carried out, so that if the frame rate set by the target application is not matched with the terminal, the terminal can select a proper frame rate for shooting, the definition of the final imaging is ensured, the situation that the image is not dark and overexposed is avoided, and better user experience is ensured.
In the embodiment, the application with the frame rate not matched with the terminal exposure table is recorded in the blacklist, when the processor executes the third-party application to call the camera each time, whether the third-party application is the application to be repaired, which is recorded in the blacklist and not matched with the terminal, is judged, if the third-party application is the application to be repaired, the processor calls the camera, the preset frame rate of the terminal is selected for shooting, when the processor executes the third-party application to call the camera, final imaging overexposure or partial darkness caused by the fact that the frame rate set by the third-party application is not matched with the terminal is avoided, and user experience is guaranteed.
The preset frame rate in this embodiment is a frame rate set by a terminal manufacturer, and the preset frame rate may be a fixed frame rate, a dynamic frame rate, or: a fixed frame rate in a particular case and a dynamic frame rate in another particular case. The preset frame rate is the frame rate matched with the terminal exposure meter, and clear imaging effect can be obtained by using the frame rate to shoot under the current environment of the terminal.
Specifically, step S12 includes before:
step S13, acquiring a target frame rate corresponding to the light intensity of the environment where the terminal is located, and storing the target frame rate as a preset frame rate.
The terminal has a built-in exposure table stored therein that can be used to calculate the amount of light in the scene and set the camera shutter speed and aperture value to provide the best photo illumination or "exposure". The stronger the illumination, the shorter the exposure time, and the greater the frame rate. The target frame rate corresponding to illumination can be determined according to the light intensity of the environment where the terminal is located, the target frame rate can be a dynamic frame rate or a fixed frame rate, the target frame rate can ensure that a camera on the terminal has the most appropriate exposure time, and the camera on the terminal can be ensured to shoot pictures which are not over-exposed or slightly dark. And storing the target frame rate as a preset frame rate in the terminal for later use.
The steps of this embodiment (i.e. the step of determining the target frame rate according to the ambient light intensity) should be completed before step S12, and may be performed simultaneously with step S10 or step S11, or before or after step S10 or step S11.
In the embodiment, the target frame rate is determined according to the light intensity of the environment where the terminal is located, the target frame rate is set as the preset frame rate of the terminal, and after the target application is judged to be the to-be-repaired application recorded in the blacklist, the preset frame rate is selected to shoot the image which is normal, not over-exposed and not dark.
Further, step S12 may include:
step S14, if the target application includes the feature code of the application to be repaired, the current shooting frame rate of the terminal is the preset dynamic frame rate.
In an embodiment, when it is detected that the target application includes the feature code of the application to be repaired, it is determined that the target application is the application to be repaired recorded in the blacklist, the frame rate of the target application is not matched with the exposure table in the terminal, and when the processor executes the target application to call the camera, the actually used frame rate should be the dynamic frame rate preset in the terminal. The terminal may preset the fixed frame rate and the dynamic frame rate at the same time, and the embodiment determines to select the preset dynamic frame rate, so that the method can be more adaptive to environmental changes. The preset dynamic frame rate may be 5-30 frames, or a dynamic frame rate determined according to ambient light or a scene where the terminal is located.
This embodiment may be combined with the previous embodiment (i.e., step S13), or may not be combined, and the combination scheme may be obtained according to the above detailed description, which is not repeated herein.
In this embodiment, when the target application is an application to be modified recorded in the blacklist, the shooting frame rate of the terminal is selected from the preset dynamic frame rate of the terminal, so that the method can adapt to environmental changes, meet shooting requirements under different conditions, and ensure that clear, non-overexposure and non-dimness images can be still shot when the environment changes.
Further, referring to fig. 3, in the second embodiment of the terminal shooting frame rate selection method of the present invention, based on the first embodiment, step S10 is preceded by:
step S20, acquiring a white list preset by the terminal, wherein the white list comprises a feature code of the non-inspection application;
step S21, determining whether the target application includes the feature code of the non-inspection application, if yes, performing step S22, and if the target application does not include the feature code of the non-inspection application, performing step S10;
step S22, setting the frame rate used by the current shooting as the frame rate set by the target application;
in an alternative embodiment, besides setting the black list, a white list may also be set at the same time. The white list stores the applications without problems, namely the applications matched with the exposure table in the terminal, which is called as the inspection-free applications in the embodiment, if the feature codes in the target applications are recorded in the white list, the frame rate of the target applications can be determined to be appropriate, when the target applications are executed to call the camera, the frame rate required by the target applications can be directly selected without continuing subsequent black list judgment, steps are saved, memory resources are saved, the shooting frame rate can be obtained more quickly, the shooting can be performed as soon as possible, the user can be ensured to use the shooting function as soon as possible, and the user experience is improved.
The preset white list is set by the terminal factory, and records the set frame rate and the feature code of the application matched with the terminal exposure table. The "trouble-free" applications can be determined by market research manually or by technical means, and all the "trouble-free" applications can be stored in the white list as non-inspection applications.
When the processor executes the third-party application and calls the camera, whether the feature code of the inspection-free application is contained in the third-party application is judged, in other words, whether the feature code of the third-party application is the feature code of the inspection-free application is judged. If the feature code of the third-party application can be found in the white list, the third-party application is an inspection-free application, and the set frame rate of the third-party application can be directly adopted; and if the feature code of the third-party application cannot be found in the white list, the third-party application is not an inspection-free application. If the third-party application is not the inspection-free application, it needs to further determine whether the third-party application is an application to be repaired in the blacklist, and execute the step of obtaining the blacklist preset by the terminal, that is, step S10.
In this embodiment, by setting the white list before the third-party application is determined to be the to-be-repaired application recorded in the black list, some third-party applications determined to be matched with the terminal exposure table can be selected, the frame rate set by the third-party applications stored in the white list is directly selected for shooting, so that operation and memory resources are saved, and the step of obtaining the black list preset by the terminal is executed for the applications not recorded in the other white lists, so as to determine whether the applications are the to-be-repaired applications recorded in the black list.
Further, in a third embodiment of the present invention, based on the first embodiment or the second embodiment, the step of step S21, if the target application does not include the feature code of the non-inspection application, includes the following steps:
step S30, if the terminal is in the forced default frame rate mode, selecting the preset frame rate as the frame rate used by the terminal for shooting currently;
in step S31, if the terminal is not currently in the forced default frame rate mode, step S10 is executed.
In an optional implementation mode, two modes exist to solve the technical problem of overexposure or partial darkness caused by the fact that the frame rate set by a third-party application is not matched with a terminal exposure table. The first mode is a mode of only judging a white list, which is called as a forced default frame rate mode in this embodiment, that is, whether a third-party application includes a feature code of an inspection-free application stored in the white list is judged, and if it is judged that the third-party application does not include the feature code of the inspection-free application stored in the white list, that is, the third-party application is not the inspection-free application stored in the white list, a preset frame rate of the terminal is directly selected for shooting; the second is a matching manner of the white list and the black list, that is, after it is determined that the third-party application is not the inspection-free application stored in the white list, it is further determined whether the third-party application is the application to be repaired stored in the black list, that is, the step of obtaining the black list preset by the terminal is executed, that is, step S10.
And judging whether the target application contains the feature code of the non-inspection application in the white list, and after determining that the target application contains the feature code of the non-inspection application, namely the target application is the non-inspection application, setting the frame rate used by current shooting as the frame rate set for the target application. And if the target application does not contain the feature code of the inspection-free application, executing different operations according to different modes of the terminal at present.
The determination of whether the terminal is currently in the forced default frame rate mode may be performed at any time after the processor executes the target application program and invokes the camera, for example, after the step of obtaining a white list preset by the terminal, determine whether the target application is an inspection-free application, or start to determine the frame rate mode in which the terminal is currently located after determining that the target application does not include a feature code of the inspection-free application stored in the white list, that is, the target application is not an inspection-free application in the white list. The setting of whether the frame rate is in the forced default frame rate mode may be factory set by the terminal or set by the user.
In the embodiment, the current frame rate mode of the terminal is judged by setting the forced default frame rate mode, and if the terminal is currently in the forced default frame rate mode, the current frame rate for shooting can be determined after the white list is judged, so that the current shooting frame rate can be determined as soon as possible, a user can use a shooting function as soon as possible, and the method is favorable for the user to have better experience in the aspect of rapidness of the terminal shooting function; if the terminal is not in the forced default frame rate mode currently, after the target application is judged not to belong to the inspection-free application in the white list, whether the target application is the to-be-repaired application recorded in the black list or not needs to be further determined, whether the frame rate set by the third-party application is matched with the terminal or not can be more accurately judged, the compatibility of a special shooting function loaded by the third-party application is higher, the butt joint of the terminal and the third-party application is facilitated, and the use experience of a user is indirectly improved.
Further, in a fourth embodiment of the terminal shooting frame rate selection method of the present invention, based on the first embodiment, the second embodiment or the third embodiment, the step S11 is followed by:
step S40, if the target application does not contain the feature code of the application to be repaired, outputting a selection prompt box for judging whether the preview is normal;
step S41, if a selection instruction that the preview is not normal is received, the feature code of the target application is stored in the preset blacklist.
And detecting whether the target application contains the feature code of the application to be repaired, namely detecting whether the target application is the application to be repaired recorded by the blacklist. And if the target application does not contain the feature code of the application to be repaired in the blacklist, the target application is not the application to be repaired. Although the target application is not the application to be repaired in the blacklist, there is a possibility that the blacklist is missed, there may be no statistics in place, or the target application is a new application, and at this time, if the target application is shot according to the frame rate set by the target application, a phenomenon that the preview is abnormal, such as overexposure or partial darkness, may occur.
In order to solve the above problem, in this embodiment, when it is detected that the target application does not include the feature code of the application to be repaired in the blacklist, the frame rate set by the target application is used to perform preview, and a selection prompt box for determining whether the preview is normal is output, a user determines whether the current preview has an abnormal phenomenon such as overexposure or partial darkness, and inputs a selection instruction for determining whether the preview is normal, if the preview is normal, the feature code of the target application may be stored in the whitelist under the condition that the whitelist is set, or the target application may be marked so that the target application is shot directly according to the frame rate set by the target application after determining that the target application is not the application to be repaired in the blacklist next time under the condition that the whitelist is not set. If the user is abnormal in preview and inputs a selection instruction that the preview is abnormal, the feature code of the target application is stored in a preset blacklist, so that when the processor executes the target application next time and calls the camera, the camera is shot by directly using the preset frame rate of the terminal. The features of the present embodiment may be combined with those of all the embodiments described above.
In the embodiment, after the target application is judged not to contain the feature code of the application to be repaired, the selection prompt box for judging whether the preview is normal or not is output, whether the preview is normal or not is judged by the user, if the user inputs a selection instruction that the preview is abnormal, the feature code of the target application is stored in the blacklist, and some applications which are not recorded on the blacklist due to insufficient early-stage collected data or newly appeared applications which are not matched with the terminal can be supplemented into the blacklist, so that when the non-matched applications are executed by a subsequent terminal, a proper frame rate can be selected according to the blacklist.
Further, in a fifth embodiment of the terminal shooting frame rate selection method of the present invention, based on the first embodiment, the second embodiment or the third embodiment, the step S11 is followed by:
step S50, if the target application does not contain the feature code of the application to be repaired, acquiring the frame rate of the target application;
step S51, acquiring a target frame rate corresponding to the light intensity of the environment where the terminal is located, and judging whether the frame rate of the target application is consistent with the target frame rate;
step S52, if it is determined that the frame rate of the target application is not consistent with the target frame rate, storing the feature code of the target application in the preset blacklist.
After obtaining a blacklist preset by a terminal and detecting whether a target application contains the feature code of the application to be repaired, judging that the target application does not contain the feature code of the application to be repaired, and directly comparing the frame rate of the target application with the frame rate required by the current shooting of the terminal. In this embodiment, the frame rate of the target application is directly obtained, and the corresponding target frame rate is determined according to the light intensity of the current environment of the terminal, the target frame rate can be obtained according to the prior art, and after the two frame rates are obtained, the consistency of the two frame rates is directly judged. The determination of whether the two frame rates are the same does not mean that the two frame rates are the same, and may be the same, for example, the target frame rate is a dynamic frame rate of 15 frames to 20 frames, the target application frame rate is 18 frames, or the target frame rate is 17 frames, and the target application frame rate is a dynamic frame rate of 15 frames to 19 frames.
If the judgment result is that the target frame rate is consistent with the frame rate set by the target application, the frame rate of the target application can be directly used for shooting, if a white list exists, the target frame rate can be stored in the white list, and if the white list does not exist, a special mark can be additionally set, so that the terminal does not need to perform blacklist judgment when the target application is used next time, steps are saved, and the frame rate is quickly determined. And if the target frame rate is not consistent with the frame rate set by the target application, storing the feature code of the target application into the preset blacklist.
The embodiment determines the target frame rate according to the light intensity of the environment where the terminal is located, determines whether the target frame rate is consistent with the frame rate set by the target application, and if not, can store the feature code of the target application into the preset blacklist, so that when the terminal uses the target application next time, the frame rate can be directly determined as the preset frame rate of the terminal when the first blacklist is determined, the step of determining the frame rate is saved, the frame rate is determined as early as possible, it is ensured that a user can use a shooting function as soon as possible while shooting with a proper frame rate, and user experience is improved.
Further, in a sixth embodiment of the present invention, based on the fourth or fifth embodiment, step S41 or step S52 is followed by:
in step S60, step S10 is executed.
After or at the same time of storing the feature codes of the target application with abnormal previewing into the preset blacklist, shooting can be directly carried out by using the frame rate set by the target application, or shooting can be directly carried out by using the frame rate preset by the terminal.
In this embodiment, after the step S41, specifically, after a normal preview selection instruction input by the user is received, the frame rate set by the target application may be directly determined as the frame rate used for current shooting; and if a selection instruction that the preview is abnormal and input by the user is received, after the feature code of the target application is stored in the preset blacklist, executing a step of acquiring the blacklist preset by the terminal (as shown in fig. 4).
Similarly, the steps after step S52 can be derived.
In the embodiment, the third-party application which is not recorded in the blacklist is subjected to secondary judgment, and after the feature codes of the third-party application meeting a certain condition are stored in the blacklist, the whole program is returned to the judgment of the blacklist, because the judgment of whether the target application is the application stored in the blacklist is mature and already exists, the whole program can be called easily, a more appropriate frame rate can be determined for shooting without additional steps (if the judgment of the blacklist is not returned, the shooting may be carried out at an inappropriate frame rate, so that overexposure or a dark image is caused, and user experience is influenced), the existing memory resources are fully utilized, and better shooting experience of a user is ensured.
To facilitate understanding of this solution, a seventh embodiment is now proposed with reference to fig. 5 and 6.
In the seventh embodiment, the scheme is implemented based on a Google Android (Android phone operating system) software architecture, and the related code writing involves a hal (hardware abstraction layer) layer, a frame (framework) layer and an Applications (application program) layer.
Fig. 5 is a related drawing of the conventional technology implementation, and fig. 6 is a schematic flow chart of the present embodiment.
The embodiment is specifically implemented as follows: firstly, applications (in the figure, tripartite apks (Android application packages)) with black previews due to the fact that a fixed frame rate is set are counted, packet names of the apks are counted, and the packet names are combined into a blacklist.
In the frame layer, when the three-party apk program is executed, the packet name and the set frame rate are obtained, the obtained packet name is compared with the packet name in the blacklist, and if the obtained packet name belongs to the packet name in the blacklist, the preset frame rate (which can be 5-30 frames) of the terminal is selected as the current shooting frame rate. Therefore, the problem that the preview is blacker due to the fact that the three-party apk sets the fixed frame rate can be solved.
In this embodiment, because the apk is set to have a fixed frame rate, and the exposure time corresponding to the frame rate is not matched with the setting of the exposure table built in the terminal, because the apk frame rate is not dynamic and cannot be changed according to the actual light condition, the preview is dark, and in order to ensure that the final imaging is not dark, a frame rate matched with the exposure table of the terminal and adapted to the light intensity of the environment where the terminal is located, that is, a preset frame rate of the terminal, should be selected.
In fig. 5 or fig. 6, the default frame rate in the hal layer config file configuration table may be the same as or different from the preset frame rate of the terminal, and the default frame rate refers to the shooting frame rate when the frame rate is not set by the third party apk. Other parts are the prior art, and are not described in detail.
Furthermore, an embodiment of the present invention further provides a computer-readable storage medium, in which a terminal shooting frame rate selection program is stored, and when executed by a processor, the computer-readable storage medium implements the steps described in the above embodiments. Since the specific embodiment of the computer-readable storage medium of the present invention is basically the same as the embodiments of the method for selecting a shooting frame rate of a terminal, further description thereof is omitted here.
All the above optional technical solutions may be combined arbitrarily to form the optional embodiments of the present disclosure, and are not described herein again. The fourth embodiment and the fifth embodiment may be combined in a manner of setting priority, that is, whether the selection instruction for whether the preview input by the user is normal or not is prioritized over the frame rate set by the target application and the target frame rate corresponding to the light intensity of the environment where the terminal is located are consistent or not, or vice versa, and the latter is prioritized over the former and is an optional embodiment of the present invention.
It should be noted that, in this document, the frame rate of the target application and the frame rate set by the target application are equivalent; the judgment of the blacklist refers to judging whether the target application contains the feature code of the application to be repaired in the blacklist or not; the 'white list' judgment refers to judging whether the target application contains the feature code of the inspection-free application in the white list. The terms "comprises," "comprising," or any other variation thereof, are intended to cover a non-exclusive inclusion, such that a process, method, article, or system that comprises a list of elements does not include only those elements but may include other elements not expressly listed or inherent to such process, method, article, or system. Without further limitation, an element defined by the phrase "comprising an … …" does not exclude the presence of other like elements in a process, method, article, or system that comprises the element.
The above-mentioned serial numbers of the embodiments of the present invention are merely for description and do not represent the merits of the embodiments.
Through the above description of the embodiments, those skilled in the art will clearly understand that the method of the above embodiments can be implemented by software plus a necessary general hardware platform, and certainly can also be implemented by hardware, but in many cases, the former is a better implementation manner. Based on such understanding, the technical solution of the present invention may be embodied in the form of a software product, which is stored in a storage medium (e.g., ROM/RAM, magnetic disk, optical disk) as described above and includes instructions for enabling a terminal device (e.g., a mobile phone, a computer, a server, an air conditioner, or a network device) to execute the method according to the embodiments of the present invention.
The above description is only a preferred embodiment of the present invention, and not intended to limit the scope of the present invention, and all modifications of equivalent structures and equivalent processes, which are made by using the contents of the present specification and the accompanying drawings, or directly or indirectly applied to other related technical fields, are included in the scope of the present invention.

Claims (9)

1. A method for selecting a shooting frame rate of a terminal is characterized by comprising the following steps:
acquiring a white list preset by a terminal, wherein the white list comprises a feature code of a non-inspection application, and the non-inspection application is an application matched with a terminal exposure table at a frame rate;
judging whether the target application contains the feature code of the inspection-free application or not;
if the target application does not contain the feature code of the inspection-free application, acquiring a blacklist preset by the terminal, wherein the blacklist comprises the feature code of the application to be repaired, and the application to be repaired is the application of which the frame rate is not matched with the terminal exposure list;
detecting whether the target application contains the feature code of the application to be repaired;
if the target application comprises the feature code of the application to be repaired, the frame rate used by the terminal for current shooting is a preset frame rate, wherein the preset frame rate comprises a fixed frame rate and/or a dynamic frame rate;
the step of detecting whether the target application contains the feature code of the application to be repaired comprises the following steps: the method comprises the steps of obtaining a feature code of a target application, searching whether the feature code of the target application is stored in a blacklist, and if the feature code of the target application is stored in the blacklist, determining that the target application comprises the feature code of the application to be repaired.
2. The method as claimed in claim 1, wherein if the target application includes the feature code of the application to be modified, the step of setting the current shooting frame rate of the terminal to the preset frame rate includes:
and if the target application comprises the feature code of the application to be repaired, the current shooting used frame rate of the terminal is a preset dynamic frame rate.
3. The method as claimed in claim 1, wherein if the target application includes the feature code of the application to be modified, the step of setting the current shooting frame rate of the terminal to the preset frame rate includes:
and acquiring a target frame rate corresponding to the illumination of the environment where the terminal is located, and storing the target frame rate as a preset frame rate.
4. The method as claimed in claim 1, wherein the step of determining if the target application does not include the feature code of the leave-in application comprises the steps of:
if the terminal is in a forced default frame rate mode at present, selecting a preset frame rate as a frame rate used by the terminal for shooting at present; and/or the presence of a gas in the gas,
and if the terminal is not in the forced default frame rate mode currently, executing the step of acquiring the blacklist preset by the terminal.
5. The method as claimed in claim 1, wherein the step of detecting whether the target application includes the feature code of the application to be modified comprises the following steps:
if the target application does not contain the feature code of the application to be repaired, outputting a selection prompt box for judging whether the preview is normal; and/or the presence of a gas in the gas,
and if a selection instruction which is input by a user and is abnormal in preview is received, storing the feature code of the target application into the preset blacklist.
6. The method as claimed in claim 1, wherein the step of detecting whether the target application includes the feature code of the application to be modified comprises the following steps:
if the target application does not contain the feature code of the application to be repaired, acquiring the frame rate of the target application;
acquiring a target frame rate corresponding to illumination of an environment where a terminal is located, and judging whether the frame rate of a target application is consistent with the target frame rate or not; and/or the presence of a gas in the gas,
and if the frame rate of the target application is not consistent with the target frame rate, storing the feature code of the target application into the preset blacklist.
7. The method for selecting a photographing frame rate of a terminal as claimed in claim 5, wherein the step of storing the feature code of the target application in the preset blacklist includes, after:
and executing the step of acquiring the blacklist preset by the terminal.
8. A terminal, characterized in that the terminal comprises: memory, processor and a terminal shooting frame rate selection program stored on the memory and executable on the processor, the terminal shooting frame rate selection program, when executed by the processor, implementing the steps of the method according to any one of claims 1 to 7.
9. A computer-readable storage medium, characterized in that the computer-readable storage medium has stored thereon a terminal shooting frame rate selection program, which when executed by a processor, implements the steps of the terminal shooting frame rate selection method according to any one of claims 1 to 7.
CN201780096516.2A 2017-09-01 2017-09-01 Terminal shooting frame rate selection method, terminal and computer readable storage medium Active CN111406399B (en)

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
PCT/CN2017/100274 WO2019041324A1 (en) 2017-09-01 2017-09-01 Shooting frame rate selection method for terminal, terminal, and computer readable storage medium

Publications (2)

Publication Number Publication Date
CN111406399A CN111406399A (en) 2020-07-10
CN111406399B true CN111406399B (en) 2022-04-08

Family

ID=65524642

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201780096516.2A Active CN111406399B (en) 2017-09-01 2017-09-01 Terminal shooting frame rate selection method, terminal and computer readable storage medium

Country Status (2)

Country Link
CN (1) CN111406399B (en)
WO (1) WO2019041324A1 (en)

Families Citing this family (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN114390190B (en) * 2020-10-22 2023-10-31 海信视像科技股份有限公司 Display equipment and method for monitoring application to start camera
CN113919382B (en) * 2021-04-29 2023-04-28 荣耀终端有限公司 Code scanning method and device

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2015180690A1 (en) * 2014-05-30 2015-12-03 北京奇虎科技有限公司 Method and device for reading verification information
CN105242973A (en) * 2015-11-10 2016-01-13 上海斐讯数据通信技术有限公司 Internal memory optimization method of Android system
CN106201551A (en) * 2016-07-22 2016-12-07 宇龙计算机通信科技(深圳)有限公司 A kind of application program exits method and device
CN106412276A (en) * 2016-09-26 2017-02-15 宇龙计算机通信科技(深圳)有限公司 Method for adjusting terminal parameters and mobile terminal

Family Cites Families (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
KR20140034574A (en) * 2012-09-12 2014-03-20 삼성전자주식회사 Method and apparatus for displaying camera preview screen in a portable terminal
US9392215B2 (en) * 2014-03-25 2016-07-12 Robert C. Weisgerber Method for correcting corrupted frames during conversion of motion pictures photographed at a low frame rate, for exhibition at a higher frame rate
CN105094272A (en) * 2014-05-14 2015-11-25 中兴通讯股份有限公司 Regulating method and regulating device for hardware refresh rate of terminal
CN105739936B (en) * 2016-01-26 2019-01-29 Oppo广东移动通信有限公司 A kind of user terminal control method and user terminal
CN106933361A (en) * 2017-03-10 2017-07-07 广东欧珀移动通信有限公司 A kind of display control method of mobile terminal, device and mobile terminal

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2015180690A1 (en) * 2014-05-30 2015-12-03 北京奇虎科技有限公司 Method and device for reading verification information
CN105242973A (en) * 2015-11-10 2016-01-13 上海斐讯数据通信技术有限公司 Internal memory optimization method of Android system
CN106201551A (en) * 2016-07-22 2016-12-07 宇龙计算机通信科技(深圳)有限公司 A kind of application program exits method and device
CN106412276A (en) * 2016-09-26 2017-02-15 宇龙计算机通信科技(深圳)有限公司 Method for adjusting terminal parameters and mobile terminal

Also Published As

Publication number Publication date
WO2019041324A1 (en) 2019-03-07
CN111406399A (en) 2020-07-10

Similar Documents

Publication Publication Date Title
US10674088B2 (en) Method and device for acquiring image, terminal and computer-readable storage medium
WO2017166726A1 (en) Intelligent image capturing method and device
JP6272486B2 (en) Image processing apparatus, imaging apparatus, image processing method, and program
WO2019091411A1 (en) Image capturing method, device, terminal, and storage medium
US9124548B2 (en) Method for uploading media file, electronic device using the same, and non-transitory storage medium
JP2017520147A (en) Method and apparatus for detecting imaging conditions
JP6924901B2 (en) Photography method and electronic equipment
US20190230329A1 (en) Image processing device, imaging device, image processing method, and program
US20170068527A1 (en) Device control method and apparatus
CN113411498B (en) Image shooting method, mobile terminal and storage medium
EP2858341B1 (en) Information processing device, system, and storage medium
US10708512B2 (en) Method and device for capturing image and storage medium
US20200059597A1 (en) Shooting method and terminal
CN113329176A (en) Image processing method and related device applied to camera of intelligent terminal
CN105338237A (en) Image processing method and device
CN105391940A (en) Image recommendation method and apparatus
CN111406399B (en) Terminal shooting frame rate selection method, terminal and computer readable storage medium
CN105407295B (en) Mobile terminal filming apparatus and method
CN108093177B (en) Image acquisition method and device, storage medium and electronic equipment
CN107239307B (en) Version updating information display method and device
CN111567034A (en) Exposure compensation method, device and computer readable storage medium
EP2395393A1 (en) Portable terminal with camera function, flashlight control method and flashlight control program
CN112351197A (en) Shooting parameter adjusting method and device, storage medium and electronic equipment
CN116723383B (en) Shooting method and related equipment
CN109981990B (en) Image processing method, device and terminal

Legal Events

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