WO2019218673A1 - 信息处理方法、终端及可读存储介质 - Google Patents
信息处理方法、终端及可读存储介质 Download PDFInfo
- Publication number
- WO2019218673A1 WO2019218673A1 PCT/CN2018/122497 CN2018122497W WO2019218673A1 WO 2019218673 A1 WO2019218673 A1 WO 2019218673A1 CN 2018122497 W CN2018122497 W CN 2018122497W WO 2019218673 A1 WO2019218673 A1 WO 2019218673A1
- Authority
- WO
- WIPO (PCT)
- Prior art keywords
- application
- terminal
- background
- running
- cpu usage
- 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.)
- Ceased
Links
Images
Classifications
-
- G—PHYSICS
- G06—COMPUTING OR CALCULATING; COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F9/00—Arrangements for program control, e.g. control units
- G06F9/06—Arrangements for program control, e.g. control units using stored programs, i.e. using an internal store of processing equipment to receive or retain programs
- G06F9/46—Multiprogramming arrangements
- G06F9/50—Allocation of resources, e.g. of the central processing unit [CPU]
- G06F9/5005—Allocation of resources, e.g. of the central processing unit [CPU] to service a request
- G06F9/5027—Allocation of resources, e.g. of the central processing unit [CPU] to service a request the resource being a machine, e.g. CPUs, Servers, Terminals
-
- G—PHYSICS
- G06—COMPUTING OR CALCULATING; COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F1/00—Details not covered by groups G06F3/00 - G06F13/00 and G06F21/00
- G06F1/26—Power supply means, e.g. regulation thereof
- G06F1/32—Means for saving power
- G06F1/3203—Power management, i.e. event-based initiation of a power-saving mode
- G06F1/3206—Monitoring of events, devices or parameters that trigger a change in power modality
- G06F1/3228—Monitoring task completion, e.g. by use of idle timers, stop commands or wait commands
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04N—PICTORIAL COMMUNICATION, e.g. TELEVISION
- H04N23/00—Cameras or camera modules comprising electronic image sensors; Control thereof
- H04N23/60—Control of cameras or camera modules
- H04N23/65—Control of camera operation in relation to power supply
- H04N23/651—Control of camera operation in relation to power supply for reducing power consumption by affecting camera operations, e.g. sleep mode, hibernation mode or power off of selective parts of the camera
-
- G—PHYSICS
- G06—COMPUTING OR CALCULATING; COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F1/00—Details not covered by groups G06F3/00 - G06F13/00 and G06F21/00
- G06F1/26—Power supply means, e.g. regulation thereof
- G06F1/32—Means for saving power
- G06F1/3203—Power management, i.e. event-based initiation of a power-saving mode
- G06F1/3234—Power saving characterised by the action undertaken
- G06F1/3287—Power saving characterised by the action undertaken by switching off individual functional units in the computer system
-
- G—PHYSICS
- G06—COMPUTING OR CALCULATING; COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F1/00—Details not covered by groups G06F3/00 - G06F13/00 and G06F21/00
- G06F1/26—Power supply means, e.g. regulation thereof
- G06F1/32—Means for saving power
- G06F1/3203—Power management, i.e. event-based initiation of a power-saving mode
- G06F1/3234—Power saving characterised by the action undertaken
- G06F1/329—Power saving characterised by the action undertaken by task scheduling
-
- G—PHYSICS
- G06—COMPUTING OR CALCULATING; COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F9/00—Arrangements for program control, e.g. control units
- G06F9/06—Arrangements for program control, e.g. control units using stored programs, i.e. using an internal store of processing equipment to receive or retain programs
- G06F9/46—Multiprogramming arrangements
- G06F9/50—Allocation of resources, e.g. of the central processing unit [CPU]
- G06F9/5083—Techniques for rebalancing the load in a distributed system
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04N—PICTORIAL COMMUNICATION, e.g. TELEVISION
- H04N23/00—Cameras or camera modules comprising electronic image sensors; Control thereof
- H04N23/45—Cameras or camera modules comprising electronic image sensors; Control thereof for generating image signals from two or more image sensors being of different type or operating in different modes, e.g. with a CMOS sensor for moving images in combination with a charge-coupled device [CCD] for still images
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04N—PICTORIAL COMMUNICATION, e.g. TELEVISION
- H04N23/00—Cameras or camera modules comprising electronic image sensors; Control thereof
- H04N23/60—Control of cameras or camera modules
- H04N23/65—Control of camera operation in relation to power supply
-
- G—PHYSICS
- G06—COMPUTING OR CALCULATING; COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F2209/00—Indexing scheme relating to G06F9/00
- G06F2209/50—Indexing scheme relating to G06F9/50
- G06F2209/5022—Workload threshold
-
- G—PHYSICS
- G06—COMPUTING OR CALCULATING; COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F2209/00—Indexing scheme relating to G06F9/00
- G06F2209/50—Indexing scheme relating to G06F9/50
- G06F2209/508—Monitor
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04N—PICTORIAL COMMUNICATION, e.g. TELEVISION
- H04N23/00—Cameras or camera modules comprising electronic image sensors; Control thereof
- H04N23/90—Arrangement of cameras or camera modules, e.g. multiple cameras in TV studios or sports stadiums
-
- Y—GENERAL TAGGING OF NEW TECHNOLOGICAL DEVELOPMENTS; GENERAL TAGGING OF CROSS-SECTIONAL TECHNOLOGIES SPANNING OVER SEVERAL SECTIONS OF THE IPC; TECHNICAL SUBJECTS COVERED BY FORMER USPC CROSS-REFERENCE ART COLLECTIONS [XRACs] AND DIGESTS
- Y02—TECHNOLOGIES OR APPLICATIONS FOR MITIGATION OR ADAPTATION AGAINST CLIMATE CHANGE
- Y02D—CLIMATE CHANGE MITIGATION TECHNOLOGIES IN INFORMATION AND COMMUNICATION TECHNOLOGIES [ICT], I.E. INFORMATION AND COMMUNICATION TECHNOLOGIES AIMING AT THE REDUCTION OF THEIR OWN ENERGY USE
- Y02D10/00—Energy efficient computing, e.g. low power processors, power management or thermal management
Definitions
- the present application relates to the field of computer technology, and more particularly to an information processing method, a terminal, and a readable storage medium.
- the dual-camera camera function of the mobile phone that is, the camera is gradually popularized by the two rear cameras
- the double-camera camera function can make the visual effect of the captured image better, but the double-camera photograph also has some drawbacks.
- the accuracy and complexity of the algorithm for dual-camera shooting is significantly higher than that of a single camera, and the algorithm's fineness and complexity directly affect the visual effect of the captured image, and often the better the visual effect of the captured image.
- the present application discloses an information processing method, a terminal, and a readable storage medium, which are used to solve the technical problem that a mobile phone jam occurs when shooting by double shooting in the prior art.
- an information processing method including:
- the terminal determines that a central processing unit (CPU) total occupancy is greater than or equal to a first threshold, where the first threshold is a pixel value of the camera application corresponding to the multiple cameras is set to After the first pixel value, the maximum value of the total CPU occupancy that the photo application can allow at runtime;
- CPU central processing unit
- the terminal closes at least one of the applications running in the background such that the total CPU usage is less than the first threshold.
- the terminal when the terminal performs shooting by using multiple cameras, the first pixel value of the currently selected shooting is acquired, and the total CPU occupancy of the current terminal is greater than or equal to the first threshold, that is, at the first pixel value.
- the maximum CPU usage is allowed to be exceeded, part or all of the running application in the background will be closed.
- it can reduce the processing power of other applications occupying the CPU, and leave enough photos for multiple cameras.
- the processing capability makes multiple cameras take a smoother picture.
- the power consumption of these applications can be reduced, that is, the current total power consumption of the terminal is reduced, thereby improving the terminal's endurance.
- the first threshold is corresponding to the first pixel value, and when the selected pixel values are different, the corresponding first threshold may also be different, so that no matter which pixel value is used, The effect of improving the endurance is achieved, and no matter which pixel value is selected, the shooting can be made smoother.
- the terminal closes at least one of the applications running in the background, including:
- the terminal detects a CPU usage rate of each application in the running application in the background
- the terminal closes the at least one application.
- the application to be closed may be determined according to the CPU usage of each application. For example, an application with a high CPU usage may be preferentially closed, and then the closed application may be less, and thus may be more Quickly complete the process of closing the app.
- the terminal determines, according to the CPU usage of each application, the at least one application from the running application in the background, including:
- the terminal determines the at least one application from the running application in the background according to the CPU usage of each application, the important level to which the application belongs, and the priority of the application.
- the method further includes:
- the terminal determines that the first application is automatically turned on in the background
- the terminal determines that the first application is not included in the preset application list, and the application in the preset application list is allowed to run in the background when the multiple cameras are shooting;
- the terminal closes the first application.
- some applications may automatically start running in the background. If the application is not automatically opened in the preset application list during shooting through multiple cameras, the terminal will close the application to ensure The smooth running of the shot and the reduction of the total power consumption of the terminal during shooting to improve the endurance of the terminal.
- a terminal including:
- An acquiring unit configured to acquire a first pixel value of the currently captured image when shooting through a plurality of cameras included in the terminal;
- a determining unit configured to determine that a total CPU usage is greater than or equal to a first threshold, where the first threshold is after the pixel value of the camera application corresponding to the multiple cameras is set to the first pixel value, The maximum value of the total CPU occupancy that the camera application can allow at runtime;
- an execution unit configured to close at least one of the applications running in the background, so that the total CPU usage is less than the first threshold.
- the execution unit is specifically configured to:
- the executing unit determines the at least one application from the running application in the background according to the CPU usage of each application, including:
- the execution unit determines the at least one application from the running application in the background according to the CPU usage of each application and the importance level to which the application belongs; or
- the execution unit determines the at least one application from the running application in the background according to the CPU usage of each application and the priority of the application; or
- the execution unit determines the at least one application from the running application in the background according to the CPU usage of each application, the important level to which the application belongs, and the priority of the application.
- the determining unit is further configured to: when the shooting is performed by the multiple cameras, determine that the first application is automatically started in the background; and determine that the first application is not included in the preset application list, where the preset application is The applications in the list are allowed to run in the background when the multiple cameras are shooting;
- the execution unit is further configured to close the first application.
- a terminal is provided,
- the terminal includes a processor that implements the method of the first aspect when the computer program is executed to execute a computer program stored in the memory.
- a readable storage medium is provided.
- the readable storage medium stores computer instructions that, when executed on a computer, cause the computer to perform the method of the first aspect.
- FIG. 1 is a schematic flowchart of an information processing method disclosed in an embodiment of the present application.
- FIG. 2 is a schematic structural diagram of a terminal disclosed in an embodiment of the present application.
- FIG. 3 is another schematic structural diagram of a terminal disclosed in an embodiment of the present application.
- the dual-camera camera function of the mobile phone that is, the camera is gradually popularized by the two rear cameras
- the double-camera camera function can make the visual effect of the captured image better, but the double-camera photograph also has some drawbacks.
- the accuracy and complexity of the algorithm for dual-camera shooting is significantly higher than that of a single camera, and the algorithm's fineness and complexity directly affect the visual effect of the captured image, and often the better the visual effect of the captured image.
- the present application discloses an information processing method, in which, when a terminal performs shooting through a plurality of cameras, a first pixel value currently selected for shooting is acquired, and a total CPU occupancy rate of the current terminal is greater than or Equal to the first threshold, that is, when the pixel value of the current shooting application is the maximum value of the total CPU occupancy allowed by the first pixel value, part or all of the application running in the background is closed, such that one
- it can reduce the CPU processing capacity of other applications, and leave enough processing power for multiple cameras to make multiple cameras take more smooth photos.
- after closing other applications it can also reduce the work consumed by these applications. Consumption, which reduces the current total power consumption of the terminal, thereby improving the endurance of the terminal.
- the first threshold is corresponding to the first pixel value, and when the selected pixel values are different, the corresponding first threshold may also be different, so that no matter which pixel value is used, The effect of improving the endurance is achieved, and no matter which pixel value is selected, the shooting can be made smoother.
- the present application discloses an information processing method, which can be implemented by a terminal disclosed in the present application, and the terminal can be implemented, for example, by a device such as a mobile phone or a tablet (PAD).
- a device such as a mobile phone or a tablet (PAD).
- PAD tablet
- S101 The terminal determines that multiple cameras are turned on.
- the terminal includes multiple cameras, and the terminal can also perform image capturing through multiple cameras.
- the plurality of cameras may be disposed on the same plane of the terminal, for example, a camera of a mobile phone capable of dual camera function in the prior art; or the plurality of cameras may also be disposed on different planes of the terminal.
- the camera on the top such as the front camera and the rear camera on the terminal.
- the camera is automatically opened when the user opens the camera in the terminal, for example, the user opens the camera application provided by the mobile phone system, or the camera application installed by the user.
- the corresponding photographing application corresponds to a plurality of cameras, that is, the plurality of cameras are triggered by the photographing application.
- the plurality of cameras included in the terminal can be turned on when the condition is met.
- the terminal can open the camera application by default, and then automatically open multiple cameras; or, the user can also set the selection.
- the camera is turned on after turning on the dual camera function.
- S102 The terminal acquires a first pixel of the currently captured image.
- the user when the user performs image capturing through the photographing application in the terminal, the user may also provide an option for the user to select pixels of the captured image.
- the different pixels correspond to different visual effects of the image, and the pixels may include, for example, 4K, 2K, 720P, and 480P.
- the pixels of the captured image are the pixels selected by the user.
- the processing required by the terminal is different.
- S103 The terminal determines whether the total occupancy of the CPU is greater than or equal to a first threshold.
- the application installed by the terminal is not limited to the photographing application
- various applications other than the photographing application may be included, that is, in addition to the photographing application being run, other applications may continue to run in the background.
- the operation of these applications also needs to occupy CPU resources. If other applications occupies too many resources and there is no redundant CPU resources in the terminal to provide algorithm calculation for multiple cameras, then it is highly probable that these multiple cameras will appear.
- the stuck phenomenon at the time of shooting, or more serious, directly causes the terminal to crash, and the captured image may also be unsatisfactory.
- the terminal detects the total occupancy of the CPU in real time after the plurality of cameras are turned on, and determines whether the total occupancy of the CPU exceeds the first threshold.
- the first threshold is a maximum value of the total CPU occupancy allowed by the camera application after the pixel value of the camera application corresponding to the plurality of cameras is set to the first pixel value, that is, at the pixel value.
- the first threshold value may be different, and after the terminal acquires the first pixel value, the first threshold corresponding to the first pixel value may be determined according to the first pixel value.
- the photographing application may include two states, that is, a photographing state and a state to be photographed, in which the photographing state refers to a state when the user is capturing an image, and the photographing state refers to a photographing application being turned on, but not being photographed.
- the state for example, the state to be photographed, may be the state of the user at the time of focusing.
- the CPU resources that need to be occupied may also be different, so different first thresholds may be set for the two different states.
- the first thresholds of the two states may also be set to The embodiments of the present application do not limit this.
- the photographing application referred to above may be when the photographing application is running in the shooting state, or may be referred to when the photographing application is running in the shooting state.
- the terminal may reserve a certain CPU resource for the camera shooting.
- the CPU resource reserved by the terminal is a second threshold, and then the first threshold may be determined according to the second threshold.
- the second threshold may correspond to the first pixel value selected by the user. For example, the higher the pixel, the higher the fineness of the algorithm when shooting through multiple cameras, and the more CPU resources are occupied accordingly. Then the second threshold should be larger, so that the first threshold can be correspondingly larger.
- the ratio of the CPU resources reserved by the terminal for capturing a plurality of cameras to the total CPU resources is C%, that is, the second threshold is C%, and when the plurality of cameras are photographed, the resources occupied by the applications running in the background occupy the CPU.
- the ratio of total resources is M%
- the first threshold can be set to (C+M)%.
- the specific value of M% can be specifically set according to the actual situation. For example, it can be set according to the CPU resources occupied by the application that must be running in the background in the terminal.
- the first threshold corresponding to different pixel values may also be set to the same value.
- S104 The terminal closes at least one of the applications running in the background, so that the total CPU usage is less than the first threshold.
- the terminal determines that the total occupancy rate of the CPU is greater than or equal to the first threshold, that is, the total occupancy rate of the current CPU of the terminal is high, which may cause the terminal to generate severe heat, and is also extremely hot when multiple cameras are photographed. There may be a phenomenon of stagnation, so the number of applications consuming CPU resources can be reduced by turning off at least one application in the running application in the background, so that the total occupancy of the CPU can be lower than the first threshold, thereby reducing The power consumption of the terminal avoids excessive battery current and high temperature.
- the terminal needs to provide more CPU resources, and thus the application that needs to be closed may be more.
- the first threshold is the same
- the algorithm at the time of shooting is more complicated, and thus the CPU resources required to be occupied are more, that is, the terminal needs to be The reserved CPU resources are more.
- the first threshold is the same, only the CPU resources that can be used by the applications running in the background can be compressed, and thus the applications that need to be closed are more.
- the terminal may first detect the CPU usage of each application in the running application in the background, and then determine at least one that needs to be closed according to the CPU usage of each application. application. For example, the terminal can sort the applications running in the background according to the CPU usage of the application, and then sequentially shut down the applications with the largest CPU usage, and calculate the total CPU usage of the current CPU once each application is closed. The total CPU usage is lower than the first threshold; or the terminal can directly calculate the difference between the current CPU usage and the first threshold, and determine, according to the difference, the at least one application that needs to be shut down according to the CPU usage of each application. Then turn these apps off in turn.
- the importance level of the application may also be considered.
- the CPU usage of each application and the important level to which the application belongs may be combined to determine at least one application that needs to be closed.
- the call or SMS application in the terminal can be set to the highest level of importance, and the instant messaging application can be set to an important level next to the call or SMS application.
- the application When an application is running in the background, the application may correspond to multiple processes. Therefore, the closed application in the embodiment of the present application may also refer to one or more processes that close the application. Specifically, when the process of the application is closed, the process that needs to be closed may also be determined according to the importance level of the process. For example, in an instant messaging application, the importance level of the network connection process may be set to be higher than the important level of the positioning process.
- the application that needs to be closed may also be determined according to the set priority.
- the priority may be set when the terminal is shipped from the factory, or the priority may be set by the user according to his own preference, or the priority may be sorted according to the frequency of use of the application, and the priority of using the higher frequency is higher. Low, preferentially close applications that are used less frequently when turned off.
- some applications may automatically start running in the background. Since these applications occupy CPU resources, it may affect the effect of multiple cameras when photographing. Therefore, when the terminal is shooting through the above multiple cameras, if it is a terminal It is also detected that the first application is automatically started in the background, and the terminal may determine whether the first application is located in the preset application list. If the first application is included in the preset application list, the terminal does not process the first application, but if it is a pre- If the first application is not included in the application list, the terminal will close the first application to prevent the first application from occupying CPU resources.
- the application in the preset application list may be allowed to run in the background when the multiple cameras are shooting. For example, the application in the preset application list may be a more important application such as a call application or a short message application.
- the terminal when the terminal performs shooting by using multiple cameras, the first pixel value currently selected for shooting is acquired, and the total CPU occupancy rate of the current terminal is greater than or equal to the first threshold, that is, When the maximum value of the total CPU usage is allowed at the first pixel value, part or all of the application running in the background is closed, so that, on the one hand, the processing power of the CPU occupied by other applications can be reduced, for multiple The camera takes a lot of processing power to make the camera more smooth. On the other hand, after turning off other applications, it can also reduce the power consumption of these applications, which reduces the current total power consumption of the terminal, and thus improves the terminal. Endurance.
- the first threshold is corresponding to the first pixel value, and when the selected pixel values are different, the corresponding first threshold may also be different, so that no matter which pixel value is used, The effect of improving the endurance is achieved, and no matter which pixel value is selected, the shooting can be made smoother.
- a terminal including:
- the acquiring unit 201 is configured to acquire a first pixel value of the currently captured image when the photographing is performed by the plurality of cameras included in the terminal;
- a determining unit 202 configured to determine that a total CPU usage is greater than or equal to a first threshold, where the first threshold is after the pixel value of the photographing application corresponding to the plurality of cameras is set to the first pixel value, The maximum total CPU occupancy that the camera application can allow at runtime;
- the executing unit 203 is configured to close at least one application in the running application, so that the total CPU usage is less than the first threshold.
- the executing unit 203 is specifically configured to:
- the executing unit 203 determines, according to the CPU usage of each application, at least one application from the running application in the background, including:
- the execution unit 203 determines at least one application from the running application in the background according to the CPU usage of each application and the importance level to which the application belongs; or
- the execution unit 203 determines at least one application from the running application in the background according to the CPU usage of each application and the priority of the application; or
- the executing unit 203 determines at least one application from the running application in the background according to the CPU usage of each application, the important level to which the application belongs, and the priority of the application.
- the determining unit 202 is further configured to: when the photographing is performed by the plurality of cameras, determine that the first application automatically starts running in the background; and determine that the first application is not included in the preset application list, wherein the application in the preset application list is allowed to be in the Running in the background when multiple cameras are shooting;
- the executing unit 203 is further configured to close the first application.
- the device may be used to perform the method disclosed in the embodiment shown in FIG. 1. Therefore, for the functions and the like that can be implemented for each functional module of the device, reference may be made to the description of the embodiment shown in FIG. 1.
- the present application discloses a terminal including at least one processor 301 for implementing the information disclosed in the embodiment shown in FIG. 1 when the processor 301 is configured to execute a computer program stored in a memory. The steps of the processing method.
- the at least one processor 301 may specifically include a central processing unit (CPU), an application specific integrated circuit (ASIC), and may be one or more integrated circuits for controlling program execution, and may be used.
- a hardware circuit developed by a field programmable gate array (FPGA) may be a baseband processor.
- At least one processor 301 can include at least one processing core.
- the terminal further includes a memory 302, and the memory 302 may include a read only memory (ROM), a random access memory (RAM), and a disk storage.
- the memory 302 is used to store data required by at least one processor 301 to operate.
- the number of memories 302 is one or more. Among them, the memory 302 is shown together in FIG. 3, but it should be understood that the memory 302 is not a mandatory functional module, and thus is shown by a broken line in FIG.
- the present application discloses a readable storage medium having stored thereon computer instructions that, when executed on a computer, cause the computer to perform the information disclosed in the embodiment shown in FIG. The steps of the processing method.
- the readable storage medium includes: a Universal Serial Bus flash drive (USB), a mobile hard disk, a Read-Only Memory (ROM), and a random access memory (Random Access).
- USB Universal Serial Bus flash drive
- ROM Read-Only Memory
- Random Access random access memory
- the disclosed apparatus and method may be implemented in other manners.
- the device embodiments described above are merely illustrative.
- the division of the unit or unit is only a logical function division.
- there may be another division manner for example, multiple units or components may be used. Combinations can be integrated into another system, or some features can be ignored or not executed.
- the mutual coupling or direct coupling or communication connection shown or discussed may be an indirect coupling or communication connection through some interface, device or unit, and may be electrical or otherwise.
- the functional units in the embodiments of the present application may be integrated into one processing unit, or each unit may also be an independent physical module.
- the integrated unit if implemented in the form of a software functional unit and sold or used as a standalone product, may be stored in a computer readable storage medium.
- all or part of the technical solutions of the embodiments of the present application may be embodied in the form of a software product stored in a storage medium, including a plurality of instructions for causing a computer device, for example, A personal computer, server, or network device, etc., or a processor executes all or part of the steps of the methods described in various embodiments of the present application.
- the foregoing storage medium includes: a universal serial bus flash drive, a mobile hard disk, a ROM, a RAM, a magnetic disk, or an optical disk, and the like, which can store program codes.
Landscapes
- Engineering & Computer Science (AREA)
- Theoretical Computer Science (AREA)
- General Engineering & Computer Science (AREA)
- Physics & Mathematics (AREA)
- General Physics & Mathematics (AREA)
- Software Systems (AREA)
- Multimedia (AREA)
- Signal Processing (AREA)
- Computer Hardware Design (AREA)
- Computing Systems (AREA)
- Human Computer Interaction (AREA)
- Studio Devices (AREA)
- Telephone Function (AREA)
- User Interface Of Digital Computer (AREA)
Abstract
一种信息处理方法、终端及可读存储介质,用于解决通过双摄拍摄时出现手机卡顿的技术问题。该方法包括:在通过终端包括的多个摄像头进行拍摄时,获取当前拍摄图像的第一像素值;所述终端确定中央处理器CPU总占用率大于或者等于第一阈值,其中,所述第一阈值为所述多个摄像头所对应的拍照应用的像素值被设置为所述第一像素值之后,所述拍照应用在运行时所能允许的CPU总占有率的最大值;所述终端关闭后台正在运行的应用中的至少一个应用,以使得所述CPU总占用率小于所述第一阈值。
Description
相关申请
本申请要求2018年05月18日申请的,申请号为201810479463.9,名称为“一种信息处理方法、终端及可读存储介质”的中国专利申请的优先权,在此将其全文引入作为参考。
本申请涉及计算机技术领域,更具体的说,涉及一种信息处理方法、终端及可读存储介质。
目前,手机的双摄拍照功能,即通过两个后置摄像头进行拍照渐渐普及,双摄拍照功能可以使得拍摄的图像的视觉效果更佳,但是双摄拍照同样存在着一些弊端。例如,双摄拍摄相较单个摄像头拍摄的算法精细度和复杂度显然更高,并且其算法精细度和复杂度直接影响到拍摄的图像的视觉效果,而往往是拍摄的图像的视觉效果越好,则算法精细度和复杂度愈高,那么在进行拍摄时的处理所占用的CPU资源也就越多,从而在拍摄像素较佳的图像时更容易使得手机出现卡顿的现象,并且由于手机的卡顿,还极有可能使得拍摄得到图像的质量不佳,进而使得用户体验不佳。
发明内容
有鉴于此,本申请公开一种信息处理方法、终端及可读存储介质,用于解决现有技术中通过双摄拍摄时出现手机卡顿的技术问题。
第一方面,提供一种信息处理方法,包括:
在通过终端包括的多个摄像头进行拍摄时,获取当前拍摄图像的第一像素值;
所述终端确定中央处理器(Central Processing Unit,CPU)总占用率大于或者等于第一阈值,其中,所述第一阈值为所述多个摄像头所对应的拍照应用的像素值被设置为所述第一像素值之后,所述拍照应用在运行时所能允许的CPU总占有率的最大值;
所述终端关闭后台正在运行的应用中的至少一个应用,以使得所述CPU总占用率小于所述第一阈值。
在该方法中,在终端通过多个摄像头进行拍摄时,则会获取当前选择拍摄的第一像素 值,并且在当前终端的CPU总占用率大于或者等于第一阈值,即在第一像素值时的所允许的CPU总占用率的最大值时,则会关闭后台正在运行的应用的部分或者全部,这样,一方面,能够减少其他应用占用CPU的处理能力,为多个摄像头拍照留有足够的处理能力,使得多个摄像头拍照更加流畅;另一方面,关闭了其他应用之后,还能够降低这些应用消耗的功耗,即降低了终端当前的总功耗,进而提高终端的续航能力。此外,在该方法中,第一阈值是与第一像素值相对应的,那么在选择的像素值不同时,相对应的第一阈值也可以不同,这样不管是在哪种像素值时均能够达到提高续航能力的效果,并且不管是选择哪种像素值的拍摄,均能够使得拍摄更加流畅。
优选的,所述终端关闭后台正在运行的应用中的至少一个应用,包括:
所述终端检测所述后台正在运行的应用中每个应用的CPU占用率;
所述终端根据所述每个应用的CPU占用率从所述后台正在运行的应用中确定出所述至少一个应用;
所述终端关闭所述至少一个应用。
在该方法中,在关闭应用时,可根据每个应用的CPU占用率来决定要关闭哪些应用,例如CPU占用率高的应用可以优先关闭,那么关闭的应用的则可以更少,进而可以更快的完成关闭应用的过程。
优选的,所述终端根据所述每个应用的CPU占用率从所述后台正在运行的应用中确定出所述至少一个应用,包括:
所述终端根据所述每个应用的CPU占用率以及应用所属的重要等级,从所述后台正在运行的应用中确定出所述至少一个应用;或者,
所述终端根据所述每个应用的CPU占用率以及应用的优先级,从所述后台正在运行的应用中确定出所述至少一个应用;或者,
所述终端根据所述每个应用的CPU占用率、应用所属的重要等级以及应用的优先级,从所述后台正在运行的应用中确定出所述至少一个应用。
在该方法中,在关闭应用时,还可以根据应用的重要等级和优先级来确定关闭哪些应用,例如通话或者短信应用在终端中的重要等级通常较高,在关闭应用时通常不会关闭这些应用,以确保用户能够正常通信。
优选的,在所述终端关闭后台正在运行的应用中的至少一个应用之后,所述方法还包括:
在通过所述多个摄像头进行拍摄时,所述终端确定第一应用在后台自动开启运行;
所述终端确定预设应用名单中不包括所述第一应用,其中,所述预设应用名单内的应 用被允许在所述多个摄像头进行拍摄时在后台运行;
所述终端关闭所述第一应用。
在该方法中,有的应用可能会在后台自动开启运行,那么在通过多个摄像头拍摄期间,若是未在预设应用名单中的应用自动开启运行了,那么终端还是会关闭该应用,以确保拍摄的流畅运行,以及减少在拍摄时终端的总功耗,以提高终端的续航能力。
第二方面,提供一种终端,包括:
获取单元,用于在通过终端包括的多个摄像头进行拍摄时,获取当前拍摄图像的第一像素值;
确定单元,用于确定CPU总占用率大于或者等于第一阈值,其中,所述第一阈值为所述多个摄像头所对应的拍照应用的像素值被设置为所述第一像素值之后,所述拍照应用在运行时所能允许的CPU总占有率的最大值;
执行单元,用于关闭后台正在运行的应用中的至少一个应用,以使得所述CPU总占用率小于所述第一阈值。
优选的,所述执行单元具体用于:
检测所述后台正在运行的应用中每个应用的CPU占用率;
根据所述每个应用的CPU占用率从所述后台正在运行的应用中确定出所述至少一个应用;
关闭所述至少一个应用。
优选的,所述执行单元根据所述每个应用的CPU占用率从所述后台正在运行的应用中确定出所述至少一个应用,包括:
所述执行单元根据所述每个应用的CPU占用率以及应用所属的重要等级,从所述后台正在运行的应用中确定出所述至少一个应用;或者,
所述执行单元根据所述每个应用的CPU占用率以及应用的优先级,从所述后台正在运行的应用中确定出所述至少一个应用;或者,
所述执行单元根据所述每个应用的CPU占用率、应用所属的重要等级以及应用的优先级,从所述后台正在运行的应用中确定出所述至少一个应用。
优选的,
所述确定单元,还用于在通过所述多个摄像头进行拍摄时,确定第一应用在后台自动开启运行;确定预设应用名单中不包括所述第一应用,其中,所述预设应用名单内的应用被允许在所述多个摄像头进行拍摄时在后台运行;
所述执行单元,还用于关闭所述第一应用。
第三方面,提供一种终端,
所述终端包括处理器,所述处理器用于执行存储器中存储的计算机程序时实现如第一方面所述的方法。
第四方面,提供一种可读存储介质,
所述可读存储介质存储有计算机指令,当所述计算机指令在计算机上运行时,使得计算机执行如第一方面所述的方法。
为了更清楚地说明本申请实施例或现有技术中的技术方案,下面将对实施例或现有技术描述中所需要使用的附图作简单地介绍,显而易见地,下面描述中的附图仅仅是本申请的实施例,对于本领域普通技术人员来讲,在不付出创造性劳动的前提下,还可以根据公开的附图获得其他的附图。
图1为本申请实施例公开的信息处理方法的流程示意图;
图2为本申请实施例公开的终端的一种结构示意图;
图3为本申请实施例公开的终端的另一种结构示意图。
下面将结合本申请实施例中的附图,对本申请实施例中的技术方案进行清楚、完整地描述,显然,所描述的实施例仅仅是本申请一部分实施例,而不是全部的实施例。基于本申请中的实施例,本领域普通技术人员在没有做出创造性劳动前提下所获得的所有其他实施例,都属于本申请保护的范围。
下面介绍本申请实施例的技术背景。
目前,手机的双摄拍照功能,即通过两个后置摄像头进行拍照渐渐普及,双摄拍照功能可以使得拍摄的图像的视觉效果更佳,但是双摄拍照同样存在着一些弊端。例如,双摄拍摄相较单个摄像头拍摄的算法精细度和复杂度显然更高,并且其算法精细度和复杂度直接影响到拍摄的图像的视觉效果,而往往是拍摄的图像的视觉效果越好,则算法精细度和复杂度愈高,那么在进行拍摄时的处理所占用的CPU资源也就越多,从而在拍摄像素较佳的图像时更容易使得手机出现卡顿的现象,并且由于手机的卡顿,还极有可能使得拍摄得到图像的质量不佳,进而使得用户体验不佳。
鉴于此,本申请公开一种信息处理方法,在该方法中,在终端通过多个摄像头进行拍摄时,则会获取当前选择拍摄的第一像素值,并且在当前终端的CPU总占用率大于或者等 于第一阈值,即在当前的拍摄应用的像素值被第一像素值时的所能允许的CPU总占用率的最大值时,则会关闭后台正在运行的应用的部分或者全部,这样,一方面,能够减少其他应用占用CPU的处理能力,为多个摄像头拍照留有足够的处理能力,使得多个摄像头拍照更加流畅;另一方面,关闭了其他应用之后,还能够降低这些应用消耗的功耗,即降低了终端当前的总功耗,进而提高终端的续航能力。此外,在该方法中,第一阈值是与第一像素值相对应的,那么在选择的像素值不同时,相对应的第一阈值也可以不同,这样不管是在哪种像素值时均能够达到提高续航能力的效果,并且不管是选择哪种像素值的拍摄,均能够使得拍摄更加流畅。
下面结合附图介绍本申请公开的技术方案。
请参见图1,本申请公开一种信息处理方法,该方法能够通过本申请公开的终端来执行,该终端例如可以通过手机或者平板电脑(PAD)等设备来实现。该方法的流程描述如下。
S101:终端确定多个摄像头开启。
本申请实施例中,该终端包括多个摄像头,且终端还可以通过多个摄像头进行图像的拍摄。其中,这多个摄像头可以是设置在终端的同一个平面上的,例如,例如现有技术中能够双摄拍照功能的手机的摄像头;或者,这多个摄像头还可以是设置在终端的不同平面上的摄像头,例如终端上的前置摄像头和后置摄像头。
具体的,一般来讲,在用户打开终端中拍照应用,例如用户打开手机系统自带的拍照应用,或者用户自行安装的拍照应用时,摄像头即会自动开启,也就是说,本申请实施例中所指的拍照应用与多个摄像头相对应即是指这多个摄像头是通过拍照应用触发的。其中,根据终端的默认设置或者用户的自行设置,终端包括的多个摄像头可以在满足条件时开启,例如,终端可以默认打开拍照应用,则自动开启多个摄像头;或者,用户还可以设置在选择相应的选项之后,例如开启双摄拍照功能之后,才将多个摄像头开启。
S102:终端获取当前拍摄图像的第一像素。
本申请实施例中,用户在通过终端中的拍照应用进行图像拍摄时,还可以提供给用户可选择拍摄的图像的像素的选项。其中,不同的像素对应这图像不同的视觉效果,像素的可选项例如可以包括4K、2K、720P以及480P等。
当用户选择图像的像素之后,则拍摄得到的图像的像素则为用户选择的像素,当然,在拍摄不同像素的图像时,终端所需要进行的处理是不同的。其中,像素越高,终端在拍摄时的算法的精细度越高,则需求的终端的处理能力越高,并且,由于算法愈加复杂,终端的功耗相应也会更高,发热量也就更大,续航能力也会更差,因此后续处理可以是针对 拍摄不同像素的图像进行的。
S103:终端确定CPU的总占用率是否大于或者等于第一阈值。
本申请实施例中,由于终端安装的应用不止拍照应用,还可以包括除拍照应用之外的各种各样的应用,也就是说除了拍照应用正在运行之外,其他应用也有可能在后台继续运行,而这些应用的运行也是需要占用CPU资源的,若是其他应用占用的资源过多,而终端中没有多余的CPU资源提供给多个摄像头拍摄时的算法计算,那么极有可能出现这多个摄像头在拍摄时的卡顿现象,或者说更严重的直接使得终端宕机,并且拍摄得到的图像可能也差强人意。
因此,为了避免多个摄像头拍摄时出现卡顿的现象,终端在多个摄像头开启之后,则会实时的检测CPU的总占用率,并确定CPU的总占用率是否超过第一阈值。其中,第一阈值为多个摄像头所对应的拍照应用的像素值被设置为第一像素值之后,拍照应用在运行时所能允许的CPU总占有率的最大值,也就是说,在像素值不同时,其对应的第一阈值可以是不同的,那么终端获取第一像素值之后,则可以根据第一像素值确定与之相对应的第一阈值。
其中,拍照应用在运行时,可以包括两种状态,即拍摄状态和待拍摄状态,其中,拍摄状态是指用户正在拍摄图像时的状态,待拍摄状态是指拍照应用开启,但是未进行拍摄时的状态,例如待拍摄状态可以是用户在调焦时的状态。在这两种状态时,所需要占用的CPU资源可能也是不同的,因此可以针对这两种不同的状态来设置不同的第一阈值,当然,也可以将这两种状态的第一阈值设置为相同,本申请实施例对此不做限制。上述所指的拍照应用在运行时可以是指拍照应用以拍摄状态运行时,或者,也可以是指拍照应用以待拍摄状态运行时。
具体的,终端可以为多个摄像头拍摄预留一定的CPU资源,例如终端预留的CPU资源为第二阈值,那么第一阈值则可以是根据第二阈值来确定的。其中,第二阈值可以与用户选择的第一像素值相对应,例如像素越高时,在通过多个摄像头拍摄时的算法的精细度越高,那么相应的占用的CPU资源也就越多,那么第二阈值则应较大,从而第一阈值则相应的可以更大。例如,终端为多个摄像头拍摄预留的CPU资源占CPU总资源的比例为C%,即第二阈值为C%,而在多个摄像头拍摄时,后台运行的应用所能占用的资源占CPU总资源的比例为M%,那么第一阈值则可以设置为(C+M)%。其中,M%的具体值可以根据实际情况具体设置,例如可以根据终端中必须在后台运行的应用所需要占用的CPU资源进行设置。当然,为了方便统一管理,不同像素值对应的第一阈值也可以设置为相同的值。
S104:终端关闭后台正在运行的应用中的至少一个应用,以使得CPU总占用率小于 第一阈值。
本申请实施例中,当终端确定CPU的总占有率大于或者等于第一阈值时,即终端当前的CPU的总占用率很高,这样可能使得终端发热严重,而且在多个摄像头拍照时还极有可能出现卡顿的现象,因此可以通过关闭后台正在运行的应用中的至少一个应用,减小占用CPU资源的应用的数量,从而使得CPU的总占用率能够低于第一阈值,从而减小终端的功耗,避免电池供电电流过大,温度过高。
具体的,当用户选择的像素值越高时,终端中需要为其提供更多的CPU资源,从而需要关闭的应用可能也就更多。这里为了方便比较,假设第一阈值相同,那么当用户选择的像素值越高时,则拍摄时的算法复杂程度更高,进而需要占用的CPU资源也就更多,那么也就是说终端需要为其预留的CPU资源也就更多,在第一阈值相同的情况下,只能压缩后台运行的应用所能占用的CPU资源,进而需要关闭的应用也就更多。
具体的,终端关闭后台正在运行的应用中的至少一个应用时,可以先检测后台正在运行的应用中每个应用的CPU占用率,进而根据每个应用的CPU占用率来确定需要关闭的至少一个应用。例如,终端可以按照应用的CPU占用由大到小的顺序对后台运行的应用进行排序,然后依次从CPU占用率最大的应用开始关闭,每关闭一个应用计算一次当前的CPU的总占用率,直至CPU总占用率低于第一阈值;或者,终端可以直接计算当前CPU的总占用率与第一阈值的差值,根据这个差值以每个应用的CPU占用率确定需要关闭的至少一个应用,然后依次将这些应用关闭。
本申请实施例中,由于有些应用在终端的重要等级较高,例如通话或者短信应用等,这些应用若是被关闭,可能使得用户无法及时接听电话或者接收短信息等,从而给用户的生活和工作带来一定的困扰。因此,在关闭后台正在运行的应用时,还可以考虑到应用的重要等级,例如可以将上述每个应用的CPU占用率和应用所属的重要等级结合来确定需要关闭的至少一个应用。例如,终端中通话或者短信应用可以设置为重要等级最高的,即时通讯应用可以设置为次于通话或者短信应用的重要等级。
其中,一个应用在后台运行时,该应用可能会对应多个进程,因此本申请实施例所谓的关闭应用还可以是指关闭该应用的一个或者多个进程。具体的,在关闭该应用的进程时,同样可以按照进程的重要等级来确定需要关闭的进程,例如在即时通讯应用中,网络连接进程的重要等级可以设置为高于定位进程的重要等级。
本申请实施例中,在关闭后台正在运行的应用时,还可以根据设置的优先级确定需要关闭的应用。其中,优先级可以是终端出厂时进行设置的,或者,优先级也可以是用户根据自己的喜好自行设置的,或者,优先级可以按照应用的使用频率进行排序,使用频率较 高的优先级越低,在关闭时优先关闭使用频率较低的应用。
本申请实施例中,在确定需要关闭的至少一个应用时,还可以根据应用的CPU占用率、重要等级以及优先级来综合考虑。
本申请实施例中,有的应用可能会在后台自动开启运行,由于这些应用占用CPU资源,也有可能影响多个摄像头拍照时的效果,因此当终端在通过上述多个摄像头进行拍摄时,若是终端还检测到第一应用在后台自动开启运行,终端则可以确定第一应用是否位于预设应用名单中,若是预设应用名单中包括第一应用,则终端不对第一应用进行处理,但若是预设应用名单中不包括第一应用,则终端则会关闭第一应用,以避免第一应用占用CPU资源。其中,预设应用名单中的应用可以被允许在上述多个摄像头进行拍摄时在后台运行,例如预设应用名单中的应用可以为通话应用或者短信应用等较为重要的应用。
综上所述,本申请实施例中,在终端通过多个摄像头进行拍摄时,则会获取当前选择拍摄的第一像素值,并且在当前终端的CPU总占用率大于或者等于第一阈值,即在第一像素值时的所允许的CPU总占用率的最大值时,则会关闭后台正在运行的应用的部分或者全部,这样,一方面,能够减少其他应用占用CPU的处理能力,为多个摄像头拍照留有足够的处理能力,使得多个摄像头拍照更加流畅;另一方面,关闭了其他应用之后,还能够降低这些应用消耗的功耗,即降低了终端当前的总功耗,进而提高终端的续航能力。此外,在该方法中,第一阈值是与第一像素值相对应的,那么在选择的像素值不同时,相对应的第一阈值也可以不同,这样不管是在哪种像素值时均能够达到提高续航能力的效果,并且不管是选择哪种像素值的拍摄,均能够使得拍摄更加流畅。
请参见图2,基于同一发明构思,本申请公开一种终端,包括:
获取单元201,用于在通过终端包括的多个摄像头进行拍摄时,获取当前拍摄图像的第一像素值;
确定单元202,用于确定CPU总占用率大于或者等于第一阈值,其中,第一阈值为所述多个摄像头所对应的拍照应用的像素值被设置为所述第一像素值之后,所述拍照应用在运行时所能允许的CPU总占有率的最大值;
执行单元203,用于关闭后台正在运行的应用中的至少一个应用,以使得CPU总占用率小于第一阈值。
可选的,执行单元203具体用于:
检测后台正在运行的应用中每个应用的CPU占用率;
根据每个应用的CPU占用率从后台正在运行的应用中确定出至少一个应用;
关闭至少一个应用。
可选的,执行单元203根据每个应用的CPU占用率从后台正在运行的应用中确定出至少一个应用,包括:
执行单元203根据每个应用的CPU占用率以及应用所属的重要等级,从后台正在运行的应用中确定出至少一个应用;或者,
执行单元203根据每个应用的CPU占用率以及应用的优先级,从后台正在运行的应用中确定出至少一个应用;或者,
执行单元203根据每个应用的CPU占用率、应用所属的重要等级以及应用的优先级,从后台正在运行的应用中确定出至少一个应用。
可选的,
确定单元202,还用于在通过多个摄像头进行拍摄时,确定第一应用在后台自动开启运行;确定预设应用名单中不包括第一应用,其中,预设应用名单内的应用被允许在多个摄像头进行拍摄时在后台运行;
执行单元203,还用于关闭第一应用。
该设备可以用于执行图1所示的实施例所公开的方法,因此,对于该设备的各功能模块所能够实现的功能等可参考图1所示的实施例的描述,不多赘述。
请参见图3,基于同一发明构思,本申请公开一种终端,包括至少一个处理器301,至少一个处理器301用于执行存储器中存储的计算机程序时实现图1所示的实施例公开的信息处理方法的步骤。
可选的,至少一个处理器301具体可以包括中央处理器(CPU)、特定应用集成电路(application specific integrated circuit,ASIC),可以是一个或多个用于控制程序执行的集成电路,可以是使用现场可编程门阵列(fieldprogrammable gate array,FPGA)开发的硬件电路,可以是基带处理器。
可选的,至少一个处理器301可以包括至少一个处理核心。
可选的,该终端还包括存储器302,存储器302可以包括只读存储器(read only memory,ROM)、随机存取存储器(random access memory,RAM)和磁盘存储器。存储器302用于存储至少一个处理器301运行时所需的数据。存储器302的数量为一个或多个。其中,存储器302在图3中一并示出,但需要知道的是存储器302不是必选的功能模块,因此在图3中以虚线示出。
基于同一发明构思,本申请公开一种可读存储介质,该可读存储介质上存储有计算机指令,当该计算机指令在计算机上运行时,使得计算机执行如图1所示的实施例公开的信息处理方法的步骤。
在具体的实施过程中,可读存储介质包括:通用串行总线闪存盘(Universal Serial Bus flash drive,USB)、移动硬盘、只读存储器(Read-Only Memory,ROM)、随机存取存储器(RandomAccess Memory,RAM)、磁碟或者光盘等各种可以存储程序代码的存储介质。
在本申请实施例中,应该理解到,所揭露的设备和方法,可以通过其它的方式实现。例如,以上所描述的设备实施例仅仅是示意性的,例如,所述单元或单元的划分,仅仅为一种逻辑功能划分,实际实现时可以有另外的划分方式,例如多个单元或组件可以结合或者可以集成到另一个系统,或一些特征可以忽略,或不执行。另一点,所显示或讨论的相互之间的耦合或直接耦合或通信连接可以是通过一些接口,设备或单元的间接耦合或通信连接,可以是电性或其它的形式。
在本申请实施例中的各功能单元可以集成在一个处理单元中,或者各个单元也可以均是独立的物理模块。
所述集成的单元如果以软件功能单元的形式实现并作为独立的产品销售或使用时,可以存储在一个计算机可读取存储介质中。基于这样的理解,本申请实施例的技术方案的全部或部分可以以软件产品的形式体现出来,该计算机软件产品存储在一个存储介质中,包括若干指令用以使得一台计算机设备,例如可以是个人计算机,服务器,或者网络设备等,或处理器(processor)执行本申请各个实施例所述方法的全部或部分步骤。而前述的存储介质包括:通用串行总线闪存盘(universal serial bus flash drive)、移动硬盘、ROM、RAM、磁碟或者光盘等各种可以存储程序代码的介质。
以上所述,以上实施例仅用以对本申请的技术方案进行了详细介绍,但以上实施例的说明只是用于帮助理解本申请实施例的方法,不应理解为对本申请实施例的限制。本技术领域的技术人员可轻易想到的变化或替换,都应涵盖在本申请实施例的保护范围之内。
Claims (10)
- 一种信息处理方法,其特征在于,包括:在通过终端包括的多个摄像头进行拍摄时,获取当前拍摄图像的第一像素值;所述终端确定中央处理器CPU总占用率大于或者等于第一阈值,其中,所述第一阈值为所述多个摄像头所对应的拍照应用的像素值被设置为所述第一像素值之后,所述拍照应用在运行时所能允许的CPU总占有率的最大值;所述终端关闭后台正在运行的应用中的至少一个应用,以使得所述CPU总占用率小于所述第一阈值。
- 根据权利要求1所述的方法,其特征在于,所述终端关闭后台正在运行的应用中的至少一个应用,包括:所述终端检测所述后台正在运行的应用中每个应用的CPU占用率;所述终端根据所述每个应用的CPU占用率从所述后台正在运行的应用中确定出所述至少一个应用;所述终端关闭所述至少一个应用。
- 根据权利要求2所述的方法,其特征在于,所述终端根据所述每个应用的CPU占用率从所述后台正在运行的应用中确定出所述至少一个应用,包括:所述终端根据所述每个应用的CPU占用率以及应用所属的重要等级,从所述后台正在运行的应用中确定出所述至少一个应用;或者,所述终端根据所述每个应用的CPU占用率以及应用的优先级,从所述后台正在运行的应用中确定出所述至少一个应用;或者,所述终端根据所述每个应用的CPU占用率、应用所属的重要等级以及应用的优先级,从所述后台正在运行的应用中确定出所述至少一个应用。
- 根据权利要求1-3任一所述的方法,其特征在于,在所述终端关闭后台正在运行的应用中的至少一个应用之后,所述方法还包括:在通过所述多个摄像头进行拍摄时,所述终端确定第一应用在后台自动开启运行;所述终端确定预设应用名单中不包括所述第一应用,其中,所述预设应用名单内的应用被允许在所述多个摄像头进行拍摄时在后台运行;所述终端关闭所述第一应用。
- 一种终端,其特征在于,包括:获取单元(201),用于在通过终端包括的多个摄像头进行拍摄时,获取当前拍摄图像 的第一像素值;确定单元(202),用于确定CPU总占用率大于或者等于第一阈值,其中,所述第一阈值为所述多个摄像头所对应的拍照应用的像素值被设置为所述第一像素值之后,所述拍照应用在运行时所能允许的CPU总占有率的最大值;执行单元(203),用于关闭后台正在运行的应用中的至少一个应用,以使得所述CPU总占用率小于所述第一阈值。
- 根据权利要求5所述的终端,其特征在于,所述执行单元(203)具体用于:检测所述后台正在运行的应用中每个应用的CPU占用率;根据所述每个应用的CPU占用率从所述后台正在运行的应用中确定出所述至少一个应用;关闭所述至少一个应用。
- 根据权利要求6所述的终端,其特征在于,所述执行单元(203)根据所述每个应用的CPU占用率从所述后台正在运行的应用中确定出所述至少一个应用,包括:所述执行单元(203)根据所述每个应用的CPU占用率以及应用所属的重要等级,从所述后台正在运行的应用中确定出所述至少一个应用;或者,所述执行单元(203)根据所述每个应用的CPU占用率以及应用的优先级,从所述后台正在运行的应用中确定出所述至少一个应用;或者,所述执行单元(203)根据所述每个应用的CPU占用率、应用所属的重要等级以及应用的优先级,从所述后台正在运行的应用中确定出所述至少一个应用。
- 根据权利要求5-7任一所述的终端,其特征在于,所述确定单元(202),还用于在通过所述多个摄像头进行拍摄时,确定第一应用在后台自动开启运行;确定预设应用名单中不包括所述第一应用,其中,所述预设应用名单内的应用被允许在所述多个摄像头进行拍摄时在后台运行;所述执行单元(203),还用于关闭所述第一应用。
- 一种终端,其特征在于,所述终端包括处理器(301),所述处理器(301)用于执行存储器中存储的计算机程序时实现根据权利要求1-4中任一项所述的方法。
- 一种可读存储介质,其特征在于,所述可读存储介质存储有计算机指令,当所述计算机指令在计算机上运行时,使得计算机执行根据权利要求1-4中任一项所述的方法。
Priority Applications (1)
| Application Number | Priority Date | Filing Date | Title |
|---|---|---|---|
| US17/042,357 US20210084230A1 (en) | 2018-05-18 | 2018-12-21 | Information Processing Method, Terminal and Readable Storage Medium |
Applications Claiming Priority (2)
| Application Number | Priority Date | Filing Date | Title |
|---|---|---|---|
| CN201810479463.9 | 2018-05-18 | ||
| CN201810479463.9A CN108710539B (zh) | 2018-05-18 | 2018-05-18 | 一种信息处理方法、终端及可读存储介质 |
Publications (1)
| Publication Number | Publication Date |
|---|---|
| WO2019218673A1 true WO2019218673A1 (zh) | 2019-11-21 |
Family
ID=63868166
Family Applications (1)
| Application Number | Title | Priority Date | Filing Date |
|---|---|---|---|
| PCT/CN2018/122497 Ceased WO2019218673A1 (zh) | 2018-05-18 | 2018-12-21 | 信息处理方法、终端及可读存储介质 |
Country Status (3)
| Country | Link |
|---|---|
| US (1) | US20210084230A1 (zh) |
| CN (1) | CN108710539B (zh) |
| WO (1) | WO2019218673A1 (zh) |
Families Citing this family (5)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| CN108710539B (zh) * | 2018-05-18 | 2021-03-16 | 珠海格力电器股份有限公司 | 一种信息处理方法、终端及可读存储介质 |
| WO2020097836A1 (zh) * | 2018-11-15 | 2020-05-22 | 深圳市欢太科技有限公司 | 图像处理方法、装置、计算机设备和存储介质 |
| CN110430375B (zh) * | 2019-07-23 | 2021-07-20 | Oppo广东移动通信有限公司 | 成像方法、装置、存储介质及电子设备 |
| CN111064885B (zh) * | 2019-12-19 | 2024-06-18 | 上海传英信息技术有限公司 | 快速拍照方法、移动终端及计算机可读存储介质 |
| CN113014792A (zh) * | 2019-12-20 | 2021-06-22 | 青岛海信移动通信技术股份有限公司 | 一种终端设备和相机资源共享方法 |
Citations (7)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| CN104714874A (zh) * | 2015-02-28 | 2015-06-17 | 深圳市中兴移动通信有限公司 | 一种移动终端内存智能优化的方法及移动终端 |
| CN105224439A (zh) * | 2014-07-02 | 2016-01-06 | 北京金山安全软件有限公司 | 终端app的cpu占用率的检测方法、装置及终端 |
| CN105653407A (zh) * | 2015-12-08 | 2016-06-08 | 网易(杭州)网络有限公司 | 终端、卡顿测量方法、装置及游戏卡顿测量方法、装置 |
| CN106095363A (zh) * | 2016-06-03 | 2016-11-09 | 广东欧珀移动通信有限公司 | 一种终端卡顿的改善方法、装置以及终端 |
| CN106331352A (zh) * | 2016-08-26 | 2017-01-11 | 珠海格力电器股份有限公司 | 一种手机的温度控制方法、装置及终端 |
| CN107193653A (zh) * | 2017-04-28 | 2017-09-22 | 北京小米移动软件有限公司 | 带宽资源分配方法、装置及存储介质 |
| CN108710539A (zh) * | 2018-05-18 | 2018-10-26 | 珠海格力电器股份有限公司 | 一种信息处理方法、终端及可读存储介质 |
Family Cites Families (15)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| JP2001016447A (ja) * | 1999-06-30 | 2001-01-19 | Minolta Co Ltd | 画像処理装置および画像処理方法、ならびに画像処理プログラムを記録した記録媒体 |
| US20140002617A1 (en) * | 2012-06-27 | 2014-01-02 | The Board Of Trustees Of The University Of Illinois | Particle tracking system and method |
| CN103595914B (zh) * | 2013-11-04 | 2018-06-15 | 华为终端(东莞)有限公司 | 一种拍照方法和移动终端 |
| WO2015095352A1 (en) * | 2013-12-17 | 2015-06-25 | Sequitur Labs, Inc. | Method and system for dynamic runtime selection and modification of conditional expressions in computations |
| CN104156054B (zh) * | 2014-08-08 | 2017-07-07 | 广东欧珀移动通信有限公司 | 一种降低移动终端功耗的方法及移动终端 |
| CN104735359B (zh) * | 2015-04-09 | 2018-01-16 | 广东欧珀移动通信有限公司 | 一种移动终端的相机运行方法及装置 |
| CN105760226B (zh) * | 2016-02-01 | 2019-06-28 | Oppo广东移动通信有限公司 | 一种快速启动移动终端相机的方法、装置及移动终端 |
| JP2017158018A (ja) * | 2016-03-01 | 2017-09-07 | キヤノン株式会社 | 画像処理装置およびその制御方法、撮像装置 |
| CN105975301B (zh) * | 2016-04-29 | 2018-09-04 | 北京小米移动软件有限公司 | 内存清理方法及装置、电子设备 |
| CN106657758B (zh) * | 2016-09-26 | 2020-11-27 | Oppo广东移动通信有限公司 | 拍照方法、装置以及终端设备 |
| CN106815078B (zh) * | 2016-12-30 | 2020-04-21 | Oppo广东移动通信有限公司 | 一种内存控制方法及设备 |
| CN106681667B (zh) * | 2017-01-09 | 2020-07-17 | 北京安云世纪科技有限公司 | 一种图片展示方法、装置及移动终端 |
| CN107153500B (zh) * | 2017-04-21 | 2020-05-15 | 刘一琛 | 一种实现图像显示的方法及设备 |
| CN107450796B (zh) * | 2017-06-30 | 2019-10-08 | 努比亚技术有限公司 | 一种图片处理方法、移动终端和计算机可读存储介质 |
| CN107450985B (zh) * | 2017-07-27 | 2021-05-18 | 北京珠穆朗玛移动通信有限公司 | 内存管理方法、移动终端及存储介质 |
-
2018
- 2018-05-18 CN CN201810479463.9A patent/CN108710539B/zh active Active
- 2018-12-21 WO PCT/CN2018/122497 patent/WO2019218673A1/zh not_active Ceased
- 2018-12-21 US US17/042,357 patent/US20210084230A1/en not_active Abandoned
Patent Citations (7)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| CN105224439A (zh) * | 2014-07-02 | 2016-01-06 | 北京金山安全软件有限公司 | 终端app的cpu占用率的检测方法、装置及终端 |
| CN104714874A (zh) * | 2015-02-28 | 2015-06-17 | 深圳市中兴移动通信有限公司 | 一种移动终端内存智能优化的方法及移动终端 |
| CN105653407A (zh) * | 2015-12-08 | 2016-06-08 | 网易(杭州)网络有限公司 | 终端、卡顿测量方法、装置及游戏卡顿测量方法、装置 |
| CN106095363A (zh) * | 2016-06-03 | 2016-11-09 | 广东欧珀移动通信有限公司 | 一种终端卡顿的改善方法、装置以及终端 |
| CN106331352A (zh) * | 2016-08-26 | 2017-01-11 | 珠海格力电器股份有限公司 | 一种手机的温度控制方法、装置及终端 |
| CN107193653A (zh) * | 2017-04-28 | 2017-09-22 | 北京小米移动软件有限公司 | 带宽资源分配方法、装置及存储介质 |
| CN108710539A (zh) * | 2018-05-18 | 2018-10-26 | 珠海格力电器股份有限公司 | 一种信息处理方法、终端及可读存储介质 |
Also Published As
| Publication number | Publication date |
|---|---|
| CN108710539B (zh) | 2021-03-16 |
| US20210084230A1 (en) | 2021-03-18 |
| CN108710539A (zh) | 2018-10-26 |
Similar Documents
| Publication | Publication Date | Title |
|---|---|---|
| WO2019218673A1 (zh) | 信息处理方法、终端及可读存储介质 | |
| JP5888535B2 (ja) | 撮影処理方法および端末デバイス | |
| CN111491102B (zh) | 拍照场景的检测方法、系统、移动终端及存储介质 | |
| BR112016023952B1 (pt) | Sistema e método para retardar o consumo de energia pelo pós-processamento de dados de sensor | |
| CN106961558B (zh) | 一种拍照处理方法和装置 | |
| CN112116624A (zh) | 一种图像处理方法和电子设备 | |
| CN104133711A (zh) | 基于Android系统的摄像头安全切换方法 | |
| CN107506019A (zh) | 应用程序的管理方法及装置、终端、存储介质 | |
| CN104777980A (zh) | 一种高分辨率终端的省电方法和装置 | |
| US9854162B2 (en) | Photographing apparatus that sends an image to an external apparatus with a specific restriction to prevent a flaw | |
| CN107422819A (zh) | 一种降低温升的方法、计算机可读存储介质、电子设备 | |
| US20150288885A1 (en) | Method and Apparatus for Controlling Camera Devices | |
| US10063772B2 (en) | Image processing apparatus that sends image to external apparatus | |
| CN112307229A (zh) | 数据处理方法及装置、电子设备、计算机可读存储介质 | |
| CN104391742A (zh) | 应用优化方法和装置 | |
| CN110515736B (zh) | 限制后台对象的方法、装置、终端及存储介质 | |
| CN111597363A (zh) | 检测重复照片的方法、移动终端和具有存储功能的装置 | |
| US12160453B2 (en) | Framework for automatically establishing secure connections for streaming audio and video data between devices based on device state criteria | |
| CN103024278A (zh) | 一种拍照红眼消除方法及装置 | |
| CN107870671A (zh) | 显示处理方法及相关产品 | |
| CN108471502A (zh) | 一种相机的拍摄方法、装置和相机 | |
| CN121433852A (zh) | 电子设备、电子设备控制方法及计算机可读介质 | |
| WO2019000527A1 (zh) | 一种快速恢复智能手机配置的方法及其系统 | |
| CN121940652A (zh) | 拍摄方法、装置、头戴式设备及存储介质 | |
| CN116828300A (zh) | 相机的模式切换方法、装置及相机 |
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: 18919223 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: 18919223 Country of ref document: EP Kind code of ref document: A1 |