Automatic alarm method, mobile terminal and computer readable storage medium

By implementing the automatic alarm method on the mobile terminal, using the dual authentication program of facial data and voice information, the problem that users cannot automatically send distress signals in danger is solved, and the automatic alarm function is realized, improving user safety guarantees.

CN119815321APending Publication Date: 2025-04-11SHENZHEN TINNO WIRELESS TECH +2
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202411795279.7
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2024-12-06
Publication Date
2025-04-11

AI Technical Summary

Technical Problem

When a user is in danger, he usually cannot open the mobile terminal and send a distress signal, which will lead to the distress signal being unable to be known to the outside world as soon as possible, and thus cannot protect the user's personal safety well.

Method used

An automatic alarm method is provided, by obtaining facial data and voice information, and automatically sending alarm information when the facial data conforms to the preset expression and voice information. This method sets up a two-factor authentication program to ensure that alarm information is sent only when the user has a preset expression and the mobile terminal receives the preset voice password.

Benefits of technology

It realizes the effect of automatically sending alarm information when the user is in a dangerous state, and does not require the user to open the mobile terminal by himself, which greatly avoids the accidental triggering of alarms caused by a single command, and improves the protection of user's personal safety.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN119815321A_ABST
    Figure CN119815321A_ABST
Patent Text Reader

Abstract

The invention discloses an automatic alarm method, a mobile terminal and a computer readable storage medium. The automatic alarm method comprises the following steps: acquiring face data; obtaining voice information in response to the fact that the facial data conforms to a preset expression; and sending alarm information in response to a preset voice password contained in the voice information. Through the mode, when the safety of the user is threatened, the facial expression and the voice password of the user are recognized, and the alarm is automatically given after dual authentication is passed, so that the personal safety of the user is protected.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present application relates to the field of communications, and in particular to an automatic alarm method, a mobile terminal and a computer-readable storage medium. Background Art

[0002] With the development of mobile communication technology, personal mobile terminals such as mobile phones, personal digital assistants (PDAs), and handheld computers have gradually become indispensable personal communication tools. At the same time, due to the portability of mobile terminals, almost everyone carries one with them. Therefore, when people encounter danger, they often need to send out a distress signal through the mobile terminal as soon as possible.

[0003] However, when a user is in danger, he or she is usually unable to turn on the mobile terminal and send out a distress signal by himself or herself, so that the distress signal cannot be learned by the outside world in the first time, and the personal safety of the user cannot be well protected. Summary of the invention

[0004] The present application provides an automatic alarm method, a mobile terminal and a computer-readable storage medium to solve the technical problem that when a user is in danger, he or she is usually unable to turn on the mobile terminal and send out a distress signal by himself or herself, resulting in the distress signal not being known to the outside world in the first time, and thus being unable to well protect the user's personal safety.

[0005] To solve the above technical problems, a technical solution adopted in the present application is: providing an automatic alarm method, applied to a mobile terminal, the method comprising: obtaining facial data; in response to the facial data matching a preset expression, obtaining voice information; in response to the voice information containing a preset voice command, sending an alarm message.

[0006] In one embodiment of the present application, facial data can be obtained in the following manner: in response to the mobile terminal being in a locked state, turning on a proximity sensor to obtain distance information; in response to the distance information meeting a preset distance threshold, turning on a camera to obtain image information; in response to the image information containing a facial image, extracting facial data from the facial image.

[0007] In one embodiment of the present application, in response to facial data matching a preset expression, voice information is obtained, including: performing identity recognition on the facial data; in response to successful identity recognition, performing expression recognition on the facial data; in response to the facial data matching the preset expression, releasing the lock screen state of the mobile terminal, and obtaining voice information.

[0008] In one embodiment of the present application, the automatic alarm method also includes: obtaining at least one recorded facial image for representing different expressions; extracting facial data from at least one facial image as reference data, and storing the reference data; in response to the facial data matching a preset expression, releasing the lock screen state of the mobile terminal, and obtaining voice information, including: comparing the facial data with at least one reference data, and in response to the similarity between the facial data and any one of the at least one reference data satisfying a preset similarity threshold, releasing the lock screen state of the mobile terminal, and obtaining voice information.

[0009] In one embodiment of the present application, after releasing the lock screen state of the mobile terminal, it also includes: hiding key information of the mobile terminal, the key information at least including at least one of setting an application icon, setting contact information, and setting a folder.

[0010] In one embodiment of the present application, the automatic alarm method further includes: acquiring a recorded reference voice; and performing text extraction on the reference voice to determine a preset voice command.

[0011] In one embodiment of the present application, text extraction is performed on a reference speech to determine a preset voice command, including: performing text recognition on the reference speech to obtain corresponding reference text; displaying the reference text and making the displayed reference text selectable; obtaining a selection instruction to determine that the selected text from the displayed reference text is the preset voice command.

[0012] In one embodiment of the present application, the alarm information includes at least one of location information, audio recording information, and video recording information.

[0013] The present application also provides a mobile terminal, including a memory, a processor, and a computer program stored in the memory and executable on the processor, wherein the steps of the above method are implemented when the processor executes the computer program.

[0014] The present application also provides a computer-readable storage medium, which includes computer instructions. When the computer instructions are executed on an electronic device, the electronic device executes the above method.

[0015] The beneficial effect of the present application is: by setting up an automatic alarm method applied to a mobile terminal, the effect of automatically sending an alarm message when the user is in a dangerous state is achieved, without the user having to open the mobile terminal and perform an alarm operation. Furthermore, the automatic alarm method of the present application is provided with a double authentication procedure, the first authentication procedure is to determine whether the user has a preset expression, if the preset expression appears, the second authentication procedure is started, that is, to determine whether the preset voice command is received, the mobile terminal sends an alarm message only when and only when the user has a preset expression and the mobile terminal receives the preset voice command. The double authentication procedure can greatly avoid the occurrence of false alarm triggering caused by a single instruction. BRIEF DESCRIPTION OF THE DRAWINGS

[0016] In order to more clearly illustrate the technical solutions in the embodiments of the present application or the prior art, the drawings required for use in the embodiments or the prior art descriptions are briefly introduced below. Obviously, the drawings described below are only some embodiments of the present application. For those of ordinary skill in the art, other drawings can be obtained based on these drawings without creative work, among which:

[0017] Figure 1 This is a flow chart of an embodiment of the automatic alarm method of the present application;

[0018] Figure 2 This application Figure 1 A schematic diagram of the process of step S11 in an embodiment of;

[0019] Figure 3 This application Figure 1 A schematic diagram of the process of step S12 in an embodiment of the present invention;

[0020] Figure 4 It is a schematic diagram of the framework of an embodiment of a mobile terminal of the present application;

[0021] Figure 5 It is a schematic diagram of a framework of an embodiment of a computer-readable storage medium of the present application. DETAILED DESCRIPTION

[0022] The following will be combined with the drawings in the embodiments of the present application to clearly and completely describe the technical solutions in the embodiments of the present application. Obviously, the described embodiments are only part of the embodiments of the present application, not all of the embodiments. Based on the embodiments in the present application, all other embodiments obtained by ordinary technicians in this field without creative work are within the scope of protection of this application.

[0023] The terms "first", "second", "third" in the embodiments of the present application are only used for descriptive purposes, and cannot be understood as indicating or implying relative importance or implicitly indicating the number of indicated technical features. Thus, the features defined as "first", "second", "third" can expressly or implicitly include at least one of the features. In the description of the present application, the meaning of "multiple" is at least two, such as two, three, etc., unless otherwise clearly and specifically defined. In addition, the terms "including" and "having" and any of their variations are intended to cover non-exclusive inclusions. For example, a process, method, system, product or device comprising a series of steps or units is not limited to the listed steps or units, but optionally also includes steps or units that are not listed, or optionally also includes other steps or units inherent to these processes, methods, products or devices.

[0024] Reference to "embodiments" herein means that a particular feature, structure, or characteristic described in conjunction with the embodiments may be included in at least one embodiment of the present application. The appearance of the phrase in various locations in the specification does not necessarily refer to the same embodiment, nor is it an independent or alternative embodiment that is mutually exclusive with other embodiments. It is explicitly and implicitly understood by those skilled in the art that the embodiments described herein may be combined with other embodiments.

[0025] The present application provides an automatic alarm method applied to a mobile terminal, which can automatically send an alarm message when the user is in a dangerous state without the user having to open the mobile terminal and perform an alarm operation. Furthermore, the automatic alarm method of the present application is provided with a dual authentication procedure, the first authentication procedure is to determine whether the user has a preset expression, if the preset expression appears, the second authentication procedure is started, that is, to determine whether a preset voice command is received, and the mobile terminal sends an alarm message only when and only when the user has a preset expression and the mobile terminal receives the preset voice command. The dual authentication procedure can greatly avoid the occurrence of false alarm triggering caused by a single instruction.

[0026] See also Figure 1 , Figure 1 It is a flow chart of an embodiment of the automatic alarm method of the present application. Figure 1 The method can be executed by a mobile terminal, which can be a mobile phone, a personal digital assistant (PDA), a smart wearable device, etc., as long as it can obtain user facial data and voice information and realize remote communication.

[0027] The specific implementation steps of the automatic alarm method of this application are as follows:

[0028] S11: Acquire facial data.

[0029] Specifically, the mobile terminal can capture the user's facial image in real time through a camera device (such as a front camera), and then extract and analyze the facial features of the static facial image to identify the user's facial expression. It can also dynamically capture the real-time movements of the user's face, use a model to extract features of the facial movements, and analyze the changes in the user's facial expressions.

[0030] In addition, the mobile terminal can also synchronously compare the facial data captured statically or dynamically with the facial data of the pre-recorded authorized user to confirm whether the facial data comes from the authorized user, thereby enhancing the accuracy of facial data recognition.

[0031] See also Figure 2 , Figure 2 This application Figure 1 FIG. 5 is a flow chart of step S11 in an embodiment of FIG.

[0032] In a specific embodiment of the present application, the mobile terminal may also obtain facial data in the following manner:

[0033] S111: In response to the mobile terminal being in a locked screen state, turning on a proximity sensor to obtain distance information.

[0034] Specifically, when the user does not start the phone, the mobile terminal will be in a dormant state, and the screen will automatically adjust to a locked screen state. In order to sense the user's startup operation, the mobile terminal will automatically turn on a proximity sensor to detect whether the user is close to the mobile terminal.

[0035] It is worth noting that the proximity sensor may be an infrared distance sensor, which can accurately sense whether the user's face is close to the mobile terminal and the distance information between the user's face and the mobile terminal through infrared ranging.

[0036] S112: In response to the distance information satisfying a preset distance threshold, turning on the camera to obtain image information.

[0037] Specifically, when the distance between the user's face and the mobile terminal is within a preset range, it can be inferred that the user wants to start the mobile terminal, and the mobile terminal can turn on the camera to obtain image information. In particular, the distance between the user's face and the mobile terminal can refer to the distance between the user's face and the mobile terminal screen.

[0038] It is worth noting that the preset range interval can set the distance threshold according to the actual situation, and the present application is not limited here. For example, in one embodiment, when the distance between the user's face and the mobile terminal is greater than 10cm and less than 50cm, it can be determined that the user is consciously approaching the mobile terminal, so it is inferred that the user is trying to start the mobile terminal, and the camera can be turned on to obtain the user's image information. However, when the distance between the user's face and the mobile terminal is less than 10cm, since the distance between the user's face and the mobile terminal is too close at this time, it is inferred that the user is answering the phone at this time, and the mobile terminal is close to the user's face. When the distance between the user's face and the mobile terminal is greater than 50cm, because the distance is far, it is inferred that the user has no intention of starting the mobile terminal at this time. Of course, the distance threshold can also be set by the user according to his own needs.

[0039] S113: In response to the image information including a face image, extracting facial data from the face image.

[0040] Specifically, the image information obtained by the camera includes both the face image and the surrounding environment image. Since the face image and the surrounding environment image are obviously different, the mobile terminal can distinguish the face image data from the surrounding environment image through a specific algorithm, and then focus on extracting the facial data in the face image to further judge the user's facial expression.

[0041] S12: In response to the facial data matching the preset expression, voice information is acquired.

[0042] Specifically, in order to accurately identify whether the user has an alarm need, the user may be required to record various expressions that may be involved when encountering danger in the mobile terminal in advance, such as expressions of panic, fear, and terror, or specific expressions pre-set by the user, such as pushing glasses with hands, touching the nose, blinking frequently, and holding the forehead, etc. These are preset expressions that can preliminarily infer that the user has the intention to alarm. When the mobile terminal obtains a facial image, it will extract data from it as soon as possible, and compare the extracted facial data with the preset expressions entered by the user in advance. When at least one expression is successfully matched, it is inferred that the user may need to call the police. At this time, the mobile terminal will start the recording function to obtain real-time voice information to further confirm whether the user does have an alarm need.

[0043] See also Figure 3 , Figure 3 This application Figure 1 FIG. 5 is a flow chart of step S12 in an embodiment of the present invention.

[0044] In one embodiment of the present application, in response to facial data matching a preset expression, acquiring voice information specifically includes:

[0045] S121: Perform identity recognition on facial data.

[0046] Specifically, after extracting facial data from a person's face, it can be compared with the facial information pre-entered by the user to determine whether it is a user pre-bound to the mobile terminal. Of course, in some embodiments, the user can enter multiple facial information in the mobile terminal in advance, such as his relatives, friends, etc. At this time, after the mobile terminal recognizes the identity of the user, it will further determine whether the user has preset an expression that can activate an alarm. If it is confirmed that the user has preset an expression that can activate an alarm, further expression recognition will be performed. If the facial data does not match the facial data of the user pre-bound to the mobile terminal, or the user to whom the facial data belongs has not preset an expression that can activate an alarm, expression recognition will not be further performed on the facial data.

[0047] S122: In response to the identity recognition being successful, performing expression recognition on the facial data.

[0048] Specifically, when the mobile terminal determines that the user to whom the facial data belongs is a user pre-bound to the mobile terminal, it will perform feature analysis on the facial data to identify the current expression of the user.

[0049] In some embodiments, if the user enters multiple facial information in advance, expression recognition will be further performed on the facial data only when the facial data matches the facial data of the user pre-bound to the mobile terminal and the user to whom the facial data belongs has preset an expression that can trigger an alarm.

[0050] In some embodiments, expression recognition can be specifically achieved through face detection technology and deep learning algorithms. For example, it can be achieved by utilizing transfer learning based on the MobileNetv3 model, YOLO target detection (You Only Look Once, real-time target detection system) combined with a CNN model for face area detection and expression classification, and using a deep convolutional neural network (CNN) to build an expression recognition model. The specific implementation method is not specifically limited in this application, as long as it can recognize the user's facial expressions.

[0051] S123: In response to the facial data matching the preset expression, releasing the lock screen state of the mobile terminal and acquiring voice information.

[0052] Specifically, when the mobile terminal determines that the user's facial data matches the preset expression, it can preliminarily determine that the user has an alarm demand. At this time, the lock screen state of the mobile terminal can be released, the mobile terminal will enter the working mode, and the recording function will be turned on simultaneously to obtain the current voice information in real time. It is worth noting that at this time, the mobile terminal can use implicit unlocking to unlock the screen to avoid others noticing the user's secret alarm behavior.

[0053] In some embodiments, in order to enable the police to obtain more effective information, the mobile terminal will also send out the information obtained from the aforementioned recording as an alarm message.

[0054] In another embodiment of the present application, the automatic alarm method also includes: obtaining at least one recorded facial image for representing different expressions; extracting facial data from at least one facial image as reference data, and storing the reference data; in response to the facial data matching a preset expression, releasing the lock screen state of the mobile terminal, and obtaining voice information, including: comparing the facial data with at least one reference data, and in response to the similarity between the facial data and any one of the at least one reference data satisfying a preset similarity threshold, releasing the lock screen state of the mobile terminal, and obtaining voice information.

[0055] Specifically, the user can record facial images with different expressions in the mobile terminal in advance, some of which can be used to unlock the mobile terminal normally, while other expressions can be used to automatically start the alarm program when the customer encounters an emergency, that is, the expressions that can start the alarm as mentioned above. When the user records different expressions in advance, the mobile terminal will extract facial data from the static or dynamic facial image of the expression as reference data for subsequent judgment on whether to start the alarm program.

[0056] Furthermore, during the subsequent use of the mobile terminal, when the camera captures the user's facial image, the facial data captured this time will be compared with the reference data one by one until the similarity between the facial data this time and any reference data reaches a preset similarity threshold, and then the corresponding next step can be executed, that is, unlocking the mobile terminal and starting the recording system.

[0057] It is worth noting that since there is a verification procedure of preset voice password verification, the preset similarity threshold can be set relatively low to avoid the user's face being too distorted or too numb in an emergency, causing the mobile terminal to fail to recognize the correct facial expression, thereby protecting the user's personal safety as much as possible. In some embodiments, the preset similarity threshold can be set to 70%, 75%, 80%, 85% or 90%. Of course, the user can also set the preset similarity threshold according to his own situation.

[0058] In one embodiment of the present application, in order to protect the user's personal information security, after the lock screen state of the mobile terminal is released, the key information of the mobile terminal can also be hidden, and the key information includes at least one of the following: the icon of the set application, the contact information of the set contact, and the set folder. Because the user is initially judged to be in an unsafe state at this time, in order to prevent criminals from obtaining the user's personal privacy information or using the user's mobile terminal to perform operations that are not beneficial to the user, the key information of the mobile terminal will be hidden. Of course, which specific applications or information to hide can also be personalized according to the actual needs of the user.

[0059] For example, when the mobile terminal recognizes that the user's facial data matches the preset expression, the mobile terminal will unlock the screen. To ensure the security of user information, the mobile terminal needs to identify whether the user is using the mobile terminal at this time. For example, a password can be further set to unlock the mobile terminal, that is, the mobile terminal can only be used normally after the user enters the correct password. When the user enters an incorrect password, the application that sets the user's personal privacy information will not be displayed, or in order to avoid suspicion from criminals, a false application can be displayed at this time, for example, a false WeChat / Alipay icon is displayed, and criminals can click on the icon normally, but the information inside is false, including contact information, balance information, etc. Among them, criminals can send information to false contacts through mobile terminals, and the system will display it normally, but in fact it will not have the effect of contacting the outside world, and will only send prompts such as "bad signal", "the other party is busy", and "the terminal is in arrears". The balance information can also display a false balance, such as "5 yuan", "50 cents", etc. The mobile terminal can consume within these false balances, but the part exceeding the false balance cannot be consumed. In short, this false information will make criminals believe its authenticity, but it is not the user's real information, thus paralyzing criminals while protecting the user's personal privacy.

[0060] S13: In response to the voice message containing a preset voice command, sending an alarm message.

[0061] Specifically, in addition to the aforementioned preset expressions, users can also pre-set voice commands on the mobile terminal, which will activate the alarm program when the user is in danger. After the mobile terminal recognizes that the facial data matches the preset expression and turns on the recording system, it will automatically identify whether there is a preset voice command that can activate the alarm program. These preset voice commands can be common sentences used by users when they encounter dangerous situations, such as "I won't call the police, I'll give you all the money", "Help", "Don't come over", etc., or they can be common sentences used by criminals, such as "Don't move, hand over the money", etc.

[0062] Furthermore, in one embodiment of the present application, the automatic alarm method further includes: acquiring a recorded reference voice; and performing text extraction on the reference voice to determine a preset voice command.

[0063] More specifically, performing text extraction on the reference speech to determine the preset voice password may also include: performing text recognition on the reference speech to obtain corresponding reference text; displaying the reference text and making the displayed reference text selectable; obtaining a selection instruction to determine that the selected text from the displayed reference text is the preset voice password.

[0064] If it is confirmed that there is a preset voice command that can start the alarm program, the alarm information will be automatically sent through the mobile terminal background. Sending the alarm information can specifically be directly sending an alarm text message to public security personnel, relatives, or calling an alarm phone.

[0065] In one embodiment of the present application, the alarm information includes at least one of location information, audio recording information, and video recording information. The location information can be obtained through at least one of GPS, Cell-ID, and WiFi. The audio recording and video recording information is the information recorded in real time after the mobile terminal turns on the recording system. Sending the audio recording and video recording information together helps the outside world (police, relatives, etc.) to obtain more detailed information in the first time, which is conducive to the outside world to quickly rescue the user in distress.

[0066] Specifically, after the alarm program is started, the mobile terminal will collect useful information as much as possible and send it to the police and relatives, including the user's real-time location information and audio and video information during the entire process. For example, the mobile terminal will share the current location with the police and relatives in real time when the alarm program is started, or send the latest current location information every 5 minutes, so as to track the user's location changes in real time, so as to facilitate the rapid rescue of the user. In addition, the mobile terminal will start the full recording and / or video recording function, and send the captured on-site voice conversation sound and environmental sound to the police and relatives, which can be transmitted in real time or every 5 minutes, so as to understand the user's current situation, the criminal's intention and the surrounding environment in real time. For example, the police can use the recording / video information to timely determine the number of criminals, their region and their true intentions (such as kidnapping or robbery, etc.), and can infer whether the two parties know each other from the conversation between the user and the criminal, so as to help narrow the search range of the criminal. In addition, the police can also use the recording / video information to determine the surrounding environment, such as the surrounding human characteristics, the surrounding geographical environment characteristics, etc., so as to quickly grasp the on-site information and facilitate the efficient development of the rescue work.

[0067] The present application also provides a mobile terminal 10, see Figure 4 , Figure 4It is a schematic diagram of a framework of an embodiment of the mobile terminal 10 of the present application. The mobile terminal 10 of the present application includes a memory 20, a processor 30, and a computer program stored in the memory 20 and executable on the processor 30. When the processor 30 executes the computer program, the steps of the above method are implemented. The steps at least include: obtaining facial data; in response to the facial data conforming to a preset expression, obtaining voice information; in response to the voice information containing a preset voice command, sending an alarm message. Based on this, the present application provides an automatic alarm method applied to a mobile terminal, which realizes the effect of automatically sending an alarm message when the user is in a dangerous state, without the user opening the mobile terminal and performing an alarm operation. Further, the automatic alarm method of the present application is provided with a dual authentication procedure, the first re-authentication procedure is to determine whether the user has a preset expression, if the preset expression appears, the second re-authentication procedure is started, that is, to determine whether the preset voice command is received, and the mobile terminal sends the alarm message only when and only when the user has a preset expression and the mobile terminal receives the preset voice command. The dual authentication procedure can greatly avoid the occurrence of false alarms caused by a single instruction.

[0068] In some specific embodiments, the present application can obtain facial data in the following ways: in response to the mobile terminal being in a locked state, turning on a proximity sensor to obtain distance information; in response to the distance information meeting a preset distance threshold, turning on a camera to obtain image information; in response to the image information containing a facial image, extracting facial data from the facial image.

[0069] In some specific embodiments, the automatic alarm method of the present application also includes: obtaining at least one recorded facial image for representing different expressions; extracting facial data from at least one facial image as reference data, and storing the reference data; in response to the facial data matching a preset expression, releasing the lock screen state of the mobile terminal, and obtaining voice information, including: comparing the facial data with at least one reference data, and in response to the similarity between the facial data and any one of the at least one reference data satisfying a preset similarity threshold, releasing the lock screen state of the mobile terminal, and obtaining voice information.

[0070] In some specific embodiments, after releasing the lock screen state of the mobile terminal, the automatic alarm method of the present application further includes: hiding key information of the mobile terminal, the key information including at least one of setting an application icon, setting contact information, and setting a folder.

[0071] The present application also provides a computer readable storage medium 40, see Figure 5 , Figure 5It is a schematic diagram of a framework of an embodiment of a computer-readable storage medium 40 of the present application. The computer-readable storage medium 40 includes computer instructions. When the computer instructions are executed on the electronic device 50, the electronic device 50 executes the above method. The method at least includes the following steps: obtaining facial data; in response to the facial data conforming to a preset expression, obtaining voice information; in response to the voice information containing a preset voice command, sending an alarm message. Based on this, the present application provides an automatic alarm method applied to a mobile terminal, which realizes the effect of automatically sending an alarm message when the user is in a dangerous state, without the user having to open the mobile terminal and perform an alarm operation. Further, the automatic alarm method of the present application is provided with a double authentication procedure, the first re-authentication procedure is to determine whether the user has a preset expression, and if the preset expression appears, the second re-authentication procedure is started, that is, to determine whether the preset voice command is received, and the mobile terminal sends the alarm message only when and only when the user has a preset expression and the mobile terminal receives the preset voice command. The double authentication procedure can greatly avoid the occurrence of the situation of false triggering of the alarm caused by a single instruction.

[0072] In some specific embodiments, the present application can obtain facial data in the following ways: in response to the mobile terminal being in a locked state, turning on a proximity sensor to obtain distance information; in response to the distance information meeting a preset distance threshold, turning on a camera to obtain image information; in response to the image information containing a facial image, extracting facial data from the facial image.

[0073] In some specific embodiments, the automatic alarm method of the present application also includes: obtaining at least one recorded facial image for representing different expressions; extracting facial data from at least one facial image as reference data, and storing the reference data; in response to the facial data matching a preset expression, releasing the lock screen state of the mobile terminal, and obtaining voice information, including: comparing the facial data with at least one reference data, and in response to the similarity between the facial data and any one of the at least one reference data satisfying a preset similarity threshold, releasing the lock screen state of the mobile terminal, and obtaining voice information.

[0074] In some specific embodiments, after releasing the lock screen state of the mobile terminal, the automatic alarm method of the present application further includes: hiding key information of the mobile terminal, the key information including at least one of setting an application icon, setting contact information, and setting a folder.

[0075] The mobile terminal 10, computer-readable storage medium 40, and computer program provided in the embodiments of the present application are all used to execute the corresponding methods provided above. Therefore, the beneficial effects that can be achieved can refer to the beneficial effects in the corresponding methods provided above, and will not be repeated here.

[0076] The technical solution of the present application, or the part that contributes to the prior art, or the whole or part of the technical solution can be embodied in the form of a software product. The computer program is stored in a memory, and includes several instructions for making a computer device (which can be a personal computer, server, or network device, etc.) or a processor execute all or part of the steps of the method described in each embodiment of the present application. The aforementioned memory includes: flash memory, mobile hard disk, read-only memory, random access memory, disk or optical disk, etc., various media that can store program instructions.

[0077] The above is only a specific implementation of the present application, but the protection scope of the present application is not limited thereto. Any changes or substitutions within the technical scope disclosed in the present application should be included in the protection scope of the present application. Therefore, the protection scope of the present application should be based on the protection scope of the claims.

Claims

1. An automatic alarm method, applied to a mobile terminal, characterized in that: include: Get facial data; In response to the facial data matching a preset expression, acquiring voice information; In response to the voice message containing a preset voice command, an alarm message is sent.

2. The automatic alarm method according to claim 1, characterized in that: The acquiring of facial data comprises: In response to the mobile terminal being in a locked screen state, turning on a proximity sensor to obtain distance information; In response to the distance information satisfying a preset distance threshold, turning on a camera to acquire image information; In response to the image information including a face image, facial data is extracted from the face image.

3. The automatic alarm method according to claim 2, characterized in that: The step of acquiring voice information in response to the facial data matching a preset expression comprises: Performing identity recognition on the facial data; In response to the identity recognition being passed, performing expression recognition on the facial data; In response to the facial data matching a preset expression, the lock screen state of the mobile terminal is released, and voice information is acquired.

4. The automatic alarm method according to claim 3, characterized in that: The automatic alarm method also includes: Acquire at least one recorded face image for expressing different expressions; extracting facial data from the at least one face image as reference data, and storing the reference data; In response to the facial data matching a preset expression, releasing the lock screen state of the mobile terminal and acquiring voice information include: The facial data is compared with at least one of the reference data, and in response to the similarity between the facial data and any one of the at least one reference data satisfying a preset similarity threshold, the lock screen state of the mobile terminal is released, and voice information is obtained.

5. The automatic alarm method according to claim 4, characterized in that: After releasing the lock screen state of the mobile terminal, the method further includes: Key information of the mobile terminal is hidden, and the key information includes at least one of a set application icon, a set contact method, and a set folder.

6. The automatic alarm method according to claim 1, characterized in that: The automatic alarm method also includes: Obtain the recorded reference voice; The reference voice is subjected to text extraction to determine a preset voice password.

7. The automatic alarm method according to claim 6, characterized in that: The extracting text from the reference voice to determine a preset voice command includes: Performing text recognition on the reference speech to obtain corresponding reference text; Displaying the reference text and making the displayed reference text selectable; A selection instruction is obtained to determine that the selected text from the displayed reference text is a preset voice command.

8. The automatic alarm method according to claim 1, characterized in that: The alarm information includes at least one of location information, audio recording information, and video recording information.

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: When the processor executes the computer program, the steps of the method according to any one of claims 1 to 8 are implemented.

10. A computer-readable storage medium comprising computer instructions, characterized in that: When the computer instructions are executed on an electronic device, the electronic device is enabled to execute the method according to any one of claims 1 to 8.