CN103458111A - Mobile phone intelligent sleeping method - Google Patents
Mobile phone intelligent sleeping method Download PDFInfo
- Publication number
- CN103458111A CN103458111A CN2013103597791A CN201310359779A CN103458111A CN 103458111 A CN103458111 A CN 103458111A CN 2013103597791 A CN2013103597791 A CN 2013103597791A CN 201310359779 A CN201310359779 A CN 201310359779A CN 103458111 A CN103458111 A CN 103458111A
- Authority
- CN
- China
- Prior art keywords
- screen
- time
- mobile phone
- human eye
- timer
- 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.)
- Granted
Links
Images
Landscapes
- Telephone Function (AREA)
Abstract
本发明公开了一种手机智能睡眠的方法,包括下述步骤:S1、熄屏时间到,此时并不马上熄灭屏幕,而是开启摄像头,启动定时器T1;S2、开启前置摄像头,拍照,并进行图像分析,判断是否存在人眼;S3、如果存在人眼,那么关闭定时器T1,重置熄屏时间,此时屏幕保持点亮状态;S4、如果不存在人眼,那么启动陀螺仪,在定时器T1时间内,一直读取陀螺仪三轴的数据;S5、如果接近于0,那么说明手机处于静止且无操作的状态,那么关闭定时器T1,同时让手机进入熄屏状态,如果三个轴的某一个轴大于设定的最大值,那么说明此时手机存在抖动,就重置熄屏时间。本发明可以对当前的智能睡眠进行比较好的改善,减少不识别失效的问题。
The invention discloses a method for intelligent sleep of a mobile phone, comprising the following steps: S1, when the time for turning off the screen is up, the screen is not turned off immediately at this time, but the camera is turned on, and the timer T1 is started; S2, the front camera is turned on, and a photo is taken , and perform image analysis to determine whether there is a human eye; S3, if there is a human eye, then turn off the timer T1, reset the off-screen time, and the screen remains on at this time; S4, if there is no human eye, then start the gyroscope instrument, within the timer T1 time, keep reading the data of the three axes of the gyroscope; S5, if it is close to 0, it means that the mobile phone is in a static and non-operating state, then turn off the timer T1, and let the mobile phone enter the screen-off state , if one of the three axes is greater than the set maximum value, it means that the phone is shaking at this time, and the screen-off time will be reset. The present invention can relatively improve the current intelligent sleep, and reduce the problem of non-recognition failure.
Description
技术领域technical field
本发明涉及移动手机的技术领域,特别涉及一种手机智能睡眠的方法。The invention relates to the technical field of mobile phones, in particular to a method for intelligent sleep of a mobile phone.
背景技术Background technique
在智能手机越来越多地集成智能体感的功能,其中智能睡眠是比较典型的一项。智能睡眠的作用就是在亮屏的时候,即使用户没有操作手机,到了自动熄屏的时间,只要眼睛盯着屏幕,那么屏幕就不会熄灭。其原理就是通过摄像头的人眼识别,在手机要熄屏的时候,自动开启前置摄像头,检测是否存在人眼,来进行熄屏控制。Smartphones are increasingly integrating smart somatosensory functions, among which smart sleep is a typical one. The function of smart sleep is that when the screen is on, even if the user does not operate the mobile phone, the screen will not turn off as long as the eyes are on the screen when it is time to automatically turn off the screen. The principle is to use the human eye recognition of the camera. When the screen of the mobile phone is about to be turned off, the front camera is automatically turned on to detect whether there are human eyes to control the screen off.
但是这种方式的智能睡眠由于摄像头的视角以及距离都有限制,比较容易出现识别不到的情况,比如说当手机距离眼部较远,或者眼睛没有正对着摄像头。However, due to the limited viewing angle and distance of the camera, this type of smart sleep is more likely to be unrecognizable, for example, when the mobile phone is far away from the eyes, or the eyes are not facing the camera.
发明内容Contents of the invention
本发明的目的在于克服现有技术的缺点与不足,提供一种手机智能睡眠的方法。The purpose of the present invention is to overcome the shortcomings and deficiencies of the prior art, and provide a method for intelligent sleep of mobile phones.
本发明的目的通过下述技术方案实现:The object of the present invention is achieved through the following technical solutions:
本发明手机智能睡眠的方法,包括下述步骤:The method for smart sleep of the mobile phone of the present invention comprises the following steps:
S1、熄屏时间到,此时并不马上熄灭屏幕,而是开启摄像头,启动定时器T1;S1. When the time to turn off the screen is up, the screen is not turned off immediately, but the camera is turned on and the timer T1 is started;
S2、开启前置摄像头,拍照,并进行图像分析,进行人眼识别,判断是否存在人眼;S2. Turn on the front camera, take pictures, and perform image analysis to identify human eyes to determine whether there are human eyes;
S3、如果存在人眼,那么关闭定时器T1,重置熄屏时间,此时屏幕保持点亮状态;S3. If there are human eyes, then turn off the timer T1 and reset the screen-off time, and the screen remains on at this time;
S4、如果不存在人眼,那么启动陀螺仪,在定时器T1时间内,一直读取陀螺仪三轴的数据,并判断x,y,z三个轴的值是否接近于0;S4. If there is no human eye, then start the gyroscope, read the data of the three axes of the gyroscope all the time within the timer T1 time, and judge whether the values of the three axes of x, y, and z are close to 0;
S5、如果接近于0,那么说明手机处于静止且无操作的状态,那么关闭定时器T1,同时让手机进入熄屏状态,如果三个轴的某一个轴大于设定的最大值,那么说明此时手机存在抖动,就重置熄屏时间。S5. If it is close to 0, it means that the mobile phone is in a static and non-operating state, then turn off the timer T1, and let the mobile phone enter the screen-off state at the same time. If one of the three axes is greater than the set maximum value, then it means this If the phone shakes, reset the screen-off time.
优选的,所述定时器T1设置的时间为8-15秒。Preferably, the time set by the timer T1 is 8-15 seconds.
优选的,步骤S2中,进行图像分析的方法是:Preferably, in step S2, the method for image analysis is:
S21、对图像进行二值化处理;S21. Binarize the image;
S22、手机内置各种人眼图片的二值化特征库;S22. The mobile phone has a built-in binary feature library of various human eye images;
S23、遍历整张图片,查看是否存在人眼的多个特征组合,如果存在,那么认为该张图片中包含人眼。S23. Traverse the entire picture to check whether there are multiple feature combinations of human eyes, and if so, consider that the picture contains human eyes.
优选的,步骤S5中,所述设定的最大值为20度每秒。Preferably, in step S5, the set maximum value is 20 degrees per second.
优选的,步骤S5之后,重新执行步骤S1-S5;当再次执行到步骤S5,如果此时的状态是摄像头没有检测到人眼,同时手机仍然处于抖动状态,此时则进行熄屏处理。Preferably, after step S5, re-execute steps S1-S5; when re-execute to step S5, if the state at this time is that the camera does not detect human eyes, and the mobile phone is still in a shaking state, then the screen is turned off.
优选的,步骤S5中,重置熄屏时间为8-15秒。Preferably, in step S5, the screen-off time is reset to 8-15 seconds.
本发明相对于现有技术具有如下的优点及效果:Compared with the prior art, the present invention has the following advantages and effects:
1、运用本发明之后,我们可以对当前的智能睡眠进行比较好的改善,减少不识别失效的问题。1. After using the present invention, we can improve the current smart sleep and reduce the problem of non-recognition failure.
2、本发明通过对人眼的检测,可以更加准确的检测出手机是否真的需要处于点亮状态。2. The present invention can more accurately detect whether the mobile phone really needs to be in the lighted state through the detection of human eyes.
附图说明Description of drawings
图1是本发明的流程图。Fig. 1 is a flow chart of the present invention.
具体实施方式Detailed ways
下面结合实施例及附图对本发明作进一步详细的描述,但本发明的实施方式不限于此。The present invention will be further described in detail below in conjunction with the embodiments and the accompanying drawings, but the embodiments of the present invention are not limited thereto.
实施例Example
如图1所示,本发明一种手机智能睡眠的方法,包括下述步骤:As shown in Figure 1, a kind of method for smart sleep of mobile phone of the present invention comprises the following steps:
步骤1:熄屏时间到,此时并不马上熄灭屏幕,而是开启摄像头,启动定时器T1(比如说10s定时)。Step 1: When the time to turn off the screen is up, the screen is not turned off immediately, but the camera is turned on, and the timer T1 is started (for example, 10s).
步骤2:开启前置摄像头,拍照,并进行图像分析,进行人眼识别,判断是否存在人眼。Step 2: Turn on the front camera, take pictures, and analyze the image to identify human eyes to determine whether there are human eyes.
进行图像分析和人眼识别的具体步骤是:The specific steps for image analysis and human eye recognition are:
1、对图像进行二值化处理,即黑白处理,因为人眼识别的时候,只是需要黑白图片就可以了;1. Perform binary processing on the image, that is, black and white processing, because when the human eye recognizes, only black and white pictures are needed;
2、手机内置各种人眼图片的二值化特征库;2. The mobile phone has a built-in binary feature library of various human eye pictures;
3、遍历整张图片,查看是否存在人眼的多个特征组合,如果存在,那么认为该张图片中包含人眼。3. Traverse the entire picture to check whether there are multiple feature combinations of human eyes. If there are, then it is considered that the picture contains human eyes.
步骤3:如果存在人眼,那么关闭定时器T1,重置熄屏时间,此时屏幕自然不会熄灭。Step 3: If there are human eyes, then turn off the timer T1 and reset the screen off time, and the screen will not go off naturally at this time.
步骤4:如果不存在人眼,那么启动陀螺仪(陀螺仪又称为角速度传感器,可以检测x,y,z三轴的角速度,在手机静止的情况下,三个轴的值接近于0,如果手机被拿在手上,那么三个轴的值是一定不会接近于0的),在定时器T1超时时间内,一直读取陀螺仪三轴的数据,并判断x,y,z三个轴的值是否接近于0。Step 4: If there is no human eye, then start the gyroscope (the gyroscope is also called an angular velocity sensor, which can detect the angular velocity of the x, y, and z axes. When the mobile phone is stationary, the values of the three axes are close to 0. If the mobile phone is held in the hand, then the values of the three axes must not be close to 0), during the timeout period of the timer T1, keep reading the data of the three axes of the gyroscope, and judge the three axes of x, y, z Whether the value of each axis is close to 0.
步骤5:如果接近于0,那么说明手机处于静止且无操作的状态,那么关闭定时器T1,同时让手机进入熄屏状态,如果三个轴的某一个轴大于设定值,那么说明此时手机存在抖动,很有可能就是用户将手机拿在手里阅读,那么就重置熄屏时间,重新从步骤1执行一遍。Step 5: If it is close to 0, it means that the mobile phone is in a static and non-operating state, then turn off the timer T1, and let the mobile phone enter the screen-off state at the same time, if one of the three axes is greater than the set value, then it means that at this time If the mobile phone shakes, it is likely that the user is holding the mobile phone in his hand to read, then reset the screen-off time and perform step 1 again.
步骤6:当再次执行到步骤5,那么此时的状态是摄像头没有检测到人眼,同时手机仍然处于抖动状态,此时则进行熄屏处理,用以避免手机长时间处于抖动的环境,但是用户并没有查阅手机的这种情况。Step 6: When step 5 is executed again, the state at this time is that the camera does not detect human eyes, and the mobile phone is still in a shaking state. At this time, the screen is turned off to avoid the mobile phone being in a shaking environment for a long time, but The user does not consult the mobile phone for this situation.
本领域普通技术人员可以理解实现上述各实施例方法中的全部或部分步骤是可以通过程序来指令相关的硬件来完成,相应的程序可以存储于一计算机可读取存储介质中,所述的存储介质,如ROM/RAM、磁盘或光盘等。Those of ordinary skill in the art can understand that all or part of the steps in the methods of the above-mentioned embodiments can be completed by instructing related hardware through a program, and the corresponding program can be stored in a computer-readable storage medium. Media, such as ROM/RAM, magnetic disk or optical disk, etc.
上述实施例为本发明较佳的实施方式,但本发明的实施方式并不受上述实施例的限制,其他的任何未背离本发明的精神实质与原理下所作的改变、修饰、替代、组合、简化,均应为等效的置换方式,都包含在本发明的保护范围之内。The above-mentioned embodiment is a preferred embodiment of the present invention, but the embodiment of the present invention is not limited by the above-mentioned embodiment, and any other changes, modifications, substitutions, combinations, Simplifications should be equivalent replacement methods, and all are included in the protection scope of the present invention.
Claims (6)
Priority Applications (1)
| Application Number | Priority Date | Filing Date | Title |
|---|---|---|---|
| CN201310359779.1A CN103458111B (en) | 2013-08-17 | 2013-08-17 | A kind of method of cell phone intelligent sleep |
Applications Claiming Priority (1)
| Application Number | Priority Date | Filing Date | Title |
|---|---|---|---|
| CN201310359779.1A CN103458111B (en) | 2013-08-17 | 2013-08-17 | A kind of method of cell phone intelligent sleep |
Publications (2)
| Publication Number | Publication Date |
|---|---|
| CN103458111A true CN103458111A (en) | 2013-12-18 |
| CN103458111B CN103458111B (en) | 2015-09-02 |
Family
ID=49740051
Family Applications (1)
| Application Number | Title | Priority Date | Filing Date |
|---|---|---|---|
| CN201310359779.1A Expired - Fee Related CN103458111B (en) | 2013-08-17 | 2013-08-17 | A kind of method of cell phone intelligent sleep |
Country Status (1)
| Country | Link |
|---|---|
| CN (1) | CN103458111B (en) |
Cited By (10)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| CN103902044A (en) * | 2014-04-09 | 2014-07-02 | 深圳市中兴移动通信有限公司 | Intelligent screen turnoff method and mobile terminal |
| CN103986873A (en) * | 2014-05-28 | 2014-08-13 | 广州视源电子科技股份有限公司 | Display equipment shooting method and display equipment |
| CN104093071A (en) * | 2014-06-18 | 2014-10-08 | 惠州Tcl移动通信有限公司 | Playing method and playing device |
| CN104252230A (en) * | 2014-09-04 | 2014-12-31 | 苏州三星电子电脑有限公司 | Laptop screen on-off control method |
| CN104506728A (en) * | 2014-12-25 | 2015-04-08 | 昆山工研院新型平板显示技术中心有限公司 | Mobile phone identity authentication device and mobile phone identity authentication method |
| CN106033253A (en) * | 2015-03-12 | 2016-10-19 | 中国移动通信集团公司 | A terminal control method and device |
| CN106547358A (en) * | 2016-11-25 | 2017-03-29 | 维沃移动通信有限公司 | A kind of display packing and terminal of terminal time information |
| CN107219914A (en) * | 2017-05-31 | 2017-09-29 | 广东小天才科技有限公司 | Method and device for saving electric quantity |
| CN107241648A (en) * | 2017-06-26 | 2017-10-10 | 中广热点云科技有限公司 | The mobile terminal of video is played under a kind of screen lock state under video broadcasting method and screen lock state |
| US11218586B2 (en) | 2016-09-09 | 2022-01-04 | Honor Device Co., Ltd. | Method for controlling screen of mobile terminal, and apparatus |
Citations (10)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| CN101465100A (en) * | 2007-12-19 | 2009-06-24 | 诚实科技香港有限公司 | Method and device for controlling screen backlight unit switch of portable electronic device |
| CN101697563A (en) * | 2009-10-26 | 2010-04-21 | 宇龙计算机通信科技(深圳)有限公司 | Power saving method for mobile terminal and mobile terminal |
| CN102594999A (en) * | 2012-01-30 | 2012-07-18 | 郑凯 | Method and system for performing adaptive mobile phone energy conservation through face identification |
| US20120206414A1 (en) * | 2009-10-16 | 2012-08-16 | Rohm Co., Ltd. | Mobile device |
| CN102984372A (en) * | 2012-11-21 | 2013-03-20 | 广东欧珀移动通信有限公司 | A method, device and mobile terminal for turning off screen and turning on screen |
| CN102999162A (en) * | 2012-11-20 | 2013-03-27 | 广东欧珀移动通信有限公司 | Mobile terminal as well as automatic bright screen state keeping method and system thereof |
| CN103024146A (en) * | 2012-11-20 | 2013-04-03 | 广东欧珀移动通信有限公司 | Method for controlling display screen and mobile intelligent terminal |
| CN103067578A (en) * | 2012-12-24 | 2013-04-24 | 惠州Tcl移动通信有限公司 | Intelligent lock screen function achieving method based on mobile terminal and mobile terminal |
| CN103105922A (en) * | 2013-02-19 | 2013-05-15 | 广东欧珀移动通信有限公司 | A mobile terminal backlight control method and device |
| CN103150194A (en) * | 2013-04-10 | 2013-06-12 | 天津三星光电子有限公司 | Sleep control method of mobile terminal and mobile terminal thereof |
-
2013
- 2013-08-17 CN CN201310359779.1A patent/CN103458111B/en not_active Expired - Fee Related
Patent Citations (10)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| CN101465100A (en) * | 2007-12-19 | 2009-06-24 | 诚实科技香港有限公司 | Method and device for controlling screen backlight unit switch of portable electronic device |
| US20120206414A1 (en) * | 2009-10-16 | 2012-08-16 | Rohm Co., Ltd. | Mobile device |
| CN101697563A (en) * | 2009-10-26 | 2010-04-21 | 宇龙计算机通信科技(深圳)有限公司 | Power saving method for mobile terminal and mobile terminal |
| CN102594999A (en) * | 2012-01-30 | 2012-07-18 | 郑凯 | Method and system for performing adaptive mobile phone energy conservation through face identification |
| CN102999162A (en) * | 2012-11-20 | 2013-03-27 | 广东欧珀移动通信有限公司 | Mobile terminal as well as automatic bright screen state keeping method and system thereof |
| CN103024146A (en) * | 2012-11-20 | 2013-04-03 | 广东欧珀移动通信有限公司 | Method for controlling display screen and mobile intelligent terminal |
| CN102984372A (en) * | 2012-11-21 | 2013-03-20 | 广东欧珀移动通信有限公司 | A method, device and mobile terminal for turning off screen and turning on screen |
| CN103067578A (en) * | 2012-12-24 | 2013-04-24 | 惠州Tcl移动通信有限公司 | Intelligent lock screen function achieving method based on mobile terminal and mobile terminal |
| CN103105922A (en) * | 2013-02-19 | 2013-05-15 | 广东欧珀移动通信有限公司 | A mobile terminal backlight control method and device |
| CN103150194A (en) * | 2013-04-10 | 2013-06-12 | 天津三星光电子有限公司 | Sleep control method of mobile terminal and mobile terminal thereof |
Cited By (15)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| CN103902044A (en) * | 2014-04-09 | 2014-07-02 | 深圳市中兴移动通信有限公司 | Intelligent screen turnoff method and mobile terminal |
| CN103902044B (en) * | 2014-04-09 | 2018-06-19 | 努比亚技术有限公司 | Intelligence puts out screen method and mobile terminal |
| CN103986873B (en) * | 2014-05-28 | 2017-12-01 | 广州视源电子科技股份有限公司 | Display equipment shooting method and display equipment |
| CN103986873A (en) * | 2014-05-28 | 2014-08-13 | 广州视源电子科技股份有限公司 | Display equipment shooting method and display equipment |
| CN104093071A (en) * | 2014-06-18 | 2014-10-08 | 惠州Tcl移动通信有限公司 | Playing method and playing device |
| CN104252230A (en) * | 2014-09-04 | 2014-12-31 | 苏州三星电子电脑有限公司 | Laptop screen on-off control method |
| CN104506728A (en) * | 2014-12-25 | 2015-04-08 | 昆山工研院新型平板显示技术中心有限公司 | Mobile phone identity authentication device and mobile phone identity authentication method |
| CN106033253A (en) * | 2015-03-12 | 2016-10-19 | 中国移动通信集团公司 | A terminal control method and device |
| US11218586B2 (en) | 2016-09-09 | 2022-01-04 | Honor Device Co., Ltd. | Method for controlling screen of mobile terminal, and apparatus |
| US11736606B2 (en) | 2016-09-09 | 2023-08-22 | Honor Device Co., Ltd. | Method for controlling screen of mobile terminal, and apparatus |
| CN106547358A (en) * | 2016-11-25 | 2017-03-29 | 维沃移动通信有限公司 | A kind of display packing and terminal of terminal time information |
| CN106547358B (en) * | 2016-11-25 | 2019-06-04 | 维沃移动通信有限公司 | Display method and terminal for terminal time information |
| CN107219914A (en) * | 2017-05-31 | 2017-09-29 | 广东小天才科技有限公司 | Method and device for saving electric quantity |
| CN107241648A (en) * | 2017-06-26 | 2017-10-10 | 中广热点云科技有限公司 | The mobile terminal of video is played under a kind of screen lock state under video broadcasting method and screen lock state |
| CN107241648B (en) * | 2017-06-26 | 2019-05-24 | 中广热点云科技有限公司 | The mobile terminal of video is played under a kind of screen lock state under video broadcasting method and screen lock state |
Also Published As
| Publication number | Publication date |
|---|---|
| CN103458111B (en) | 2015-09-02 |
Similar Documents
| Publication | Publication Date | Title |
|---|---|---|
| CN103458111B (en) | A kind of method of cell phone intelligent sleep | |
| US20240037836A1 (en) | Image rendering method and apparatus, and electronic device | |
| KR102039427B1 (en) | Smart glass | |
| KR102317820B1 (en) | Method for processing image and electronic device supporting the same | |
| CN108399349B (en) | Image recognition method and device | |
| WO2021078001A1 (en) | Image enhancement method and apparatus | |
| KR102716991B1 (en) | Photographing method using external electronic device and electronic device supporting the same | |
| CN103179278B (en) | Method and device for controlling screen to rotate | |
| US9838616B2 (en) | Image processing method and electronic apparatus | |
| CN111242090A (en) | Human face recognition method, device, equipment and medium based on artificial intelligence | |
| CN103412643B (en) | Terminal and its method for remote control | |
| WO2018120673A1 (en) | Intelligent capturing method and device | |
| US20210409588A1 (en) | Method for Shooting Long-Exposure Image and Electronic Device | |
| CN104104870B (en) | Filming control method, imaging control device and capture apparatus | |
| EP3104304B1 (en) | Electronic apparatus and method of extracting still images | |
| US20170154205A1 (en) | Method and apparatus for closing a terminal | |
| JP2018523089A (en) | Adaptable depth detection system | |
| CN105933689B (en) | Image processing method and electronic device supporting the same | |
| KR102424296B1 (en) | Method, storage medium and electronic device for providing a plurality of images | |
| RU2656097C1 (en) | Method and device for collecting images | |
| CN106057171A (en) | Control method and device | |
| CN109002248A (en) | VR scene screenshot method, equipment and storage medium | |
| CN111103922A (en) | Camera, electronic equipment and identity verification method | |
| CN110275612A (en) | Brightness adjusting method and device, electronic equipment and storage medium | |
| US20160034759A1 (en) | Apparatus and method for recognizing iris |
Legal Events
| Date | Code | Title | Description |
|---|---|---|---|
| C06 | Publication | ||
| PB01 | Publication | ||
| C10 | Entry into substantive examination | ||
| SE01 | Entry into force of request for substantive examination | ||
| C14 | Grant of patent or utility model | ||
| GR01 | Patent grant | ||
| CP01 | Change in the name or title of a patent holder |
Address after: Changan town in Guangdong province Dongguan 523860 usha Beach Road No. 18 Patentee after: GUANGDONG OPPO MOBILE TELECOMMUNICATIONS Corp.,Ltd. Address before: Changan town in Guangdong province Dongguan 523860 usha Beach Road No. 18 Patentee before: GUANGDONG OPPO MOBILE TELECOMMUNICATIONS Corp.,Ltd. |
|
| CP01 | Change in the name or title of a patent holder | ||
| CF01 | Termination of patent right due to non-payment of annual fee |
Granted publication date: 20150902 |
|
| CF01 | Termination of patent right due to non-payment of annual fee |
