CN111614841B - Alarm clock control method and device, storage medium and mobile terminal - Google Patents

Alarm clock control method and device, storage medium and mobile terminal Download PDF

Info

Publication number
CN111614841B
CN111614841B CN202010465352.XA CN202010465352A CN111614841B CN 111614841 B CN111614841 B CN 111614841B CN 202010465352 A CN202010465352 A CN 202010465352A CN 111614841 B CN111614841 B CN 111614841B
Authority
CN
China
Prior art keywords
user
alarm clock
determining
current time
calculation
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.)
Active
Application number
CN202010465352.XA
Other languages
Chinese (zh)
Other versions
CN111614841A (en
Inventor
俞斌
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Huizhou TCL Mobile Communication Co Ltd
Original Assignee
Huizhou TCL Mobile Communication Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Huizhou TCL Mobile Communication Co Ltd filed Critical Huizhou TCL Mobile Communication Co Ltd
Priority to CN202010465352.XA priority Critical patent/CN111614841B/en
Publication of CN111614841A publication Critical patent/CN111614841A/en
Application granted granted Critical
Publication of CN111614841B publication Critical patent/CN111614841B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F21/00Security arrangements for protecting computers, components thereof, programs or data against unauthorised activity
    • G06F21/30Authentication, i.e. establishing the identity or authorisation of security principals
    • G06F21/31User authentication
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06VIMAGE OR VIDEO RECOGNITION OR UNDERSTANDING
    • G06V40/00Recognition of biometric, human-related or animal-related patterns in image or video data
    • G06V40/10Human or animal bodies, e.g. vehicle occupants or pedestrians; Body parts, e.g. hands
    • G06V40/18Eye characteristics, e.g. of the iris
    • YGENERAL TAGGING OF NEW TECHNOLOGICAL DEVELOPMENTS; GENERAL TAGGING OF CROSS-SECTIONAL TECHNOLOGIES SPANNING OVER SEVERAL SECTIONS OF THE IPC; TECHNICAL SUBJECTS COVERED BY FORMER USPC CROSS-REFERENCE ART COLLECTIONS [XRACs] AND DIGESTS
    • Y02TECHNOLOGIES OR APPLICATIONS FOR MITIGATION OR ADAPTATION AGAINST CLIMATE CHANGE
    • Y02DCLIMATE CHANGE MITIGATION TECHNOLOGIES IN INFORMATION AND COMMUNICATION TECHNOLOGIES [ICT], I.E. INFORMATION AND COMMUNICATION TECHNOLOGIES AIMING AT THE REDUCTION OF THEIR OWN ENERGY USE
    • Y02D30/00Reducing energy consumption in communication networks
    • Y02D30/70Reducing energy consumption in communication networks in wireless communication networks

Abstract

The application discloses an alarm clock control method, an alarm clock control device, a storage medium and a mobile terminal, wherein the control method comprises the following steps: when alarm clock reminding is carried out, the current time is obtained, and a camera is started to shoot a user; determining the information of the calculation questions to be displayed according to the shot images and the current time; displaying the information of the calculation questions on a terminal interface so that a user inputs verification information according to the displayed information of the calculation questions; and the alarm clock reminding is turned off according to the verification information, so that the alarm clock reminding of the user can be flexibly realized according to the waking state of the user, and the reminding effect is good.

Description

Alarm clock control method and device, storage medium and mobile terminal
Technical Field
The application relates to the technical field of terminals, in particular to an alarm clock control method, an alarm clock control device, a storage medium and a mobile terminal.
Background
In daily work and life, many people have a habit of being lazy to bed, so that people generally use the terminal alarm clock.
The existing alarm clock is simple in setting, for example, a user presets alarm clock reminding time and alarm clock reminding ring, when the preset alarm clock reminding time is reached, the terminal plays the set alarm clock reminding ring to realize the alarm clock reminding function, and at the moment, the user only needs to very simply operate to close the alarm clock by pressing a button or sliding a screen and the like. The alarm clock is simple in closing mode, so that some people are not awake actually after the alarm clock is closed, and can continue to sleep, the aim of reminding a user cannot be fulfilled, and the reminding effect is poor.
Disclosure of Invention
The embodiment of the application provides an alarm clock control method, an alarm clock control device, a storage medium and a mobile terminal, which can better remind a user and have a good alarm clock reminding effect.
The embodiment of the application provides an alarm clock control method, which is applied to a mobile terminal and comprises the following steps:
when the mobile terminal carries out alarm clock reminding, the current time is obtained, and a camera is started to shoot a user;
determining the information of the calculation questions to be displayed according to the shot images and the current time;
displaying the information of the calculation questions on a terminal interface so that a user inputs verification information according to the displayed information of the calculation questions;
and closing the alarm clock prompt according to the verification information.
The embodiment of the present application further provides an alarm clock control device, which is applied to a mobile terminal, and includes:
the acquisition module is used for acquiring the current time when the mobile terminal carries out alarm clock reminding and starting the camera to shoot a user;
the determining module is used for determining the information of the calculation questions to be displayed according to the shot images and the current time;
the display module is used for displaying the information of the calculation questions on a terminal interface so as to enable a user to input verification information according to the displayed information of the calculation questions;
and the closing module is used for closing the alarm clock reminding according to the verification information.
Wherein, the calculation question information includes calculation question content and font size, and the determining module specifically includes:
a first determination unit configured to determine a face image of the user from a captured image;
a second determination unit configured to determine a font size from the face image;
a third determining unit for determining the contents of the calculation questions according to the current time,
the display module is specifically configured to: and displaying the computational problem content in the font size on a terminal interface.
Wherein the second determining unit is specifically configured to:
extracting a human eye part from the face image;
determining a user awake state according to the human eye part;
and acquiring a preset size corresponding to the waking state of the user, and taking the acquired preset size as the font size.
Wherein the second determining unit is specifically configured to:
determining a pupil area and a sclera area in the human eye portion;
determining a ratio between the pupillary area and the scleral area;
when the ratio is larger than a preset threshold value, taking the awake state as the awake state of the user;
and when the ratio is less than or equal to a preset threshold value, taking the state without waking as the state of waking of the user.
Wherein the third determining unit is specifically configured to:
acquiring the numbers corresponding to the year, month, day, hour and minute in the current time;
and generating a mathematical problem according to the number and a preset rule, and taking the mathematical problem as the content of a calculation problem.
Wherein the shutdown module is specifically configured to:
determining a verification answer corresponding to the calculation question content;
when the verification information is the verification answer, closing the alarm clock prompt;
and when the verification information is not the verification answer, increasing the reminding amplitude of the alarm clock reminding.
Wherein, this alarm clock controlling means still includes detection module for:
detecting the instantaneous angular velocity value of the mobile terminal before the acquisition module acquires the current time and starts a camera to shoot a user;
and when the instantaneous angular velocity value is greater than the preset angular velocity, triggering the acquisition module to acquire the current time, and starting a camera to shoot a user.
The embodiment of the application also provides a computer-readable storage medium, wherein a plurality of instructions are stored in the storage medium, and the instructions are suitable for being loaded by a processor to execute any one of the alarm clock control methods.
The embodiment of the application further provides a mobile terminal, which comprises a processor and a memory, wherein the processor is electrically connected with the memory, the memory is used for storing instructions and data, and the processor is used for executing the steps in any one of the alarm clock control methods.
The application provides an alarm clock control method, a device, a storage medium and a mobile terminal, which are applied to the mobile terminal, when alarm clock reminding is carried out, the current time is obtained, a camera is started to shoot a user, then calculation question information to be displayed is determined according to a shot image and the current time, the calculation question information is displayed on a terminal interface, verification information is input according to the displayed calculation question information by the user, then alarm clock reminding is closed according to the verification information, alarm clock reminding to the user can be flexibly realized according to a user waking state, and the reminding effect is good.
Drawings
The technical solution and other advantages of the present application will become apparent from the detailed description of the embodiments of the present application with reference to the accompanying drawings.
Fig. 1 is a schematic flow chart of an alarm clock control method provided in an embodiment of the present application.
Fig. 2 is a schematic diagram of an alarm clock control scenario provided in an embodiment of the present application.
Fig. 3 is another schematic flow chart of the alarm clock control method according to the embodiment of the present application.
Fig. 4 is a schematic structural diagram of an alarm clock control device provided in an embodiment of the present application.
Fig. 5 is another schematic structural diagram of an alarm clock control device provided in the embodiment of the present application.
Fig. 6 is a schematic structural diagram of a mobile terminal according to an embodiment of the present application.
Fig. 7 is another schematic structural diagram of a mobile terminal according to an embodiment of the present application.
Detailed Description
The technical solutions in the embodiments of the present application will be clearly and completely described below with reference to the drawings in the embodiments of the present application, and it is obvious that the described embodiments are only a part of the embodiments of the present application, and not all of the embodiments. All other embodiments, which can be derived by a person skilled in the art from the embodiments given herein without making any creative effort, shall fall within the protection scope of the present application.
The embodiment of the application provides an alarm clock control method, an alarm clock control device, a storage medium and a mobile terminal.
As shown in fig. 1 and fig. 2, fig. 1 is a schematic flow chart of an alarm clock control method provided in an embodiment of the present application, where the alarm clock control method is applied to a mobile terminal, and the mobile terminal may be a smartphone, an iPad, or other device having a camera, and a specific flow may be as follows:
s101, when the mobile terminal carries out alarm clock reminding, the current time is obtained, and a camera is started to shoot a user.
When the set alarm clock time is reached, the mobile terminal can carry out alarm clock reminding. The alarm clock reminding mode can be set manually, such as alarm clock, vibration and the like. For example, in fig. 2, when 7:00 am is reached, the alarm clock alarms, and the camera is activated.
It should be pointed out that, when avoiding carrying out alarm clock and reminding, the user is not before mobile terminal body, leads to long-time start-up camera to cause the electric quantity extravagant, can detect the user before the start-up and be not at one's side, wherein, the detection mode can have a plurality ofly, for example can detect whether there is shelter from the thing in the terminal place ahead field of vision through infrared sensor, some then very big probably user is at one's side, perhaps detects through the motion condition at terminal.
For example, before the step "obtaining the current time and starting the camera to shoot the user" is executed, the alarm clock control method further includes:
detecting an instantaneous angular velocity value of the mobile terminal;
and when the instantaneous angular velocity value is greater than the preset angular velocity, executing the current time acquisition, and starting the camera to shoot the user.
Wherein the instantaneous angular velocity value may be detected by a sensor such as a gyroscope. The preset angular velocity value is mainly used for defining whether the mobile terminal is in a moving state or a static state, and can be set manually, generally, when the instantaneous angular velocity value is larger than the preset angular velocity value, it indicates that a user is moving the mobile terminal, for example, the user picks up a mobile phone to prepare to close an alarm clock, at this time, a camera starting operation can be executed, and when the instantaneous angular velocity value is smaller than or equal to the preset angular velocity value, it indicates that the user does not move the mobile terminal, at this time, the user is most likely not near the terminal equipment, and the camera does not need to be started.
And S102, determining the information of the calculation questions to be displayed according to the shot image and the current time.
For example, referring to fig. 3, the calculation question information includes calculation question content and font size, and the step S102 may specifically include:
and S1021, determining the face image of the user from the shot image.
Wherein, a face image can be determined from the captured image by a face recognition technique, the face image being mainly used for analyzing whether the user is awake.
And S1022, determining the font size according to the face image.
For example, the step S1022 specifically includes:
extracting a human eye part from the face image;
determining a user awake state based on the eye portion;
and acquiring a preset size corresponding to the waking state of the user, and taking the acquired preset size as a font size.
The waking state of the user can be determined by analyzing information such as the degree of opening of the eyelid and/or the size of the human eye, and the waking state of the user may only include two waking states and non-waking states, or may be divided into a plurality of state levels, for example, from high to low, the state levels are respectively fully waking, semi waking, and not waking at all. Different preset sizes can be set in advance in association with different user waking states, the font size can be displayed in a normal font size in the waking state, and the lower the waking level is, the smaller the font size can be displayed to enable the user to open eyes as soon as possible to achieve the purpose of waking.
For example, the step of "determining the waking state of the user according to the eye part" may specifically include:
determining a pupil area and a sclera area in the human eye portion;
determining a ratio between the pupil area and the sclera area;
when the ratio is larger than a preset threshold value, taking the awake state as the awake state of the user;
and when the ratio is less than or equal to a preset threshold value, taking the state of not waking as the state of waking of the user.
The human eyes comprise irises and sclera, wherein the sclera is white, the irises are black eyeballs surrounded by the white, the pupils are open holes in the middles of the irises and are equivalent to eyeball eyes, and light enters the eyes from the pupils. Generally, when the eye is irradiated with intense light, the miotic muscle of the pupil contracts and the pupil contracts, and when the light is weak, the mydriatic muscle of the pupil expands and the pupil dilates.
Specifically, although the eyes of different people are different in size, the larger the eyes are, the larger the areas of the iris and the sclera are, the ratio of the areas of the iris and the sclera is not so different, and considering that the size of the pupil is related to the light incidence, the light incidence is related to the eye opening condition, the eye opening condition is related to the waking state of the user, and the waking state of the user can be analyzed by calculating the ratio of the area of the pupil to the area of the sclera.
And S1023, determining the contents of the calculation questions according to the current time.
The contents of the calculation questions may be in the form of simple mathematical questions, such as any one of addition, subtraction, multiplication and division, or any combination thereof, or may be calculation questions based on other complex algorithms.
For example, the step S1023 may specifically include:
acquiring the corresponding numbers of the middle year, month, day, hour and minute of the current time;
and generating a mathematical problem according to the number and a preset rule, and taking the mathematical problem as the content of the calculation problem.
The mathematical topic may be a summation topic, that is, the numbers corresponding to the year, month, day, hour and minute in the current time may be summed by a summation formula, for example, the generated mathematical topic may be 2011+10+31+18+ 18? Or, sum the mantissa numbers corresponding to the year, month, day, hour and minute in the current time, for example, the generated mathematical title may be 1+0+1+8+ 8? .
And S103, displaying the information of the calculation questions on a terminal interface so that a user can input verification information according to the displayed information of the calculation questions.
For example, in fig. 3, when the calculation question information includes calculation question content and font size, the step S103 may specifically include: and displaying the contents of the calculation questions in the font size on a terminal interface.
The font size is related to the waking state of the user, and the font size displayed on the screen is smaller when the user does not wake up, so that the user can input the verification information by opening eyes, and the waking speed of the user is accelerated.
In addition, in order to further increase the waking speed of the user, when displaying the content of the computational topic, not only the font size can be controlled, but also the screen display brightness can be controlled, that is, the information of the computational topic can also include the display brightness, and after determining the waking state of the user according to the human eye part, the method can further include:
acquiring the brightness of the current ambient light;
determining display brightness according to the current ambient light brightness and the waking state of the user;
should show this calculation subject content with this font size on terminal interface, include: and displaying the contents of the calculation questions on a terminal interface by the font size and the display brightness.
When the user is awake, the display brightness may be directly determined according to the current ambient light brightness, for example, a preset brightness matched with the current ambient light brightness is obtained as the display brightness, and generally, in an awake state, the brighter the current ambient light brightness is, the brighter the display brightness may be, and the display brightness may be in direct proportion to the current ambient light brightness. When the user is not awake, for making the user can be awake fast, can acquire the luminance of predetermineeing that unmatched with current ambient light luminance as the display brightness, usually under the state of not waking up, the display brightness can be inversely proportional with current ambient light luminance, for example when ambient light is brighter, the display brightness can be darker, when ambient light is darker, the display brightness can be brighter.
And S104, closing the alarm clock prompt according to the verification information.
For example, in fig. 3, the step S104 may specifically include:
determining a verification answer corresponding to the content of the calculation question;
when the verification information is the verification answer, closing the alarm clock prompt;
and when the verification information is not the verification answer, increasing the reminding amplitude of the alarm clock reminding.
When the content of the calculation questions is displayed on the screen of the terminal, the user needs to input the verification answers within a certain time according to the content of the calculation questions, for example, is the content of the calculation questions 1+0+1+8+ 8? When the user inputs the verification answer, the verification is successful, the user is very likely to be awake, and the alarm clock can be turned off.
According to the alarm clock control method, the alarm clock control method is applied to the mobile terminal, when alarm clock reminding is carried out, the current time is obtained, the camera is started to shoot a user, then calculation question information to be displayed is determined according to shot images and the current time, the calculation question information is displayed on a terminal interface, the user inputs verification information according to the displayed calculation question information, then alarm clock reminding is closed according to the verification information, alarm clock reminding of the user can be flexibly achieved according to the waking state of the user, and the reminding effect is good.
According to the method described in the above embodiment, this embodiment will be further described from the perspective of an alarm clock control device, which may be specifically implemented as an independent entity or integrated in a mobile terminal, where the mobile terminal may be a smartphone, an iPad, or other device having a camera.
Referring to fig. 4, fig. 4 specifically describes an alarm clock control device provided in the embodiment of the present application, which is applied to a mobile terminal, and the alarm clock control device may include: an obtaining module 10, a determining module 20, a displaying module 30 and a closing module 40, wherein:
(1) acquisition module 10
The obtaining module 10 is configured to obtain current time when the mobile terminal performs alarm clock reminding, and start the camera to shoot a user.
When the set alarm clock time is reached, the mobile terminal can carry out alarm clock reminding. The alarm clock reminding mode can be set manually, such as alarm clock, vibration and the like. For example, in FIG. 2, when the morning 7:00 hours is reached, the alarm clock alarms, and the camera is activated.
It should be pointed out that, when avoiding carrying out alarm clock and reminding, the user is not before mobile terminal body, leads to long-time start-up camera to cause the electric quantity extravagant, can detect the user before the start-up and be not at one's side, wherein, the detection mode can have a plurality ofly, for example can detect whether there is shelter from the thing in the terminal place ahead field of vision through infrared sensor, some then very big probably user is at one's side, perhaps detects through the motion condition at terminal.
For example, referring to fig. 5, the alarm clock control device further includes a detection module 50 for:
before the acquisition module 10 acquires the current time and starts a camera to shoot a user, detecting an instantaneous angular velocity value of the mobile terminal;
and when the instantaneous angular velocity value is greater than the preset angular velocity, triggering the acquisition module to execute the acquisition of the current time, and starting the camera to shoot the user.
The instantaneous angular velocity value may be detected by a sensor such as a gyroscope. The preset angular velocity value is mainly used for defining whether the mobile terminal is in a moving state or a static state, and can be set manually, generally, when the instantaneous angular velocity value is larger than the preset angular velocity value, it indicates that a user is moving the mobile terminal, for example, the user picks up a mobile phone to prepare to close an alarm clock, at this time, a camera starting operation can be executed, and when the instantaneous angular velocity value is smaller than or equal to the preset angular velocity value, it indicates that the user does not move the mobile terminal, at this time, the user is most likely not near the terminal equipment, and the camera does not need to be started.
(2) Determination module 20
And the determining module 20 is configured to determine the information of the computational problem to be displayed according to the captured image and the current time.
For example, the calculation question information includes calculation question content and font size, and the determining module 20 specifically includes:
a first determination unit 21 for determining the face image of the user from the captured image.
Wherein, a face image can be determined from the captured image by a face recognition technique, the face image being mainly used for analyzing whether the user is awake.
A second determining unit 22 for determining a font size from the face image.
For example, the second determining unit 22 is specifically configured to:
extracting a human eye part from the face image;
determining the waking state of the user according to the eye part;
and acquiring a preset size corresponding to the waking state of the user, and taking the acquired preset size as the font size.
The awake state of the user can be determined by analyzing information such as the degree of opening of the eyelids and/or the size of the human eyes, and the awake state of the user can only comprise two awake states and two not awake states, and can also be divided into a plurality of state levels, for example, from high to low, the states are respectively completely awake, semi-awake, completely not awake and the like. Different preset sizes can be set in advance in association with different user waking states, the font size can be displayed in a normal font size in the waking state, and the lower the waking level is, the smaller the font size can be displayed to enable the user to open eyes as soon as possible to achieve the purpose of waking.
For example, the second determining unit 22 is specifically configured to:
determining a pupil area and a sclera area in the human eye portion;
determining a ratio between the pupil area and the sclera area;
when the ratio is larger than a preset threshold value, taking the awake state as the awake state of the user;
and when the ratio is less than or equal to a preset threshold value, taking the state of not waking as the state of waking of the user.
The human eyes comprise irises and sclera, wherein the sclera is white, the irises are black eyeballs surrounded by the white, the pupils are open holes in the middles of the irises and are equivalent to eyeball eyes, and light enters the eyes from the pupils. In general, when the eye is irradiated with strong light, the miotic muscle of the pupil contracts to contract the pupil, and when the light is weak, the mydriatic muscle of the pupil expands to dilate the pupil.
Specifically, although the eyes of different people are different in size, the larger the eyes are, the larger the areas of the iris and the sclera are, the ratio of the areas of the iris and the sclera is not so different, and considering that the size of the pupil is related to the light incidence, the light incidence is related to the eye opening condition, the eye opening condition is related to the waking state of the user, and the waking state of the user can be analyzed by calculating the ratio of the area of the pupil to the area of the sclera.
A third determining unit 23, configured to determine the contents of the computational questions according to the current time.
The contents of the calculation questions may be in the form of simple mathematical questions, such as any one of addition, subtraction, multiplication and division, or any combination thereof, or may be calculation questions based on other complex algorithms.
For example, the third determining unit 23 is specifically configured to:
acquiring the corresponding numbers of the middle year, month, day, hour and minute of the current time;
and generating a mathematical problem according to the number and a preset rule, and taking the mathematical problem as the content of the calculation problem.
The mathematical topic may be a summation topic, that is, the numbers corresponding to the year, month, day, hour and minute in the current time may be summed by a summation formula, for example, the generated mathematical topic may be 2011+10+31+18+ 18? Or, taking and summing the mantissa numbers corresponding to the year, month, day, hour and minute in the current time, for example, the generated mathematical title may be 1+0+1+8+ 8? .
(3) Display module 30
The display module 30 is configured to display the information of the calculation questions on the terminal interface, so that the user inputs the verification information according to the displayed information of the calculation questions.
For example, when the computational topic information includes computational topic content and font size, the display module 30 is specifically configured to: and displaying the contents of the calculation questions in the font size on a terminal interface.
The font size is related to the waking state of the user, and the font size displayed on the screen is smaller when the user does not wake up, so that the user can input the verification information by opening eyes, and the waking speed of the user is accelerated.
In addition, to further increase the waking speed of the user, when displaying the contents of the computational topic, not only the font size but also the screen display brightness may be controlled, that is, the information of the computational topic may further include the display brightness, and after determining the waking state of the user according to the human eye part, the second determining unit 22 is further configured to:
acquiring the brightness of the current ambient light;
determining display brightness according to the current ambient light brightness and the waking state of the user;
at this time, the display module 30 is specifically configured to: and displaying the computational subject content on a terminal interface with the font size and the display brightness.
When the user is awake, the display brightness may be directly determined according to the current ambient light brightness, for example, a preset brightness matched with the current ambient light brightness is obtained as the display brightness, and generally, in an awake state, the brighter the current ambient light brightness is, the brighter the display brightness may be, and the display brightness may be in direct proportion to the current ambient light brightness. When the user is not awake, for making the user can be awake fast, can acquire the unmatched luminance of predetermineeing with current ambient light luminance as showing luminance, usually under the state of not waking up, show luminance can be with current ambient light luminance inverse ratio, for example when ambient light is brighter, show luminance can be darker, when ambient light is darker, show luminance can be brighter.
(4) Shutdown module 40
And a closing module 40, configured to close the alarm clock reminder according to the verification information.
Wherein the shutdown module is specifically configured to:
determining a verification answer corresponding to the content of the calculation question;
when the verification information is the verification answer, closing the alarm clock prompt;
and when the verification information is not the verification answer, increasing the reminding amplitude of the alarm clock reminding.
When the content of the calculation questions is displayed on the screen of the terminal, the user needs to input the verification answers within a certain time according to the content of the calculation questions, for example, is the content of the calculation questions 1+0+1+8+ 8? When the user inputs the verification answer, the verification is successful, the user is very likely to be awake, and the alarm clock can be turned off.
In a specific implementation, the above units may be implemented as independent entities, or may be combined arbitrarily to be implemented as the same or several entities, and the specific implementation of the above units may refer to the foregoing method embodiments, which are not described herein again.
It can be known from the foregoing that, the alarm clock control device provided in this embodiment is applied to a mobile terminal, when performing alarm clock reminding, obtain the current time through obtaining module 10, and start the camera to shoot the user, later confirm module 20 confirms the calculation question information to be displayed according to shooting image and current time, display module 30 displays the calculation question information on the terminal interface, so that the user inputs verification information according to the calculation question information that shows, later, close module 40 and close alarm clock reminding according to verification information, thereby can realize the alarm clock reminding to the user according to user's waking state is nimble, it is effectual to remind.
Correspondingly, the embodiment of the invention also provides an alarm clock control system, which comprises any alarm clock control device provided by the embodiment of the invention, and the alarm clock control device can be integrated in the mobile terminal.
When the mobile terminal carries out alarm clock reminding, the current time can be obtained, and the camera is started to shoot a user; determining the information of the calculation questions to be displayed according to the shot image and the current time; displaying the information of the calculation questions on a terminal interface so that a user inputs verification information according to the displayed information of the calculation questions; and closing the alarm clock prompt according to the verification information.
The specific implementation of each device can be referred to the previous embodiment, and is not described herein again.
Since the alarm clock control system may include any alarm clock control device provided in the embodiments of the present invention, the beneficial effects that can be achieved by any alarm clock control device provided in the embodiments of the present invention can be achieved, which are detailed in the foregoing embodiments and will not be described herein again.
In addition, the embodiment of the application also provides a terminal device, and the terminal device can be a smart phone, a smart vehicle and other devices. As shown in fig. 6, the terminal device 200 includes a processor 201 and a memory 202. The processor 201 is electrically connected to the memory 202.
The processor 201 is a control center of the terminal device 200, connects various parts of the entire terminal device by using various interfaces and lines, and performs various functions of the terminal device and processes data by running or loading an application program stored in the memory 202 and calling data stored in the memory 202, thereby performing overall monitoring of the terminal device.
In this embodiment, the processor 201 in the terminal device 200 loads instructions corresponding to processes of one or more application programs into the memory 202 according to the following steps, and the processor 201 runs the application programs stored in the memory 202, thereby implementing various functions:
when the mobile terminal carries out alarm clock reminding, the current time is obtained, and a camera is started to shoot a user;
determining the information of the calculation questions to be displayed according to the shot image and the current time;
displaying the information of the calculation questions on a terminal interface so that a user inputs verification information according to the displayed information of the calculation questions;
and closing the alarm clock prompt according to the verification information.
Fig. 7 shows a specific structure block diagram of a terminal device provided in an embodiment of the present invention, where the terminal device may be used to implement the alarm clock control method provided in the foregoing embodiment. The terminal device 300 may be a smart phone or a tablet computer.
The RF circuit 310 is used for receiving and transmitting electromagnetic waves, and performing interconversion between the electromagnetic waves and electrical signals, thereby communicating with a communication network or other devices. RF circuitry 310 may include various existing circuit elements for performing these functions, such as an antenna, a radio frequency transceiver, a digital signal processor, an encryption/decryption chip, a Subscriber Identity Module (SIM) card, memory, and so forth. RF circuit 310 may communicate with various networks such as the internet, an intranet, a wireless network, or with other devices over a wireless network. The wireless network may comprise a cellular telephone network, a wireless local area network, or a metropolitan area network. The Wireless network may use various Communication standards, protocols, and technologies, including, but not limited to, Global System for Mobile Communication (GSM), Enhanced Data GSM Environment (EDGE), Wideband Code Division Multiple Access (WCDMA), Code Division Multiple Access (CDMA), Time Division Multiple Access (TDMA), Wireless Fidelity (Wi-Fi) (e.g., IEEE802.11a, IEEE802.11 b, IEEE 802.2.access, and/or IEEE802.11 n), Voice over Internet Protocol (VoIP), world wide Internet Microwave Access (Microwave for Wireless Communication), other suitable protocols for short message service (Max), and any other suitable protocols, and may even include those protocols that have not yet been developed.
The memory 320 may be configured to store software programs and modules, such as program instructions/modules corresponding to the automatic light supplement system and method for front-facing camera photographing in the foregoing embodiments, and the processor 380 executes various functional applications and data processing by running the software programs and modules stored in the memory 320, so as to implement the function of automatic light supplement for front-facing camera photographing. The memory 320 may include high speed random access memory and may also include non-volatile memory, such as one or more magnetic storage devices, flash memory, or other non-volatile solid-state memory. In some examples, memory 320 may further include memory located remotely from processor 380, which may be connected to terminal device 300 via a network. Examples of such networks include, but are not limited to, the internet, intranets, local area networks, mobile communication networks, and combinations thereof.
The input unit 330 may be used to receive input numeric or character information and generate keyboard, mouse, joystick, optical or trackball signal inputs related to user settings and function control. In particular, the input unit 330 may include a touch-sensitive surface 331 as well as other input devices 332. The touch-sensitive surface 331, also referred to as a touch screen or touch pad, may collect touch operations by a user on or near the touch-sensitive surface 331 (e.g., operations by a user on or near the touch-sensitive surface 331 using a finger, a stylus, or any other suitable object or attachment), and drive the corresponding connection device according to a predetermined program. Alternatively, the touch sensitive surface 331 may comprise two parts, a touch detection means and a touch controller. The touch detection device detects the touch direction of a user, detects a signal brought by touch operation and transmits the signal to the touch controller; the touch controller receives touch information from the touch sensing device, converts the touch information into touch point coordinates, sends the touch point coordinates to the processor 380, and can receive and execute commands sent by the processor 380. In addition, the touch-sensitive surface 331 may be implemented using various types of resistive, capacitive, infrared, and surface acoustic waves. The input unit 330 may comprise other input devices 332 in addition to the touch sensitive surface 331. In particular, other input devices 332 may include, but are not limited to, one or more of a physical keyboard, function keys (such as volume control keys, switch keys, etc.), a trackball, a mouse, a joystick, and the like.
The display unit 340 may be used to display information input by or provided to the user and various graphic user interfaces of the terminal apparatus 300, which may be configured by graphics, text, icons, video, and any combination thereof. The Display unit 340 may include a Display panel 341, and optionally, the Display panel 341 may be configured in the form of an LCD (Liquid Crystal Display), an OLED (Organic Light-Emitting Diode), or the like. Further, touch-sensitive surface 331 may overlay display panel 341, and when touch-sensitive surface 331 detects a touch operation thereon or thereabout, communicate to processor 380 to determine the type of touch event, and processor 380 then provides a corresponding visual output on display panel 341 in accordance with the type of touch event. Although in fig. 7 touch-sensitive surface 331 and display panel 341 are implemented as two separate components for input and output functions, in some embodiments touch-sensitive surface 331 and display panel 341 may be integrated for input and output functions.
The terminal device 300 may also include at least one sensor 350, such as a light sensor, a motion sensor, and other sensors. Specifically, the light sensor may include an ambient light sensor that may adjust the brightness of the display panel 341 according to the brightness of ambient light, and a proximity sensor that may turn off the display panel 341 and/or the backlight when the terminal device 300 is moved to the ear. As one of the motion sensors, the gravity acceleration sensor can detect the magnitude of acceleration in each direction (generally, three axes), can detect the magnitude and direction of gravity when the mobile phone is stationary, and can be used for applications of recognizing the posture of the mobile phone (such as horizontal and vertical screen switching, related games, magnetometer posture calibration), vibration recognition related functions (such as pedometer and tapping), and the like; as for other sensors such as a gyroscope, a barometer, a hygrometer, a thermometer, and an infrared sensor, which may be further configured in the terminal device 300, further description is omitted here.
Audio circuitry 360, speaker 361, microphone 362 may provide an audio interface between a user and terminal device 300. The audio circuit 360 may transmit the electrical signal converted from the received audio data to the speaker 361, and the audio signal is converted by the speaker 361 and output; on the other hand, the microphone 362 converts the collected sound signal into an electrical signal, which is received by the audio circuit 360 and converted into audio data, which is then processed by the audio data output processor 380 and then transmitted to, for example, another terminal via the RF circuit 310, or the audio data is output to the memory 320 for further processing. The audio circuit 360 may also include an earbud jack to provide communication of peripheral headphones with the terminal device 300.
The terminal device 300 may assist the user in e-mail, web browsing, streaming media access, etc. through the transmission module 370 (e.g., Wi-Fi module), which provides the user with wireless broadband internet access. Although fig. 7 shows the transmission module 370, it is understood that it does not belong to the essential constitution of the terminal device 300, and may be omitted entirely as needed within the scope not changing the essence of the invention.
The processor 380 is a control center of the terminal device 300, connects various parts of the entire mobile phone using various interfaces and lines, and performs various functions of the terminal device 300 and processes data by running or executing software programs and/or modules stored in the memory 320 and calling data stored in the memory 320, thereby performing overall monitoring of the mobile phone. Optionally, processor 380 may include one or more processing cores; in some embodiments, processor 380 may integrate an application processor, which primarily handles operating systems, user interfaces, applications, etc., and a modem processor, which primarily handles wireless communications. It will be appreciated that the modem processor described above may not be integrated into processor 380.
Terminal device 300 also includes a power supply 390 (e.g., a battery) for powering the various components, which in some embodiments may be logically coupled to processor 380 via a power management system to manage charging, discharging, and power consumption management functions via the power management system. The power supply 190 may also include any component including one or more of a dc or ac power source, a recharging system, a power failure detection circuit, a power converter or inverter, a power status indicator, and the like.
Although not shown, the terminal device 300 may further include a camera (e.g., a front camera, a rear camera), a bluetooth module, and the like, which are not described in detail herein. Specifically, in this embodiment, the display unit of the terminal device is a touch screen display, the terminal device further includes a memory, and one or more programs, where the one or more programs are stored in the memory and configured to be executed by the one or more processors, and the one or more programs include instructions for:
when the mobile terminal carries out alarm clock reminding, the current time is obtained, and a camera is started to shoot a user;
determining the information of the calculation questions to be displayed according to the shot image and the current time;
displaying the information of the calculation questions on a terminal interface so that a user inputs verification information according to the displayed information of the calculation questions;
and closing the alarm clock prompt according to the verification information.
In specific implementation, the above modules may be implemented as independent entities, or may be combined arbitrarily to be implemented as the same or several entities, and specific implementation of the above modules may refer to the foregoing method embodiments, which are not described herein again.
It will be understood by those skilled in the art that all or part of the steps of the methods of the above embodiments may be performed by instructions or by associated hardware controlled by the instructions, which may be stored in a computer readable storage medium and loaded and executed by a processor. To this end, the present invention provides a storage medium, in which a plurality of instructions are stored, where the instructions can be loaded by a processor to execute the steps in any one of the alarm clock control methods provided by the embodiments of the present invention.
Wherein the storage medium may include: read Only Memory (ROM), Random Access Memory (RAM), magnetic or optical disks, and the like.
Since the instructions stored in the storage medium can execute the steps in any alarm clock control method provided in the embodiments of the present invention, beneficial effects that can be achieved by any alarm clock control method provided in the embodiments of the present invention can be achieved, which are detailed in the foregoing embodiments and will not be described herein again.
The above operations can be implemented in the foregoing embodiments, and are not described in detail herein.
In summary, although the present application has been described with reference to the preferred embodiments, the above-described preferred embodiments are not intended to limit the present application, and those skilled in the art can make various changes and modifications without departing from the spirit and scope of the present application, so that the scope of the present application shall be determined by the appended claims.

Claims (8)

1. An alarm clock control method is applied to a mobile terminal and comprises the following steps:
when the mobile terminal carries out alarm clock reminding, the current time is obtained, and a camera is started to shoot a user;
determining the information of the calculation questions to be displayed according to the shot images and the current time, wherein the information of the calculation questions to be displayed comprises the following steps: determining a face image of the user from the captured image; determining font size according to the face image; determining the content of a calculation question according to the current time;
wherein said determining a font size from said facial image comprises: extracting a human eye part from the face image; determining a user awake state according to the human eye part; acquiring a preset size corresponding to the waking state of the user, and taking the acquired preset size as a font size, wherein the font size is related to the waking state of the user, and the font size displayed on a screen is smaller when the user does not wake up;
displaying the contents of the calculation questions in the font sizes on a terminal interface so that a user inputs verification information according to the displayed contents of the calculation questions;
and closing the alarm clock prompt according to the verification information.
2. Alarm clock control method according to claim 1, wherein said determining a user awake state from said eye portion comprises:
determining a pupil area and a sclera area in the human eye portion;
determining a ratio between the pupillary area and the scleral area;
when the ratio is larger than a preset threshold value, taking the awake state as the awake state of the user;
and when the ratio is less than or equal to a preset threshold value, taking the state without waking as the state of waking of the user.
3. The alarm clock control method according to claim 1, wherein the determining of the contents of the computational questions according to the current time includes:
acquiring the numbers corresponding to the year, month, day, hour and minute in the current time;
and generating a mathematical problem according to the number and a preset rule, and taking the mathematical problem as the content of a calculation problem.
4. The alarm clock control method according to claim 1, wherein the turning off the alarm clock reminder according to the verification information comprises:
determining a verification answer corresponding to the calculation question content;
when the verification information is the verification answer, closing the alarm clock prompt;
and when the verification information is not the verification answer, increasing the reminding amplitude of the alarm clock reminding.
5. The alarm clock control method according to any one of claims 1-4, wherein before obtaining the current time and starting the camera to shoot the user, the method further comprises:
detecting an instantaneous angular velocity value of the mobile terminal;
and when the instantaneous angular velocity value is greater than the preset angular velocity, executing the current time acquisition, and starting a camera to shoot the user.
6. The utility model provides an alarm clock controlling means which characterized in that is applied to mobile terminal, includes:
the acquisition module is used for acquiring the current time when the mobile terminal carries out alarm clock reminding and starting the camera to shoot a user;
a determining module, configured to determine, according to the captured image and the current time, calculation problem information to be displayed, where the determining module includes:
a first determination unit configured to determine a face image of the user from a captured image;
the second determining unit is configured to determine a font size according to the face image, and specifically includes: extracting a human eye part from the face image; determining a user awake state according to the human eye part; acquiring a preset size corresponding to the waking state of the user, and taking the acquired preset size as a font size, wherein the font size is related to the waking state of the user, and the font size displayed on a screen is smaller when the user does not wake up;
a third determining unit, configured to determine the contents of the calculation questions according to the current time;
the display module is used for displaying the contents of the computational questions in the font sizes on a terminal interface so that a user can input verification information according to the displayed contents of the computational questions;
and the closing module is used for closing the alarm clock reminding according to the verification information.
7. A computer-readable storage medium having stored thereon a plurality of instructions adapted to be loaded by a processor to perform the alarm clock control method of any of claims 1 to 5.
8. A mobile terminal, characterized in that it comprises a processor and a memory, the processor is electrically connected with the memory, the memory is used for storing instructions and data, the processor is used for executing the steps of the alarm clock control method according to any one of claims 1 to 5.
CN202010465352.XA 2020-05-28 2020-05-28 Alarm clock control method and device, storage medium and mobile terminal Active CN111614841B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202010465352.XA CN111614841B (en) 2020-05-28 2020-05-28 Alarm clock control method and device, storage medium and mobile terminal

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202010465352.XA CN111614841B (en) 2020-05-28 2020-05-28 Alarm clock control method and device, storage medium and mobile terminal

Publications (2)

Publication Number Publication Date
CN111614841A CN111614841A (en) 2020-09-01
CN111614841B true CN111614841B (en) 2022-07-08

Family

ID=72201665

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202010465352.XA Active CN111614841B (en) 2020-05-28 2020-05-28 Alarm clock control method and device, storage medium and mobile terminal

Country Status (1)

Country Link
CN (1) CN111614841B (en)

Families Citing this family (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN112671623B (en) * 2021-03-16 2021-08-31 深圳市火乐科技发展有限公司 Projection-based wake-up method and device, projection equipment and computer storage medium

Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102467088A (en) * 2010-11-16 2012-05-23 深圳富泰宏精密工业有限公司 Face recognition alarm clock and method for wakening user by face recognition alarm clock
US8339259B1 (en) * 2009-06-16 2012-12-25 Sprint Communications Company L.P. System and method for setting an alarm by a third party
CN103561177A (en) * 2013-11-13 2014-02-05 广东欧珀移动通信有限公司 Method and device for setting alarm clock in mobile terminal
CN105635492A (en) * 2016-03-31 2016-06-01 北京金山安全软件有限公司 Method and device for realizing alarm clock in electronic equipment and electronic equipment
CN110765911A (en) * 2019-10-14 2020-02-07 武汉虹识技术有限公司 Alarm clock turning-off method and device
CN111124560A (en) * 2019-11-08 2020-05-08 宇龙计算机通信科技(深圳)有限公司 Alarm clock closing method and device, storage medium and terminal

Family Cites Families (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103377643B (en) * 2012-04-26 2017-02-15 富泰华工业(深圳)有限公司 System and method for adjusting fonts
CN102821207B (en) * 2012-08-15 2014-04-16 小米科技有限责任公司 Implementation method for alarm clock under shutdown state and mobile terminal
CN104699387A (en) * 2015-03-17 2015-06-10 钟伟权 Screen font scaling automatic adjustment method and system
CN105718172A (en) * 2016-01-18 2016-06-29 广东小天才科技有限公司 Alarm bell control method and alarm clock control device
CN107465803B (en) * 2016-06-02 2021-05-04 荣耀终端有限公司 Intelligent reminding method, terminal, wearable device and system

Patent Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US8339259B1 (en) * 2009-06-16 2012-12-25 Sprint Communications Company L.P. System and method for setting an alarm by a third party
CN102467088A (en) * 2010-11-16 2012-05-23 深圳富泰宏精密工业有限公司 Face recognition alarm clock and method for wakening user by face recognition alarm clock
CN103561177A (en) * 2013-11-13 2014-02-05 广东欧珀移动通信有限公司 Method and device for setting alarm clock in mobile terminal
CN105635492A (en) * 2016-03-31 2016-06-01 北京金山安全软件有限公司 Method and device for realizing alarm clock in electronic equipment and electronic equipment
CN110765911A (en) * 2019-10-14 2020-02-07 武汉虹识技术有限公司 Alarm clock turning-off method and device
CN111124560A (en) * 2019-11-08 2020-05-08 宇龙计算机通信科技(深圳)有限公司 Alarm clock closing method and device, storage medium and terminal

Also Published As

Publication number Publication date
CN111614841A (en) 2020-09-01

Similar Documents

Publication Publication Date Title
CN107767839B (en) Brightness adjusting method and related product
CN108803896B (en) Method, device, terminal and storage medium for controlling screen
CN109558053A (en) A kind of method, mobile terminal and computer readable storage medium for adjusting screen and showing
CN107734617A (en) Closing application program method, apparatus, storage medium and electronic equipment
CN108135033B (en) Bluetooth connection method and mobile terminal
CN104657057A (en) Terminal waking method and device
CN110007758B (en) Terminal control method and terminal
CN109683703A (en) A kind of display control method, terminal and computer readable storage medium
CN108762472A (en) Wearable device control method, wearable device and computer readable storage medium
CN107786811B (en) A kind of photographic method and mobile terminal
CN109561213A (en) A kind of eyeshield mode control method, terminal and computer readable storage medium
CN107566643A (en) Information processing method, device, storage medium and electronic equipment
CN109461124A (en) A kind of image processing method and terminal device
EP4206983A1 (en) Fingerprint identification method and electronic device
CN109257497B (en) Eye protection mode opening control method, foldable double-sided screen terminal and storage medium
CN111445413A (en) Image processing method, image processing device, electronic equipment and storage medium
CN109660654A (en) A kind of eyeshield based reminding method, flexible screen terminal and computer readable storage medium
CN110225196B (en) Terminal control method and terminal equipment
CN110013260B (en) Emotion theme regulation and control method, equipment and computer-readable storage medium
CN109493821B (en) Screen brightness adjusting method and device and storage medium
CN111357006A (en) Fatigue prompting method and terminal
KR102163996B1 (en) Apparatus and Method for improving performance of non-contact type recognition function in a user device
CN110519443B (en) Screen lightening method and mobile terminal
CN113255396A (en) Training method and device of image processing model, and image processing method and device
CN111614841B (en) Alarm clock control method and device, storage medium and mobile terminal

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
GR01 Patent grant
GR01 Patent grant