WO2016074438A1 - 终端关机方法和装置 - Google Patents

终端关机方法和装置 Download PDF

Info

Publication number
WO2016074438A1
WO2016074438A1 PCT/CN2015/076791 CN2015076791W WO2016074438A1 WO 2016074438 A1 WO2016074438 A1 WO 2016074438A1 CN 2015076791 W CN2015076791 W CN 2015076791W WO 2016074438 A1 WO2016074438 A1 WO 2016074438A1
Authority
WO
WIPO (PCT)
Prior art keywords
information
value
sound
brightness
terminal
Prior art date
Application number
PCT/CN2015/076791
Other languages
English (en)
French (fr)
Inventor
杜兆喜
张劲松
Original Assignee
中兴通讯股份有限公司
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by 中兴通讯股份有限公司 filed Critical 中兴通讯股份有限公司
Publication of WO2016074438A1 publication Critical patent/WO2016074438A1/zh

Links

Images

Classifications

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

Definitions

  • This paper relates to terminal communication technology, and in particular to a terminal shutdown method and device.
  • the embodiment of the present invention provides a terminal shutdown method and device to solve at least the above problem.
  • a method for shutting down a terminal includes: detecting environment information in which the terminal is located, where the environment information includes: time information and brightness information; Compared with the preset control mode, the preset control mode includes: corresponding to different shutdown operations of the terminal according to different environmental information; and determining whether to trigger the terminal shutdown signal according to the comparison result.
  • the brightness information includes: a photometric value and a picture gray value; and detecting the brightness information includes: the light sensor detects an ambient light value, the camera takes a picture, and calculates a picture gray value.
  • the environmental information further includes sound information; and detecting the sound information comprises: the microphone detecting an ambient sound value.
  • the detecting the environment information of the terminal, and comparing the preset control manner according to the environment information, the preset control manner includes: according to different environmental information, different shutdown operations of the corresponding terminal include: Detecting the time information when the terminal screen is dormant; detecting the brightness information when the time information falls within a set time range; and the brightness information is lower than the set brightness information value In the case, the sound information is detected; and it is determined whether the sound information is lower than a set sound information value.
  • the comparing, according to the environment information, comparing with a preset control manner, the preset control manner includes: according to different environmental information, different shutdown operations of the corresponding terminal include: performing the detected environmental information The weighting calculation obtains a weighting result, and determines whether the weighting result is lower than the set value.
  • the method further includes comparing whether the sound information conforms to the set snoring voiceprint recognition standard if the sound information is higher than the set sound information value.
  • the setting the brightness information value comprises: the light sensor collecting the ambient light value and setting the brightness information value;
  • the setting the sound information value comprises: the microphone collecting the ambient sound value, and setting the sound information value.
  • an embodiment of the present invention further provides a terminal shutdown device, where the device includes: a detection module, configured to detect environment information of the terminal, wherein the environment information includes: time information and brightness information; The module is configured to compare with the preset control manner according to the environment information, where the preset control manner includes: corresponding to different shutdown operations of the terminal according to different environmental information; and the triggering module is configured to determine whether the method is based on the comparison result. Trigger the terminal shutdown signal.
  • the brightness information includes: a photometric value and a picture gray value; the detecting module is further configured to detect the brightness information, the light sensor detects an ambient light value, the camera captures a picture, and calculates a picture gray value.
  • the environment information further includes sound information; the detecting module is further configured to detect the sound information, and the microphone detects an ambient sound value.
  • the detecting module is further configured to detect the time information; the comparing module is configured to compare the time information with a set time range, where the time information falls In the case of the set time range, the detecting module is further configured to detect the brightness information; the comparing module is configured to compare the brightness information with the set brightness information value, In a case that the brightness information is lower than the set brightness information value, the detecting module is further configured to detect the sound information; the comparing module is configured to compare the sound information with the set sound information value, and determine the Whether the sound information is lower than the set sound information value.
  • the comparing module includes: a weighting unit configured to perform weighting calculation on the detected environment information to obtain a weighting result, and determine whether the weighting result is lower than a set value.
  • the device further includes: an identification module, configured to compare whether the sound information meets the set snoring voice recognition standard if the detection module detects that the sound information is higher than a set sound information value .
  • the device further includes: a setting module, configured to set the brightness information value, wherein the setting the brightness information value comprises: the light sensor collecting an ambient luminosity value, and setting the brightness information value;
  • the setting module is further configured to set the sound information value, wherein the setting the sound information value comprises: the microphone collecting an ambient sound value, and setting the sound information value.
  • the environment information of the terminal is detected, wherein the environment information includes: time information and brightness information; and the environment information is compared with a preset control mode, where the preset control mode includes According to different environmental information, corresponding terminal shutdown operations; according to the comparison result, determine whether to trigger the terminal shutdown signal; solve the problem that the terminal device cannot automatically shut down according to the environment, and realize the intelligent shutdown of the terminal device according to the environmental information. Improve the user experience.
  • FIG. 1 is a flowchart of a method for shutting down a terminal according to an embodiment of the present invention
  • FIG. 2 is a block diagram showing the structure of a terminal shutdown device according to an embodiment of the present invention.
  • FIG. 3 is a schematic diagram of a terminal configuration according to an embodiment of the present invention.
  • FIG. 4 is a flowchart of a terminal shutdown algorithm according to an embodiment of the present invention.
  • FIG. 5 is a terminal shutdown setting interface according to an embodiment of the present invention.
  • FIG. 1 is a diagram according to an embodiment of the present invention.
  • a flowchart of a terminal shutdown method, as shown in FIG. 1, the process includes the following steps:
  • Step S102 detecting environment information of the terminal
  • Step S104 comparing with the preset control mode according to the environmental information
  • Step S106 determining, according to the comparison result, whether to trigger the terminal shutdown signal.
  • the environment information of the terminal is detected in the above step, wherein the environment information includes: time information and brightness information; and the environment information is compared with a preset control manner, where the preset control manner includes: according to different environments The information corresponds to different shutdown operations of the terminal; according to the comparison result, it is determined whether the terminal shutdown signal is triggered.
  • the terminal device is automatically turned off, and the problem that the terminal device cannot be automatically shut down according to the environment is solved, and the basis is realized.
  • the environmental information intelligently closes the terminal device and improves the user experience.
  • the brightness information includes: a photometric value and a picture gray value; and detecting the brightness information includes: the light sensor detecting the ambient light value, the camera taking the picture, and calculating the picture gray value.
  • the environment information further includes sound information; and detecting the sound information includes: the microphone detecting an ambient sound value.
  • the environment information of the detecting terminal is compared with the preset control mode according to the environment information, and the preset control manner may include: according to different environment information, different shutdown operations of the corresponding terminal include: In the case that the terminal screen is dormant, detecting the time information; if the time information falls within the set time range, detecting the brightness information; and if the brightness information is lower than the set brightness information value, detecting the Sound information; determining whether the sound information is lower than the set sound information value.
  • the preset control manner is compared according to the environment information, and the preset control manner includes: according to different environmental information, different shutdown operations of the corresponding terminal include: weighting the detected environmental information A weighted result is obtained to determine whether the weighted result is lower than the set value.
  • the method further includes comparing whether the sound information conforms to the set snoring voiceprint recognition standard if the sound information is higher than the set sound information value.
  • the setting the brightness information value comprises: the light sensor collecting the ambient light value and setting the brightness information value;
  • the setting the sound information value comprises: the microphone collecting the ambient sound value, and setting the sound information value.
  • a terminal shutdown device is further provided, and the device is configured to implement the foregoing embodiment, and details have been omitted for description.
  • the term “module” may implement a combination of software and/or hardware of a predetermined function.
  • FIG. 2 is a structural block diagram of a terminal shutdown apparatus according to an embodiment of the present invention. As shown in FIG. 2, the apparatus includes:
  • the detecting module 22 is configured to detect environment information where the terminal is located, where the environment information includes: time information and brightness information;
  • the comparison module 24 is configured to compare with the preset control mode according to the environment information, where the preset control mode comprises: corresponding to different shutdown operations of the terminal according to different environmental information;
  • the triggering module 26 is configured to determine whether to trigger the terminal shutdown signal according to the comparison result.
  • the detection module 22, the comparison module 24 and the triggering module 26 solve the problem that the terminal device cannot be automatically shut down according to the environment, and the terminal device is intelligently closed according to the environmental information, thereby improving the user experience.
  • the brightness information includes: a photometric value and a picture gray value; the detecting module 22 is further configured to detect the brightness information, the light sensor detects an ambient light value, the camera takes a picture, and calculates a picture gray value.
  • the environment information further includes sound information; the detecting module 22 is further configured to detect the sound information, including: the microphone detecting the ambient sound value.
  • the detecting module 22 is further configured to detect the time information; the comparing module 24 is configured to compare the time information with the set time range, and the time information falls into the setting.
  • the detecting module 22 is further configured to detect the brightness information; the comparing module 24 is configured to compare the brightness information with the set brightness information value, if the brightness information is lower than the set brightness information value
  • the detecting module 22 is configured to detect the sound information; the comparing module 24 is configured to compare the sound information with the set sound information value, and determine the sound Whether the information is lower than the set sound information value.
  • the comparison module 24 includes: a weighting unit configured to perform weighting calculation on the detected environment information to obtain a weighting result, and determine whether the weighting result is lower than the set value.
  • the apparatus further includes: an identification module configured to compare whether the sound information conforms to the set snoring voiceprint recognition standard if the detection module 22 detects that the sound information is higher than the set sound information value.
  • the device further includes: a setting module, configured to set the brightness information value, wherein the setting the brightness information value comprises: the light sensor collecting an ambient luminosity value, and setting the brightness information value; the setting module And setting the sound information value, wherein setting the sound information value comprises: the microphone collecting the ambient sound value, and setting the sound information value.
  • a setting module configured to set the brightness information value, wherein the setting the brightness information value comprises: the light sensor collecting an ambient luminosity value, and setting the brightness information value
  • the setting module And setting the sound information value, wherein setting the sound information value comprises: the microphone collecting the ambient sound value, and setting the sound information value.
  • a computer readable storage medium storing an embodiment of the invention, wherein the computer executable instructions are used to execute the terminal shutdown method.
  • Embodiment 1 is a diagrammatic representation of Embodiment 1:
  • the environment information is obtained through the light sensor, the microphone, and the camera, and the automatic shutdown operation is performed by combining the time period and the algorithm.
  • the light sensor can be used to obtain the ambient luminosity, thereby determining whether the indoor light is turned on; using the camera to determine whether the indoor environment has been turned off. Light; using a microphone, you can detect indoor sounds to determine if there is activity or speech. Combined with the above judgments, the automatic shutdown process is performed.
  • FIG. 3 is a schematic diagram of a terminal configuration according to an embodiment of the present invention. As shown in FIG. 3, the light sensor and the front camera are at the top position of the front of the mobile phone, and the rear camera is at the back.
  • FIG. 4 is a flow chart of a shutdown algorithm according to an embodiment of the present invention.
  • the process of automatic shutdown is performed under the preset conditions of the user. As shown in Figure 4: Firstly, it is necessary to detect whether the screen is lit. If the screen is on, it is definitely in use, and the auto power off function is not enabled temporarily. When the mobile phone is stationary and there is no operation, after the screen is automatically turned off, the automatic shutdown service is started, and it is detected once every certain time, for example, 1 minute.
  • the screen has also been extinguished, and the light detection is started to obtain the surrounding brightness. Through the brightness value, it is calculated that the indoor environment is dark. In order to confirm that the indoor environment is dim, start shooting Get an indoor picture like a head. Even if the user places the phone in the opposite direction, he can get the indoor picture through the rear camera. Detecting the brightness of the picture, you can choose to confirm that the indoor environment is dark.
  • the microphone is activated to obtain an indoor sound.
  • the sound obtained through the microphone check whether the environment is quiet, or meet certain voiceprint recognition.
  • Figure 5 is a setup interface of an embodiment of the present invention.
  • the user's sleep time is different, and the interface can be fine-tuned. Some users may live in a higher brightness or sleep during the day. Most users will also have the habit of snoring. When detecting through a microphone, it is necessary to identify it. Through the setting interface, to meet the usage habits of various users.
  • the user preferences are set.
  • the user modifies the rest period and wants to shut down at which time period.
  • Click “Brightness Adaptive Detection” to capture the brightness and set it as the brightness threshold; collect the sound, get the basic annoyance, and set it as the threshold. If the selection is "ignore”, then the embodiment of the present invention also switches to a normal timed shutdown.
  • Click “Simulation Experiment Settings” to start the test immediately and prompt the user whether the shutdown condition is currently met. It is convenient for users to adjust the setting parameters.
  • the snoring sound is regular. By analyzing the recorded sound and detecting intermittent and continuous changes in the amplitude of the sound wave, the snoring can be recognized with a high probability. In addition, it is also possible to compare the recorded sound with the sample database by collecting samples, and if it matches the phenomenon of snoring, it is determined to be snoring.
  • Brightness detection Using the light sensor and camera of the mobile phone, the ambient brightness can be quickly and accurately detected from two aspects.
  • the light sensor is a very sensitive device that can accurately obtain ambient luminosity values.
  • the brightness value obtained by the light perception is measured by illuminance, and the larger the value, the higher the brightness.
  • the detected illuminance values may be quantitatively corrected, such as with fixed values or using a numerical algorithm.
  • lux English Lux, abbreviated as "lx"
  • the camera can be used to capture the image and calculate the gray value of the image.
  • the resulting gray value if not all black, the gray value must not be zero. Among them, 0 represents all black, and 255 represents the brightest. The larger the value, the higher the brightness of the environment.
  • parameter A1 takes the most Large amplitude or average amplitude (which can be averaged by square sum, or sum of absolute values) is substituted for A1.
  • parameter A1 uses the maximum amplitude; obtains the average decibel value for a period of time, and parameter A1 takes the average value of the amplitude.
  • the parameter A0 is a reference number, which is the amplitude corresponding to the sound pressure value of 20 micropascals.
  • the step-by-step detection method is to detect one by one in sequence, and if one of them does not meet, the automatic shutdown process is exited, and all of them can be automatically shut down after being met.
  • the camera can be considered as a supplement to the light perception, and the microphone is a check for the indoor sound.
  • V L*a+C*b+M*c
  • L is the percentage of the ray inspection result exceeded
  • C is the percentage of the camera inspection result exceeded
  • M is the percentage of the microphone detection result exceeded.
  • Embodiment 2 is a diagrammatic representation of Embodiment 1:
  • the user has set the automatic shutdown and the rest time is relatively fixed.
  • the microphone of the mobile phone may be selectively recorded to determine whether the sound in the room is quiet. If the user quickly goes to sleep, but will be snoring, the sound will be recognized when the recording is checked, and the sound conforms to the characteristics of the snoring.
  • the mobile phone After the above checks, the mobile phone will automatically shut down after meeting the above conditions.
  • Embodiment 3 is a diagrammatic representation of Embodiment 3
  • the user has set the automatic shutdown, but the break time is not fixed.
  • the light sensor, the camera, and the microphone series detection of the embodiment of the present invention can smoothly prevent the user's mobile phone from being turned off for no reason and miss the family phone.
  • Embodiment 4 is a diagrammatic representation of Embodiment 4:
  • the user works at night and rests during the day.
  • the user first changes the time period to his own rest time period, and can adjust the brightness and sound recognition in order to improve the accuracy. For example, even if the curtains are pulled up during the day, it is slightly brighter. In this case, the brightness of the light and the recognition of the camera should be increased.
  • all or part of the steps of the above embodiments may also be implemented by using an integrated circuit. These steps may be separately fabricated into individual integrated circuit modules, or multiple modules or steps may be fabricated into a single integrated circuit module. achieve.
  • the devices/function modules/functional units in the above embodiments may be implemented by a general-purpose computing device, which may be centralized on a single computing device or distributed over a network of multiple computing devices.
  • each device/function module/functional unit in the above embodiment When each device/function module/functional unit in the above embodiment is implemented in the form of a software function module and sold or used as a stand-alone product, it can be stored in a computer readable storage medium.
  • the above mentioned computer readable storage medium may be a read only memory, a magnetic disk or an optical disk or the like.
  • the embodiment of the invention solves the problem that the terminal device cannot be automatically shut down according to the environment, and the terminal device is intelligently closed according to the environment information, thereby improving the user experience.

Abstract

终端关机方法和装置,其中,该终端关机方法包括:检测终端所处的环境信息,其中,所述环境信息包括:时间信息和亮度信息;根据所述环境信息,与预设控制方式进行比较,所述预设控制方式包括:根据不同的环境信息,对应终端不同的关机操作;根据比较结果,确定是否触发终端关机信号;解决在终端设备上不能根据所处环境自动关机的问题,实现了根据环境信息智能关闭终端设备,提高了用户体验。

Description

终端关机方法和装置 技术领域
本文涉及终端通讯技术,尤其涉及一种终端关机方法和装置。
背景技术
现代人都离不开手机等终端设备,但是手机也存在着一定程度的辐射,很多时候使用者在长时间不用手机的情况下会忘记关上手机,如睡觉的时候,这不仅会使手机电量造成不必要的消耗,缩短手机电量使用时间,也会因此受到一定程度的辐射,尤其在晚上睡觉时对人体的影响较大,辐射环境下的人进入深度睡眠状态需要更长的时间,而且深度睡眠时间也缩短,降低了睡眠质量。目前手机通讯领域关机方法都是手动关机或在某一时间点自动关机,并没有根据环境信息自动关机的设计。
在相关技术中,针对终端设备无法根据环境信息自动关机的问题,目前尚未提出有效的解决方法。
发明内容
有鉴于此,为了解决在终端设备上无法根据环境信息自动关机的问题,本发明实施例提供了一种终端关机方法和装置,以至少解决上述问题。
为实现上述目的,本发明实施例提供的一种终端关机方法,所述方法包括:检测终端所处的环境信息,其中,所述环境信息包括:时间信息和亮度信息;根据所述环境信息,与预设控制方式进行比较,所述预设控制方式包括:根据不同的环境信息,对应终端不同的关机操作;根据比较结果,确定是否触发终端关机信号。
可选地,所述亮度信息包括:光度值和图片灰度值;检测所述亮度信息包括:光线感应器检测环境光度值,摄像头拍摄图片并计算图片灰度值。
可选地,所述环境信息还包括声音信息;检测所述声音信息包括:麦克风检测环境声音值。
可选地,所述检测终端所处的环境信息;根据所述环境信息,与预设控制方式进行比较,所述预设控制方式包括:根据不同的环境信息,对应终端不同的关机操作包括:在所述终端屏幕休眠的情况下,检测所述时间信息;在所述时间信息落入设置的时间范围的情况下,检测所述亮度信息;在所述亮度信息低于设置的亮度信息值的情况下,检测所述声音信息;判断所述声音信息是否低于设置的声音信息值。
可选地,所述根据所述环境信息,与预设控制方式进行比较,所述预设控制方式包括:根据不同的环境信息,对应终端不同的关机操作包括:将检测的所述环境信息进行加权计算获得加权结果,判断所述加权结果是否低于设置的数值。
可选地,所述方法还包括:在所述声音信息高于设置的声音信息值的情况下,比较所述声音信息是否符合设置的打鼾声纹识别标准。
可选地,所述设置亮度信息值包括:所述光线感应器采集环境光度值,并设置为亮度信息值;所述设置声音信息值包括:麦克风采集环境声音值,并设置为声音信息值。
为实现上述目的,本发明实施例还提供一种终端关机装置,所述装置包括:检测模块,设置为检测终端所处的环境信息,其中,所述环境信息包括:时间信息和亮度信息;比较模块,设置为根据所述环境信息,与预设控制方式进行比较,所述预设控制方式包括:根据不同的环境信息,对应终端不同的关机操作;触发模块,设置为根据比较结果,确定是否触发终端关机信号。
可选地,所述亮度信息包括:光度值和图片灰度值;所述检测模块还设置为检测所述亮度信息包括:光线感应器检测环境光度值,摄像头拍摄图片并计算图片灰度值。
可选地,所述环境信息还包括声音信息;所述检测模块还设置为检测所述声音信息包括:麦克风检测环境声音值。
可选地,在所述终端屏幕休眠的情况下,所述检测模块还设置为检测所述时间信息;所述比较模块设置为比较所述时间信息与设置的时间范围,在所述时间信息落入设置的时间范围的情况下,所述检测模块还设置为检测所述亮度信息;所述比较模块设置为比较所述亮度信息与设置的亮度信息值, 在所述亮度信息低于设置的亮度信息值的情况下,所述检测模块还设置为检测所述声音信息;所述比较模块设置为比较所述声音信息与设置的声音信息值,判断所述声音信息是否低于设置的声音信息值。
可选地,所述比较模块包括:加权单元,设置为将检测的所述环境信息进行加权计算获得加权结果,判断所述加权结果是否低于设置的数值。
可选地,所述装置还包括:识别模块,设置为在所述检测模块检测所述声音信息高于设置的声音信息值的情况下,比较所述声音信息是否符合设置的打鼾声纹识别标准。
可选地,所述装置还包括:设置模块,设置为设置所述亮度信息值,其中,设置所述亮度信息值包括:所述光线感应器采集环境光度值,并设置为亮度信息值;所述设置模块,还设置为设置所述声音信息值,其中,设置所述声音信息值包括:麦克风采集环境声音值,并设置为声音信息值。
通过本发明实施例,采用检测终端所处的环境信息,其中,所述环境信息包括:时间信息和亮度信息;根据所述环境信息,与预设控制方式进行比较,所述预设控制方式包括:根据不同的环境信息,对应终端不同的关机操作;根据比较结果,确定是否触发终端关机信号;解决在终端设备上不能根据所处环境自动关机的问题,实现了根据环境信息智能关闭终端设备,提高了用户体验。
附图概述
图1是根据本发明实施例的一种终端关机方法的流程图;
图2是根据本发明实施例的一种终端关机装置的结构框图;
图3是根据本发明实施例的终端配置示意图;
图4是根据本发明实施例的终端关机算法流程图;
图5是根据本发明实施例的终端关机设置界面。
本发明的实施方式
在本实施例中提供了一种终端关机方法,图1是根据本发明实施例的一 种终端关机方法的流程图,如图1所示,该流程包括如下步骤:
步骤S102,检测终端所处的环境信息;
步骤S104,根据环境信息,与预设控制方式进行比较;
步骤S106,根据比较结果,确定是否触发终端关机信号。
其中,上述步骤中检测终端所处的环境信息,其中,该环境信息包括:时间信息和亮度信息;根据该环境信息,与预设控制方式进行比较,该预设控制方式包括:根据不同的环境信息,对应终端不同的关机操作;根据比较结果,确定是否触发终端关机信号。
通过上述步骤,根据检测的不同环境信息,与预设控制方式进行比较,在符合设定关机条件下,自动关闭终端设备,解决在终端设备上不能根据所处环境自动关机的问题,实现了根据环境信息智能关闭终端设备,提高了用户体验。
在本实施例中,该亮度信息包括:光度值和图片灰度值;检测该亮度信息包括:光线感应器检测环境光度值,摄像头拍摄图片并计算图片灰度值。
在本实施例中,该环境信息还包括声音信息;检测该声音信息包括:麦克风检测环境声音值。
在本实施例中,该检测终端所处的环境信息;根据该环境信息,与预设控制方式进行比较,该预设控制方式可以包括:根据不同的环境信息,对应终端不同的关机操作包括:在该终端屏幕休眠的情况下,检测该时间信息;在该时间信息落入设置的时间范围的情况下,检测该亮度信息;在该亮度信息低于设置的亮度信息值的情况下,检测该声音信息;判断该声音信息是否低于设置的声音信息值。
在本实施例中,该根据该环境信息,与预设控制方式进行比较,该预设控制方式包括:根据不同的环境信息,对应终端不同的关机操作包括:将检测的该环境信息进行加权计算获得加权结果,判断该加权结果是否低于设置的数值。
在本实施例中,该方法还包括:在该声音信息高于设置的声音信息值的情况下,比较该声音信息是否符合设置的打鼾声纹识别标准。
在本实施例中,该设置亮度信息值包括:该光线感应器采集环境光度值,并设置为亮度信息值;该设置声音信息值包括:麦克风采集环境声音值,并设置为声音信息值。
在本实施例中还提供了终端关机装置,该装置设置为实现上述实施例,已经进行过说明的不再赘述。如以下所使用的,术语“模块”可以实现预定功能的软件和/或硬件的组合。尽管以下实施例所描述的装置较佳地以软件来实现,但是硬件,或者软件和硬件的组合的实现也是可能被构想的。
图2是根据本发明实施例的一种终端关机装置的结构框图,如图2所示,该装置包括:
检测模块22,设置为检测终端所处的环境信息,其中,该环境信息包括:时间信息和亮度信息;
比较模块24,设置为根据该环境信息,与预设控制方式进行比较,该预设控制方式包括:根据不同的环境信息,对应终端不同的关机操作;
触发模块26,设置为根据比较结果,确定是否触发终端关机信号。
通过上述装置,将检测模块22、比较模块24和触发模块26,解决在终端设备上不能根据所处环境自动关机的问题,实现了根据环境信息智能关闭终端设备,提高了用户体验。
在本实施例中,该亮度信息包括:光度值和图片灰度值;该检测模块22还设置为检测该亮度信息包括:光线感应器检测环境光度值,摄像头拍摄图片并计算图片灰度值。
在本实施例中,该环境信息还包括声音信息;该检测模块22还设置为检测该声音信息包括:麦克风检测环境声音值。
在本实施例中,在该终端屏幕休眠的情况下,该检测模块22还设置为检测该时间信息;该比较模块24设置为比较该时间信息与设置的时间范围,在该时间信息落入设置的时间范围的情况下,该检测模块22还设置为检测该亮度信息;该比较模块24设置为比较该亮度信息与设置的亮度信息值,在该亮度信息低于设置的亮度信息值的情况下,该检测模块22设置为检测该声音信息;该比较模块24设置为比较该声音信息与设置的声音信息值,判断该声音 信息是否低于设置的声音信息值。
在本实施例中,该比较模块24包括:加权单元,设置为将检测的该环境信息进行加权计算获得加权结果,判断该加权结果是否低于设置的数值。
在本实施例中,该装置还包括:识别模块,设置为在该检测模块22检测该声音信息高于设置的声音信息值的情况下,比较该声音信息是否符合设置的打鼾声纹识别标准。
在本实施例中,该装置还包括:设置模块,设置为设置该亮度信息值,其中,设置该亮度信息值包括:该光线感应器采集环境光度值,并设置为亮度信息值;该设置模块,还设置为设置该声音信息值,其中,设置该声音信息值包括:麦克风采集环境声音值,并设置为声音信息值。
本发明实施例的一种计算机可读存储介质,存储有计算机可执行指令,所述计算机可执行指令用于执行上述终端关机方法。
实施例一:
通过光线感应器、麦克风、摄像头获取环境信息,并结合时间段和算法,进行自动关机操作,其中,使用光线感应器可以获取环境光度,进而判断室内灯光是否开启;使用摄像头,判断是否已关闭室内灯光;使用麦克风,可以检测室内声音,用来判断是否有活动或说话声音。结合以上几个判断,进行自动关机流程。
图3是本发明实施例终端配置示意图,如图3所示,光线感应器、前置摄像头在手机的正面顶部位置,后置摄像头在背面。
图4是本发明实施例关机算法流程。利用手机具备的硬件条件,配合软件算法,在满足用户预设条件下,进行自动关机的流程说明。如图4所示:首先需要检测屏幕是否点亮状态,如果屏幕是亮着的,肯定在使用中,暂时不启用自动关机功能。当手机静止无操作,自动灭屏之后,启动自动关机服务,每隔一定时间检测一次,譬如1分钟。
如果是睡眠时间段,屏幕也已经灭掉,就启动光感检测,获取周围亮度。通过亮度值,计算出室内环境比较暗。为了再次确认室内环境暗淡,启动摄 像头获取室内图片。即使,用户反着摆放手机,也能通过后置摄像头,获取室内图片。检测图片亮度,就能可选确认,室内环境是暗的。
为了更精确的判断用户是否已经准备睡眠,启动麦克风,获取室内声音。通过麦克风获取的声音,检查环境是否安静,或者符合一定声纹识别。
综上,通过以上的判断,都符合的话就可以启动自动关机了。
图5是本发明实施例的设置界面。用户的睡眠时间有差异,通过设置界面,可以进行微调。有些用户,居住的环境亮度可能会高一些,或者用户白天睡觉。大多数用户,还会有打呼噜的习惯。通过麦克风进行检测的时候,要进行识别。通过设置界面,满足各种用户的使用习惯。
如图5所示,对用户偏好进行设置。在这个界面,用户修改休息时间段,希望在哪个时间段关机。点击“亮度适应性检测”,可以进行亮度采集,并设置为亮度阈值;采集声音,获取基本的嘈杂度,并设置为阈值。如果,选择为“忽略”,那么本发明实施例也就转换为了普通的定时关机。点击“模拟实验设置”,就立即启动检测,并提示用户当前是否满足关机条件。便于用户调整设置参数。
勾选“检测打鼾”功能之后,可以智能的进行识别用户是否已睡熟,即使打鼾也不影响自动关机功能。使用该选项,可以可选提高识别率。打鼾声都有规律,通过分析录制的声音,检测间断、持续的声波振幅突变,就能较大概率识别出打鼾。另外,也可以通过采集样本,把录制的声音与样本数据库进行比较,如果符合打鼾的现象,就断定为打鼾。
本发明实施例还涉及到亮度、声音的检测与匹配:
亮度检测:使用手机的光线感应器、摄像头,可以从两个方面对环境亮度进行快速准确的检测。
光线感应器,是非常灵敏的器件,可以比较精确的获取环境光度值。通过光感获取到的亮度值,采用照度计量,值越大代表亮度越高。另外设备差异,检测到的照度值,可能要定量校正,譬如,加上固定数值、或者使用数值算法校准。
关于照度,有如下参考值,单位为勒克斯(英文Lux,简写为“lx”):
黑夜:0.001—0.02;
月夜:0.02—0.3;
阴天室内:5—50;
阴天室外:50—500;
晴天室内:100—1000;
夏季中午太阳光下的照度:约为10*6次方;
阅读书刊时所需的照度:50—60;
家用摄像机标准照度:1400
另外,国标GB50034-2013照度有详细定义。
另外,在光线感应器被覆盖,也既手机是反着放在桌子上的时候,可以使用摄像头抓拍图片,计算图片的灰度值。得到的灰度值,如果不是全黑,灰度值一定不是0。其中,0代表全黑,255代表最亮。值越大,代表环境亮度越高。
声音检测:声音的检测可以获取分贝值,它有以下对应关系:
0-20分贝,很静、几乎感觉不到;
20-40分贝,安静、犹如轻声絮语;
40-60分贝,一般、普通室内谈话;
60-70分贝,吵闹、有损神经;
70-90分贝,很吵、神经细胞受到破坏。
90-100分贝,吵闹加剧、听力受损;
100-120分贝,难以忍受、呆一分钟即暂时致聋;
120分贝以上:全聋;
大多手机麦克风可以提供的声音的幅值(amplitude),用此公式计算分贝值:
Ldb=10*LOG10(A1^2/A0^2)=20*LOG10(A1/A0)
使用手机提供的应用程序接口,获取一段音频数据的后,参数A1取最 大振幅或平均振幅(可以用平方和平均,或绝对值的和平均)作为A1代入。若要,获取一段时间内最大分贝,参数A1采用最大幅值;获取一段时间的平均分贝值,参数A1取振幅平均值。其中,参数A0是一个参考数,是20微帕声压值对应的振幅。但手机之间的差异,读取的值存在有差异。所以,应根据实际情况进行调整。譬如,采用不对麦克风说话、室内安静的时候,采集获得的值作为A0。
关机条件计算:可采用两种计算方法,步步检测法和加权综合评估法。
1、步步检测法,就是按顺序逐个检测,有其中一个不符合,就退出自动关机流程,全部符合之后才能进行自动关机。其中,摄像头可以认为是对光感的补充,麦克风是对室内声音的检查。
2、加权综合评估法,把光线感应器、摄像头、麦克风的值,进行加权计算,如果得到的值达标,就启动关机流程。如下:
V=L*a+C*b+M*c
其中,L代表光线检查结果超出的百分比、C代表摄像头检查结果超出的百分比,M代表麦克风检测结果超出的百分比,低于阈值的时候,就设置为0。
对百分比数据的计算,解释如下:
1)光感亮度阈值100,摄像头阈值120,麦克风阈值50。(单位忽略)
2)实际测出的值:亮度110,摄像头为140,麦克风为50。
3)那么,L=(110-100)/100=10%,C=(140-120)/120=16.7%,M=0。
公式中的a、b、c作为加权系数,并进行约束,譬如:a+b+c=100。在实际应用中,偏向于亮度重要,那么就把a的值取大一些。令a=40,b=40,c=20,计算结果为10.68。如果小于固定值N,譬如N=20,就认为可以关机。
实施例二:
用户设置了自动关机,休息时间也比较固定。
很多用户喜欢设置自动关机,在到休眠时间之后,也基本都躺下准备休 息了。这时手机处于灭屏待机状态,后台开始检测自动关机条件。
首先,检查到时间点已到,然后检测室内亮度。通过光感、摄像头配合,可以断定室内灯光已关闭。但是,用户可能在看电视,本发明实施例会可选打开手机的麦克风进行录音,断定室内的声音是否很安静。如果用户很快进入睡眠,但是会打鼾,录音检查的时候,会对声音进行识别,声音是否符合打鼾的特征。
通过以上检查,手机符合上述条件之后,就开始自动关机。
实施例三:
用户设置了自动关机,但休息时间不固定。
有不少用户,喜欢睡觉的时候关机,但是经常熬夜。这样一不注意,手机关机了还得开机。开机之后手机又不能自动关机了。
对于这种情况,首先,检查到时间点是否已到,虽然已到自动关机时间点,但是用户可能在外唱歌、看电影,在家看电视等。这种情况下,用户是不希望关机的。为了避免这种关机,通过本发明实施例的光感、摄像头、麦克风系列检测,可以顺利避免用户手机无故被关掉,错失家人电话。
即使用户把手机又开机了,还会重新进行判断,并进行关机。传统的自动关机功能,大多在用户重新开机之后,就不会再自动关机了。
实施例四:
用户晚上工作,白天休息。
一些用户上晚班,在白天休息的时候,也希望把手机自动关掉。这种情况正好与夜晚相反。通过光感、摄像头检测室内环境亮度,是否低于一定阈值。多数人睡觉的时候,白天都会把门窗关闭的,这样麦克风的检测,声音一般也都不会很嘈杂。
用户首先把时间段改为自己的休息时间段,为了提高准确率可以对亮度、声音识别进行调整。譬如,白天即使拉上窗帘,还是稍微有些亮,这样情况下就要把光感、摄像头识别的亮度值调高一些。
本领域普通技术人员可以理解上述实施例的全部或部分步骤可以使用计算机程序流程来实现,所述计算机程序可以存储于一计算机可读存储介质中, 所述计算机程序在相应的硬件平台上(如系统、设备、装置、器件等)执行,在执行时,包括方法实施例的步骤之一或其组合。
可选地,上述实施例的全部或部分步骤也可以使用集成电路来实现,这些步骤可以被分别制作成一个个集成电路模块,或者将它们中的多个模块或步骤制作成单个集成电路模块来实现。
上述实施例中的各装置/功能模块/功能单元可以采用通用的计算装置来实现,它们可以集中在单个的计算装置上,也可以分布在多个计算装置所组成的网络上。
上述实施例中的各装置/功能模块/功能单元以软件功能模块的形式实现并作为独立的产品销售或使用时,可以存储在一个计算机可读取存储介质中。上述提到的计算机可读取存储介质可以是只读存储器,磁盘或光盘等。
工业实用性
通过本发明实施例,解决在终端设备上不能根据所处环境自动关机的问题,实现了根据环境信息智能关闭终端设备,提高了用户体验。

Claims (15)

  1. 一种终端关机方法,包括:
    检测终端所处的环境信息,其中,所述环境信息包括:时间信息和亮度信息;
    根据所述环境信息,与预设控制方式进行比较,所述预设控制方式包括:根据所述环境信息,对应终端的关机操作;
    根据比较结果,确定是否触发终端关机信号。
  2. 根据权利要求1所述的方法,其中,
    所述亮度信息包括:光度值和图片灰度值;
    检测所述亮度信息包括:光线感应器检测环境光度值,摄像头拍摄图片并计算图片灰度值。
  3. 根据权利要求1或2所述的方法,其中,所述环境信息还包括声音信息;
    检测所述声音信息包括:麦克风检测环境声音值。
  4. 根据权利要求1或3所述的方法,其中,所述检测终端所处的环境信息;根据所述环境信息,与预设控制方式进行比较包括:
    在所述终端屏幕休眠的情况下,检测所述时间信息;
    在所述时间信息落入设置的时间范围的情况下,检测所述亮度信息;
    在所述亮度信息低于设置的亮度信息值的情况下,检测所述声音信息;
    判断所述声音信息是否低于设置的声音信息值。
  5. 根据权利要求1或3所述的方法,其中,所述根据所述环境信息,与预设控制方式进行比较包括:
    将检测的所述环境信息进行加权计算获得加权结果,判断所述加权结果是否低于设置的数值。
  6. 根据权利要求4所述的方法,在检测所述声音信息之后,还包括:
    在所述声音信息高于设置的声音信息值的情况下,判断所述声音信息是 否符合设置的打鼾声纹识别标准。
  7. 根据权利要求4所述的方法,其中:
    所述设置亮度信息值包括:所述光线感应器采集环境光度值,并设置为亮度信息值;
    所述设置声音信息值包括:麦克风采集环境声音值,并设置为声音信息值。
  8. 一种终端关机装置,包括:
    检测模块,设置为检测终端所处的环境信息,其中,所述环境信息包括:时间信息和亮度信息;
    比较模块,设置为根据所述环境信息,与预设控制方式进行比较,所述预设控制方式包括:根据所述环境信息,对应终端的关机操作;以及,
    触发模块,设置为根据比较结果,确定是否触发终端关机信号。
  9. 根据权利要求8所述的装置,其中,
    所述亮度信息包括:光度值和图片灰度值;
    所述检测模块还设置为检测所述亮度信息包括:光线感应器检测环境光度值,摄像头拍摄图片并计算图片灰度值。
  10. 根据权利要求8或9所述的装置,其中,所述环境信息还包括声音信息;
    所述检测模块还设置为检测所述声音信息包括:麦克风检测环境声音值。
  11. 根据权利要求8或10所述的装置,其中,
    在所述终端屏幕休眠的情况下,所述检测模块还设置为检测所述时间信息;
    所述比较模块设置为比较所述时间信息与设置的时间范围,在所述时间信息落入设置的时间范围的情况下,所述检测模块还设置为检测所述亮度信息;
    所述比较模块设置为比较所述亮度信息与设置的亮度信息值,在所述亮度信息低于设置的亮度信息值的情况下,所述检测模块还设置为检测所述声 音信息;
    所述比较模块设置为比较所述声音信息与设置的声音信息值,判断所述声音信息是否低于设置的声音信息值。
  12. 根据权利要求8或10所述的装置,其中,所述比较模块包括:
    加权单元,设置为将检测的所述环境信息进行加权计算获得加权结果,判断所述加权结果是否低于设置的数值。
  13. 根据权利要求11所述的装置,还包括:
    识别模块,设置为在所述检测模块检测所述声音信息高于设置的声音信息值的情况下,判断所述声音信息是否符合设置的打鼾声纹识别标准。
  14. 根据权利要求11所述的装置,还包括:
    设置模块,设置为设置所述亮度信息值,其中,设置所述亮度信息值包括:所述光线感应器采集环境光度值,并设置为亮度信息值;
    所述设置模块,还设置为设置所述声音信息值,其中,设置所述声音信息值包括:麦克风采集环境声音值,并设置为声音信息值。
  15. 一种计算机可读存储介质,存储有计算机可执行指令,所述计算机可执行指令用于执行权利要求1-7任一项的方法。
PCT/CN2015/076791 2014-11-14 2015-04-16 终端关机方法和装置 WO2016074438A1 (zh)

Applications Claiming Priority (2)

Application Number Priority Date Filing Date Title
CN201410649541.7A CN105657137A (zh) 2014-11-14 2014-11-14 终端关机方法和装置
CN201410649541.7 2014-11-14

Publications (1)

Publication Number Publication Date
WO2016074438A1 true WO2016074438A1 (zh) 2016-05-19

Family

ID=55953678

Family Applications (1)

Application Number Title Priority Date Filing Date
PCT/CN2015/076791 WO2016074438A1 (zh) 2014-11-14 2015-04-16 终端关机方法和装置

Country Status (2)

Country Link
CN (1) CN105657137A (zh)
WO (1) WO2016074438A1 (zh)

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN106850945A (zh) * 2016-12-13 2017-06-13 广东小天才科技有限公司 一种基于铃声的移动终端控制方法及装置、移动终端
WO2021237650A1 (en) * 2020-05-29 2021-12-02 Nokia Technologies Oy Noise control

Families Citing this family (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN107479680B (zh) * 2017-08-24 2018-04-10 南阳师范学院 一种pda自动关机方法
CN107846504A (zh) * 2017-10-10 2018-03-27 努比亚技术有限公司 一种模式控制方法、设备及计算机可读存储介质
CN109729320B (zh) * 2019-01-24 2020-09-29 平湖市超凯科技有限公司 实时对象识别监测平台
CN111464868A (zh) * 2020-03-31 2020-07-28 深圳Tcl数字技术有限公司 显示终端关机控制方法、装置、设备及可读存储介质

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101931699A (zh) * 2010-08-17 2010-12-29 惠州Tcl移动通信有限公司 一种移动终端及其关机方法和装置
CN102340640A (zh) * 2010-07-16 2012-02-01 深圳Tcl新技术有限公司 电子产品睡眠关机的实现方法及电子产品
CN102546942A (zh) * 2011-12-31 2012-07-04 广东步步高电子工业有限公司 一种手机自动切换情景模式的方法
CN102572088A (zh) * 2010-12-31 2012-07-11 广州三星通信技术研究有限公司 调整便携式终端的振铃强度的装置及方法

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102340640A (zh) * 2010-07-16 2012-02-01 深圳Tcl新技术有限公司 电子产品睡眠关机的实现方法及电子产品
CN101931699A (zh) * 2010-08-17 2010-12-29 惠州Tcl移动通信有限公司 一种移动终端及其关机方法和装置
CN102572088A (zh) * 2010-12-31 2012-07-11 广州三星通信技术研究有限公司 调整便携式终端的振铃强度的装置及方法
CN102546942A (zh) * 2011-12-31 2012-07-04 广东步步高电子工业有限公司 一种手机自动切换情景模式的方法

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN106850945A (zh) * 2016-12-13 2017-06-13 广东小天才科技有限公司 一种基于铃声的移动终端控制方法及装置、移动终端
WO2021237650A1 (en) * 2020-05-29 2021-12-02 Nokia Technologies Oy Noise control

Also Published As

Publication number Publication date
CN105657137A (zh) 2016-06-08

Similar Documents

Publication Publication Date Title
WO2016074438A1 (zh) 终端关机方法和装置
US11217240B2 (en) Context-aware control for smart devices
CN109780699B (zh) 转速控制方法及装置
US20100226487A1 (en) Method & apparatus for controlling the state of a communication system
CN101442636B (zh) 一种电视音量智能调节方法及系统
CN105280159B (zh) 一种显示设备的背光调节方法及其显示设备
CN110890078B (zh) 一种基于瞳孔大小自动调节显示屏亮度的方法
CN105847535B (zh) 一种显示屏亮度调节方法及移动终端
AU2013202359A1 (en) Method and system for automatically adjusting television volume, television set and television remote controller
US10037745B2 (en) Applying an application-specific ambient light setting configuration
CN108510963A (zh) 屏幕亮度的调整方法、装置、存储介质及智能终端
CN111025922B (zh) 一种目标设备控制方法及电子设备
CN104483806A (zh) 方便用户自拍的方法与装置
CN105872205B (zh) 一种信息处理方法及装置
WO2016169186A1 (zh) 电子锁的控制方法和装置
CN109151642B (zh) 一种智能耳机、智能耳机处理方法、电子设备及存储介质
US20150156626A1 (en) Mobile device that activates upon removal from storage
CN111371955A (zh) 一种响应方法、移动终端及计算机存储介质
CN111880309A (zh) 一种基于瞳孔大小自动调节ar虚像亮度的方法
CN103139383A (zh) 一种手机智能调音调屏系统及方法
CN105575364A (zh) 一种智能手表及其亮度自适应调节系统和方法
US20210211566A1 (en) Image processing method and apparatus, and electronic device and storage medium
CN114979921A (zh) 一种耳机声音外泄的检测方法、装置及蓝牙耳机
CN112000305A (zh) 屏幕色温调节方法及装置
WO2015196531A1 (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: 15858441

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: 15858441

Country of ref document: EP

Kind code of ref document: A1