CN110401775B - Alarm clock setting method, alarm clock setting device and mobile terminal - Google Patents
Alarm clock setting method, alarm clock setting device and mobile terminal Download PDFInfo
- Publication number
- CN110401775B CN110401775B CN201910687704.3A CN201910687704A CN110401775B CN 110401775 B CN110401775 B CN 110401775B CN 201910687704 A CN201910687704 A CN 201910687704A CN 110401775 B CN110401775 B CN 110401775B
- Authority
- CN
- China
- Prior art keywords
- mobile terminal
- face image
- alarm clock
- user
- preset
- 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
Links
Images
Classifications
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F21/00—Security arrangements for protecting computers, components thereof, programs or data against unauthorised activity
- G06F21/30—Authentication, i.e. establishing the identity or authorisation of security principals
- G06F21/31—User authentication
- G06F21/32—User authentication using biometric data, e.g. fingerprints, iris scans or voiceprints
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F3/00—Input arrangements for transferring data to be processed into a form capable of being handled by the computer; Output arrangements for transferring data from processing unit to output unit, e.g. interface arrangements
- G06F3/12—Digital output to print unit, e.g. line printer, chain printer
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04M—TELEPHONIC COMMUNICATION
- H04M1/00—Substation equipment, e.g. for use by subscribers
- H04M1/72—Mobile telephones; Cordless telephones, i.e. devices for establishing wireless links to base stations without route selection
- H04M1/724—User interfaces specially adapted for cordless or mobile telephones
- H04M1/72448—User interfaces specially adapted for cordless or mobile telephones with means for adapting the functionality of the device according to specific conditions
- H04M1/72451—User interfaces specially adapted for cordless or mobile telephones with means for adapting the functionality of the device according to specific conditions according to schedules, e.g. using calendar applications
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04M—TELEPHONIC COMMUNICATION
- H04M1/00—Substation equipment, e.g. for use by subscribers
- H04M1/72—Mobile telephones; Cordless telephones, i.e. devices for establishing wireless links to base stations without route selection
- H04M1/724—User interfaces specially adapted for cordless or mobile telephones
- H04M1/72448—User interfaces specially adapted for cordless or mobile telephones with means for adapting the functionality of the device according to specific conditions
- H04M1/72454—User interfaces specially adapted for cordless or mobile telephones with means for adapting the functionality of the device according to specific conditions according to context-related or environment-related conditions
Landscapes
- Engineering & Computer Science (AREA)
- Theoretical Computer Science (AREA)
- Human Computer Interaction (AREA)
- General Engineering & Computer Science (AREA)
- Signal Processing (AREA)
- Physics & Mathematics (AREA)
- Computer Networks & Wireless Communication (AREA)
- General Physics & Mathematics (AREA)
- Computer Security & Cryptography (AREA)
- Environmental & Geological Engineering (AREA)
- Computer Hardware Design (AREA)
- Software Systems (AREA)
- Telephone Function (AREA)
Abstract
The application discloses an alarm clock setting method, an alarm clock setting device, a mobile terminal and a computer readable storage medium, wherein the alarm clock setting method comprises the following steps: in the screen-off state of the mobile terminal: when the mobile terminal identifies a face image, verifying the face image, and detecting whether the mobile terminal is in a dark environment currently; if the face image passes the verification and the mobile terminal is detected to be in a dark environment currently, triggering the mobile terminal to collect user voice; and setting an alarm clock based on the user voice. Through the scheme, the intelligent setting of the alarm clock in the dark environment can be realized, the bright light of the mobile terminal in the sleep environment is prevented from stimulating human eyes as much as possible, and the user is helped to set the alarm clock quickly.
Description
Technical Field
The application belongs to the technical field of mobile terminals, and particularly relates to an alarm clock setting method, an alarm clock setting device, a mobile terminal and a computer readable storage medium.
Background
At present, when a user sets an alarm clock of a mobile terminal, the mobile terminal often needs to enter an alarm clock setting interface through a voice instruction or manual operation of the user, and the required ringing time is input through voice or manual input. However, application scenarios often occur in life: before the user is asleep or has had a rest to late at night, the user suddenly thinks of the alarm clock that needs to be set for the next day, and under this kind of scene, if the user sets for the alarm clock through above-mentioned two kinds of modes, then the screen of inevitable needs lighting, and this stimulates user's eyes easily under the dim light environment at night.
Disclosure of Invention
In view of this, the present application provides an alarm clock setting method, an alarm clock setting apparatus, a mobile terminal and a computer-readable storage medium, which can realize intelligent setting of an alarm clock in a dark light environment, avoid the brightness of the mobile terminal from stimulating human eyes in a sleep environment as much as possible, and help a user to set the alarm clock quickly.
A first aspect of the present application provides an alarm clock setting method, including:
in the screen-off state of the mobile terminal:
when the mobile terminal identifies a face image, verifying the face image, and detecting whether the mobile terminal is in a dark environment currently;
if the face image passes the verification and the mobile terminal is detected to be in a dark environment currently, triggering the mobile terminal to collect user voice;
and setting an alarm clock based on the user voice.
A second aspect of the present application provides an alarm clock setting apparatus, including:
the verification unit is used for verifying the face image when the mobile terminal identifies the face image;
the mobile terminal comprises a detection unit, a judging unit and a judging unit, wherein the detection unit is used for detecting whether the mobile terminal is in a dark environment currently or not when the mobile terminal identifies a face image;
the acquisition unit is used for triggering the mobile terminal to acquire user voice if the face image passes verification and the mobile terminal is detected to be in a dark environment currently;
a setting unit for setting an alarm clock based on the user voice;
the verification unit, the detection unit, the acquisition unit and the setting unit all work in the screen-off state of the mobile terminal.
A third aspect of the present application provides a mobile terminal comprising a memory, a processor and a computer program stored in the memory and executable on the processor, the processor implementing the steps of the method according to the first aspect when executing the computer program.
A fourth aspect of the present application provides a computer readable storage medium having stored thereon a computer program which, when executed by a processor, performs the steps of the method of the first aspect as described above.
A fifth aspect of the application provides a computer program product comprising a computer program which, when executed by one or more processors, performs the steps of the method as described in the first aspect above.
Therefore, in the scheme of the application, the mobile terminal is kept in the screen-off state, when the mobile terminal identifies the face image, the face image is verified, whether the mobile terminal is in a dark environment currently is detected, if the face image passes the verification and the mobile terminal is detected to be in the dark environment currently, the mobile terminal is triggered to collect user voice, and an alarm clock is set based on the user voice. Through this application scheme, can make the user just can directly operate the mobile terminal and jump to the operation that the alarm clock set for under dim light environment without lighting up the screen, the user only need jump to the operation back soft voice setting alarm clock that the alarm clock set for at mobile terminal can, realize the intelligent settlement of the alarm clock under dim light environment, the amazing people's eye of mobile terminal's light under the avoiding sleep environment as far as possible, help the user to set for the alarm clock fast.
Drawings
In order to more clearly illustrate the technical solutions in the embodiments of the present application, the drawings needed to be used in the embodiments or the prior art descriptions will be briefly described below, and it is obvious that the drawings in the following description are only some embodiments of the present application, and it is obvious for those skilled in the art to obtain other drawings without creative efforts.
Fig. 1 is a schematic diagram of an implementation flow of an alarm clock setting method provided in an embodiment of the present application;
fig. 2 is a block diagram of an alarm clock setting apparatus provided in an embodiment of the present application;
fig. 3 is a schematic diagram of a mobile terminal according to an embodiment of the present application.
Detailed Description
In the following description, for purposes of explanation and not limitation, specific details are set forth, such as particular system structures, techniques, etc. in order to provide a thorough understanding of the embodiments of the present application. It will be apparent, however, to one skilled in the art that the present application may be practiced in other embodiments that depart from these specific details. In other instances, detailed descriptions of well-known systems, devices, circuits, and methods are omitted so as not to obscure the description of the present application with unnecessary detail.
It will be understood that the terms "comprises" and/or "comprising," when used in this specification and the appended claims, specify the presence of stated features, integers, steps, operations, elements, and/or components, but do not preclude the presence or addition of one or more other features, integers, steps, operations, elements, components, and/or groups thereof.
It should also be understood that the term "and/or" as used in this specification and the appended claims refers to and includes any and all possible combinations of one or more of the associated listed items.
As used in this specification and the appended claims, the term "if" may be interpreted contextually as "when", "upon" or "in response to" determining "or" in response to detecting ". Similarly, the phrase "if it is determined" or "if a [ described condition or event ] is detected" may be interpreted contextually to mean "upon determining" or "in response to determining" or "upon detecting [ described condition or event ]" or "in response to detecting [ described condition or event ]".
Furthermore, in the description of the present application and the appended claims, the terms "first," "second," "third," and the like are used for distinguishing between descriptions and not necessarily for describing or implying relative importance.
Reference throughout this specification to "one embodiment" or "some embodiments," or the like, means that a particular feature, structure, or characteristic described in connection with the embodiment is included in one or more embodiments of the present application. Thus, appearances of the phrases "in one embodiment," "in some embodiments," "in other embodiments," or the like, in various places throughout this specification are not necessarily all referring to the same embodiment, but rather "one or more but not all embodiments" unless specifically stated otherwise. The terms "comprising," "including," "having," and variations thereof mean "including, but not limited to," unless expressly specified otherwise.
In order to explain the technical solution of the present application, the following description will be given by way of specific examples.
Example one
The alarm clock setting method provided by the embodiment of the application is applied to the screen-off state of the mobile terminal, that is, when the mobile terminal does not respond to other operations of the user (for example, an operation of pressing a Home key to light a screen), all the steps of the alarm clock setting method provided by the embodiment of the application are executed when the mobile terminal is in the screen-off state. Referring to fig. 1, fig. 1 is a flowchart illustrating an implementation of an alarm clock setting method according to an embodiment of the present application, which is detailed as follows:
in step 101, when the mobile terminal identifies a face image, verifying the face image, and detecting whether the mobile terminal is currently in a dark environment;
in the embodiment of the present application, the mobile terminal is kept in a standby state, that is, in a screen-off state. When a user tries to pick up the mobile terminal for alarm clock setting, the mobile terminal can recognize the face image of the user. Optionally, the mobile terminal may always keep the low-power operation of the front camera in the screen-off state, continuously capture an environmental image in real time, and identify whether a face image exists in the environmental image; or, considering that the mobile terminal is often displaced when the user picks up the mobile terminal for operation, the environment image may be captured in real time within a period of time (for example, thirty seconds) after the gyroscope of the mobile terminal detects that the mobile terminal has been displaced, and whether the face image exists in the environment image may be identified, for example, within thirty seconds after the mobile terminal detects that the mobile terminal is picked up by the user, the front camera of the mobile terminal is triggered to capture the environment image in real time, and whether the face image can be identified in the environment image is detected. The execution timing of capturing the environment image and performing the face image recognition by the mobile terminal is not limited herein.
When the face image is identified, on one hand, the mobile terminal needs to verify the validity and validity of the face image; on the other hand, the mobile terminal also needs to detect the current environment in which the mobile terminal is located. In fact, considering that a user often carries a mobile terminal with him and a face image is already recognized currently, the environment of the mobile terminal can be considered as the environment of the user. Only when the face image passes the verification and the mobile terminal is currently in a dark environment, the mobile terminal performs the operation of the subsequent step 102.
Optionally, if the face image fails to be verified and the mobile terminal is currently in a dark environment, the mobile terminal may output a verification failure message in a voice manner to remind the user to perform the verification of the face image again.
Optionally, if the mobile terminal is not currently in a dark environment and the face image passes the verification, the mobile terminal may perform operations of screen lighting and unlocking.
Optionally, if the face image is not verified and the mobile terminal is not currently in a dark environment, the mobile terminal is kept in a screen-off state and does not respond.
It should be noted that the response operations of the mobile terminal in the above three scenarios are only examples, and the response operations of the mobile terminal in the above three scenarios are not limited herein.
In step 102, if the face image passes the verification and the mobile terminal is detected to be in a dark environment currently, triggering the mobile terminal to collect user voice;
in the embodiment of the application, when the face image passes the verification of the validity and the mobile terminal is detected to be in the dark environment at present, the mobile terminal can be considered to meet the scene state that the user sets the alarm clock in the dark environment at present, and at this time, the microphone of the mobile terminal can be started and triggered to collect the user voice. Specifically, the mobile terminal may preset a corresponding relationship between a user and a user voiceprint, and when the identified face image passes verification, may first determine a target user corresponding to the face image, and then query a database of the mobile terminal for the user voiceprint of the target user; therefore, after the mobile terminal is triggered to collect the user voice in the step, the user voice can be further verified through the user voiceprint of the target user to confirm that the collected user voice is really the user voice input by the user currently using the mobile terminal, so that the safety of the mobile terminal is further guaranteed, and the mobile terminal is prevented from being falsely used by other people.
In step 103, an alarm clock is set based on the user voice.
In the embodiment of the application, when the voice of the user is collected, the alarm clock is set based on the voice of the user. Optionally, semantic analysis may be performed on the user speech, and when it is analyzed that the user speech includes time point information (that is, time information), alarm clock setting is performed based on the time point information, that is, a time point indicated by the time point information is used as an alarm time; and if the user voice does not contain time point information, ignoring the user voice and not making any response. Further, when analyzing the user voice, if date information included in the user voice is also analyzed, alarm clock setting is performed based on the time point information and the date information, specifically, a date indicated by the date information is set as an alarm date, and a time point indicated by the time point information is set as an alarm time. Alternatively, if the user voice only has time point information, the date when the time point information is next reached is searched as the alarm date, for example, at 10 am, if the user voice is "set an alarm clock at 5 pm", the mobile terminal takes the current day as the alarm date and 17 am as the alarm time; if the voice of the user is 'alarm clock at 5 pm' at 10 pm, the mobile terminal takes the next day as the waking date and 17 pm as the waking time.
Optionally, the step of verifying the face image specifically includes:
a1, calculating the similarity between the face image and a preset target face image;
a2, if the similarity exceeds a preset similarity threshold, recording the acquisition time length of the face image acquired by the mobile terminal;
in the embodiment of the application, one or more target face images can be pre-stored locally at the mobile terminal, and the user associated with the target face images is a legal user. The similarity between the face image and the target face image is calculated through the step, whether the face image is matched with the target face image or not can be determined, if the similarity exceeds a preset similarity threshold value, the matching is considered to be successful, the user using the mobile terminal at present can be considered to be a legal user, and the validity of the face image is confirmed to pass verification at the moment. And then, verifying the validity of the face image. In consideration of the fact that the user may also shoot the face of the user by the front camera of the mobile terminal when the user picks up the mobile terminal occasionally, in order to ensure the effectiveness of the operation of performing alarm clock setting through the face image, the method and the device for setting the alarm clock according to the embodiment of the application can record the acquisition duration of the face image acquired by the mobile terminal when the mobile terminal starts to acquire the face image, that is, record the duration of the face image continuously acquired by the mobile terminal.
A3, if the acquisition time length exceeds a preset first time length, determining that the face image passes the verification.
In this embodiment of the application, if the acquisition duration exceeds a preset first duration, that is, if the mobile terminal can keep acquiring the face image continuously within the first duration, it is determined that the face image passes validity verification, that is, it can be determined that the target user wants to implement quick setting of an alarm clock by continuously inputting the face image to the mobile terminal, instead of the misoperation of the user. For example, the first time period may be set to 3 seconds, which is not limited herein.
Optionally, after step a1, in order to further avoid the misoperation of the user, the alarm clock setting method further includes:
monitoring the distance between the mobile terminal and a human face through a distance sensor of the mobile terminal;
accordingly, the above a3 includes:
and if the acquisition time length exceeds a preset first time length and the distance does not exceed a preset distance threshold value in the acquisition time length, determining that the face image passes the verification.
After the step a1, the distance sensor of the mobile terminal on the cabinet can be started, and the distance between the mobile terminal and the human face is monitored by the distance sensor. In order to further prevent the operation that the user picks up the mobile terminal with hands from being mistaken for the operation of setting the alarm clock, a distance threshold value can be set, and only when the acquisition time length exceeds a preset first time length and the distance between the mobile terminal and the face does not exceed the preset distance threshold value in the acquisition time length, the current operation of the user is confirmed to be related to the alarm clock setting, so that the verification of the validity of the face image is further improved, and the face image can be determined to pass the verification at this time.
Optionally, in order to ensure the recognition of the face of the user in any environment, the alarm clock setting method further includes:
respectively acquiring user face images of a user under different illumination;
constructing a target face image set based on the acquired user face image;
accordingly, the a1 includes:
sequentially determining a user face image as a target face image in the target face image set, and calculating the similarity between the face image and the target face image;
in the embodiment of the application, the face images of the user under different illumination can be obtained and stored in advance, for example, the user can be prompted to shoot in different environments (for example, in a cloudy day, in a night room, and the like) in advance. And constructing a target face image set based on the acquired more than one user face images. Optionally, one user face image may be obtained under one illumination (i.e., one environment) and stored in the target face image set, or a plurality of user face images may be obtained under one illumination (i.e., one environment) and stored in the target face image set, which is not limited herein. After a target face image set is constructed, a user face image can be sequentially determined in the target face image set as a target face image, the similarity between the face image and the target face image is calculated, once the similarity between the face image and the selected target face image exceeds a preset similarity threshold value, the validity of the face image is confirmed to pass verification, the similarity calculation between the face image and other user face images in the target face image set is not needed, and the validity of the face image can be verified only by continuing the operation of verifying the face image through the acquisition duration and the distance between the face and the mobile terminal.
Optionally, the step of detecting whether the mobile terminal is currently in a dark environment includes:
b1, monitoring the ambient light intensity of the mobile terminal through the ambient light sensor of the mobile terminal;
b2, if the ambient light intensity of the mobile terminal is lower than the preset light intensity threshold value within the preset second time period, determining that the mobile terminal is currently in a dark environment.
In this embodiment of the application, after the face image is identified, the ambient light intensity of the mobile terminal is monitored through the ambient light sensor of the mobile terminal, and if the ambient light intensity of the mobile terminal is lower than a preset light intensity threshold value within a preset second duration, it is determined that the mobile terminal is currently in a dark environment. The preset illumination intensity threshold may be 0.5lux, the preset second time period may be 3 seconds, and specific values of the illumination intensity threshold and the second time period are not limited herein. That is to say, in the embodiment of the present application, after the face image is detected, it is found that the ambient light intensity of the mobile terminal within a certain period of time (for example, within 3 seconds) is lower than the preset light intensity threshold, and it is determined that the mobile terminal is currently in a dark environment.
Optionally, the step of triggering the mobile terminal to collect the user voice includes:
c1, outputting alarm clock setting reminding messages in a preset reminding mode;
and C2, triggering the mobile terminal to collect the user voice through a microphone within a preset third time after the alarm clock setting reminding message is output.
In this embodiment of the application, the preset reminding manner includes one or more of the following: voice prompt, ring prompt and vibration prompt. For example, the voice prompt output alarm clock can be triggered independently to set the prompt message, and the mobile terminal can output sentences such as "please speak the required alarm date and time" in a voice manner to prompt the user to set the alarm clock through voice input currently; or, the alarm clock setting reminding message may be output by combining a plurality of reminding modes, for example, by combining voice reminding and vibration reminding, the mobile terminal may trigger the mobile terminal to vibrate when the mobile terminal outputs sentences such as "please speak the required alarm date and time" by voice, so as to remind the user of setting the alarm clock by voice input currently. In order to save system resources and avoid the mobile terminal from uninterruptedly waiting for the user to input voice, the mobile terminal may be triggered to collect the voice of the user through a microphone within a preset third time period after the alarm clock sets the reminding message. For example, the third time period may be set to 10 seconds, and after the mobile terminal outputs a sentence of "please speak a required wakeup date and time", the microphone of the mobile terminal may start to operate immediately, and perform a sound pickup operation for 10 seconds to pick up the voice of the user.
Optionally, after step 103, the alarm clock setting method further includes:
outputting the set parameter information of the alarm clock by voice, wherein the parameter information comprises an alarm date and an alarm time;
and if the mobile terminal does not receive any input instruction within a preset fourth time after the set parameter information of the alarm clock is output by voice, confirming and keeping the current setting of the alarm clock.
In the embodiment of the application, the secondary confirmation of the alarm clock setting can be realized through the step of outputting the set parameter information of the alarm clock through voice. If the mobile terminal does not receive any input instruction within a preset fourth time length after the set parameter information of the alarm clock is output in a voice mode, confirming and keeping the current setting of the alarm clock; if the mobile terminal receives other input instructions within a preset fourth time after the set parameter information of the alarm clock is output in a voice mode, for example, if operations such as short pressing, long pressing, double clicking and the like of any physical key of the mobile terminal by a user are received, the currently set alarm clock is considered to be wrong, at the moment, a microphone of the mobile terminal can be triggered again to collect user voice, the alarm clock is reset based on the newly collected user voice, and the operation of outputting the currently newly set parameter information of the alarm clock in a voice mode is executed again to carry out secondary confirmation until the alarm clock is set to be correct.
It is from top to bottom, through this application embodiment, can make the user just can directly operate the operation that mobile terminal jumped to the alarm clock and set for not needing to light the screen under dim light environment, the user only need jump to the operation back light voice setting alarm clock that the alarm clock set for at mobile terminal can, realize the intelligent settlement of the alarm clock under dim light environment, the bright light of avoiding mobile terminal under the sleep environment stimulates people's eyes as far as possible, help the user to set for the alarm clock fast.
It should be understood that, the sequence numbers of the steps in the foregoing embodiments do not imply an execution sequence, and the execution sequence of each process should be determined by its function and inherent logic, and should not constitute any limitation to the implementation process of the embodiments of the present application.
Example two
An embodiment of the present application provides an alarm clock setting device, where the alarm clock setting device may be integrated in a mobile terminal, as shown in fig. 2, an alarm clock setting device 200 in the embodiment of the present application includes:
a verification unit 201, configured to verify a face image when the mobile terminal identifies the face image;
a detecting unit 202, configured to detect whether the mobile terminal is currently in a dark environment when the mobile terminal identifies a face image;
the acquisition unit 203 is configured to trigger the mobile terminal to acquire a user voice if the face image passes the verification and it is detected that the mobile terminal is currently in a dark environment;
a setting unit 204, configured to set an alarm clock based on the user voice;
the verification unit 201, the detection unit 202, the acquisition unit 203, and the setting unit 204 all operate in a screen-off state of the mobile terminal.
Optionally, the verification unit 201 includes:
the similarity calculation operator unit is used for calculating the similarity between the face image and a preset target face image;
an acquisition duration recording subunit, configured to record an acquisition duration that the mobile terminal acquires the face image if the similarity exceeds a preset similarity threshold;
and the verification result determining subunit is used for determining that the face image passes the verification if the acquisition time length exceeds a preset first time length.
Optionally, the alarm clock setting apparatus 200 further includes:
the distance monitoring unit is used for monitoring the distance between the mobile terminal and a human face through a distance sensor of the mobile terminal;
correspondingly, the verification result determining subunit is specifically configured to determine that the face image passes the verification if the acquisition duration exceeds a preset first duration and the distance does not exceed a preset distance threshold within the acquisition duration.
Optionally, the alarm clock setting apparatus 200 further includes:
the acquisition unit is used for respectively acquiring face images of the user under different illumination;
the construction unit is used for constructing a target face image set based on the acquired user face image;
correspondingly, the similarity calculation operator unit is specifically configured to sequentially determine a user face image as a target face image in the target face image set, and calculate the similarity between the face image and the target face image.
Optionally, the detecting unit 202 includes:
the illumination monitoring subunit is used for monitoring the ambient illumination intensity of the mobile terminal through an ambient light sensor of the mobile terminal;
and the environment determining subunit is configured to determine that the mobile terminal is currently in a dark environment if the ambient illumination intensity of the mobile terminal is lower than a preset illumination intensity threshold within a preset second duration.
Optionally, the acquiring unit 203 includes:
the reminding output subunit is used for outputting alarm clock setting reminding messages in a preset reminding mode;
and the voice acquisition subunit is used for triggering the mobile terminal to acquire the voice of the user through a microphone within a preset third time after the alarm clock setting reminding message is output.
Optionally, the alarm clock setting apparatus 200 further includes:
an information output subunit, configured to output, by voice, set parameter information of the alarm clock, where the parameter information includes an alarm date and an alarm time;
and the alarm clock confirmation subunit is used for confirming and keeping the current setting of the alarm clock if the mobile terminal does not receive any input instruction within the preset fourth time length after the set parameter information of the alarm clock is output by voice.
It is from top to bottom, through this application embodiment, can make the user just can directly operate the operation that mobile terminal jumped to the alarm clock and set for not needing to light the screen under dim light environment, the user only need jump to the operation back light voice setting alarm clock that the alarm clock set for at mobile terminal can, realize the intelligent settlement of the alarm clock under dim light environment, the bright light of avoiding mobile terminal under the sleep environment stimulates people's eyes as far as possible, help the user to set for the alarm clock fast.
EXAMPLE III
Referring to fig. 3, a mobile terminal 3 in the embodiment of the present application includes: a memory 301, one or more processors 302 (only one shown in fig. 3), and a computer program stored on the memory 301 and executable on the processors. Wherein: the memory 301 is used for storing software programs and modules, and the processor 302 executes various functional applications and data processing by running the software programs and units stored in the memory 301, so as to acquire resources corresponding to the preset events. Specifically, the processor 302 realizes the following steps by running the above-mentioned computer program stored in the memory 301:
in the screen-off state of the mobile terminal:
when the mobile terminal identifies a face image, verifying the face image, and detecting whether the mobile terminal is in a dark environment currently;
if the face image passes the verification and the mobile terminal is detected to be in a dark environment currently, triggering the mobile terminal to collect user voice;
and setting an alarm clock based on the user voice.
Assuming that the above is the first possible embodiment, in a second possible embodiment provided on the basis of the first possible embodiment, the verifying the face image includes:
calculating the similarity between the face image and a preset target face image;
if the similarity exceeds a preset similarity threshold, recording the acquisition time of the face image acquired by the mobile terminal;
and if the acquisition time length exceeds a preset first time length, determining that the face image passes the verification.
In a third possible implementation manner provided on the basis of the second possible implementation manner, after the calculating the similarity between the face image and a preset target face image, the alarm setting method further includes:
monitoring the distance between the mobile terminal and a human face through a distance sensor of the mobile terminal;
correspondingly, if the acquisition duration exceeds a preset first duration, determining that the face image passes the verification, including:
and if the acquisition time length exceeds a preset first time length and the distance does not exceed a preset distance threshold value in the acquisition time length, determining that the face image passes the verification.
In a fourth possible implementation provided on the basis of the second possible implementation, the processor 302 further implements the following steps when executing the computer program stored in the memory 301:
respectively acquiring user face images of a user under different illumination;
constructing a target face image set based on the acquired user face image;
correspondingly, the calculating the similarity between the face image and the preset target face image includes:
and sequentially determining a user face image as a target face image in the target face image set, and calculating the similarity between the face image and the target face image.
In a fifth possible implementation manner provided on the basis of the first possible implementation manner, the detecting whether the mobile terminal is currently in a dark environment includes:
monitoring the ambient light intensity of the mobile terminal through an ambient light sensor of the mobile terminal;
and if the ambient light intensity of the mobile terminal is lower than the preset light intensity threshold value within the preset second time length, determining that the mobile terminal is currently in a dark environment.
In a sixth possible implementation manner provided on the basis of the first possible implementation manner, the second possible implementation manner, the third possible implementation manner, the fourth possible implementation manner, or the fifth possible implementation manner, the triggering the mobile terminal to collect the user voice includes:
outputting alarm clock setting reminding messages in a preset reminding mode;
and triggering the mobile terminal to collect the user voice through a microphone within a preset third time after the alarm clock setting reminding message is output.
In a seventh possible implementation manner provided on the basis of the first possible implementation manner, the second possible implementation manner, the third possible implementation manner, the fourth possible implementation manner, or the fifth possible implementation manner, after the alarm clock is set based on the user voice, the processor 302 further implements the following steps when running the computer program stored in the memory 301:
outputting the set parameter information of the alarm clock by voice, wherein the parameter information comprises an alarm date and an alarm time;
and if the mobile terminal does not receive any input instruction within a preset fourth time after the set parameter information of the alarm clock is output by voice, confirming and keeping the current setting of the alarm clock.
Further, as shown in fig. 3, the mobile terminal may further include: one or more input devices 303 (only one shown in fig. 3) and one or more output devices 304 (only one shown in fig. 3). The memory 301, processor 302, input device 303, and output device 304 are connected by a bus 305.
It should be understood that in the embodiments of the present Application, the Processor 302 may be a Central Processing Unit (CPU), and the Processor may be other general-purpose processors, Digital Signal Processors (DSPs), Application Specific Integrated Circuits (ASICs), Field Programmable Gate Arrays (FPGAs) or other Programmable logic devices, discrete Gate or transistor logic devices, discrete hardware components, etc. A general purpose processor may be a microprocessor or the processor may be any conventional processor or the like.
The input device 303 may include a keyboard, a touch pad, a fingerprint sensor (for collecting fingerprint information of a user and direction information of the fingerprint), a microphone, etc., and the output device 304 may include a display, a speaker, etc.
It is from top to bottom, through this application embodiment, can make the user just can directly operate the operation that mobile terminal jumped to the alarm clock and set for not needing to light the screen under dim light environment, the user only need jump to the operation back light voice setting alarm clock that the alarm clock set for at mobile terminal can, realize the intelligent settlement of the alarm clock under dim light environment, the bright light of avoiding mobile terminal under the sleep environment stimulates people's eyes as far as possible, help the user to set for the alarm clock fast.
It will be apparent to those skilled in the art that, for convenience and brevity of description, only the above-mentioned division of the functional units and modules is illustrated, and in practical applications, the above-mentioned functions may be distributed as different functional units and modules according to needs, that is, the internal structure of the apparatus may be divided into different functional units or modules to implement all or part of the above-mentioned functions. Each functional unit and module in the embodiments may be integrated in one processing unit, or each unit may exist alone physically, or two or more units are integrated in one unit, and the integrated unit may be implemented in a form of hardware, or in a form of software functional unit. In addition, specific names of the functional units and modules are only for convenience of distinguishing from each other, and are not used for limiting the protection scope of the present application. The specific working processes of the units and modules in the system may refer to the corresponding processes in the foregoing method embodiments, and are not described herein again.
In the above embodiments, the descriptions of the respective embodiments have respective emphasis, and reference may be made to the related descriptions of other embodiments for parts that are not described or illustrated in a certain embodiment.
Those of ordinary skill in the art would appreciate that the various illustrative elements and algorithm steps described in connection with the embodiments disclosed herein may be implemented as electronic hardware or combinations of external device software and electronic hardware. Whether such functionality is implemented as hardware or software depends upon the particular application and design constraints imposed on the implementation. Skilled artisans may implement the described functionality in varying ways for each particular application, but such implementation decisions should not be interpreted as causing a departure from the scope of the present application.
In the embodiments provided in the present application, it should be understood that the disclosed apparatus and method may be implemented in other ways. For example, the above-described system embodiments are merely illustrative, and for example, the division of the above-described modules or units is only one logical functional division, and in actual implementation, there may be another division, for example, multiple units or components may be combined or integrated into another system, or some features may be omitted, or not executed. In addition, the shown or discussed mutual coupling or direct coupling or communication connection may be an indirect coupling or communication connection through some interfaces, devices or units, and may be in an electrical, mechanical or other form.
The units described as separate parts may or may not be physically separate, and parts displayed as units may or may not be physical units, may be located in one place, or may be distributed on a plurality of network units. Some or all of the units can be selected according to actual needs to achieve the purpose of the solution of the embodiment.
The integrated unit may be stored in a computer-readable storage medium if it is implemented in the form of a software functional unit and sold or used as a separate product. Based on such understanding, all or part of the flow in the method of the embodiments described above may be implemented by a computer program, which may be stored in a computer readable storage medium and used by a processor to implement the steps of the embodiments of the methods described above. The computer program includes computer program code, and the computer program code may be in a source code form, an object code form, an executable file or some intermediate form. The computer-readable storage medium may include: any entity or device capable of carrying the above-described computer program code, recording medium, usb disk, removable hard disk, magnetic disk, optical disk, computer readable Memory, Read-Only Memory (ROM), Random Access Memory (RAM), electrical carrier wave signal, telecommunication signal, software distribution medium, etc. It should be noted that the computer readable storage medium may contain other contents which can be appropriately increased or decreased according to the requirements of the legislation and the patent practice in the jurisdiction, for example, in some jurisdictions, the computer readable storage medium does not include an electrical carrier signal and a telecommunication signal according to the legislation and the patent practice.
The above embodiments are only used for illustrating the technical solutions of the present application, and not for limiting the same; although the present application has been described in detail with reference to the foregoing embodiments, it should be understood by those of ordinary skill in the art that: the technical solutions described in the foregoing embodiments may still be modified, or some technical features may be equivalently replaced; such modifications and substitutions do not substantially depart from the spirit and scope of the embodiments of the present application and are intended to be included within the scope of the present application.
Claims (10)
1. An alarm clock setting method is characterized by comprising the following steps:
in the screen-off state of the mobile terminal:
when the mobile terminal identifies a face image, verifying the face image, and detecting whether the mobile terminal is in a dark environment currently based on the ambient light intensity;
if the face image passes the verification and the mobile terminal is detected to be in a dark environment currently, triggering the mobile terminal to collect user voice, and verifying the user voice through a user voiceprint to confirm whether the collected user voice is the user voice input by the user currently using the mobile terminal;
and setting an alarm clock based on the user voice.
2. The alarm clock setting method according to claim 1, wherein the verifying the face image comprises:
calculating the similarity between the face image and a preset target face image;
if the similarity exceeds a preset similarity threshold, recording the acquisition time of the face image acquired by the mobile terminal;
and if the acquisition time length exceeds a preset first time length, determining that the face image passes the verification.
3. The alarm clock setting method according to claim 2, wherein after the calculating the similarity between the face image and a preset target face image, the alarm clock setting method further comprises:
monitoring the distance between the mobile terminal and a human face through a distance sensor of the mobile terminal;
correspondingly, if the acquisition duration exceeds a preset first duration, determining that the face image passes verification, including:
and if the acquisition time length exceeds a preset first time length and the distance does not exceed a preset distance threshold value in the acquisition time length, determining that the face image passes the verification.
4. The alarm clock setting method according to claim 2, wherein the alarm clock setting method further comprises:
respectively acquiring user face images of a user under different illumination;
constructing a target face image set based on the acquired user face image;
correspondingly, the calculating the similarity between the face image and the preset target face image comprises:
and sequentially determining a user face image as a target face image in the target face image set, and calculating the similarity between the face image and the target face image.
5. The alarm clock setting method according to claim 1, wherein the detecting whether the mobile terminal is currently in a dark environment comprises:
monitoring the ambient light intensity of the mobile terminal through an ambient light sensor of the mobile terminal;
and if the ambient light intensity of the mobile terminal is lower than the preset light intensity threshold value within the preset second time length, determining that the mobile terminal is currently in a dark environment.
6. The alarm clock setting method according to any one of claims 1 to 5, wherein the triggering the mobile terminal to collect the user voice comprises:
outputting alarm clock setting reminding messages in a preset reminding mode;
and triggering the mobile terminal to collect the voice of the user through a microphone within a preset third time after the alarm clock setting reminding message is output.
7. The alarm clock setting method according to any one of claims 1 to 5, wherein after the setting of the alarm clock based on the user voice, the alarm clock setting method further comprises:
outputting set parameter information of the alarm clock by voice, wherein the parameter information comprises an alarm date and an alarm time;
and if the mobile terminal does not receive any input instruction within a preset fourth time after the set parameter information of the alarm clock is output by voice, confirming and keeping the current setting of the alarm clock.
8. An alarm clock setting apparatus, comprising:
the verification unit is used for verifying the face image when the mobile terminal identifies the face image;
the mobile terminal comprises a detection unit, a control unit and a processing unit, wherein the detection unit is used for detecting whether the mobile terminal is in a dark environment currently or not based on the ambient light intensity when the mobile terminal identifies a face image;
the acquisition unit is used for triggering the mobile terminal to acquire user voice if the face image passes the verification and the mobile terminal is detected to be in a dark environment currently, and verifying the user voice through a user voiceprint to confirm whether the acquired user voice is the user voice input by the user currently using the mobile terminal;
a setting unit for setting an alarm clock based on the user voice;
the verification unit, the detection unit, the acquisition unit and the setting unit all work in the screen extinguishing state of the mobile terminal.
9. A mobile terminal comprising a memory, a processor and a computer program stored in the memory and executable on the processor, characterized in that the processor implements the steps of the method according to any of claims 1 to 7 when executing the computer program.
10. A computer-readable storage medium, in which a computer program is stored which, when being executed by a processor, carries out the steps of the method according to any one of claims 1 to 7.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201910687704.3A CN110401775B (en) | 2019-07-29 | 2019-07-29 | Alarm clock setting method, alarm clock setting device and mobile terminal |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201910687704.3A CN110401775B (en) | 2019-07-29 | 2019-07-29 | Alarm clock setting method, alarm clock setting device and mobile terminal |
Publications (2)
Publication Number | Publication Date |
---|---|
CN110401775A CN110401775A (en) | 2019-11-01 |
CN110401775B true CN110401775B (en) | 2021-03-12 |
Family
ID=68326389
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201910687704.3A Active CN110401775B (en) | 2019-07-29 | 2019-07-29 | Alarm clock setting method, alarm clock setting device and mobile terminal |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN110401775B (en) |
Families Citing this family (1)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN112468652A (en) * | 2020-11-13 | 2021-03-09 | 南京创维信息技术研究院有限公司 | Alarm clock ring setting method, system, equipment and storage medium |
Citations (3)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN105635449A (en) * | 2015-12-25 | 2016-06-01 | 青岛海信移动通信技术股份有限公司 | Alarm clock control method and mobile terminal |
CN107920162A (en) * | 2017-11-13 | 2018-04-17 | 广东欧珀移动通信有限公司 | Control method, mobile terminal and the computer-readable recording medium of alarm clock |
CN109120773A (en) * | 2017-06-26 | 2019-01-01 | 上海中兴软件有限责任公司 | A kind of method, device and mobile terminal of alarm clock calling |
Family Cites Families (6)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN103167104A (en) * | 2011-12-17 | 2013-06-19 | 深圳富泰宏精密工业有限公司 | System and method for controlling alarm clock |
CN202798882U (en) * | 2012-07-31 | 2013-03-13 | 北京播思软件技术有限公司 | Mobile terminal capable of controlling screen luminance by utilizing alarm clock |
CN103078990A (en) * | 2012-11-29 | 2013-05-01 | 上海斐讯数据通信技术有限公司 | Mobile terminal with alarm clock shake control system and alarm clock shake control method |
CN105872228A (en) * | 2016-03-31 | 2016-08-17 | 宇龙计算机通信科技(深圳)有限公司 | Alarm clock reminding processing method and device, and terminal |
CN106873849B (en) * | 2017-01-06 | 2020-06-05 | 普联技术有限公司 | Detection method and device for preventing screen false triggering and mobile terminal |
CN107479703A (en) * | 2017-08-07 | 2017-12-15 | 深圳天珑无线科技有限公司 | Automatic speech gives the correct time method, equipment and computer-readable recording medium |
-
2019
- 2019-07-29 CN CN201910687704.3A patent/CN110401775B/en active Active
Patent Citations (3)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN105635449A (en) * | 2015-12-25 | 2016-06-01 | 青岛海信移动通信技术股份有限公司 | Alarm clock control method and mobile terminal |
CN109120773A (en) * | 2017-06-26 | 2019-01-01 | 上海中兴软件有限责任公司 | A kind of method, device and mobile terminal of alarm clock calling |
CN107920162A (en) * | 2017-11-13 | 2018-04-17 | 广东欧珀移动通信有限公司 | Control method, mobile terminal and the computer-readable recording medium of alarm clock |
Also Published As
Publication number | Publication date |
---|---|
CN110401775A (en) | 2019-11-01 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN104503691B (en) | Apparatus control method, device and intelligent terminal | |
CN108090340B (en) | Face recognition processing method, face recognition processing device and intelligent terminal | |
US10824891B2 (en) | Recognizing biological feature | |
EP3162053B1 (en) | Lifelog camera and method of controlling same using voice triggers | |
CN111081241B (en) | Data detection method and device for device false wake-up, mobile terminal and storage medium | |
CN108847216B (en) | Voice processing method, electronic device and storage medium | |
CN111524513A (en) | Wearable device and voice transmission control method, device and medium thereof | |
CN112634894A (en) | Awakening method, awakening device and terminal | |
WO2020192215A1 (en) | Interactive method and wearable interactive device | |
CN111176440B (en) | Video call method and wearable device | |
CN110401775B (en) | Alarm clock setting method, alarm clock setting device and mobile terminal | |
CN113808584B (en) | Voice wakeup method and device, electronic equipment and storage medium | |
CN109558719B (en) | Unlocking method and terminal | |
CN108833688B (en) | Position reminding method and device, storage medium and electronic equipment | |
CN110737334A (en) | information output method, device, terminal and computer readable storage medium | |
CN111641751A (en) | Screen unlocking method and device of terminal equipment | |
CN112446243A (en) | Electronic device and emotion-based content pushing method | |
CN112882394B (en) | Equipment control method, control device and readable storage medium | |
CN105988560B (en) | Application starting method and device | |
CN108459838B (en) | Information processing method and electronic equipment | |
CN113705392A (en) | Working state switching method, device, equipment, storage medium and program product | |
CN112435441A (en) | Sleep detection method and wearable electronic device | |
CN110174924B (en) | Friend making method based on wearable device and wearable device | |
CN111935358A (en) | Intelligent call method, device and equipment | |
CN112365899B (en) | Voice processing method, device, storage medium and terminal equipment |
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 |