CN107734617A - Closing application program method, apparatus, storage medium and electronic equipment - Google Patents

Closing application program method, apparatus, storage medium and electronic equipment Download PDF

Info

Publication number
CN107734617A
CN107734617A CN201711047046.9A CN201711047046A CN107734617A CN 107734617 A CN107734617 A CN 107734617A CN 201711047046 A CN201711047046 A CN 201711047046A CN 107734617 A CN107734617 A CN 107734617A
Authority
CN
China
Prior art keywords
user
application program
module
image
currently
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Pending
Application number
CN201711047046.9A
Other languages
Chinese (zh)
Inventor
梁昆
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Guangdong Oppo Mobile Telecommunications Corp Ltd
Original Assignee
Guangdong Oppo Mobile Telecommunications Corp 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 Guangdong Oppo Mobile Telecommunications Corp Ltd filed Critical Guangdong Oppo Mobile Telecommunications Corp Ltd
Priority to CN201711047046.9A priority Critical patent/CN107734617A/en
Publication of CN107734617A publication Critical patent/CN107734617A/en
Pending legal-status Critical Current

Links

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W52/00Power management, e.g. TPC [Transmission Power Control], power saving or power classes
    • H04W52/02Power saving arrangements
    • H04W52/0209Power saving arrangements in terminal devices
    • H04W52/0251Power saving arrangements in terminal devices using monitoring of local events, e.g. events related to user activity
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F1/00Details not covered by groups G06F3/00 - G06F13/00 and G06F21/00
    • G06F1/26Power supply means, e.g. regulation thereof
    • G06F1/32Means for saving power
    • G06F1/3203Power management, i.e. event-based initiation of a power-saving mode
    • G06F1/3206Monitoring of events, devices or parameters that trigger a change in power modality
    • G06F1/3231Monitoring the presence, absence or movement of users
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F1/00Details not covered by groups G06F3/00 - G06F13/00 and G06F21/00
    • G06F1/26Power supply means, e.g. regulation thereof
    • G06F1/32Means for saving power
    • G06F1/3203Power management, i.e. event-based initiation of a power-saving mode
    • G06F1/3234Power saving characterised by the action undertaken
    • G06F1/329Power saving characterised by the action undertaken by task scheduling
    • 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/724User interfaces specially adapted for cordless or mobile telephones
    • H04M1/72448User interfaces specially adapted for cordless or mobile telephones with means for adapting the functionality of the device according to specific conditions
    • H04M1/72451User interfaces specially adapted for cordless or mobile telephones with means for adapting the functionality of the device according to specific conditions according to schedules, e.g. using calendar applications
    • 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/724User interfaces specially adapted for cordless or mobile telephones
    • H04M1/72448User interfaces specially adapted for cordless or mobile telephones with means for adapting the functionality of the device according to specific conditions
    • H04M1/72454User interfaces specially adapted for cordless or mobile telephones with means for adapting the functionality of the device according to specific conditions according to context-related or environment-related conditions
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W52/00Power management, e.g. TPC [Transmission Power Control], power saving or power classes
    • H04W52/02Power saving arrangements
    • H04W52/0209Power saving arrangements in terminal devices
    • H04W52/0251Power saving arrangements in terminal devices using monitoring of local events, e.g. events related to user activity
    • H04W52/0258Power saving arrangements in terminal devices using monitoring of local events, e.g. events related to user activity controlling an operation mode according to history or models of usage information, e.g. activity schedule or time of day
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W52/00Power management, e.g. TPC [Transmission Power Control], power saving or power classes
    • H04W52/02Power saving arrangements
    • H04W52/0209Power saving arrangements in terminal devices
    • H04W52/0261Power saving arrangements in terminal devices managing power supply demand, e.g. depending on battery level
    • H04W52/0264Power saving arrangements in terminal devices managing power supply demand, e.g. depending on battery level by selectively disabling software applications
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04MTELEPHONIC COMMUNICATION
    • H04M2250/00Details of telephonic subscriber devices
    • H04M2250/52Details of telephonic subscriber devices including functional features of a camera
    • YGENERAL 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
    • Y02TECHNOLOGIES OR APPLICATIONS FOR MITIGATION OR ADAPTATION AGAINST CLIMATE CHANGE
    • Y02DCLIMATE CHANGE MITIGATION TECHNOLOGIES IN INFORMATION AND COMMUNICATION TECHNOLOGIES [ICT], I.E. INFORMATION AND COMMUNICATION TECHNOLOGIES AIMING AT THE REDUCTION OF THEIR OWN ENERGY USE
    • Y02D30/00Reducing energy consumption in communication networks
    • Y02D30/70Reducing energy consumption in communication networks in wireless communication networks

Abstract

The embodiment of the present application discloses a kind of closing application program method, apparatus, storage medium and electronic equipment;Methods described includes:Obtain current time, judge current time whether in preset time period, if, then user is shot to obtain the current image of user, and user's characteristic information is extracted among image, judge whether user is currently in sleep state according to user's characteristic information, if being in sleep state, close the application program that present terminal foreground is currently running.The application can detect whether user enters sleep state, and the application program of electronic equipment front stage operation is closed after user enters sleep state, so as to effectively reduce the power consumption of electronic equipment, lift the endurance of electronic equipment.

Description

Closing application program method, apparatus, storage medium and electronic equipment
Technical field
The application is related to electronic device field, and in particular to a kind of closing application program method, apparatus, storage medium and electricity Sub- equipment.
Background technology
With the development of terminal technology, terminal have begun to from simply provided in the past verbal system become gradually one it is logical With the platform of running software.The platform no longer to provide call management as main purpose, and be to provide one include call management, Running environment including the types of applications softwares such as Entertainment, office account, mobile payment, it is deep with substantial amounts of popularization Enter to the every aspect of the life of people, work.
At present, use of the people for mobile phone is more and more frequent, makes a phone call, sends short messages, playing games, listening music etc. for hand The consumption of electromechanics amount is increasing.Wherein, many people like having on earphone before sleep listens music, radio or sees video Deng some audiovisual applications.But many times just unawares fallen asleep when listening, cause these in mobile phone should Bolt down procedure is actively removed with running up to always after you wake up, consumes very much electricity.
The content of the invention
The embodiment of the present application provides a kind of closing application program method, apparatus, storage medium and electronic equipment, can reduce The power consumption of electronic equipment.
In a first aspect, the embodiment of the present application provides a kind of closing application program method, including:
Current time is obtained, judges the current time whether in preset time period;
If so, then being shot to user to obtain the current image of user, and user spy is extracted among described image Reference ceases;
Judge whether user is currently in sleep state according to the user's characteristic information;
If user is in sleep state, the application program that present terminal foreground is currently running is closed.
Second aspect, the embodiment of the present application additionally provide a kind of closing application program device, including:Time judgment module, Characteristic extracting module, sleep judge module and closedown module;
The time judgment module, for obtaining current time, judge whether the current time is in preset time period It is interior;
The characteristic extracting module, for when the time judgment module is judged as YES, user is shot with The image current to user, and user's characteristic information is extracted among described image;
The sleep judge module, for judging user currently whether in sleep shape according to the user's characteristic information State;
The closedown module, for when the sleep judge module is judged as YES, closing present terminal foreground and transporting Capable application program.
The third aspect, the embodiment of the present application also provide a kind of storage medium, are stored thereon with computer program, the calculating Machine program realizes the step of above-mentioned closing application program method when being executed by processor.
Fourth aspect, the embodiment of the present application also provide a kind of electronic equipment, including memory, processor and are stored in storage Realize that above-mentioned application program is closed on device and the computer program that can run on a processor, during the computing device described program The step of closing method.
The closing application program method that the embodiment of the present application provides obtains current time first, judges whether current time is located In in preset time period, if so, then being shot to user to obtain the current image of user, and user is extracted among image Characteristic information, judge whether user is currently in sleep state according to characteristic information, if user is in sleep state, closes and work as The application program that preceding terminal foreground is currently running.The application can detect whether user enters sleep state, and enter in user The application program of electronic equipment front stage operation, so as to effectively reduce the power consumption of electronic equipment, lifting are closed after sleep state The endurance of electronic equipment.
Brief description of the drawings
In order to illustrate more clearly of the technical scheme in the embodiment of the present application, make required in being described below to embodiment Accompanying drawing is briefly described, it should be apparent that, drawings in the following description are only some embodiments of the present application, for For those skilled in the art, on the premise of not paying creative work, it can also be obtained according to these accompanying drawings other attached Figure.
Fig. 1 is a kind of schematic flow sheet for the closing application program method that the embodiment of the present application provides.
Fig. 2 is a kind of application scenarios schematic diagram for the closing application program method that the embodiment of the present application provides.
Fig. 3 is another schematic flow sheet for the closing application program method that the embodiment of the present application provides.
Fig. 4 is a kind of structural representation for the closing application program device that the embodiment of the present application provides.
Fig. 5 is another structural representation for the closing application program device that the embodiment of the present application provides.
Fig. 6 is a kind of structural representation for the electronic equipment that the embodiment of the present application provides.
Fig. 7 is another structural representation for the electronic equipment that the embodiment of the present application provides.
Embodiment
Schema is refer to, wherein identical element numbers represent identical component, and the principle of the application is to implement one Illustrated in appropriate computing environment.The following description is based on illustrated the application specific embodiment, and it should not be by It is considered as limitation the application other specific embodiments not detailed herein.
In the following description, the specific embodiment of the application is by with reference to as the step performed by one or multi-section computer And symbol illustrates, unless otherwise stating clearly.Therefore, these steps and operation will have to mention for several times is performed by computer, this paper institutes The computer of finger, which performs, to be included by representing with the computer processing unit of the electronic signal of the data in a structuring pattern Operation.The data or the opening position being maintained in the memory system of the computer are changed in this operation, and its is reconfigurable Or change the running of the computer in a manner of known to the tester of this area in addition.The data structure that the data are maintained For the provider location of the internal memory, it has the particular characteristics as defined in the data format.But the application principle is with above-mentioned text Word illustrates that it is not represented as a kind of limitation, this area tester will appreciate that plurality of step as described below and behaviour Also may be implemented among hardware.
The principle of the application is grasped using many other wide usages or specific purpose computing, communication environment or configuration Make.The example of the known arithmetic system for being suitable for the application, environment and configuration may include (but not limited to) hold phone, Personal computer, server, multicomputer system, system, body frame configuration computer and distributed arithmetic ring based on micro computer Border, which includes any said system or device.
It will be described in detail respectively below.
The present embodiment will be described from the angle of closing application program device, and the device can specifically be integrated in electronics and set In standby, the electronic equipment can connect the network equipment (such as smart mobile phone, tablet personal computer) for mobile internet and possess network service work( The electronic equipment of energy.
With reference first to Fig. 1, Fig. 1 is a kind of schematic flow sheet for the closing application program method that the embodiment of the present application provides, Comprise the following steps:
Step S101, obtain current time.
Among an embodiment, a variety of methods can be had by obtaining terminal current time, for example be worked as by terminal networking inquiry The preceding time, or terminal system clock current time etc. is obtained, the present invention is not further limited to this.
Step S102, current time is judged whether in preset time period, if so, then performing step S103.
Among an embodiment, can by user's preset in advance preset time period, the period can be one or It is multiple.
For example, the preset time period could be arranged to the period that user generally falls asleep, such as daily evening 22: 00-24:00, if user needs further increase the 12 of noon if lunch break:00-14:00 period, the period can Voluntarily to be set by user.Certainly, it is contemplated that daily schedule of weekend user may be slightly different, can also to it is above-mentioned default when Between section be further limited, for example preset time period can be arranged to the evening 22 of Sunday to Thursday:00-24:00, Friday with And the evening 23 of Saturday:00- next day 1:00.
Among an embodiment, judge whether the step in preset time period can specifically pass through judgement to current time Whether current time reaches the start time point of the preset time period.For example the preset time period of user preset is at night 22: 00-24:00 and the 12 of noon:00-14:00, therefore may determine that whether current time reaches evening 22:00 or noon 12:00, if, it is determined that current time is in time for falling asleep section, if not, it is determined that current time is not at time for falling asleep section. Namely above-mentioned judge whether the step in the preset time period can specifically include current time:
Obtain the start time point of above-mentioned preset time period;
Judge whether current time reaches above-mentioned start time point;
If reach, it is determined that current time is in preset time period.
Step S103, user is shot to obtain the current image of user, and user characteristics is extracted among image Information.
Among an embodiment, if current time is in above-mentioned preset time period, terminal can generate shooting instruction simultaneously Instructed according to the shooting and open camera, so as to be shot to user to obtain user images.Wherein, above-mentioned camera can be with It is the front camera or rear camera of terminal, can also is that infrared photography is first-class.It should be noted that user needs to make Oneself is located at camera within sweep of the eye.
In view of evening user, often light than dark, may be unfavorable for shooting, therefore among an embodiment during sleep, Camera device can be controlled.For example the user images to currently obtaining are analyzed, and obtain its image color and contrast Degree, judges whether the black pixel point in image color is more than the first preset value, and judges whether its contrast is more than second Preset value, if the black pixel point in above-mentioned image is more than the first preset value, and/or contrast is more than the second preset value, then may be used To determine current environment as night and not drive lighting apparatus, camera device can be controlled to open infrared Night.
Among an embodiment, user's characteristic information is extracted from the user images of acquisition;Wherein, user's characteristic information can With including human motion status information, human body attitude information and face characteristic information etc.., can be with for example, in the present embodiment Human body contour outline information is extracted from the user images of acquisition, and human motion state letter is further obtained according to human body contour outline information Breath and human body attitude information, wherein, human motion status information and human body attitude information can pass through Human bodys' response technology Obtain.At the same time it can also extract face characteristic information from the image of acquisition, wherein it is possible to be based on face feature identification technique Obtain above-mentioned face characteristic information.
Among an embodiment, the image that can first pass through acquisition judges whether someone, if examined from the image of acquisition When measuring human body contour outline information or face characteristic information, then indoor someone is judged, now, record and preserve above-mentioned human body contour outline letter The user's characteristic information such as breath or face characteristic information, to be determined further.If do not detected in the image of acquisition To human body contour outline information or face characteristic information, then indoor no one is judged, continue to shoot current scene.
Step S104, judge whether user is currently in sleep state according to characteristic information, if so, then performing step S105。
Among an embodiment, features described above information can include eye feature or limb action information etc., therefore can To judge whether user is currently in sleep state according to above-mentioned eye feature or limb action information.
For example terminal continuously acquires user images every a preset duration, the preset duration can be 5 minutes, by right Movement range of the user in 5 minutes is judged than the limb action information of user in two images before and after adjacent, if this is dynamic Make amplitude and be less than deliberate action amplitude, then judge that user is currently at sleep state.
Among an embodiment, it can also determine that user's is current according to the limb action information of user in above-mentioned image Posture, if the posture is preset posture, determine whether its movement range is less than deliberate action amplitude, wherein, it is above-mentioned Human body attitude is used to representing the standing of human body, crouches or the sleeping status information such as lie., can be with for example above-mentioned preset posture is sleeping state of lying The current pose of user is judged according to the limb action information of user in image, it is then determined that whether current pose is sleeping shape of lying State.Wherein, human body, which is in, stands, sits or sleeping when lying, and the geometry and bearing of trend of its human body contour outline are different, therefore can To judge user whether in sleeping state of lying by detecting human body contour outline, and by template matches etc..
Among other embodiment, it can also judge whether user is currently in sleep state according to eye feature.Than The current eye state of user is such as may determine that, eye state can include opening eyes and closing one's eyes, if user is in a period of time internal ratio As being in closed-eye state within 10 minutes, then it can determine that user is currently at sleep state.Wherein, when opening eyes and close one's eyes in appearance Two maximum differences are:Distribution of color and geometry, therefore, the blink detection method based on distribution of color can be passed through Or template matching method based on geometry etc. obtains eye feature information, and judge that human eye is according to above-mentioned eye feature information No be in closeds state.For example, when human eye is in and closeds state, the geometry of the human eye got from monitoring image connects Closely to be linear, it would know that human eye is in by template matches and closed state.When human eye, which is in, opens state, from monitoring image The geometry of the human eye got is non-linear, and can know that human eye is in by template matches opens state.
Step S105, close the application program that present terminal foreground is currently running.
Among the present embodiment, the application program that above-mentioned present terminal foreground is currently running refers to user circle in electronic equipment The application program shown in face, rather than the application program of running background, such as music APP or e-book etc..
In actual use, there may be that user is also introduced into sleep state and terminal maloperation is determined as in sleep The situation of state, foreground application is now closed obviously against the intention of user, therefore, among an embodiment, before closing It can also generate a prompt message before platform application program and be shown in terminal screen, as shown in Fig. 2 when judgement user enters After sleep state, whether terminal pop-up " closes XX music ", and "No" prevention can be clicked on if user is also introduced into sleep state Application program is closed, if the pop-up ejects a preset time and do not receive user's operation after 10 seconds for example, can close this should Use program.
From the foregoing, it will be observed that the embodiment of the present application can obtain current time, judge whether current time is in preset time period It is interior, if so, then being shot to user to obtain the current image of user, and user's characteristic information is extracted among image, root Judge whether user is currently in sleep state according to characteristic information, if user is in sleep state, close present terminal foreground The application program being currently running.The application can detect whether user enters sleep state, and after user enters sleep state The application program of electronic equipment front stage operation is closed, so as to effectively reduce the power consumption of electronic equipment, lifts electronic equipment Endurance.
According to the description of a upper embodiment, illustrate the closing application program method of the application by further below.
Referring to Fig. 3, Fig. 3 is the schematic flow sheet for another closing application program method that the embodiment of the present application provides, In the present embodiment, Internet video download instruction can include multiple Internet videos, comprise the following steps:
Step S201, obtain current time.
Among an embodiment, a variety of methods can be had by obtaining terminal current time, for example be worked as by terminal networking inquiry The preceding time, or terminal system clock current time etc. is obtained, the present invention is not further limited to this.
Step S202, current time is judged whether in preset time period, if so, then performing step S203.
For example the preset time period could be arranged to the period that user generally falls asleep, such as daily evening 22:00- 24:00, if user needs further increase the 12 of noon if lunch break:00-14:00 period, the period can be with Voluntarily set by user.Certainly, it is contemplated that the daily schedule of weekend user may be slightly different, can also be to above-mentioned preset time Section is further limited, for example preset time period can be arranged to the evening 22 of Sunday to Thursday:00-24:00, Friday and The evening 23 of Saturday:00- next day 1:00.
Step S203, user is shot every the first preset duration, to obtain the current image of user.
Among an embodiment, if current time is in above-mentioned preset time period, terminal can generate shooting instruction simultaneously Instructed according to the shooting and open camera, and user shot every the first preset duration, first preset duration can be with It is configured and can also be voluntarily set according to user's actual need by system, is for example 5 minutes.Wherein, above-mentioned camera can be with It is the front camera or rear camera of terminal, can also is that infrared photography is first-class.It should be noted that user needs to make Oneself is located at camera within sweep of the eye.
Step S204, present image and the history image before the first preset duration are contrasted, existed with obtaining user Limb action information in first preset duration.
Such as the history image by being obtained before present image and 5 minutes, to obtain the limb of the user in this 5 minutes Body action message, such as to turn over, lifting leg etc..Human body contour outline information can be specifically extracted from image, then according to adjacent The human body contour outline information generation limb action information extracted in two images.
In one embodiment, before this step, the image that can also first pass through acquisition judges whether someone, if from obtaining When human body contour outline information is detected in the image taken, then indoor someone is judged, now, record and preserve above-mentioned human body contour outline letter Breath, to be determined further.If being not detected by human body contour outline information in the image of acquisition, judge that interior does not have People, stop current process and continue to shoot current scene.
Step S205, according to limb action information of the user in the first preset duration judge user movement range whether Less than deliberate action amplitude, if so, step S206 is then performed, if it is not, then continuing executing with step S03.
Sleep state is divided into either shallow sleep and deep sleep, among the present embodiment, it is contemplated that user enters sleep state Afterwards among either shallow sleep it can also happen that some limb actions by a small margin, therefore it may determine that whether above-mentioned movement range is small In deliberate action amplitude, if, it is determined that user is currently at sleep state, and further performs next step.
Step S206, obtain the application program that present terminal foreground is currently running.
Among the present embodiment, the application program that above-mentioned present terminal foreground is currently running refers to user circle in electronic equipment The application program shown in face, rather than the application program of running background, such as music APP or e-book etc..
Step S207, the identification information of application program is extracted, and judge whether deposited among default application program identification set With application program identification identical sample identification, if so, then perform step S208, if it is not, then terminating flow.
Above-mentioned identification information can be the information that bag name of application program etc. includes its feature., can be pre- in the present embodiment One application program identification set is first set, wherein can include close after on some application programs of terminal without influence, can be with Voluntarily set by user.
Step S208, close above-mentioned application program.
From the foregoing, it will be observed that the embodiment of the present application can obtain current time, judge whether current time is in preset time period It is interior, if so, then being shot every the first preset duration to user, to obtain the current image of user, by present image and History image before one preset duration is contrasted, to obtain limb action information of the user in the first preset duration, root Whether the movement range for judging user according to limb action information of the user in the first preset duration is less than deliberate action amplitude, if It is less than, then obtains the application program that present terminal foreground is currently running, extract the identification information of application program, and judges default answer With whether there is among program identification set with application program identification identical sample identification, if in the presence of closing above-mentioned application Program.The application can detect whether user enters sleep state, and before electronic equipment is closed after user enters sleep state The application program of platform operation, so as to effectively reduce the power consumption of electronic equipment, lifts the endurance of electronic equipment.
For the ease of preferably implementing the closing application program method that the embodiment of the present application provides, the embodiment of the present application also carries A kind of device based on above-mentioned closing application program method is supplied.Wherein in the implication of noun and above-mentioned closing application program method Identical, specific implementation details may be referred to the explanation in embodiment of the method.
Referring to Fig. 4, Fig. 4 is a kind of structural representation for closing application program device that the embodiment of the present application provides, should Closing application program device 30 includes:Time judgment module 301, characteristic extracting module 302, sleep judge module 303 and pass Mold closing block 304;
The time judgment module 301, for obtaining current time, judge current time whether in preset time period;
This feature extraction module 302, for when time judgment module 301 is judged as YES, user is shot with The image current to user, and user's characteristic information is extracted among image;
The sleep judge module 303, for judging whether user is currently in sleep state according to characteristic information;
The closedown module 304, for when judge module 303 of sleeping is judged as YES, closing present terminal foreground and transporting Capable application program.
With continued reference to Fig. 5, among an embodiment, features described above extraction module 302 can include:Shooting submodule 3021 With extracting sub-module 3022;
The shooting submodule 3021, it is current to obtain user for being shot every the first preset duration to user Image;
The extracting sub-module 3022, for present image and the history image before the first preset duration to be contrasted, To obtain limb action information of the user in the first preset duration.
Above-mentioned sleep judge module 303 can include:Judging submodule 3031 and determination sub-module 3032;
The judging submodule 3031, for judging to use according to limb action information of the user in first preset duration Whether the movement range at family is less than deliberate action amplitude;
The determination sub-module 3032, for when judging submodule 3031 is judged as YES, determining that user is currently at sleep State.
From the foregoing, it will be observed that the closing application program device 30 that the embodiment of the present application provides can obtain current time, judge to work as Whether the preceding time is in the preset time period, if so, then shot to user to obtain the current image of user, and from image Central extraction user's characteristic information, judge whether user is currently in sleep state according to characteristic information, if user is in sleep State, then close the application program that present terminal foreground is currently running.The application can detect whether user enters sleep state, And the application program of electronic equipment front stage operation is closed after user enters sleep state, so as to effectively reduce electronic equipment Power consumption, lift the endurance of electronic equipment.
The application also provides a kind of storage medium, is stored thereon with computer program, it is characterised in that the computer journey The closing application program method that implementation method embodiment provides when sequence is executed by processor.
The application also provides a kind of electronic equipment, including memory, and processor and storage on a memory and can handled The computer program run on device, it is characterised in that implementation method embodiment provides during the computing device described program Closing application program method.
A kind of electronic equipment is also provided in the another embodiment of the application, the electronic equipment can be smart mobile phone, flat board Apparatus such as computer.As shown in fig. 6, electronic equipment 400 includes processor 401, memory 402.Wherein, processor 401 and storage Device 402 is electrically connected with.
Processor 401 is the control centre of electronic equipment 400, utilizes various interfaces and the whole electronic equipment of connection Various pieces, by the application program of operation or load store in memory 402, and call and be stored in memory 402 Data, the various functions and processing data of electronic equipment are performed, so as to carry out integral monitoring to electronic equipment.
In the present embodiment, processor 401 in electronic equipment 400 can according to the steps, by one or one with On application program process corresponding to instruction be loaded into memory 402, and be stored in memory by processor 401 to run Application program in 402, so as to realize various functions:
Current time is obtained, judges the current time whether in preset time period;
If so, then being shot to user to obtain the current image of user, and user spy is extracted among described image Reference ceases;
Judge whether user is currently in sleep state according to the user's characteristic information;
If user is in sleep state, the application program that present terminal foreground is currently running is closed.
Referring to Fig. 7, Fig. 7 is the electronic devices structure schematic diagram that the embodiment of the present application provides.The electronic equipment 500 can be with Including radio frequency (RF, Radio Frequency) circuit 501, include one or more computer-readable recording mediums Memory 502, input block 503, display unit 504, sensor 504, voicefrequency circuit 506, Wireless Fidelity (WiFi, Wireless Fidelity) module 507, include one or the processor 508 and power supply of more than one processing core 509 grade parts.It will be understood by those skilled in the art that the electronic devices structure shown in Fig. 7 is not formed to electronic equipment Limit, can include than illustrating more or less parts, either combine some parts or different parts arrangement.
Radio circuit 501 can be used for receive and send messages, or in communication process signal reception and transmission, especially, by base station Downlink information receive after, transfer to one or more than one processor 508 handled;In addition, sent up data are related to To base station.Generally, radio circuit 501 includes but is not limited to antenna, at least one amplifier, tuner, one or more vibrations Device, subscriber identity module (SIM, Subscriber IdentityModule) card, transceiver, coupler, low-noise amplifier (LNA, Low Noise Amplifier), duplexer etc..In addition, radio circuit 501 can also by radio communication and network and Other equipment communicates.The radio communication can use any communication standard or agreement, including but not limited to global mobile communication system Unite (GSM, Global System of Mobile communication), general packet radio service (GPRS, General Packet Radio Service), CDMA (CDMA, Code Division MultipleAccess), wideband code division it is more Location (WCDMA, Wideband Code Division Multiple Access), Long Term Evolution (LTE, Long Term Evolution), Email, Short Message Service (SMS, ShortMessaging Service) etc..
Memory 502 can be used for storage application program and data.Include and can hold in the application program that memory 502 stores Line code.Application program can form various functions module.Processor 508 is stored in the application journey of memory 502 by operation Sequence, so as to perform various function application and data processing.Memory 502 can mainly include storing program area and data storage Area, wherein, storing program area can storage program area, needed at least one function application program (such as sound-playing function, Image player function etc.) etc.;Storage data field can store uses created data (such as audio number according to electronic equipment According to, phone directory etc.) etc..In addition, memory 502 can include high-speed random access memory, non-volatile deposit can also be included Reservoir, for example, at least a disk memory, flush memory device or other volatile solid-state parts.Correspondingly, memory 502 can also include Memory Controller, to provide the access of processor 508 and input block 503 to memory 502.
Input block 503 can be used for numeral, character information or the user's characteristic information (such as fingerprint) for receiving input, and Keyboard, mouse, action bars, optics or the trace ball signal relevant with user's setting and function control is produced to input.Specifically Ground, in a specific embodiment, input block 503 may include touch sensitive surface and other input equipments.Touch sensitive surface, Referred to as touch display screen or Trackpad, collect user on or near it touch operation (such as user using finger, touch The operations of any suitable object or annex on touch sensitive surface or near touch sensitive surface such as pen), and according to set in advance Formula drives corresponding attachment means.Optionally, touch sensitive surface may include both touch detecting apparatus and touch controller. Wherein, the touch orientation of touch detecting apparatus detection user, and the signal that touch operation is brought is detected, transmit a signal to touch Controller;Touch controller receives touch information from touch detecting apparatus, and is converted into contact coordinate, then gives processing Device 508, and the order sent of reception processing device 508 and can be performed.
Display unit 504 can be used for display by the information of user's input or be supplied to the information and electronic equipment of user Various graphical user interface, these graphical user interface can be made up of figure, text, icon, video and its any combination. Display unit 504 may include display panel.Optionally, liquid crystal display (LCD, Liquid Crystal can be used Display), the form such as Organic Light Emitting Diode (OLED, OrganicLight-Emitting Diode) configures display surface Plate.Further, touch sensitive surface can cover display panel, after touch sensitive surface detects the touch operation on or near it, Processor 508 is sent to determine the type of touch event, is followed by subsequent processing device 508 according to the type of touch event in display panel It is upper that corresponding visual output is provided.Although in the figure 7, touch sensitive surface is realized with display panel is the part independent as two Input and input function, but it is in some embodiments it is possible to touch sensitive surface and display panel is integrated and realize and input and defeated Go out function.
Electronic equipment may also include at least one sensor 505, such as optical sensor, motion sensor and other sensings Device.Specifically, optical sensor may include ambient light sensor and proximity transducer, wherein, ambient light sensor can be according to environment The light and shade of light adjusts the brightness of display panel, and proximity transducer can close display surface when electronic equipment is moved in one's ear Plate and/or backlight.As one kind of motion sensor, gravity accelerometer can detect in all directions (generally three axles) The size of acceleration, size and the direction of gravity are can detect that when static, the application available for identification mobile phone posture is (such as vertical and horizontal Shield switching, dependent game, magnetometer pose calibrating), Vibration identification correlation function (such as pedometer, percussion) etc.;As for electronics The other sensors such as gyroscope that equipment can also configure, barometer, hygrometer, thermometer, infrared ray sensor, it is no longer superfluous herein State.
Voicefrequency circuit 506 can provide the COBBAIF between user and electronic equipment by loudspeaker, microphone.Audio-frequency electric The voice data received can be converted into electric signal by road 506, be transferred to loudspeaker, and it is defeated to be converted to voice signal by loudspeaker Go out;On the other hand, the voice signal of collection is converted to electric signal by microphone, and audio is converted to after being received by voicefrequency circuit 506 Data, then after voice data output processor 508 is handled, through radio circuit 501 to be sent to such as another electronic equipment, or Person exports voice data to memory 502 further to handle.Voicefrequency circuit 506 is also possible that earphone jack, to carry For the communication of peripheral hardware earphone and electronic equipment.
Wireless Fidelity (WiFi) belongs to short range wireless transmission technology, and electronic equipment can be with by wireless fidelity module 507 Help user to send and receive e-mail, browse webpage and access streaming video etc., it has provided the user wireless broadband internet Access.Although Fig. 7 shows wireless fidelity module 507, but it is understood that, it is simultaneously not belonging to the necessary structure of electronic equipment Into can be omitted as needed in the essential scope for do not change invention completely.
Processor 508 is the control centre of electronic equipment, utilizes each of various interfaces and the whole electronic equipment of connection Individual part, by running or performing the application program being stored in memory 502, and call and be stored in memory 502 Data, the various functions and processing data of electronic equipment are performed, so as to carry out integral monitoring to electronic equipment.Optionally, handle Device 508 may include one or more processing cores;Preferably, processor 508 can integrate application processor and modulation /demodulation processing Device, wherein, application processor mainly handles operating system, user interface and application program etc., and modem processor is mainly located Manage radio communication.It is understood that above-mentioned modem processor can not also be integrated into processor 508.
Electronic equipment also includes the power supply 509 (such as battery) to all parts power supply.Preferably, power supply can pass through electricity Management system and processor 508 are logically contiguous, so as to realize management charging, electric discharge and power consumption by power-supply management system The functions such as management.Power supply 509 can also include one or more direct current or AC power, recharging system, power supply event The random component such as barrier detection circuit, power supply changeover device or inverter, power supply status indicator.
Although not shown in Fig. 7, electronic equipment can also include camera, bluetooth module etc., will not be repeated here.
It when it is implemented, above modules can be realized as independent entity, can also be combined, be made Realized for same or several entities, the specific implementation of above modules can be found in embodiment of the method above, herein not Repeat again.
It should be noted that one of ordinary skill in the art will appreciate that whole in the various methods of above-described embodiment or Part steps are by program the hardware of correlation can be instructed to complete, and the program can be stored in computer-readable storage medium In matter, such as it is stored in the memory of terminal, and by least one computing device in the terminal, can wraps in the process of implementation Include the flow of the embodiment such as information issuing method.Wherein, storage medium can include:Read-only storage (ROM, Read Only Memory), random access memory (RAM, Random Access Memory), disk or CD etc..
Closing application program method, apparatus, storage medium and the electronic equipment provided above the embodiment of the present application is carried out It is discussed in detail, its each functional module can be integrated in a process chip or modules are individually physically present, Can also two or more modules be integrated in a module.Above-mentioned integrated module can both use the form of hardware real It is existing, it can also be realized in the form of software function module.Used herein principle and implementation of the specific case to the application Mode is set forth, and the explanation of above example is only intended to help and understands the present processes and its core concept;Meanwhile For those skilled in the art, according to the thought of the application, change is had in specific embodiments and applications Place, in summary, this specification content should not be construed as the limitation to the application.

Claims (10)

  1. A kind of 1. closing application program method, it is characterised in that comprise the following steps:
    Current time is obtained, judges the current time whether in preset time period;
    If so, then being shot to user to obtain the current image of user, and user characteristics letter is extracted among described image Breath;
    Judge whether user is currently in sleep state according to the user's characteristic information;
    If user is in sleep state, the application program that present terminal foreground is currently running is closed.
  2. 2. closing application program method as claimed in claim 1, it is characterised in that described to be shot to user to be used The current image in family, and extract user's characteristic information step among described image and specifically include:
    User is shot every the first preset duration, to obtain the current image of user;
    The present image and the history image before first preset duration are contrasted, to obtain user described Limb action information in one preset duration.
  3. 3. closing application program method as claimed in claim 2, it is characterised in that described to be sentenced according to the user's characteristic information The step of whether disconnected user is currently in sleep state specifically includes:
    It is default to judge whether the movement range of user is less than according to limb action information of the user in first preset duration Movement range;
    If it is less than, it is determined that user is currently at sleep state.
  4. 4. closing application program method as claimed in claim 1, it is characterised in that described that user is extracted among described image The step of characteristic information, specifically includes:
    Eyeball identifying processing is carried out to described image, and judges whether user is currently in closed-eye state according to recognition result;
    It is described to judge that the step of whether user is currently in sleep state specifically includes according to the user's characteristic information:
    When user is in closed-eye state, judge that user is in the duration of closed-eye state and whether is more than the second preset duration;
    If it is more than, it is determined that user is currently at sleep state.
  5. 5. closing application program method as claimed in claim 1, it is characterised in that transport on the closing present terminal foreground The step of capable application program, specifically includes:
    Obtain the application program that the present terminal foreground is currently running;
    The identification information of the application program is extracted, and judges to whether there is among default application program identification set and is answered with described With program identification identical sample identification;
    If in the presence of closing the application program.
  6. A kind of 6. closing application program device, it is characterised in that including:Time judgment module, characteristic extracting module, sleep judge Module and closedown module;
    The time judgment module, for obtaining current time, judge the current time whether in preset time period;
    The characteristic extracting module, for when the time judgment module is judged as YES, being shot to user to be used The current image in family, and user's characteristic information is extracted among described image;
    The sleep judge module, for judging whether user is currently in sleep state according to the user's characteristic information;
    The closedown module, for when the sleep judge module is judged as YES, closing what present terminal foreground was currently running Application program.
  7. 7. closing application program device as claimed in claim 6, it is characterised in that the characteristic extracting module includes:Shooting Submodule and extracting sub-module;
    The shooting submodule, for being shot every the first preset duration to user, to obtain the current image of user;
    The extracting sub-module, for the history image before the present image and first preset duration to be carried out pair Than to obtain limb action information of the user in first preset duration.
  8. 8. closing application program device as claimed in claim 7, it is characterised in that the sleep judge module includes:Judge Submodule and determination sub-module;
    The judging submodule, for judging that user's is dynamic according to limb action information of the user in first preset duration Make whether amplitude is less than deliberate action amplitude;
    The determination sub-module, for when the judging submodule is judged as YES, determining that user is currently at sleep state.
  9. 9. a kind of storage medium, is stored thereon with computer program, it is characterised in that the computer program is executed by processor The step of Shi Shixian such as any one of claim 1-5 methods describeds.
  10. 10. a kind of electronic equipment, including memory, processor and storage are on a memory and the calculating that can run on a processor Machine program, it is characterised in that realized during the computing device described program such as the step of any one of claim 1-5 methods described Suddenly.
CN201711047046.9A 2017-10-31 2017-10-31 Closing application program method, apparatus, storage medium and electronic equipment Pending CN107734617A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201711047046.9A CN107734617A (en) 2017-10-31 2017-10-31 Closing application program method, apparatus, storage medium and electronic equipment

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201711047046.9A CN107734617A (en) 2017-10-31 2017-10-31 Closing application program method, apparatus, storage medium and electronic equipment

Publications (1)

Publication Number Publication Date
CN107734617A true CN107734617A (en) 2018-02-23

Family

ID=61203540

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201711047046.9A Pending CN107734617A (en) 2017-10-31 2017-10-31 Closing application program method, apparatus, storage medium and electronic equipment

Country Status (1)

Country Link
CN (1) CN107734617A (en)

Cited By (16)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN108762830A (en) * 2018-05-14 2018-11-06 北京小米移动软件有限公司 Control the method and device of application program
CN108965605A (en) * 2018-07-27 2018-12-07 南昌黑鲨科技有限公司 The control method and device of smart phone
CN109324514A (en) * 2018-08-31 2019-02-12 维沃移动通信有限公司 A kind of environment adjustment method and terminal device
CN110324453A (en) * 2018-03-31 2019-10-11 广东欧珀移动通信有限公司 Electronic device and its control method
CN110780595A (en) * 2019-10-17 2020-02-11 北京小米移动软件有限公司 Control method and device for electronic equipment, electronic equipment and storage medium
CN111158493A (en) * 2020-01-02 2020-05-15 维沃移动通信有限公司 Night mode switching method and electronic equipment
CN111580651A (en) * 2020-04-30 2020-08-25 英华达(上海)科技有限公司 Terminal control method, terminal, and computer-readable storage medium
CN111880642A (en) * 2020-06-29 2020-11-03 北京小米移动软件有限公司 Method and device for controlling terminal and storage medium
CN112464199A (en) * 2020-12-15 2021-03-09 闻泰通讯股份有限公司 Biological feature recognition function control method and device, electronic equipment and storage medium
CN112535459A (en) * 2020-11-24 2021-03-23 创新奇智(北京)科技有限公司 Sleep abnormity detection method and device, electronic equipment and readable storage medium
CN112866983A (en) * 2021-01-19 2021-05-28 维沃移动通信有限公司 Control method, control device and electronic equipment
CN113014815A (en) * 2021-03-03 2021-06-22 南京地平线机器人技术有限公司 Method and device for controlling equipment in closed space, medium and equipment
CN113272786A (en) * 2018-12-29 2021-08-17 深圳市欢太科技有限公司 Application program control method and device, storage medium and electronic equipment
CN113867168A (en) * 2021-11-02 2021-12-31 珠海格力电器股份有限公司 Control method and device of screen equipment, storage medium and screen equipment
CN114469005A (en) * 2022-02-17 2022-05-13 珠海格力电器股份有限公司 Sleep state monitoring method and device and computer readable storage medium
US11579906B2 (en) * 2019-09-04 2023-02-14 Dell Products, L.P. Managing performance optimization of applications in an information handling system (IHS)

Citations (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN105528228A (en) * 2015-12-07 2016-04-27 上海斐讯数据通信技术有限公司 Apparatus and method for automatically closing applications

Patent Citations (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN105528228A (en) * 2015-12-07 2016-04-27 上海斐讯数据通信技术有限公司 Apparatus and method for automatically closing applications

Cited By (20)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN110324453A (en) * 2018-03-31 2019-10-11 广东欧珀移动通信有限公司 Electronic device and its control method
CN108762830A (en) * 2018-05-14 2018-11-06 北京小米移动软件有限公司 Control the method and device of application program
CN108965605A (en) * 2018-07-27 2018-12-07 南昌黑鲨科技有限公司 The control method and device of smart phone
CN109324514A (en) * 2018-08-31 2019-02-12 维沃移动通信有限公司 A kind of environment adjustment method and terminal device
CN113272786A (en) * 2018-12-29 2021-08-17 深圳市欢太科技有限公司 Application program control method and device, storage medium and electronic equipment
US11579906B2 (en) * 2019-09-04 2023-02-14 Dell Products, L.P. Managing performance optimization of applications in an information handling system (IHS)
CN110780595A (en) * 2019-10-17 2020-02-11 北京小米移动软件有限公司 Control method and device for electronic equipment, electronic equipment and storage medium
CN111158493A (en) * 2020-01-02 2020-05-15 维沃移动通信有限公司 Night mode switching method and electronic equipment
CN111580651A (en) * 2020-04-30 2020-08-25 英华达(上海)科技有限公司 Terminal control method, terminal, and computer-readable storage medium
CN111580651B (en) * 2020-04-30 2023-12-15 英华达(上海)科技有限公司 Terminal control method, terminal and computer readable storage medium
CN111880642A (en) * 2020-06-29 2020-11-03 北京小米移动软件有限公司 Method and device for controlling terminal and storage medium
CN112535459A (en) * 2020-11-24 2021-03-23 创新奇智(北京)科技有限公司 Sleep abnormity detection method and device, electronic equipment and readable storage medium
CN112464199A (en) * 2020-12-15 2021-03-09 闻泰通讯股份有限公司 Biological feature recognition function control method and device, electronic equipment and storage medium
CN112866983A (en) * 2021-01-19 2021-05-28 维沃移动通信有限公司 Control method, control device and electronic equipment
CN112866983B (en) * 2021-01-19 2024-01-12 维沃移动通信有限公司 Control method, control device and electronic equipment
CN113014815B (en) * 2021-03-03 2022-06-17 南京地平线机器人技术有限公司 Method and device for controlling equipment in closed space, medium and equipment
CN113014815A (en) * 2021-03-03 2021-06-22 南京地平线机器人技术有限公司 Method and device for controlling equipment in closed space, medium and equipment
CN113867168A (en) * 2021-11-02 2021-12-31 珠海格力电器股份有限公司 Control method and device of screen equipment, storage medium and screen equipment
CN114469005A (en) * 2022-02-17 2022-05-13 珠海格力电器股份有限公司 Sleep state monitoring method and device and computer readable storage medium
CN114469005B (en) * 2022-02-17 2023-10-24 珠海格力电器股份有限公司 Sleep state monitoring method and device and computer readable storage medium

Similar Documents

Publication Publication Date Title
CN107734617A (en) Closing application program method, apparatus, storage medium and electronic equipment
CN103473494B (en) A kind of run the method for application, device and terminal unit
CN107168469A (en) The acquisition method and Related product of fingerprint
CN107800651A (en) Closing application program method, apparatus, storage medium and electronic equipment
CN109151180A (en) A kind of object identifying method and mobile terminal
CN108182896B (en) A kind of brightness detection method, device and mobile terminal
CN107784114A (en) Recommendation method, apparatus, terminal and the storage medium of facial expression image
CN107580114A (en) Biometric discrimination method, mobile terminal and computer-readable recording medium
CN107292235B (en) fingerprint acquisition method and related product
CN106055957A (en) Fingerprint unlocking method and terminal
CN106022060B (en) A kind of unlocked by fingerprint control method and equipment
CN107317916B (en) Application control method and Related product
CN108259758A (en) Image processing method, device, storage medium and electronic equipment
CN108427873A (en) A kind of biological feather recognition method and mobile terminal
CN108762472A (en) Wearable device control method, wearable device and computer readable storage medium
CN109358831A (en) A kind of display control method, mobile terminal and computer readable storage medium
CN107920384A (en) A kind of method, terminal and computer-readable recording medium for searching for communication network
CN108762814A (en) Bright screen method and relevant device
CN108307110A (en) A kind of image weakening method and mobile terminal
CN108459806A (en) terminal control method, terminal and computer readable storage medium
CN108710786A (en) A kind of method of Anti-addiction, equipment and computer readable storage medium
CN107295163A (en) Information processing method and related product
CN104571778B (en) screen locking picture setting method and device
CN107317918A (en) Parameter setting method and related product
CN109151174A (en) Message display method, wearable device and computer readable storage medium

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
CB02 Change of applicant information

Address after: 523860 No. 18, Wu Sha Beach Road, Changan Town, Dongguan, Guangdong

Applicant after: OPPO Guangdong Mobile Communications Co., Ltd.

Address before: 523860 No. 18, Wu Sha Beach Road, Changan Town, Dongguan, Guangdong

Applicant before: Guangdong OPPO Mobile Communications Co., Ltd.

CB02 Change of applicant information
RJ01 Rejection of invention patent application after publication

Application publication date: 20180223

RJ01 Rejection of invention patent application after publication