WO2019071380A1 - Sleep control method, terminal, and computer readable medium - Google Patents

Sleep control method, terminal, and computer readable medium Download PDF

Info

Publication number
WO2019071380A1
WO2019071380A1 PCT/CN2017/105361 CN2017105361W WO2019071380A1 WO 2019071380 A1 WO2019071380 A1 WO 2019071380A1 CN 2017105361 W CN2017105361 W CN 2017105361W WO 2019071380 A1 WO2019071380 A1 WO 2019071380A1
Authority
WO
WIPO (PCT)
Prior art keywords
terminal
scene image
face
timer
time value
Prior art date
Application number
PCT/CN2017/105361
Other languages
French (fr)
Chinese (zh)
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 深圳传音通讯有限公司
Priority to PCT/CN2017/105361 priority Critical patent/WO2019071380A1/en
Publication of WO2019071380A1 publication Critical patent/WO2019071380A1/en

Links

Images

Classifications

    • 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
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06VIMAGE OR VIDEO RECOGNITION OR UNDERSTANDING
    • G06V10/00Arrangements for image or video recognition or understanding
    • G06V10/10Image acquisition

Definitions

  • the present invention relates to the field of electronic technologies, and in particular, to a method, a terminal, and a computer readable medium for sleep control.
  • terminals With the development of technology, the functions of terminals are becoming more and more abundant. For example, users can read e-books, browse news or play games through terminals. In the process of the user reading the e-book, browsing the news, or playing the game through the terminal, the user may not operate the terminal for a long time. In this case, if the terminal does not detect the user's operation for a long time, the user will automatically enter the sleep state. The user needs to click a button with a bright screen function, so that the control terminal blinks again when the terminal detects the user's operation, resulting in insufficient convenience of the terminal and reducing the accuracy of the sleep control.
  • the embodiment of the invention provides a method, a terminal and a computer readable medium for sleep control, which can improve the convenience of the terminal and improve the accuracy of the sleep control.
  • an embodiment of the present invention provides a method for dormancy control, where the method includes:
  • the timer is called to start timing
  • the time value obtained by counting the timer is set to zero.
  • the method further includes:
  • the timer is called to restart the timing.
  • the method further includes:
  • the control terminal When the time value is equal to the preset sleep time value, the control terminal is in a sleep state.
  • the method further includes:
  • the scene image of the terminal is acquired by the camera component, and the scene image is subjected to face recognition.
  • the method before acquiring the scene image of the terminal by using the camera component, the method further includes:
  • the scene image of the terminal is acquired by the camera assembly.
  • the method further includes:
  • the receiving terminal When the operation command is not received, the receiving terminal is triggered to enter the automatic sleep mode.
  • the method further includes:
  • the control terminal When the face is recognized in the scene image, and the eye included in the face is in the first state, the control terminal is in a sleep state.
  • an embodiment of the present invention provides a terminal, where the terminal includes:
  • the calling unit is configured to call a timer to start timing when receiving an instruction that the terminal enters the automatic sleep mode.
  • the acquiring unit is configured to acquire a scene image of the terminal through the camera component, and perform face recognition on the scene image.
  • the processing unit is configured to set the time value obtained by the timer to zero when the face is recognized in the scene image.
  • the obtaining unit is further configured to:
  • the scene image of the terminal is acquired again through the camera assembly.
  • the processing unit is also used to:
  • the timer is called to restart the timing.
  • processing unit is further configured to:
  • the control terminal When the time value is equal to the preset sleep time value, the control terminal is in a sleep state.
  • the terminal further includes:
  • the triggering unit is configured to: when the preset time length elapses from the acquisition of the scene image, trigger a scene image of the terminal acquired by the camera component, and perform face recognition on the scene image.
  • the terminal further includes:
  • the detecting unit is configured to detect whether an operation instruction for the terminal is received.
  • the trigger unit is further configured to: when the operation instruction is not received, trigger a scene image acquired by the camera component to acquire the terminal.
  • the detecting unit is further configured to:
  • the trigger unit is also used to:
  • the receiving terminal When the operation command is not received, the receiving terminal is triggered to enter the automatic sleep mode.
  • processing unit is further configured to:
  • the control terminal When the face is recognized in the scene image, and the eye included in the face is in the first state, the control terminal is in a sleep state.
  • an embodiment of the present invention provides another terminal, including a processor, an input device, an output device, and a memory, where the processor, the input device, the output device, and the memory are connected to each other, wherein the memory is used for storage.
  • a computer program supporting a terminal for performing the above method the computer program comprising program instructions, the processor being configured to invoke the program instructions to perform the method of the first aspect above.
  • the present application provides a computer storage medium for storing computer software instructions for use in the terminal device, including a program designed to perform the above aspects.
  • the present application also provides a computer program product comprising instructions which, when run on a computer, cause the computer to perform the method described in the above aspects.
  • the present application provides a chip system including a processor for a terminal device to implement the functions involved in the above aspects, such as, for example, generating or processing data and/or information involved in the above method.
  • the chip system further comprises a memory for storing necessary program instructions and data of the terminal device.
  • the chip system can be composed of chips, and can also include chips and other discrete devices.
  • the embodiment of the present invention calls the timer to start timing; acquires the scene image of the terminal by the camera component, and performs face recognition on the scene image; When the face is recognized, the time value obtained by counting the timer is set to zero.
  • the terminal does not detect the user's operation for a long time, it automatically sleeps, and the user needs to operate the terminal at intervals to avoid the terminal entering the sleep state.
  • the embodiment of the present invention determines whether the user is using the terminal by using face recognition. When detecting that the user is using the terminal, the time value of the timer is cleared to zero, which can prevent the terminal from entering the sleep state, and does not require the user to frequently click to have a bright screen.
  • the function of the button improves the convenience of the terminal and improves the accuracy of the sleep control.
  • FIG. 1 is a schematic flowchart of a method for performing sleep control according to an embodiment of the present invention
  • FIG. 2 is a schematic flowchart of a method for performing sleep control according to another embodiment of the present invention.
  • FIG. 3 is a schematic block diagram of a terminal according to an embodiment of the present invention.
  • FIG. 4 is a schematic diagram of an apparatus according to an embodiment of the present invention.
  • FIG. 5 is a scene diagram provided by an embodiment of the present invention.
  • Terminals described in embodiments of the invention include, but are not limited to, other portable devices such as mobile phones, laptop computers or tablet computers having touch sensitive surfaces (eg, touch screen displays and/or touch pads). It should also be understood that in some embodiments, the device is not a portable communication device, but a desktop computing with a touch sensitive surface (eg, a touch screen display and/or a touch pad). It should be noted that the terminal of the embodiment of the present invention may configure the camera component.
  • the terminal supports a variety of applications, such as one or more of the following: drawing applications, presentation applications, word processing applications, website creation applications, disk burning applications, spreadsheet applications, gaming applications, phone applications Programs, video conferencing applications, email applications, instant messaging applications, workout support applications, photo management applications, digital camera applications, digital camera applications, web browsing applications, digital music player applications, and / or digital video player app.
  • applications such as one or more of the following: drawing applications, presentation applications, word processing applications, website creation applications, disk burning applications, spreadsheet applications, gaming applications, phone applications Programs, video conferencing applications, email applications, instant messaging applications, workout support applications, photo management applications, digital camera applications, digital camera applications, web browsing applications, digital music player applications, and / or digital video player app.
  • Various applications that can be executed on the terminal can use at least one common physical user interface device such as a touch sensitive surface.
  • One or more functions of the touch sensitive surface and corresponding information displayed on the terminal can be adjusted and/or changed within the application and/or within the respective application.
  • the common physical architecture of the terminal eg, a touch-sensitive surface
  • FIG. 1 is a schematic flowchart of a method for performing sleep control according to an embodiment of the present invention.
  • the method for performing sleep control as shown in FIG. 1 may include:
  • the automatic sleep mode means that when the terminal does not detect the user's operation, the timer is called to start timing.
  • the terminal performs face recognition through the camera component.
  • the terminal can set the time value obtained by the timer to zero.
  • the terminal will be off and will be in the sleep state. .
  • the user can preset the sleep time value.
  • the terminal detects the selection instruction, the terminal takes 15 seconds as the preset sleep time value.
  • the terminal receives the automatic sleep mode, it will call the timer to start timing.
  • the timer reaches 15 seconds, the terminal will be off and will be in the sleep state.
  • the sleep time in the embodiment of the present invention may be set by default, for example, when the terminal is shipped from the factory.
  • the scene image is first acquired by the camera component, and then the face image is recognized by the image processing technology.
  • the camera component may be a front camera component of the terminal, a rear camera component of the terminal, or an imaging device externally connected to the terminal.
  • the front camera component can be terminal
  • the front camera, the rear camera component may be a rear camera of the terminal, and the camera device externally connected to the terminal may be a camera externally connected to the terminal.
  • the scene image of the terminal may be a scene image in front of the terminal or a scene image behind the terminal.
  • the camera component is a front camera component of the terminal.
  • the terminal can acquire the scene image in front of the terminal through the front camera component, and then pass the image processing.
  • the technique is to perform face recognition on the scene image in front of it.
  • the camera component is a rear camera component of the terminal.
  • the terminal can acquire the scene image behind the terminal through the rear camera component, and then through image processing. Techniques are used to perform face recognition on this rear scene image.
  • the terminal can set the time value obtained by the timer to zero. Because the terminal will only turn off the screen and be in a sleep state when the time value obtained by the timer is equal to the preset sleep time value. When the time value obtained by the timer is set to zero, the terminal will remain bright and will not enter the sleep state.
  • the terminal can ensure that the screen of the terminal is always bright even if the user does not receive the operation of the user for a long time, thereby improving the convenience of the terminal and improving the convenience.
  • the accuracy of the sleep control is a simple operation that the user reads the e-book, browses the news, or plays the game through the terminal.
  • the control terminal when the face is recognized in the scene image, and the eye included in the face is in the first state, the control terminal is in a sleep state.
  • the first state may be a closed eye state. Since the terminal acquires the scene image by means of polling, when the face is recognized in the scene image acquired twice, and the eyes included in the face are in the closed eye state, the terminal can determine that the user has fallen asleep. Or the eyes are tired, the terminal is no longer used. At this time, the terminal can be turned off and the control terminal is in a sleep state. This step saves power.
  • control terminal displays the content of the previous interface or the next interface.
  • the second state may be that the eye line of sight and the screen of the terminal exhibit a certain angle ⁇ .
  • the control terminal displays the content of the previous interface. If the angle is an obtuse angle, indicating that the user's line of sight is downward, the control terminal displays the content of the next interface. Through this step, the content that the user wants to browse can be automatically presented, which improves the convenience of the terminal.
  • step S105 in the embodiment of the present invention has no specific order, and may be performed after step S104, or may be performed after the human face is recognized in the scene image in step S103.
  • the embodiment of the present invention adopts a polling manner to detect whether the user is using the terminal, that is, when the terminal acquires the scene image for the first time, each time after the preset duration, the terminal is triggered to acquire the scene image through the camera component. And then perform face recognition on the scene image.
  • step S104 it is determined in step S104 that the preset time length has elapsed since the acquisition of the scene image
  • S102-S103 is performed. Because the user temporarily leaves the terminal screen for a few seconds, if only the scene image is acquired once, the face will not be recognized in the scene image acquired this time, and the terminal will misjudge that the user has no Use the terminal.
  • the scene image is acquired once every time, and the accuracy of judging whether the terminal is in the used state can be improved.
  • the terminal acquires the scene image and performs face recognition on the scene image every 5 seconds after the terminal first acquires the scene image. If the user temporarily leaves the terminal screen for 2 seconds and the terminal does not recognize the face in the scene image, the terminal will acquire the scene image again after 5 seconds, and can recognize the scene image acquired again. To the face, thereby avoiding the situation that the terminal misjudges that the user does not use the terminal, and improves the accuracy of judging whether the terminal is in the used state.
  • the timer when receiving an instruction that the terminal enters the automatic sleep mode, the timer is called to start timing.
  • the scene image of the terminal is acquired by the camera component, and the face image is subjected to face recognition.
  • the time value obtained by counting the timer is set to zero.
  • the face recognition is used to determine whether the user is using the terminal.
  • the time value obtained by the timer is set to zero, which can prevent the terminal from entering the sleep. The state improves the convenience of the terminal and improves the accuracy of the sleep control.
  • FIG. 2 is a schematic flowchart of another method for performing sleep control according to an embodiment of the present invention.
  • the method for performing sleep control as shown in FIG. 2 may include:
  • the operation instruction may be any instruction that controls the terminal to perform corresponding operations.
  • the operation instruction may include an operation instruction such as clicking a virtual button of the terminal screen, pressing a physical button of the terminal, clicking a mouse, and the like.
  • the operation instruction may be generated by the user clicking or touching any position of the screen, or may be generated by the user pressing the volume key, the shutdown key or the HOME key of the terminal. .
  • the operation instruction may be generated by the user pressing one of a volume key, a shutdown key, a dial key, or a numeric key.
  • the operation command may be generated by a user clicking a mouse or scrolling a scroll wheel in the middle of the mouse.
  • the terminal when the operation instruction for the terminal is not received, the terminal will determine that no user is using the terminal at this time, and then the terminal is triggered to receive an instruction to enter the automatic sleep mode.
  • step S203 in the embodiment of the present invention reference may be made to the step S101 in the foregoing embodiment of the present invention, which is not described in detail in the embodiment of the present invention.
  • the terminal detects whether the terminal receives an operation instruction for the terminal, and when detecting an operation instruction to the terminal, the terminal sets the time value obtained by the timer to zero. When no operation instruction to the terminal is detected, the terminal will perform step S205.
  • step S204 may include the operation mentioned in step S201. As an instruction, this step will not be repeated.
  • step S206 in the embodiment of the present invention reference may be made to the step S102 in the foregoing embodiment of the present invention, which is not described in detail in the embodiment of the present invention.
  • the terminal when the terminal does not recognize the face in the scene image by using the image processing technology, it is necessary to determine whether the time value obtained by the timer is equal to the preset sleep time value, and therefore the time required for the terminal to obtain the timer is required.
  • the value is used to compare the time value obtained by the timer count with the preset sleep time value.
  • the time value obtained by the timer is equal to the preset sleep time value, it indicates that the user does not use the terminal during this time, so the terminal is off, and the control terminal is in a sleep state, thereby saving power.
  • step S209 in the embodiment of the present invention reference may be made to the step S103 in the foregoing embodiment of the present invention, which is not described in detail in the embodiment of the present invention.
  • step S207 and step S209 are one step in which the terminal selects to execute according to the result of identifying the face, and there is no order. That is, when the face is not recognized, steps S207-S208 are performed after step S206, and when the face is recognized, steps S209-S211 are performed after step S206.
  • step S210 the scene image of the terminal is acquired again by the camera assembly.
  • step S209 when no face is recognized in the scene image acquired again, it indicates that the user may not use the terminal. Since in step S209, the duration obtained by the timer has been set to zero and the timer is in the paused state, the timer can be called to restart the timing, and when the timing value is equal to the preset sleep duration value, the terminal It is off the screen and is in a sleep state.
  • the receiving terminal when the terminal detects that an operation instruction to the terminal is not received, the receiving terminal enters an instruction of the automatic sleep mode, and invokes a timer to start timing. Then, it is detected whether an operation instruction for the terminal is received, and if not, the scene image of the terminal is acquired by the camera component, and the face image is subjected to face recognition.
  • the control terminal When the face is not recognized and the time value obtained by the comparison timer is equal to the preset sleep time value, the control terminal is in a sleep state.
  • the time value of the timer is set to zero, and the scene image is acquired again, and when the face is not recognized in the scene image acquired again, the control timer restarts timing.
  • FIG. 3 is a schematic block diagram of a terminal according to an embodiment of the present invention.
  • the terminal in the embodiment of the present invention shown in FIG. 3 may include:
  • the calling unit 301 is configured to call a timer to start timing when receiving an instruction that the terminal enters the automatic sleep mode.
  • the acquiring unit 302 is configured to acquire a scene image of the terminal by using the camera component, and perform face recognition on the scene image.
  • the processing unit 303 is configured to set a time value obtained by timing the timer to zero when the face is recognized in the scene image.
  • the obtaining unit 302 is further configured to:
  • the scene image of the terminal is acquired again through the camera assembly.
  • the processing unit 303 is further configured to:
  • the timer is called to restart the timing.
  • processing unit 303 is further configured to:
  • the control terminal When the time value is equal to the preset sleep time value, the control terminal is in a sleep state.
  • the terminal further includes:
  • the triggering unit 304 is configured to trigger a scene image of the terminal acquired by the camera component when the preset time length elapses from the acquisition of the scene image, and perform face recognition on the scene image.
  • the terminal further includes:
  • the detecting unit 305 is configured to detect whether an operation instruction for the terminal is received.
  • the trigger unit 304 is further configured to:
  • the scene image of the terminal is acquired by the camera assembly.
  • the detecting unit 305 is further configured to:
  • the trigger unit 304 is further configured to:
  • the receiving terminal When the operation command is not received, the receiving terminal is triggered to enter the automatic sleep mode.
  • processing unit 303 is further configured to:
  • the control terminal When the face is recognized in the scene image, and the eye included in the face is in the first state, the control terminal is in a sleep state.
  • the timer when receiving an instruction that the terminal enters the automatic sleep mode, the timer is called to start timing.
  • the scene image of the terminal is acquired by the camera component, and the face image is subjected to face recognition.
  • the time value obtained by counting the timer is set to zero.
  • the face recognition determines whether the user is using the terminal.
  • the time value obtained by the timer is set to zero, and the terminal can be avoided. Entering the sleep state improves the convenience of the terminal and improves the accuracy of the sleep control.
  • FIG. 4 is a schematic diagram 1 of a device according to an embodiment of the present invention.
  • the device may be a terminal device, or may be a chip or a circuit, such as a chip or a circuit that can be disposed on the terminal device.
  • the terminal device may correspond to the terminal device in the above method.
  • the device can include a processor 110 and a memory 120.
  • the memory 120 is for storing instructions for executing the instructions stored by the memory 120 to implement the steps and embodiments in the method corresponding to Figures 1 through 2 above.
  • the device may further include an input port 140 and an output port 150.
  • the bus system 130 may further be included, wherein the processor 110, the memory 120, the input port 140, and the output port 150 may be connected by a bus system 130.
  • the processor 110 is configured to execute the instructions stored in the memory 120 to control the input port 140 to receive signals, and control the output port 150 to send signals to complete the steps of the terminal device in the above method.
  • the input port 140 and the output port 150 may be the same or different physical entities. When they are the same physical entity, they can be collectively referred to as transceivers.
  • the memory 220 may be integrated in the processor 210 or may be provided separately from the processor 210.
  • the functions of the input port 140 and the output port 150 can be implemented by a dedicated chip through a transceiver circuit or a transceiver.
  • the processor 110 can be implemented by a dedicated processing chip, a processing circuit, a processor, or a general purpose chip.
  • the terminal device provided by the embodiment of the present application may be implemented by using a general-purpose computer.
  • the program code for the functions of the processor 110, the input port 140 and the output port 150 is stored in a memory, and the general purpose processor implements the functions of the processor 110, the input port 140 and the output port 150 by executing code in the memory.
  • the computer readable storage medium may be an internal storage unit of the terminal described in any of the foregoing embodiments, such as a hard disk or a memory of the terminal.
  • the computer readable storage medium may also be an external storage device of the terminal, such as a plug-in hard disk equipped on the terminal, a smart memory card (SMC), and a Secure Digital (SD) card. , Flash Card, etc.
  • the computer readable storage medium may also include both an internal storage unit of the terminal and an external storage device.
  • the computer readable storage medium is for storing the computer program and other programs and data required by the terminal.
  • the computer readable storage medium can also be used to temporarily store data that has been output or is about to be output.
  • the size of the serial numbers of the above processes does not mean the order of execution, and the order of execution of each process should be determined by its function and internal logic, and should not be taken to the embodiments of the present invention.
  • the implementation process constitutes any limitation.
  • the disclosed systems, devices, and methods may be implemented in other manners.
  • the device embodiments described above are merely illustrative.
  • the division of the unit is only a logical function division.
  • there may be another division manner for example, multiple units or components may be combined or Can be integrated into another system, or some features can be ignored or not executed.
  • the mutual coupling or direct coupling or communication connection shown or discussed may be an indirect coupling or communication connection through some interface, device or unit, and may be in an electrical, mechanical or other form.
  • the units described as separate components may or may not be physically separated, and the components displayed as units may or may not be physical units, that is, may be located in one place, or may be distributed to multiple network units. Some or all of the units may be selected according to actual needs to achieve the purpose of the solution of the embodiment.
  • each functional unit in each embodiment of the present invention may be integrated into one processing unit, or each unit may exist physically separately, or two or more units may be integrated into one unit.
  • the above embodiments it may be implemented in whole or in part by software, hardware, firmware, or any combination thereof.
  • software it may be implemented in whole or in part in the form of a computer program product.
  • the computer program product includes one or more computer instructions.
  • the computer program instructions When the computer program instructions are loaded and executed on a computer, the processes or functions described in accordance with embodiments of the present invention are generated in whole or in part.
  • the computer can be a general purpose computer, a special purpose computer, a computer network, or other programmable device.
  • the computer instructions can be stored in a computer readable storage medium or transferred from one computer readable storage medium to another computer readable storage medium, for example, the computer instructions can be from a website site, computer, server or data center Transfer to another website site, computer, server, or data center by wire (eg, coaxial cable, fiber optic, digital subscriber line (DSL), or wireless (eg, infrared, wireless, microwave, etc.).
  • the computer readable storage medium can be any available media that can be accessed by a computer or a data storage device such as a server, data center, or the like that includes one or more available media.
  • the usable medium may be a magnetic medium (eg, a floppy disk, a hard disk, a magnetic tape), an optical medium (eg, a DVD), or a semiconductor medium (such as a solid state disk (SSD)).

Landscapes

  • Engineering & Computer Science (AREA)
  • Theoretical Computer Science (AREA)
  • Physics & Mathematics (AREA)
  • General Physics & Mathematics (AREA)
  • Multimedia (AREA)
  • General Engineering & Computer Science (AREA)
  • Telephone Function (AREA)

Abstract

Disclosed in the embodiments of the present invention are a sleep control method, a terminal, and a computer readable medium, said method comprising: upon receipt of an instruction instructing a terminal to enter an automatic sleep mode, invoking a timer to start timing; then acquiring, by means of a camera assembly, a scene image of the terminal, and performing face recognition on the scene image, and when a face is recognized in the scene image, setting the time value measured by the timer as zero. The present invention can improve the convenience of the terminal and the accuracy of the sleep control.

Description

休眠控制的方法、终端及计算机可读介质Sleep control method, terminal and computer readable medium 技术领域Technical field
本发明涉及电子技术领域,尤其涉及休眠控制的方法、终端及计算机可读介质。The present invention relates to the field of electronic technologies, and in particular, to a method, a terminal, and a computer readable medium for sleep control.
背景技术Background technique
随着科技的发展,终端的功能越来越丰富,例如用户可以通过终端阅读电子书、浏览新闻或者玩游戏等。在用户通过终端阅读电子书、浏览新闻或者玩游戏的过程中,用户可能长时间不操作终端,在这种情况下,若终端长时间未检测到用户的操作时,将会自动进入休眠状态,用户需要点击具有亮屏功能的按钮,以便终端检测到用户的操作时控制终端再次亮屏,导致终端的便利性不足,降低了休眠控制的精确度。With the development of technology, the functions of terminals are becoming more and more abundant. For example, users can read e-books, browse news or play games through terminals. In the process of the user reading the e-book, browsing the news, or playing the game through the terminal, the user may not operate the terminal for a long time. In this case, if the terminal does not detect the user's operation for a long time, the user will automatically enter the sleep state. The user needs to click a button with a bright screen function, so that the control terminal blinks again when the terminal detects the user's operation, resulting in insufficient convenience of the terminal and reducing the accuracy of the sleep control.
发明内容Summary of the invention
本发明实施例提供一种休眠控制的方法、终端及计算机可读介质,可以提高终端的便利性,并提升休眠控制的精确度。The embodiment of the invention provides a method, a terminal and a computer readable medium for sleep control, which can improve the convenience of the terminal and improve the accuracy of the sleep control.
第一方面,本发明实施例提供了一种休眠控制的方法,该方法包括:In a first aspect, an embodiment of the present invention provides a method for dormancy control, where the method includes:
在接收到终端进入自动休眠模式的指令时,调用计时器开始计时;When receiving an instruction that the terminal enters the automatic sleep mode, the timer is called to start timing;
通过摄像组件获取所述终端的场景图像,并对所述场景图像进行人脸识别;Obtaining a scene image of the terminal by using a camera component, and performing face recognition on the scene image;
当在所述场景图像中识别到人脸时,将所述计时器计时得到的时间值设置为零。When a face is recognized in the scene image, the time value obtained by counting the timer is set to zero.
可选的,当在场景图像中识别到人脸时,使计时器计时得到的时间值设置为零之后,还包括:Optionally, after the face is recognized in the scene image, after the time value obtained by the timer is set to zero, the method further includes:
通过摄像组件再次获取终端的场景图像;Acquiring the scene image of the terminal again through the camera component;
当在再次获取到的场景图像中没有识别到人脸时,调用计时器重新开始计时。 When the face is not recognized in the scene image acquired again, the timer is called to restart the timing.
可选的,对场景图像进行人脸识别之后,还包括:Optionally, after performing face recognition on the scene image, the method further includes:
当在场景图像中没有识别到人脸时,获取计时器计时得到的时间值;When the face is not recognized in the scene image, the time value obtained by the timer is obtained;
当时间值等于预设休眠时间值时,控制终端处于休眠状态。When the time value is equal to the preset sleep time value, the control terminal is in a sleep state.
可选的,该方法还包括:Optionally, the method further includes:
当从获取场景图像开始经过预设时长时,触发通过摄像组件获取终端的场景图像,并对场景图像进行人脸识别。When a preset duration is elapsed from the acquisition of the scene image, the scene image of the terminal is acquired by the camera component, and the scene image is subjected to face recognition.
可选的,通过摄像组件获取终端的场景图像之前,还包括:Optionally, before acquiring the scene image of the terminal by using the camera component, the method further includes:
检测是否接收到对终端的操作指令;Detecting whether an operation instruction to the terminal is received;
当没有接收到操作指令时,触发通过摄像组件获取终端的场景图像。When the operation instruction is not received, the scene image of the terminal is acquired by the camera assembly.
可选的,该方法还包括:Optionally, the method further includes:
检测是否接收到对终端的操作指令;Detecting whether an operation instruction to the terminal is received;
当没有接收到操作指令时,触发接收终端进入自动休眠模式的指令。When the operation command is not received, the receiving terminal is triggered to enter the automatic sleep mode.
可选的,对场景图像进行人脸识别之后,还包括:Optionally, after performing face recognition on the scene image, the method further includes:
当在场景图像中识别到人脸,且人脸所包含的眼睛处于第一状态时,控制终端处于休眠状态。When the face is recognized in the scene image, and the eye included in the face is in the first state, the control terminal is in a sleep state.
第二方面,本发明实施例提供了一种终端,该终端包括:In a second aspect, an embodiment of the present invention provides a terminal, where the terminal includes:
调用单元,用于在接收到终端进入自动休眠模式的指令时,调用计时器开始计时。The calling unit is configured to call a timer to start timing when receiving an instruction that the terminal enters the automatic sleep mode.
获取单元,用于通过摄像组件获取终端的场景图像,并对场景图像进行人脸识别。The acquiring unit is configured to acquire a scene image of the terminal through the camera component, and perform face recognition on the scene image.
处理单元,用于当在场景图像中识别到人脸时,使计时器计时得到的时间值设置为零。The processing unit is configured to set the time value obtained by the timer to zero when the face is recognized in the scene image.
可选的,获取单元还用于:Optionally, the obtaining unit is further configured to:
通过摄像组件再次获取终端的场景图像。The scene image of the terminal is acquired again through the camera assembly.
处理单元还用于:The processing unit is also used to:
当在再次获取到的场景图像中没有识别到人脸时,调用计时器重新开始计时。When the face is not recognized in the scene image acquired again, the timer is called to restart the timing.
可选的,处理单元还用于:Optionally, the processing unit is further configured to:
当在场景图像中没有识别到人脸时,获取计时器计时得到的时间值; When the face is not recognized in the scene image, the time value obtained by the timer is obtained;
当时间值等于预设休眠时间值时,控制终端处于休眠状态。When the time value is equal to the preset sleep time value, the control terminal is in a sleep state.
可选的,该终端还包括:Optionally, the terminal further includes:
触发单元,用于当从获取场景图像开始经过预设时长时,触发通过摄像组件获取终端的场景图像,并对场景图像进行人脸识别。The triggering unit is configured to: when the preset time length elapses from the acquisition of the scene image, trigger a scene image of the terminal acquired by the camera component, and perform face recognition on the scene image.
可选的,该终端还包括:Optionally, the terminal further includes:
检测单元,用于检测是否接收到对终端的操作指令。The detecting unit is configured to detect whether an operation instruction for the terminal is received.
上述触发单元,还用于当没有接收到操作指令时,触发通过摄像组件获取终端的场景图像。The trigger unit is further configured to: when the operation instruction is not received, trigger a scene image acquired by the camera component to acquire the terminal.
可选的,检测单元还用于:Optionally, the detecting unit is further configured to:
检测是否接收到对终端的操作指令。It is detected whether an operation instruction to the terminal is received.
触发单元还用于:The trigger unit is also used to:
当没有接收到操作指令时,触发接收终端进入自动休眠模式的指令。When the operation command is not received, the receiving terminal is triggered to enter the automatic sleep mode.
可选的,处理单元还用于:Optionally, the processing unit is further configured to:
当在场景图像中识别到人脸,且人脸所包含的眼睛处于第一状态时,控制终端处于休眠状态。When the face is recognized in the scene image, and the eye included in the face is in the first state, the control terminal is in a sleep state.
第三方面,本发明实施例提供了另一种终端,包括处理器、输入设备、输出设备和存储器,所述处理器、输入设备、输出设备和存储器相互连接,其中,所述存储器用于存储支持终端执行上述方法的计算机程序,所述计算机程序包括程序指令,所述处理器被配置用于调用所述程序指令,执行上述第一方面的方法。In a third aspect, an embodiment of the present invention provides another terminal, including a processor, an input device, an output device, and a memory, where the processor, the input device, the output device, and the memory are connected to each other, wherein the memory is used for storage. A computer program supporting a terminal for performing the above method, the computer program comprising program instructions, the processor being configured to invoke the program instructions to perform the method of the first aspect above.
第四方面,本申请提供了一种计算机存储介质,用于储存为上述终端设备所用的计算机软件指令,其包括用于执行上述方面所设计的程序。In a fourth aspect, the present application provides a computer storage medium for storing computer software instructions for use in the terminal device, including a program designed to perform the above aspects.
第五方面,本申请还提供了一种包括指令的计算机程序产品,当其在计算机上运行时,使得计算机执行上述方面所述的方法。In a fifth aspect, the present application also provides a computer program product comprising instructions which, when run on a computer, cause the computer to perform the method described in the above aspects.
第六方面,本申请提供了一种芯片系统,该芯片系统包括处理器,用于终端设备实现上述方面中所涉及的功能,例如,例如生成或处理上述方法中所涉及的数据和/或信息。在一种可能的设计中,所述芯片系统还包括存储器,所述存储器,用于保存终端设备必要的程序指令和数据。该芯片系统,可以由芯片构成,也可以包括芯片和其他分立器件。 In a sixth aspect, the present application provides a chip system including a processor for a terminal device to implement the functions involved in the above aspects, such as, for example, generating or processing data and/or information involved in the above method. . In a possible design, the chip system further comprises a memory for storing necessary program instructions and data of the terminal device. The chip system can be composed of chips, and can also include chips and other discrete devices.
本发明实施例在接收到终端进入自动休眠模式的指令时,调用计时器开始计时;通过摄像组件获取所述终端的场景图像,并对所述场景图像进行人脸识别;当在所述场景图像中识别到人脸时,将所述计时器计时得到的时间值设置为零。相对于传统的方案在终端长时间未检测到用户的操作时自动休眠,需要用户每隔一段时间就操作终端以避免终端进入休眠状态。本发明实施例通过人脸识别来判断用户是否在使用终端,当检测到用户正在使用终端时,将计时器计时的时长值清零,可避免终端进入休眠状态,不需要用户经常点击具有亮屏功能的按钮,提高了终端的便利性,并提高了休眠控制的精确度。When receiving the instruction that the terminal enters the automatic sleep mode, the embodiment of the present invention calls the timer to start timing; acquires the scene image of the terminal by the camera component, and performs face recognition on the scene image; When the face is recognized, the time value obtained by counting the timer is set to zero. Compared with the conventional scheme, when the terminal does not detect the user's operation for a long time, it automatically sleeps, and the user needs to operate the terminal at intervals to avoid the terminal entering the sleep state. The embodiment of the present invention determines whether the user is using the terminal by using face recognition. When detecting that the user is using the terminal, the time value of the timer is cleared to zero, which can prevent the terminal from entering the sleep state, and does not require the user to frequently click to have a bright screen. The function of the button improves the convenience of the terminal and improves the accuracy of the sleep control.
附图说明DRAWINGS
为了更清楚地说明本发明实施例技术方案,下面将对实施例描述中所需要使用的附图作简单地介绍,显而易见地,下面描述中的附图是本发明的一些实施例,对于本领域普通技术人员来讲,在不付出创造性劳动的前提下,还可以根据这些附图获得其他的附图。In order to more clearly illustrate the technical solutions of the embodiments of the present invention, the drawings used in the description of the embodiments will be briefly described below. It is obvious that the drawings in the following description are some embodiments of the present invention. For the ordinary technicians, other drawings can be obtained based on these drawings without any creative work.
图1为本发明实施例提供的一种休眠控制的方法的示意流程图;FIG. 1 is a schematic flowchart of a method for performing sleep control according to an embodiment of the present invention;
图2为本发明另一实施例提供的一种休眠控制的方法的示意流程图;2 is a schematic flowchart of a method for performing sleep control according to another embodiment of the present invention;
图3是本发明实施例提供的一种终端的示意框图;3 is a schematic block diagram of a terminal according to an embodiment of the present invention;
图4是本发明实施例提供的一种设备的示意图;4 is a schematic diagram of an apparatus according to an embodiment of the present invention;
图5是本发明实施例提供的一种场景图。FIG. 5 is a scene diagram provided by an embodiment of the present invention.
具体实施方式Detailed ways
下面将结合本发明实施例中的附图,对本发明实施例中的技术方案进行清楚、完整地描述,显然,所描述的实施例是本发明一部分实施例,而不是全部的实施例。基于本发明中的实施例,本领域普通技术人员在没有做出创造性劳动前提下所获得的所有其他实施例,都属于本发明保护的范围。The technical solutions in the embodiments of the present invention are clearly and completely described in the following with reference to the accompanying drawings in the embodiments of the present invention. It is obvious that the described embodiments are a part of the embodiments of the present invention, but not all embodiments. All other embodiments obtained by a person of ordinary skill in the art based on the embodiments of the present invention without creative efforts are within the scope of the present invention.
本发明实施例中描述的终端包括但不限于诸如具有触摸敏感表面(例如,触摸屏显示器和/或触摸板)的移动电话、膝上型计算机或平板计算机之类的其它便携式设备。还应当理解的是,在某些实施例中,所述设备并非便携式通信设备,而是具有触摸敏感表面(例如,触摸屏显示器和/或触摸板)的台式计算 机,需要说明的是,本发明实施例的终端可以配置摄像组件。Terminals described in embodiments of the invention include, but are not limited to, other portable devices such as mobile phones, laptop computers or tablet computers having touch sensitive surfaces (eg, touch screen displays and/or touch pads). It should also be understood that in some embodiments, the device is not a portable communication device, but a desktop computing with a touch sensitive surface (eg, a touch screen display and/or a touch pad). It should be noted that the terminal of the embodiment of the present invention may configure the camera component.
终端支持各种应用程序,例如以下中的一个或多个:绘图应用程序、演示应用程序、文字处理应用程序、网站创建应用程序、盘刻录应用程序、电子表格应用程序、游戏应用程序、电话应用程序、视频会议应用程序、电子邮件应用程序、即时消息收发应用程序、锻炼支持应用程序、照片管理应用程序、数码相机应用程序、数字摄影机应用程序、web浏览应用程序、数字音乐播放器应用程序和/或数字视频播放器应用程序。The terminal supports a variety of applications, such as one or more of the following: drawing applications, presentation applications, word processing applications, website creation applications, disk burning applications, spreadsheet applications, gaming applications, phone applications Programs, video conferencing applications, email applications, instant messaging applications, workout support applications, photo management applications, digital camera applications, digital camera applications, web browsing applications, digital music player applications, and / or digital video player app.
可以在终端上执行的各种应用程序可以使用诸如触摸敏感表面的至少一个公共物理用户接口设备。可以在应用程序之间和/或相应应用程序内调整和/或改变触摸敏感表面的一个或多个功能以及终端上显示的相应信息。这样,终端的公共物理架构(例如,触摸敏感表面)可以支持具有对用户而言直观且透明的用户界面的各种应用程序。Various applications that can be executed on the terminal can use at least one common physical user interface device such as a touch sensitive surface. One or more functions of the touch sensitive surface and corresponding information displayed on the terminal can be adjusted and/or changed within the application and/or within the respective application. In this way, the common physical architecture of the terminal (eg, a touch-sensitive surface) can support a variety of applications with a user interface that is intuitive and transparent to the user.
请参加图1,是本发明实施例提供的一种休眠控制的方法的示意流程图,如图1所示的休眠控制的方法可包括:FIG. 1 is a schematic flowchart of a method for performing sleep control according to an embodiment of the present invention. The method for performing sleep control as shown in FIG. 1 may include:
S101,在接收到终端进入自动休眠模式的指令时,调用计时器开始计时。S101. When receiving an instruction that the terminal enters the automatic sleep mode, the timer is called to start timing.
具体的,自动休眠模式是指当终端未检测到用户的操作时,会调用计时器开始计时。终端通过摄像组件来进行人脸识别,当识别到人脸时,终端可以将计时器计时得到的时间值设置为零。当没有识别到人脸且计时器计时得到的时间值等于预设休眠时间值时,终端就会熄屏,处于休眠状态。。Specifically, the automatic sleep mode means that when the terminal does not detect the user's operation, the timer is called to start timing. The terminal performs face recognition through the camera component. When the face is recognized, the terminal can set the time value obtained by the timer to zero. When the face is not recognized and the time value obtained by the timer is equal to the preset sleep time value, the terminal will be off and will be in the sleep state. .
举例来说,在终端设置选项中,用户可以预先设定休眠时间值,当用户选择休眠时间值为15秒时,终端检测到这一选择指令后,将15秒作为预设休眠时间值。在终端接收到进入自动休眠模式时,就会调用计时器来开始计时,当计时到15秒时,终端就会熄屏,处于休眠状态。需要说明的是,本发明实施例中的休眠时间可以是默认设置的,例如终端出厂时所配置的。For example, in the terminal setting option, the user can preset the sleep time value. When the user selects the sleep time value as 15 seconds, after the terminal detects the selection instruction, the terminal takes 15 seconds as the preset sleep time value. When the terminal receives the automatic sleep mode, it will call the timer to start timing. When the timer reaches 15 seconds, the terminal will be off and will be in the sleep state. It should be noted that the sleep time in the embodiment of the present invention may be set by default, for example, when the terminal is shipped from the factory.
S102,通过摄像组件获取终端的场景图像,并对场景图像进行人脸识别。S102. Acquire a scene image of the terminal through the camera component, and perform face recognition on the scene image.
具体的,先通过摄像组件来获取场景图像,然后通过图像处理的技术对此场景图像进行人脸识别。Specifically, the scene image is first acquired by the camera component, and then the face image is recognized by the image processing technology.
需要说明的是,该摄像组件可以是终端的前置摄像组件,也可以是终端的后置摄像组件,还可以是外接于终端的摄像装置。前置摄像组件可以是终端的 前置摄像头,后置摄像组件可以是终端的后置摄像头,外接于终端的摄像装置可以是外接于终端的摄像头。该终端的场景图像可以是终端前方的场景图像,也可以终端后方的场景图像。It should be noted that the camera component may be a front camera component of the terminal, a rear camera component of the terminal, or an imaging device externally connected to the terminal. The front camera component can be terminal The front camera, the rear camera component may be a rear camera of the terminal, and the camera device externally connected to the terminal may be a camera externally connected to the terminal. The scene image of the terminal may be a scene image in front of the terminal or a scene image behind the terminal.
举例来说,若该摄像组件是终端的前置摄像组件。当用户通过终端阅读电子书、浏览新闻或者打游戏时,由于此时用户的脸部正对着终端的显示屏幕,所以终端可以通过前置摄像组件来获取终端前方的场景图像,然后通过图像处理的技术来对此前方的场景图像进行人脸识别。For example, if the camera component is a front camera component of the terminal. When the user reads the e-book, browses the news, or plays the game through the terminal, since the user's face is facing the display screen of the terminal at this time, the terminal can acquire the scene image in front of the terminal through the front camera component, and then pass the image processing. The technique is to perform face recognition on the scene image in front of it.
若该摄像组件是终端的后置摄像组件。当用户在通过后置摄像组件进行自拍时,由于此时用户的脸部正对着终端的后置摄像组件,所以终端可以通过后置摄像组件来获取终端后方的场景图像,然后通过图像处理的技术来对此后方的场景图像进行人脸识别。If the camera component is a rear camera component of the terminal. When the user performs self-photographing through the rear camera component, since the user's face is facing the rear camera component of the terminal at this time, the terminal can acquire the scene image behind the terminal through the rear camera component, and then through image processing. Techniques are used to perform face recognition on this rear scene image.
需要说明的是,以上只是举例,并非穷举。It should be noted that the above are only examples and are not exhaustive.
S103,当在场景图像中识别到人脸时,将计时器计时得到的时间值设置为零。S103, when the face is recognized in the scene image, the time value obtained by counting the timer is set to zero.
具体的,当通过图像处理技术在场景图像中识别到人脸时,说明此时用户的脸部正对着终端的显示屏幕,即用户可能正在使用终端阅读电子书、浏览新闻或者打游戏等。此时,终端可以将计时器计时得到的时间值设置为零。由于只有当计时器计时得到的时间值等于预设休眠时间值时,终端才会熄屏,处于休眠状态。而将计时器计时得到的时间值设置为零后,终端便会一直保持亮屏,不进入休眠状态。通过此操作,可以在用户通过终端阅读电子书、浏览新闻或者打游戏时,终端即使长时间没有接收到用户的操作,也能保证终端的屏幕常亮,提高了终端的便利性,并提高了休眠控制的精确度。Specifically, when the face is recognized in the scene image by the image processing technology, the user's face is directly facing the display screen of the terminal, that is, the user may be using the terminal to read the e-book, browse the news, or play the game. At this point, the terminal can set the time value obtained by the timer to zero. Because the terminal will only turn off the screen and be in a sleep state when the time value obtained by the timer is equal to the preset sleep time value. When the time value obtained by the timer is set to zero, the terminal will remain bright and will not enter the sleep state. Through this operation, when the user reads the e-book, browses the news, or plays the game through the terminal, the terminal can ensure that the screen of the terminal is always bright even if the user does not receive the operation of the user for a long time, thereby improving the convenience of the terminal and improving the convenience. The accuracy of the sleep control.
可选的,当在场景图像中识别到人脸,且人脸所包含的眼睛处于第一状态时,控制终端处于休眠状态。Optionally, when the face is recognized in the scene image, and the eye included in the face is in the first state, the control terminal is in a sleep state.
具体的,此第一状态可以是闭眼状态。由于终端采用轮询的方式来获取场景图像,因此当在连续两次获取的场景图像中都识别到人脸,且人脸所包含的眼睛都处于闭眼状态时,终端可以判定用户已经睡着或者眼睛疲劳,不再使用终端,此时,终端可以熄屏,控制终端处于休眠状态。通过此步骤,可以节约电量。 Specifically, the first state may be a closed eye state. Since the terminal acquires the scene image by means of polling, when the face is recognized in the scene image acquired twice, and the eyes included in the face are in the closed eye state, the terminal can determine that the user has fallen asleep. Or the eyes are tired, the terminal is no longer used. At this time, the terminal can be turned off and the control terminal is in a sleep state. This step saves power.
可选的,当在场景图像中识别到人脸,且人脸所包含的眼睛处于第二状态时,控制终端显示上一界面或者下一界面的内容。Optionally, when the face is recognized in the scene image, and the eye included in the face is in the second state, the control terminal displays the content of the previous interface or the next interface.
具体的,可以参加图5,此第二状态可以是眼睛视线与终端的屏幕呈现一定的夹角α。当终端在场景图像中识别到人脸,且人脸所包含的眼睛视线与屏幕呈现一定夹角时,且该夹角为锐角时,说明用户的视线向上,则控制终端显示上一界面的内容,若该夹角为钝角时,说明用户的视线向下,则控制终端显示下一界面的内容。通过此步骤,可以自动呈现用户想要浏览的内容,提高了终端的便利性。Specifically, it can participate in FIG. 5, and the second state may be that the eye line of sight and the screen of the terminal exhibit a certain angle α. When the terminal recognizes a human face in the scene image, and the eye line of view included in the face is at a certain angle with the screen, and the angle is an acute angle, indicating that the user's line of sight is upward, the control terminal displays the content of the previous interface. If the angle is an obtuse angle, indicating that the user's line of sight is downward, the control terminal displays the content of the next interface. Through this step, the content that the user wants to browse can be automatically presented, which improves the convenience of the terminal.
需要说明的是,本发明实施例中的步骤S105无特定顺序,可以在步骤S104之后执行,也可以于步骤S103在场景图像中识别到人脸之后执行。It should be noted that step S105 in the embodiment of the present invention has no specific order, and may be performed after step S104, or may be performed after the human face is recognized in the scene image in step S103.
S104,确定从获取场景图像开始经过了预设时长。S104. Determine that a preset duration has elapsed since the acquisition of the scene image.
具体的,本发明实施例采用了轮询的方式来检测用户是否在使用终端,即当终端第一次获取场景图像开始,每次经过预设时长之后,就会触发终端通过摄像组件获取场景图像,然后对场景图像进行人脸识别。当步骤S104确定从获取场景图像开始经过了预设时长后,就执行S102-S103。因为存在用户临时离开了终端屏幕几秒钟,如果此时只获取一次场景图像,那么在此次获取的场景图像中是不会识别到人脸的,此时终端就会误判成用户已经没有使用终端。通过这种轮询的方式,每隔一段时间就获取一次场景图像,可以提高判断终端是否处于被使用状态的准确性。Specifically, the embodiment of the present invention adopts a polling manner to detect whether the user is using the terminal, that is, when the terminal acquires the scene image for the first time, each time after the preset duration, the terminal is triggered to acquire the scene image through the camera component. And then perform face recognition on the scene image. When it is determined in step S104 that the preset time length has elapsed since the acquisition of the scene image, S102-S103 is performed. Because the user temporarily leaves the terminal screen for a few seconds, if only the scene image is acquired once, the face will not be recognized in the scene image acquired this time, and the terminal will misjudge that the user has no Use the terminal. Through this polling method, the scene image is acquired once every time, and the accuracy of judging whether the terminal is in the used state can be improved.
举例来说,假设预设时长为5秒,那么在终端第一次获取场景图像开始,每经过5秒,就会触发终端获取场景图像,并对场景图像进行人脸识别。如果此时用户临时离开了终端屏幕2秒钟,终端此次没有在场景图像中识别到人脸,那么隔5秒以后,终端也会再次获取场景图像,并能在再次获取的场景图像中识别到人脸,从而避免了终端误判用户没有使用终端的情况,提高了判断终端是否处于被使用状态的准确性。For example, if the preset duration is 5 seconds, then the terminal acquires the scene image and performs face recognition on the scene image every 5 seconds after the terminal first acquires the scene image. If the user temporarily leaves the terminal screen for 2 seconds and the terminal does not recognize the face in the scene image, the terminal will acquire the scene image again after 5 seconds, and can recognize the scene image acquired again. To the face, thereby avoiding the situation that the terminal misjudges that the user does not use the terminal, and improves the accuracy of judging whether the terminal is in the used state.
需要说明的是,上述只是举例,并非穷举。It should be noted that the above is only an example and is not exhaustive.
在本发明实施例中,在接收到终端进入自动休眠模式的指令时,调用计时器开始计时。通过摄像组件获取终端的场景图像,并对场景图像进行人脸识别,当在场景图像中识别到人脸时,将计时器计时得到的时间值设置为零。在终端 长时间未检测到用户的操作时,通过人脸识别来判断用户是否正在使用终端,当检测到用户正在使用终端时,就将计时器的计时得到的时间值设置为零,可避免终端进入休眠状态,提高了终端的便利性,并提高了休眠控制的精确度。In the embodiment of the present invention, when receiving an instruction that the terminal enters the automatic sleep mode, the timer is called to start timing. The scene image of the terminal is acquired by the camera component, and the face image is subjected to face recognition. When the face is recognized in the scene image, the time value obtained by counting the timer is set to zero. At the terminal When the user's operation is not detected for a long time, the face recognition is used to determine whether the user is using the terminal. When detecting that the user is using the terminal, the time value obtained by the timer is set to zero, which can prevent the terminal from entering the sleep. The state improves the convenience of the terminal and improves the accuracy of the sleep control.
请参见图2,是本发明实施例提供的另一种休眠控制的方法的示意流程图,如图2所示的休眠控制的方法可包括:FIG. 2 is a schematic flowchart of another method for performing sleep control according to an embodiment of the present invention. The method for performing sleep control as shown in FIG. 2 may include:
S201,检测是否接收到对终端的操作指令。S201. Detect whether an operation instruction for the terminal is received.
需要说明的是,该操作指令可以是控制终端进行相应操作的任一指令。示例性的,该操作指令可以包括点击终端屏幕的虚拟按键、按下终端的实体按键、点击鼠标等操作指令。It should be noted that the operation instruction may be any instruction that controls the terminal to perform corresponding operations. Exemplarily, the operation instruction may include an operation instruction such as clicking a virtual button of the terminal screen, pressing a physical button of the terminal, clicking a mouse, and the like.
举例来说,当该终端的屏幕为触摸屏时,该操作指令可以是用户点击或者触摸屏幕的任一位置所产生的,也可以是用户按下终端的音量键、关机键或者HOME键所产生的。For example, when the screen of the terminal is a touch screen, the operation instruction may be generated by the user clicking or touching any position of the screen, or may be generated by the user pressing the volume key, the shutdown key or the HOME key of the terminal. .
当终端的屏幕为非触摸屏时,例如老人机,该操作指令可以是用户按下音量键、关机键、拨号键或者数字键中的任一一个按键所产生的。When the screen of the terminal is a non-touch screen, such as an old man machine, the operation instruction may be generated by the user pressing one of a volume key, a shutdown key, a dial key, or a numeric key.
当终端外接鼠标时,例如台式电脑,该操作指令可以是用户点击鼠标或者滚动鼠标中间的滚轮所产生的。When the terminal is externally connected to a mouse, such as a desktop computer, the operation command may be generated by a user clicking a mouse or scrolling a scroll wheel in the middle of the mouse.
需要说明的是,以上只是举例,并非穷举。It should be noted that the above are only examples and are not exhaustive.
S202,当没有接收到操作指令时,触发接收终端进入自动休眠模式的指令。S202. When the operation instruction is not received, trigger the instruction that the receiving terminal enters the automatic sleep mode.
具体的,当在没有接收到对该终端的操作指令时,终端将会判断此时没有用户在使用终端,于是将会触发终端接收进入自动休眠模式的指令。Specifically, when the operation instruction for the terminal is not received, the terminal will determine that no user is using the terminal at this time, and then the terminal is triggered to receive an instruction to enter the automatic sleep mode.
S203,在接收到终端进入自动休眠模式的指令时,调用计时器开始计时。S203. When receiving an instruction that the terminal enters the automatic sleep mode, the timer is called to start timing.
需要说明的是,本发明实施例中的步骤S203可以参见上述发明实施例中的步骤S101,本发明实施例不再赘述。It should be noted that, in the step S203 in the embodiment of the present invention, reference may be made to the step S101 in the foregoing embodiment of the present invention, which is not described in detail in the embodiment of the present invention.
S204,检测是否接收到对终端的操作指令。S204. Detect whether an operation instruction for the terminal is received.
具体的,终端在调用计时器开始计时之后,检测终端是否接收到对终端的操作指令,当检测到了对终端的操作指令时,终端将计时器计时得到的时间值设置为零。当没有检测到对终端的操作指令时,终端将执行步骤S205。Specifically, after the start timer is started, the terminal detects whether the terminal receives an operation instruction for the terminal, and when detecting an operation instruction to the terminal, the terminal sets the time value obtained by the timer to zero. When no operation instruction to the terminal is detected, the terminal will perform step S205.
需要说明的是,该步骤S204中的操作指令可以包括步骤S201所提到的操 作指令,本步骤就不再加以赘述。It should be noted that the operation instruction in step S204 may include the operation mentioned in step S201. As an instruction, this step will not be repeated.
S205,当没有接收到操作指令时,触发通过摄像组件获取终端的场景图像。S205. When no operation instruction is received, triggering to acquire a scene image of the terminal by using the camera component.
S206,通过摄像组件获取终端的场景图像,并对场景图像进行人脸识别。S206. Acquire a scene image of the terminal through the camera component, and perform face recognition on the scene image.
需要说明的是,本发明实施例中的步骤S206可以参见上述发明实施例中的步骤S102,本发明实施例不再赘述。It should be noted that, in the step S206 in the embodiment of the present invention, reference may be made to the step S102 in the foregoing embodiment of the present invention, which is not described in detail in the embodiment of the present invention.
S207,当在场景图像中没有识别到人脸时,获取计时器计时得到的时间值。S207. When no face is recognized in the scene image, the time value obtained by the timer is obtained.
具体的,当终端通过图像处理技术没有在场景图像中识别到人脸时,需要判断此时计时器计时得到的时间值是否等于预设休眠时间值,因此需要终端获取计时器计时所得到的时间值,以便进行比较计时器计时得到的时间值和预设休眠时间值。Specifically, when the terminal does not recognize the face in the scene image by using the image processing technology, it is necessary to determine whether the time value obtained by the timer is equal to the preset sleep time value, and therefore the time required for the terminal to obtain the timer is required. The value is used to compare the time value obtained by the timer count with the preset sleep time value.
S208,当此时间值等于预设休眠时间值时,控制终端处于休眠状态。S208. When the time value is equal to the preset sleep time value, the control terminal is in a sleep state.
具体的,当计时器计时得到的时间值等于预设休眠时间值时,说明在这段时间内,用户没有使用终端,因此终端熄屏,控制终端处于休眠状态,以此来节约电量。Specifically, when the time value obtained by the timer is equal to the preset sleep time value, it indicates that the user does not use the terminal during this time, so the terminal is off, and the control terminal is in a sleep state, thereby saving power.
S209,当在场景图像中识别到人脸时,将计时器计时得到的时间值设置为零。S209, when the face is recognized in the scene image, the time value obtained by counting the timer is set to zero.
需要说明的是,本发明实施例中的步骤S209可以参见上述发明实施例中的步骤S103,本发明实施例不再赘述。It should be noted that, in the step S209 in the embodiment of the present invention, reference may be made to the step S103 in the foregoing embodiment of the present invention, which is not described in detail in the embodiment of the present invention.
还需说明的是,步骤S207和步骤S209是终端根据有无识别到人脸这个结果来选择执行其中的一个步骤,并无先后顺序。即当没有识别到人脸时,在步骤S206之后执行步骤S207-S208,当识别到人脸时,在步骤S206之后执行步骤S209-S211。It should be noted that step S207 and step S209 are one step in which the terminal selects to execute according to the result of identifying the face, and there is no order. That is, when the face is not recognized, steps S207-S208 are performed after step S206, and when the face is recognized, steps S209-S211 are performed after step S206.
S210,通过摄像组件再次获取终端的场景图像。S210. Acquire a scene image of the terminal again by using the camera component.
具体的,由于步骤S209在场景图像中检测到了人脸,说明用户正在使用终端,此时计时器计时得到的时间值被设置为零,且计时器处于停止计时的状态,只有当用户不使用终端时,计时器才会重新开始计时。因此本步骤S210通过摄像组件再次获取终端的场景图像。Specifically, since the step is detected in the scene image in step S209, it indicates that the user is using the terminal, and the time value obtained by the timer is set to zero, and the timer is in the state of stopping the timer, only when the user does not use the terminal. The timer will restart timing. Therefore, in step S210, the scene image of the terminal is acquired again by the camera assembly.
S211,当在再次获取到的场景图像中没有识别到人脸时,调用计时器重新开始计时。 S211. When the face is not recognized in the scene image acquired again, the timer is called to restart the timing.
具体的,当在再次获取到的场景图像中没有识别到人脸时,说明用户可能没有使用终端了。由于在步骤S209中,计时器计时得到的时长已被设置为零且计时器处于暂停计时的状态,因此此时可以调用计时器重新开始计时,当计时时间值等于预设休眠时长值时,终端就熄屏,处于休眠状态。Specifically, when no face is recognized in the scene image acquired again, it indicates that the user may not use the terminal. Since in step S209, the duration obtained by the timer has been set to zero and the timer is in the paused state, the timer can be called to restart the timing, and when the timing value is equal to the preset sleep duration value, the terminal It is off the screen and is in a sleep state.
在本发明实施例中,当终端检测没有接收到对终端的操作指令时,接收终端进入自动休眠模式的指令,并调用计时器开始计时。接着检测是否接收到对终端的操作指令,若没有,则通过摄像组件来获取终端的场景图像,并对场景图像进行人脸识别。当没有识别到人脸且比较计时器计时得到的时间值等于预设休眠时间值时,控制终端处于休眠状态。当识别到人脸时,将计时器的时间值设置为零,并再次获取场景图像,当在再次获取的场景图像中不能识别到人脸时,控制计时器重新开始计时。通过将计时器的计时得到的时间值设置为零,可避免终端进入休眠状态,提高了终端的便利性,并提高了休眠控制的精确度。In the embodiment of the present invention, when the terminal detects that an operation instruction to the terminal is not received, the receiving terminal enters an instruction of the automatic sleep mode, and invokes a timer to start timing. Then, it is detected whether an operation instruction for the terminal is received, and if not, the scene image of the terminal is acquired by the camera component, and the face image is subjected to face recognition. When the face is not recognized and the time value obtained by the comparison timer is equal to the preset sleep time value, the control terminal is in a sleep state. When the face is recognized, the time value of the timer is set to zero, and the scene image is acquired again, and when the face is not recognized in the scene image acquired again, the control timer restarts timing. By setting the time value obtained by the timer to zero, the terminal can be prevented from entering the sleep state, the convenience of the terminal is improved, and the accuracy of the sleep control is improved.
请参加图3,是本发明实施例提供的一种终端的示意框图,如图3所示的本发明实施例的终端可包括:FIG. 3 is a schematic block diagram of a terminal according to an embodiment of the present invention. The terminal in the embodiment of the present invention shown in FIG. 3 may include:
调用单元301,用于在接收到终端进入自动休眠模式的指令时,调用计时器开始计时。The calling unit 301 is configured to call a timer to start timing when receiving an instruction that the terminal enters the automatic sleep mode.
获取单元302,用于通过摄像组件获取终端的场景图像,并对场景图像进行人脸识别。The acquiring unit 302 is configured to acquire a scene image of the terminal by using the camera component, and perform face recognition on the scene image.
处理单元303,用于当在场景图像中识别到人脸时,使计时器计时得到的时间值设置为零。The processing unit 303 is configured to set a time value obtained by timing the timer to zero when the face is recognized in the scene image.
可选的,获取单元302还用于:Optionally, the obtaining unit 302 is further configured to:
通过摄像组件再次获取终端的场景图像。The scene image of the terminal is acquired again through the camera assembly.
处理单元303还用于:The processing unit 303 is further configured to:
当在再次获取到的场景图像中没有识别到人脸时,调用计时器重新开始计时。When the face is not recognized in the scene image acquired again, the timer is called to restart the timing.
可选的,处理单元303还用于:Optionally, the processing unit 303 is further configured to:
当在场景图像中没有识别到人脸时,获取计时器计时得到的时间值;When the face is not recognized in the scene image, the time value obtained by the timer is obtained;
当时间值等于预设休眠时间值时,控制终端处于休眠状态。 When the time value is equal to the preset sleep time value, the control terminal is in a sleep state.
可选的,该终端还包括:Optionally, the terminal further includes:
触发单元304,用于当从获取场景图像开始经过预设时长时,触发通过摄像组件获取终端的场景图像,并对场景图像进行人脸识别。The triggering unit 304 is configured to trigger a scene image of the terminal acquired by the camera component when the preset time length elapses from the acquisition of the scene image, and perform face recognition on the scene image.
可选的,该终端还包括:Optionally, the terminal further includes:
检测单元305,用于检测是否接收到对终端的操作指令。The detecting unit 305 is configured to detect whether an operation instruction for the terminal is received.
触发单元304还用于:The trigger unit 304 is further configured to:
当没有接收到操作指令时,触发通过摄像组件获取终端的场景图像。When the operation instruction is not received, the scene image of the terminal is acquired by the camera assembly.
可选的,检测单元305还用于:Optionally, the detecting unit 305 is further configured to:
检测是否接收到对终端的操作指令。It is detected whether an operation instruction to the terminal is received.
触发单元304还用于:The trigger unit 304 is further configured to:
当没有接收到操作指令时,触发接收终端进入自动休眠模式的指令。When the operation command is not received, the receiving terminal is triggered to enter the automatic sleep mode.
可选的,处理单元303还用于:Optionally, the processing unit 303 is further configured to:
当在场景图像中识别到人脸,且人脸所包含的眼睛处于第一状态时,控制终端处于休眠状态。When the face is recognized in the scene image, and the eye included in the face is in the first state, the control terminal is in a sleep state.
在本发明实施例中,在接收到终端进入自动休眠模式的指令时,调用计时器开始计时。通过摄像组件获取终端的场景图像,并对场景图像进行人脸识别,当在场景图像中识别到人脸时,将计时器计时得到的时间值设置为零。在终端长时间未检测到用户的操作时,通过人脸识别来判断用户是否正在使用终端,当检测到用户正在使用终端时,就将计时器的计时得到的时间值设置为零,可避免终端进入休眠状态,提高了终端的便利性,并提高了休眠控制的精确度。In the embodiment of the present invention, when receiving an instruction that the terminal enters the automatic sleep mode, the timer is called to start timing. The scene image of the terminal is acquired by the camera component, and the face image is subjected to face recognition. When the face is recognized in the scene image, the time value obtained by counting the timer is set to zero. When the terminal does not detect the user's operation for a long time, the face recognition determines whether the user is using the terminal. When detecting that the user is using the terminal, the time value obtained by the timer is set to zero, and the terminal can be avoided. Entering the sleep state improves the convenience of the terminal and improves the accuracy of the sleep control.
请参加图4,图4是本发明实施例提供的设备的示意图一,如图4所示,该设备可以为终端设备,也可以为芯片或电路,比如可设置于终端设备的芯片或电路。该终端设备可以对应上述方法中的终端设备。FIG. 4 is a schematic diagram 1 of a device according to an embodiment of the present invention. As shown in FIG. 4, the device may be a terminal device, or may be a chip or a circuit, such as a chip or a circuit that can be disposed on the terminal device. The terminal device may correspond to the terminal device in the above method.
该设备可以包括处理器110和存储器120。该存储器120用于存储指令,该处理器110用于执行该存储器120存储的指令,以实现如上图1至2对应的方法中的步骤以及实施例。The device can include a processor 110 and a memory 120. The memory 120 is for storing instructions for executing the instructions stored by the memory 120 to implement the steps and embodiments in the method corresponding to Figures 1 through 2 above.
进一步的,该设备还可以包括输入口140和输出口150。进一步的,该设 备还可以进一步包括总线系统130,其中,处理器110、存储器120、输入口140和输出口150可以通过总线系统130相连。Further, the device may further include an input port 140 and an output port 150. Further, the design The bus system 130 may further be included, wherein the processor 110, the memory 120, the input port 140, and the output port 150 may be connected by a bus system 130.
处理器110用于执行该存储器120存储的指令,以控制输入口140接收信号,并控制输出口150发送信号,完成上述方法中终端设备的步骤。其中,输入口140和输出口150可以为相同或者不同的物理实体。为相同的物理实体时,可以统称为收发器。所述存储器220可以集成在所述处理器210中,也可以与所述处理器210分开设置。The processor 110 is configured to execute the instructions stored in the memory 120 to control the input port 140 to receive signals, and control the output port 150 to send signals to complete the steps of the terminal device in the above method. The input port 140 and the output port 150 may be the same or different physical entities. When they are the same physical entity, they can be collectively referred to as transceivers. The memory 220 may be integrated in the processor 210 or may be provided separately from the processor 210.
作为一种实现方式,输入口140和输出口150的功能可以考虑通过收发电路或者收发的专用芯片实现。处理器110可以考虑通过专用处理芯片、处理电路、处理器或者通用芯片实现。As an implementation manner, the functions of the input port 140 and the output port 150 can be implemented by a dedicated chip through a transceiver circuit or a transceiver. The processor 110 can be implemented by a dedicated processing chip, a processing circuit, a processor, or a general purpose chip.
作为另一种实现方式,可以考虑使用通用计算机的方式来实现本申请实施例提供的终端设备。即将实现处理器110,输入口140和输出口150功能的程序代码存储在存储器中,通用处理器通过执行存储器中的代码来实现处理器110,输入口140和输出口150的功能。As another implementation manner, the terminal device provided by the embodiment of the present application may be implemented by using a general-purpose computer. The program code for the functions of the processor 110, the input port 140 and the output port 150 is stored in a memory, and the general purpose processor implements the functions of the processor 110, the input port 140 and the output port 150 by executing code in the memory.
该设备所涉及的与本申请实施例提供的技术方案相关的概念,解释和详细说明及其他步骤请参见前述方法或其他实施例中关于这些内容的描述,此处不做赘述。For the concepts, explanations, detailed descriptions and other steps related to the technical solutions provided by the embodiments of the present application, refer to the descriptions of the foregoing methods or other embodiments, and no further details are provided herein.
所述计算机可读存储介质可以是前述任一实施例所述的终端的内部存储单元,例如终端的硬盘或内存。所述计算机可读存储介质也可以是所述终端的外部存储设备,例如所述终端上配备的插接式硬盘,智能存储卡(Smart Media Card,SMC),安全数字(Secure Digital,SD)卡,闪存卡(Flash Card)等。进一步地,所述计算机可读存储介质还可以既包括所述终端的内部存储单元也包括外部存储设备。所述计算机可读存储介质用于存储所述计算机程序以及所述终端所需的其他程序和数据。所述计算机可读存储介质还可以用于暂时地存储已经输出或者将要输出的数据。The computer readable storage medium may be an internal storage unit of the terminal described in any of the foregoing embodiments, such as a hard disk or a memory of the terminal. The computer readable storage medium may also be an external storage device of the terminal, such as a plug-in hard disk equipped on the terminal, a smart memory card (SMC), and a Secure Digital (SD) card. , Flash Card, etc. Further, the computer readable storage medium may also include both an internal storage unit of the terminal and an external storage device. The computer readable storage medium is for storing the computer program and other programs and data required by the terminal. The computer readable storage medium can also be used to temporarily store data that has been output or is about to be output.
还应理解,本文中涉及的第一、第二、第三、第四以及各种数字编号仅为描述方便进行的区分,并不用来限制本发明实施例的范围。It is also to be understood that the first, second, third, fourth,
应理解,本文中术语“和/或”,仅仅是一种描述关联对象的关联关系,表 示可以存在三种关系,例如,A和/或B,可以表示:单独存在A,同时存在A和B,单独存在B这三种情况。另外,本文中字符“/”,一般表示前后关联对象是一种“或”的关系。It should be understood that the term "and/or" in this document is merely an association describing the associated object, the table There may be three relationships, for example, A and/or B, which may indicate that there are three cases where A exists separately, A and B exist at the same time, and B exists separately. In addition, the character "/" in this article generally indicates that the contextual object is an "or" relationship.
应理解,在本申请的各种实施例中,上述各过程的序号的大小并不意味着执行顺序的先后,各过程的执行顺序应以其功能和内在逻辑确定,而不应对本发明实施例的实施过程构成任何限定。It should be understood that, in various embodiments of the present application, the size of the serial numbers of the above processes does not mean the order of execution, and the order of execution of each process should be determined by its function and internal logic, and should not be taken to the embodiments of the present invention. The implementation process constitutes any limitation.
本领域普通技术人员可以意识到,结合本文中所公开的实施例描述的各种说明性逻辑块(illustrative logical block)和步骤(step),能够以电子硬件、或者计算机软件和电子硬件的结合来实现。这些功能究竟以硬件还是软件方式来执行,取决于技术方案的特定应用和设计约束条件。专业技术人员可以对每个特定的应用来使用不同方法来实现所描述的功能,但是这种实现不应认为超出本发明的范围。Those of ordinary skill in the art will appreciate that the various illustrative logical blocks and steps described in connection with the embodiments disclosed herein can be implemented in electronic hardware, or a combination of computer software and electronic hardware. achieve. Whether these functions are performed in hardware or software depends on the specific application and design constraints of the solution. A person skilled in the art can use different methods for implementing the described functions for each particular application, but such implementation should not be considered to be beyond the scope of the present invention.
所属领域的技术人员可以清楚地了解到,为描述的方便和简洁,上述描述的系统、装置和单元的具体工作过程,可以参考前述方法实施例中的对应过程,在此不再赘述。A person skilled in the art can clearly understand that for the convenience and brevity of the description, the specific working process of the system, the device and the unit described above can refer to the corresponding process in the foregoing method embodiment, and details are not described herein again.
在本申请所提供的几个实施例中,应该理解到,所揭露的系统、装置和方法,可以通过其它的方式实现。例如,以上所描述的装置实施例仅仅是示意性的,例如,所述单元的划分,仅仅为一种逻辑功能划分,实际实现时可以有另外的划分方式,例如多个单元或组件可以结合或者可以集成到另一个系统,或一些特征可以忽略,或不执行。另一点,所显示或讨论的相互之间的耦合或直接耦合或通信连接可以是通过一些接口,装置或单元的间接耦合或通信连接,可以是电性,机械或其它的形式。In the several embodiments provided by the present application, it should be understood that the disclosed systems, devices, and methods may be implemented in other manners. For example, the device embodiments described above are merely illustrative. For example, the division of the unit is only a logical function division. In actual implementation, there may be another division manner, for example, multiple units or components may be combined or Can be integrated into another system, or some features can be ignored or not executed. In addition, the mutual coupling or direct coupling or communication connection shown or discussed may be an indirect coupling or communication connection through some interface, device or unit, and may be in an electrical, mechanical or other form.
所述作为分离部件说明的单元可以是或者也可以不是物理上分开的,作为单元显示的部件可以是或者也可以不是物理单元,即可以位于一个地方,或者也可以分布到多个网络单元上。可以根据实际的需要选择其中的部分或者全部单元来实现本实施例方案的目的。The units described as separate components may or may not be physically separated, and the components displayed as units may or may not be physical units, that is, may be located in one place, or may be distributed to multiple network units. Some or all of the units may be selected according to actual needs to achieve the purpose of the solution of the embodiment.
另外,在本发明各个实施例中的各功能单元可以集成在一个处理单元中,也可以是各个单元单独物理存在,也可以两个或两个以上单元集成在一个单元中。 In addition, each functional unit in each embodiment of the present invention may be integrated into one processing unit, or each unit may exist physically separately, or two or more units may be integrated into one unit.
在上述实施例中,可以全部或部分地通过软件、硬件、固件或者其任意组合来实现。当使用软件实现时,可以全部或部分地以计算机程序产品的形式实现。所述计算机程序产品包括一个或多个计算机指令。在计算机上加载和执行所述计算机程序指令时,全部或部分地产生按照本发明实施例所述的流程或功能。所述计算机可以是通用计算机、专用计算机、计算机网络、或者其他可编程装置。所述计算机指令可以存储在计算机可读存储介质中,或者从一个计算机可读存储介质向另一个计算机可读存储介质传输,例如,所述计算机指令可以从一个网站站点、计算机、服务器或数据中心通过有线(例如同轴电缆、光纤、数字用户线(DSL))或无线(例如红外、无线、微波等)方式向另一个网站站点、计算机、服务器或数据中心进行传输。所述计算机可读存储介质可以是计算机能够存取的任何可用介质或者是包含一个或多个可用介质集成的服务器、数据中心等数据存储设备。所述可用介质可以是磁性介质,(例如,软盘、硬盘、磁带)、光介质(例如,DVD)、或者半导体介质(例如固态硬盘Solid State Disk(SSD))等。In the above embodiments, it may be implemented in whole or in part by software, hardware, firmware, or any combination thereof. When implemented in software, it may be implemented in whole or in part in the form of a computer program product. The computer program product includes one or more computer instructions. When the computer program instructions are loaded and executed on a computer, the processes or functions described in accordance with embodiments of the present invention are generated in whole or in part. The computer can be a general purpose computer, a special purpose computer, a computer network, or other programmable device. The computer instructions can be stored in a computer readable storage medium or transferred from one computer readable storage medium to another computer readable storage medium, for example, the computer instructions can be from a website site, computer, server or data center Transfer to another website site, computer, server, or data center by wire (eg, coaxial cable, fiber optic, digital subscriber line (DSL), or wireless (eg, infrared, wireless, microwave, etc.). The computer readable storage medium can be any available media that can be accessed by a computer or a data storage device such as a server, data center, or the like that includes one or more available media. The usable medium may be a magnetic medium (eg, a floppy disk, a hard disk, a magnetic tape), an optical medium (eg, a DVD), or a semiconductor medium (such as a solid state disk (SSD)).
以上所述,仅为本发明的具体实施方式,但本发明的保护范围并不局限于此,任何熟悉本技术领域的技术人员在本发明揭露的技术范围内,可轻易想到变化或替换,都应涵盖在本发明的保护范围之内。因此,本发明的保护范围应以所述权利要求的保护范围为准。 The above is only a specific embodiment of the present invention, but the scope of the present invention is not limited thereto, and any person skilled in the art can easily think of changes or substitutions within the technical scope of the present invention. It should be covered by the scope of the present invention. Therefore, the scope of the invention should be determined by the scope of the appended claims.

Claims (10)

  1. 一种休眠控制的方法,其特征在于,包括:A method for dormancy control, comprising:
    在接收到终端进入自动休眠模式的指令时,调用计时器开始计时;When receiving an instruction that the terminal enters the automatic sleep mode, the timer is called to start timing;
    通过摄像组件获取所述终端的场景图像,并对所述场景图像进行人脸识别;Obtaining a scene image of the terminal by using a camera component, and performing face recognition on the scene image;
    当在所述场景图像中识别到人脸时,将所述计时器计时得到的时间值设置为零。When a face is recognized in the scene image, the time value obtained by counting the timer is set to zero.
  2. 根据权利要求1所述的方法,其特征在于,所述当在所述场景图像中识别到人脸时,使所述计时器计时得到的时间值设置为零之后,还包括:The method according to claim 1, wherein when the time value obtained by timing the timer is set to zero when the face is recognized in the scene image, the method further includes:
    通过所述摄像组件再次获取所述终端的场景图像;Acquiring the scene image of the terminal again by using the camera component;
    当在所述再次获取到的场景图像中没有识别到人脸时,调用所述计时器重新开始计时。When the face is not recognized in the scene image acquired again, the timer is called to restart the timing.
  3. 根据权利要求1所述的方法,其特征在于,所述对所述场景图像进行人脸识别之后,还包括:The method according to claim 1, wherein after performing the face recognition on the scene image, the method further comprises:
    当在所述场景图像中没有识别到人脸时,获取所述计时器计时得到的时间值;Obtaining a time value obtained by counting the timer when no face is recognized in the scene image;
    当所述时间值等于预设休眠时间值时,控制所述终端处于休眠状态。When the time value is equal to the preset sleep time value, the terminal is controlled to be in a sleep state.
  4. 根据权利要求1所述的方法,其特征在于,所述方法还包括:The method of claim 1 further comprising:
    当从获取所述场景图像开始经过预设时长时,触发通过所述摄像组件获取所述终端的场景图像,并对所述场景图像进行人脸识别。When a preset duration is elapsed from the acquisition of the scene image, a scene image of the terminal is acquired by the camera component, and face recognition is performed on the scene image.
  5. 根据权利要求1或2所述的方法,其特征在于,所述通过摄像组件获取所述终端的场景图像之前,还包括:The method according to claim 1 or 2, wherein before the acquiring the scene image of the terminal by the camera component, the method further comprises:
    检测是否接收到对所述终端的操作指令;Detecting whether an operation instruction for the terminal is received;
    当没有接收到所述操作指令时,触发通过所述摄像组件获取所述终端的所述场景图像。When the operation instruction is not received, triggering acquiring the scene image of the terminal by the camera assembly.
  6. 根据权利要求1至4中任一项所述的方法,其特征在于,所述方法还包括:The method according to any one of claims 1 to 4, further comprising:
    检测是否接收到对所述终端的操作指令; Detecting whether an operation instruction for the terminal is received;
    当没有接收到所述操作指令时,触发接收所述终端进入自动休眠模式的指令。When the operation instruction is not received, an instruction to receive the terminal to enter the automatic sleep mode is triggered.
  7. 根据权利要求1至4中任一项所述的方法,其特征在于,所述对所述场景图像进行人脸识别之后,还包括:The method according to any one of claims 1 to 4, further comprising: after performing face recognition on the scene image, further comprising:
    当在所述场景图像中识别到人脸,且所述人脸所包含的眼睛处于第一状态时,控制所述终端处于休眠状态。When the face is recognized in the scene image, and the eye included in the face is in the first state, the terminal is controlled to be in a sleep state.
  8. 一种终端,其特征在于,包括:A terminal, comprising:
    调用单元,用于在接收到终端进入自动休眠模式的指令时,调用计时器开始计时;a calling unit, configured to call a timer to start timing when receiving an instruction that the terminal enters the automatic sleep mode;
    获取单元,用于通过摄像组件获取所述终端的场景图像,并对所述场景图像进行人脸识别;An acquiring unit, configured to acquire a scene image of the terminal by using a camera component, and perform face recognition on the scene image;
    处理单元,用于当在所述场景图像中识别到人脸时,使所述计时器计时得到的时间值设置为零。And a processing unit, configured to set a time value obtained by timing the timer to zero when a human face is recognized in the scene image.
  9. 一种终端,其特征在于,包括处理器、输入设备、输出设备和存储器,所述处理器、输入设备、输出设备和存储器相互连接,其中,所述存储器用于存储计算机程序,所述计算机程序包括程序指令,所述处理器被配置用于调用所述程序指令,执行如权利要求1-7任一项所述的方法。A terminal, comprising: a processor, an input device, an output device, and a memory, wherein the processor, the input device, the output device, and the memory are connected to each other, wherein the memory is used to store a computer program, the computer program A program instruction is included, the processor being configured to invoke the program instructions to perform the method of any of claims 1-7.
  10. 一种计算机可读存储介质,其特征在于,所述计算机存储介质存储有计算机程序,所述计算机程序包括程序指令,所述程序指令当被处理器执行时使所述处理器执行如权利要求1-7任一项所述的方法。 A computer readable storage medium, characterized in that the computer storage medium stores a computer program, the computer program comprising program instructions, the program instructions, when executed by a processor, causing the processor to execute as claimed in claim 1. The method of any of -7.
PCT/CN2017/105361 2017-10-09 2017-10-09 Sleep control method, terminal, and computer readable medium WO2019071380A1 (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
PCT/CN2017/105361 WO2019071380A1 (en) 2017-10-09 2017-10-09 Sleep control method, terminal, and computer readable medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
PCT/CN2017/105361 WO2019071380A1 (en) 2017-10-09 2017-10-09 Sleep control method, terminal, and computer readable medium

Publications (1)

Publication Number Publication Date
WO2019071380A1 true WO2019071380A1 (en) 2019-04-18

Family

ID=66100312

Family Applications (1)

Application Number Title Priority Date Filing Date
PCT/CN2017/105361 WO2019071380A1 (en) 2017-10-09 2017-10-09 Sleep control method, terminal, and computer readable medium

Country Status (1)

Country Link
WO (1) WO2019071380A1 (en)

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN112154407A (en) * 2019-08-13 2020-12-29 深圳市大疆创新科技有限公司 Terminal control method, control terminal and movable platform
CN114510138A (en) * 2022-02-25 2022-05-17 深圳市商汤科技有限公司 Dormancy awakening method and related product

Citations (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102236407A (en) * 2011-06-29 2011-11-09 华为终端有限公司 Method for controlling state of 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
CN102662779A (en) * 2012-03-09 2012-09-12 浙江大学城市学院 Method and apparatus for preventing handheld device from locking screen automatically in use
CN102917110A (en) * 2011-08-01 2013-02-06 浪潮乐金数字移动通信有限公司 Dynamic setting method and device for standby time of display screen
CN103856614A (en) * 2012-12-04 2014-06-11 腾讯科技(深圳)有限公司 Method and device for avoiding error hibernation of mobile terminal
CN103957327A (en) * 2014-05-21 2014-07-30 上海华勤通讯技术有限公司 Automatic contextual model switching method for mobile terminal and mobile terminal
CN105892612A (en) * 2015-11-27 2016-08-24 乐视致新电子科技(天津)有限公司 Method and apparatus for powering off terminal

Patent Citations (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102236407A (en) * 2011-06-29 2011-11-09 华为终端有限公司 Method for controlling state of mobile terminal and mobile terminal
CN102917110A (en) * 2011-08-01 2013-02-06 浪潮乐金数字移动通信有限公司 Dynamic setting method and device for standby time of display screen
CN102594999A (en) * 2012-01-30 2012-07-18 郑凯 Method and system for performing adaptive mobile phone energy conservation through face identification
CN102662779A (en) * 2012-03-09 2012-09-12 浙江大学城市学院 Method and apparatus for preventing handheld device from locking screen automatically in use
CN103856614A (en) * 2012-12-04 2014-06-11 腾讯科技(深圳)有限公司 Method and device for avoiding error hibernation of mobile terminal
CN103957327A (en) * 2014-05-21 2014-07-30 上海华勤通讯技术有限公司 Automatic contextual model switching method for mobile terminal and mobile terminal
CN105892612A (en) * 2015-11-27 2016-08-24 乐视致新电子科技(天津)有限公司 Method and apparatus for powering off terminal

Cited By (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN112154407A (en) * 2019-08-13 2020-12-29 深圳市大疆创新科技有限公司 Terminal control method, control terminal and movable platform
CN112154407B (en) * 2019-08-13 2022-10-18 深圳市大疆创新科技有限公司 Terminal control method, control terminal and movable platform
CN114510138A (en) * 2022-02-25 2022-05-17 深圳市商汤科技有限公司 Dormancy awakening method and related product

Similar Documents

Publication Publication Date Title
US11762550B2 (en) Electronic device including touch sensitive display and method for managing the display
US9983767B2 (en) Apparatus and method for providing user interface based on hand-held position of the apparatus
US9813662B2 (en) Transfer to target disambiguation
CN107181858B (en) Method and terminal for displaying notification message
US20210357105A1 (en) Method and apparatus for operating functions of electronic device having flexible display
US10509530B2 (en) Method and apparatus for processing touch input
WO2019062910A1 (en) Copy and pasting method, data processing apparatus, and user device
US20190121486A1 (en) Method and apparatus for detecting touch events and performing a function in response to the detecting
US20170235694A1 (en) Data transceiving method and device
US20160026272A1 (en) Method for displaying screen in electronic device, and electronic device thereof
AU2015297122A1 (en) Electronic device operating in idle mode and method thereof
KR102294359B1 (en) Electronic device and method for controlling of notification in electronic device
CN107113374B (en) Camera start-up and illumination
US10838612B2 (en) Apparatus and method for processing drag and drop
CN107402625B (en) Touch screen scanning method and device, terminal and computer readable storage medium
CN109032727B (en) Application program starting method, application program starting device and terminal equipment
WO2019071424A1 (en) Application function control method and terminal
KR20150136801A (en) User Interface for Application and Device
US20170094219A1 (en) Method and electronic device for providing video of a specified playback time
WO2020057241A1 (en) Method and apparatus for displaying application program, and terminal device
WO2019071380A1 (en) Sleep control method, terminal, and computer readable medium
KR102305114B1 (en) Method for processing data and an electronic device thereof
CN107223226B (en) Apparatus and method for multi-touch input
CN106886600B (en) File management method and terminal
WO2019051655A1 (en) Screen brightness adjustment method, and terminal

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

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

Country of ref document: EP

Kind code of ref document: A1