Terminal alarm method, device, computer equipment and storage medium

By introducing anti-theft mode and face recognition technology into mobile terminals, combined with wearable device signal strength judgment, the problem of inaccurate alarms when mobile terminals are stolen is solved, and the accuracy and safety of alarms are improved.

CN109409144BActive Publication Date: 2024-10-15PING AN TECH (SHENZHEN) CO LTD
View PDF 4 Cites -1 Cited by

Patent Information

Application Number
CN201811022610.6
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2018-09-03
Publication Date
2024-10-15
Estimated Expiration
2038-09-03

Smart Images

  • Figure CN109409144B_ABST
    Figure CN109409144B_ABST
Patent Text Reader

Abstract

The present application relates to the field of terminal security, and specifically to a terminal alarm method, device, computer equipment and storage medium. The method includes: obtaining the scenario reminder information to be pushed, and querying the time period corresponding to the scenario reminder information to be pushed; setting the terminal mode corresponding to the time period to the anti-theft mode; receiving an input screen opening instruction, the screen opening instruction carries the first user information; obtaining the current terminal mode, and determining whether the current terminal mode is the anti-theft mode; when the current terminal mode is the anti-theft mode, obtaining the pre-stored second user information; comparing whether the first user information is the same as the second user information; when the first user information is different from the second user information, an alarm is issued. The use of this method can improve the accuracy of the alarm.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present application relates to the field of computer technology, and in particular to a terminal alarm method, device, computer equipment and storage medium. Background Art

[0002] With the continuous development of mobile terminal technology, the use of mobile terminals has become more and more popular, and people are becoming more and more dependent on mobile terminal products. Mobile terminal devices are indispensable in life and work. However, when carrying mobile terminals, such as on a train, especially when users are sleeping, mobile terminals are very easy to be stolen by criminals, resulting in property losses and information leakage of users.

[0003] Currently, the anti-theft method for mobile terminals is to determine whether the user who opens the mobile terminal is the user himself, but this method is very easy to cause misjudgment. For example, when the user forgets his password or his finger is contaminated and causes fingerprint recognition error, the mobile terminal also alarms, which will cause the alarm to fail. Summary of the invention

[0004] Based on this, it is necessary to provide a terminal alarm method, device, computer equipment and storage medium that can improve the accuracy of alarms in response to the above technical problems.

[0005] A terminal alarm method, the method comprising:

[0006] Obtain the scenario reminder information to be pushed, and query the time period corresponding to the scenario reminder information to be pushed;

[0007] Setting the terminal mode corresponding to the time period to an anti-theft mode;

[0008] Receiving an input screen opening instruction, wherein the screen opening instruction carries first user information;

[0009] Obtaining the current terminal mode, and determining whether the current terminal mode is an anti-theft mode;

[0010] When the current terminal mode is the anti-theft mode, obtaining the pre-stored second user information;

[0011] comparing whether the first user information is the same as the second user information;

[0012] When the first user information is different from the second user information, an alarm is issued.

[0013] In one embodiment, when the first user information is different from the second user information, issuing an alarm includes:

[0014] When the first user information is different from the second user information, capturing an image of the first user through a camera;

[0015] Recognize a first face image from the first user image;

[0016] Acquire a pre-stored second facial image, and match the first facial image with the second facial image;

[0017] When the first face image does not match the second face image, an alarm is issued.

[0018] In one embodiment, identifying a first facial image from the first user image includes:

[0019] Identify an initial face image in the first user image, and obtain the number of pixels occupied by the initial face image;

[0020] Sorting the initial face images in descending order according to the number of pixels;

[0021] The initial face image ranked first is selected as the first face image.

[0022] In one embodiment, the method further comprises:

[0023] Regularly obtain selfies from an album and identify a third person's face image in the selfies;

[0024] Calculating the similarity between the third facial image and the second facial image;

[0025] A third facial image with the greatest similarity is selected to replace the second facial image.

[0026] In one embodiment, the alarming includes:

[0027] Obtain the pre-stored alarm contact terminal identifier;

[0028] The first facial image is sent to an alarm contact terminal corresponding to the alarm contact terminal identifier, where the first facial image is used to instruct the alarm contact terminal to obtain contact information of a user corresponding to the first facial image.

[0029] In one embodiment, before the alarm is issued, the method further includes:

[0030] Determine whether an application corresponding to the wearable device is installed locally;

[0031] If an application corresponding to the wearable device is installed locally, the application and the Bluetooth device are started in the background;

[0032] Connecting the wearable device with a Bluetooth device and acquiring the signal strength of the Bluetooth device through the application;

[0033] Determining whether the signal strength becomes weaker;

[0034] When the signal strength becomes weak, an alarm is issued.

[0035] In one embodiment, the alarming includes:

[0036] A vibration instruction is sent to the wearable device through the Bluetooth device; the vibration instruction is used to instruct the wearable device to vibrate.

[0037] A terminal alarm device, the device comprising:

[0038] A query module, used to obtain the scenario reminder information to be pushed, and query the time period corresponding to the scenario reminder information to be pushed;

[0039] A setting module, used to set the terminal mode corresponding to the time period to an anti-theft mode;

[0040] A receiving module, used for receiving an input screen opening instruction, wherein the screen opening instruction carries first user information;

[0041] A first judgment module is used to obtain the current terminal mode and judge whether the current terminal mode is an anti-theft mode;

[0042] A user information acquisition module, used for acquiring pre-stored second user information when the current terminal mode is the anti-theft mode;

[0043] A comparison module, used to compare whether the first user information is the same as the second user information;

[0044] The alarm module is used to generate an alarm when the first user information is different from the second user information.

[0045] A computer device comprises a memory and a processor, wherein the memory stores a computer program, and the processor implements the steps of any one of the above methods when executing the computer program.

[0046] A computer-readable storage medium stores a computer program, which implements the steps of any of the above methods when executed by a processor.

[0047] The above-mentioned terminal alarm method, device, computer equipment and storage medium introduce an anti-theft mode. Only when the terminal is in the anti-theft mode, an alarm will be issued when it is detected that the first user information carried by the screen-opening instruction is different from the second user information pre-stored in the mobile terminal. Otherwise, no alarm will be issued. This can avoid alarms caused by user misoperation and improve the accuracy of alarms. BRIEF DESCRIPTION OF THE DRAWINGS

[0048] Figure 1 This is an application scenario diagram of a terminal alarm method in an embodiment;

[0049] Figure 2 A schematic diagram of a process flow of a terminal alarm method in an embodiment;

[0050] Figure 3 A schematic diagram of a flow chart of a terminal alarm method in another embodiment;

[0051] Figure 4 A schematic diagram of a flow chart of a terminal alarm method in yet another embodiment;

[0052] Figure 5 It is a structural block diagram of a terminal alarm device in an embodiment;

[0053] Figure 6 FIG. 4 is a diagram showing the internal structure of a computer device in one embodiment. DETAILED DESCRIPTION

[0054] In order to make the purpose, technical solution and advantages of the present application more clearly understood, the present application is further described in detail below in conjunction with the accompanying drawings and embodiments. It should be understood that the specific embodiments described herein are only used to explain the present application and are not used to limit the present application.

[0055] The terminal alarm method provided by this application can be applied to Figure 1 In the application environment shown. The terminal 102 communicates with the wearable device through the network. After receiving the screen-opening instruction, the terminal determines whether the current mode of the terminal is in the anti-theft mode. If so, the first user information carried by the screen-opening instruction is compared with the pre-stored second user information to determine whether the user who wants to open the terminal is a trusted user. If so, no alarm is issued, otherwise an alarm is issued, thereby preventing the terminal from being stolen. When the terminal is connected to the wearable device, an alarm can also be issued through the wearable device. The terminal 102 can be, but is not limited to, various personal computers, laptops, smart phones, tablet computers and portable wearable devices.

[0056] In one embodiment, Figure 2 As shown, a terminal alarm method is provided, which is applied to Figure 1The terminal in is used as an example to illustrate, including the following steps:

[0057] S200: Acquire the scenario reminder information to be pushed, and query the time period corresponding to the scenario reminder information to be pushed.

[0058] Specifically, the situational reminder information is only information generated by the terminal based on the things to be processed in each time period in the user account. For example, after the user purchases a train ticket through the terminal, the boarding time corresponding to the train ticket will be obtained, and the situational reminder information corresponding to the boarding time can be generated to remind the user in time to avoid train delays, etc.

[0059] The terminal can obtain the scenario reminder information to be pushed, and thus can obtain the time period of the scenario reminder information to be pushed, such as the above-mentioned train travel time.

[0060] S201: Setting the terminal mode corresponding to the time period to the anti-theft mode.

[0061] Specifically, in order to prevent the user from forgetting to change the terminal mode to the anti-theft mode, the terminal can first obtain the time period and pre-set the terminal mode corresponding to the time period to the anti-theft mode. For example, the terminal can determine whether the current system time has reached the start time of the time period. If it has, the terminal mode is automatically set to the anti-theft mode in the background. This can prevent the user from forgetting to set it. For convenience, when the current system time reaches the end time of the time period, the terminal can be automatically set to other modes in the background, such as the terminal mode before the time period.

[0062] S202: receiving an input screen opening instruction, where the screen opening instruction carries first user information.

[0063] Specifically, the screen opening instruction is an instruction input by the user to open the terminal to display the applications installed in the terminal, etc. The screen opening instruction may be an instruction to input a user fingerprint, input a lock screen password, a screen opening gesture, or a lock screen face image, etc. Thus, the first user information may be a user fingerprint, input a lock screen password, a screen opening gesture, or a lock screen face image.

[0064] S204: Obtain the current terminal mode and determine whether the current terminal mode is an anti-theft mode.

[0065] Specifically, the current terminal mode is the mode that the terminal is currently in, such as silent mode, vibration mode, student mode, etc., wherein the anti-theft mode is introduced in this embodiment, and the anti-theft mode is a terminal mode used to indicate that an alarm is triggered when the first user information carried by the screen-opening instruction is different from the pre-stored second user information. In other modes, when the first user information carried by the screen-opening instruction is different from the pre-stored second user information, no alarm will be triggered, thereby improving the accuracy of the alarm. The terminal first reads the flag bit of the current terminal mode, and then determines the current terminal mode based on the flag bit. For example, 1 can represent the anti-theft mode, 2 represents the silent mode, 3 represents the student mode, etc. When the terminal determines that the flag bit is 1, it indicates that the terminal is in the anti-theft mode.

[0066] S206: When the current terminal mode is the anti-theft mode, obtain the pre-stored second user information.

[0067] Specifically, when the terminal determines that the current terminal mode is the anti-theft mode, the second user information pre-stored in the terminal or in a server communicating with the terminal can be obtained, and the second user information can also include a user fingerprint, an input lock screen password, a screen opening gesture, or a lock screen face image, etc. Optionally, the user fingerprint or lock screen face image can be fingerprints or face images of multiple trusted users pre-entered by the user.

[0068] S208: Compare the first user information and the second user information to see if they are the same.

[0069] Specifically, after obtaining the second user information, the terminal compares the first user information with the second user information. For example, when the user information is a user fingerprint or a lock screen face image, the similarity of the user fingerprint or the lock screen face image is compared. When the similarity is greater than a preset value, the first user information and the second user information are considered to be the same. Similarly, when the user information is a lock screen password or gesture, the lock screen password or gesture is compared to see if they are the same. Only when the first user information and the second user information are exactly the same will they be considered the same. Optionally, when the terminal stores multiple user fingerprints or lock screen face images, as long as one of the second user information is the same as the first user information, the first user information and the second user information are considered to be the same, otherwise they are not the same.

[0070] S210: When the first user information is different from the second user information, an alarm is issued.

[0071] Specifically, when the terminal determines that the first user information and the second user information are not the same, it will consider that the user currently using the terminal is not a trusted user, and thus will issue an alarm, such as emitting an alarm sound.

[0072] The above-mentioned terminal alarm method introduces an anti-theft mode. Only when the terminal is in the anti-theft mode, an alarm will be issued when it is detected that the first user information carried by the screen-opening instruction is different from the second user information pre-stored in the mobile terminal. Otherwise, no alarm will be issued. This can avoid alarms caused by user misoperation and improve the accuracy of alarms.

[0073] In one embodiment, when the first user information is different from the second user information, issuing an alarm may include: when the first user information is different from the second user information, capturing the first user image through a camera; identifying a first facial image from the first user image; obtaining a pre-stored second facial image, and matching the first facial image with the second facial image; and issuing an alarm when the first facial image does not match the second facial image.

[0074] In one embodiment, identifying a first facial image from a first user image may include: identifying an initial facial image in the first user image and obtaining the number of pixels occupied by the initial facial image; sorting the initial facial images in descending order according to the number of pixels; and selecting the initial facial image ranked first as the first facial image.

[0075] In one of the embodiments, the terminal alarm method may also include: regularly obtaining selfies in the album and identifying a third face image in the selfies; calculating the similarity between the third face image and the second face image; and selecting the third face image with the greatest similarity to replace the second face image.

[0076] In one embodiment, making an alarm may include: obtaining a pre-stored alarm contact terminal identifier; sending a first facial image to the alarm contact terminal corresponding to the alarm contact terminal identifier, the first facial image being used to instruct the alarm contact terminal to obtain contact information of a user corresponding to the first facial image.

[0077] Specifically, see Figure 3 As shown, Figure 3 This is a flow chart of a terminal alarm method in another embodiment. In this embodiment, face recognition is introduced to improve the accuracy of the alarm. That is, after the first user information recognition fails, the first user image of the mobile terminal is captured by the camera, and the first face image in the first user image is identified. The first face image is compared with the stored second face image. Only when the first face image does not match the second face image, an alarm is issued, thereby further improving the accuracy of the alarm.

[0078] Specifically, when the terminal determines that the first user information is not the same as the second user information, the camera can be turned on in the background, and the first user image of the user currently holding the terminal can be collected through the camera. In order to ensure the accuracy of subsequent recognition, the first facial image can be first identified from the first user image to exclude other interference information. The terminal obtains the pre-stored second facial image, which is pre-entered into the terminal by the user and is used to determine whether the user currently turning on the terminal is a legitimate user. The terminal matches the first facial image with the second facial image. When the first facial image and the second facial image are not the same, an alarm is issued. If the two are the same, it may be caused by user error, and the terminal will not issue an alarm.

[0079] Optionally, in order to ensure the accuracy of face recognition, the terminal may first identify an initial face image in the first user image captured by the camera. There may be multiple initial face images. For example, in a noisy environment, the camera may capture multiple faces, so that the terminal can identify multiple initial face images. In order to ensure the accuracy of the identified face images, the terminal calculates the areas of the multiple identified initial face images, which can be determined by the number of pixels occupied. Then, the initial face image with the largest area, that is, the initial face image with the most pixels occupied, is selected as the first face image, thereby ensuring the accuracy of the identified first face image. In order to ensure processing efficiency, in this embodiment, the initial face images are first sorted in descending order according to the number of pixels, and then the initial face image ranked first is obtained as the first face image.

[0080] Optionally, since a user may use a terminal for a long time and his or her face may change significantly, in order to ensure that the pre-stored second facial image is consistent with the user, the terminal can obtain the selfies in the album and then identify the third facial image in the selfies, where a selfie can be defined as a photo with only one face. The terminal first obtains the selfies, then the third facial image taken out of the selfies, and calculates the similarity between the third facial image and the current second facial image, and selects the third face with the greatest similarity to replace the current second facial image, thereby updating the second facial image and ensuring the accuracy of the match.

[0081] Optionally, the alarm method is to send an alarm sound through a mobile terminal. In addition, the picture taken by the camera can be sent to a fixed terminal. For example, when an alarm is needed, the terminal first obtains a pre-stored alarm contact terminal identifier, such as a phone number, email address or WeChat account, and the terminal sends the first facial image taken to the alarm contact terminal corresponding to the alarm contact terminal identifier, so that the alarm contact terminal can alarm according to the first facial image sent, so as to capture the criminals in time. For example, the alarm contact terminal can obtain the first facial image and match it with the standard facial image stored in the system, and then obtain the contact information of the user corresponding to the successfully matched facial image, identify it as a criminal, so that the police can easily obtain the contact information of the criminals, etc., and find the lost terminal as soon as possible.

[0082] In the above embodiment, face recognition is introduced to improve the accuracy of the alarm, that is, after the first user information recognition fails, the first user image of the mobile terminal is captured by the camera, and the first face image in the first user image is identified, and the first face image is compared with the stored second face image. Only when the first face image does not match the second face image, an alarm is issued, thereby further improving the accuracy of the alarm.

[0083] In one of the embodiments, before issuing an alarm, it may also include: determining whether an application corresponding to the wearable device is installed locally; if an application corresponding to the wearable device is installed locally, starting the application and the Bluetooth device in the background; connecting to the wearable device through the Bluetooth device, and obtaining the signal strength of the Bluetooth device through the application; determining whether the signal strength becomes weak; when the signal strength becomes weak, issuing an alarm.

[0084] In one embodiment, issuing an alarm may include: sending a vibration instruction to the wearable device via a Bluetooth device, where the vibration instruction is used to instruct the wearable device to vibrate.

[0085] Specifically, see Figure 4 As shown, Figure 4This is a flow chart of a terminal alarm method in another embodiment. In this embodiment, the user wears a wearable device, such as a smart bracelet, smart underwear, etc., and the wearable device can communicate with the terminal. When the terminal determines that the first user information carried by the screen-opening instruction is different from the pre-stored second user information, it can also determine whether the terminal has an application software corresponding to the wearable device installed locally. If so, the application software is opened in the background, and Bluetooth is started to connect to a nearby wearable device that has been paired with the terminal, and the strength of the Bluetooth signal after the connection is obtained to determine whether the Bluetooth signal becomes weak. If so, an alarm is issued. That is, if the Bluetooth signal becomes weak, it is considered that the user of the current handheld terminal is moving away from the wearable device, that is, the criminal is escaping, so an alarm is issued.

[0086] Optionally, the Bluetooth signal strength can be obtained through the indication value RSSI. For example, a registration scan broadcast is added in the oncreate method, and a new broadcastreceiver broadcast object is created, and the noreceive method is implemented in it, and the RSSI, that is, the Bluetooth signal strength, is obtained in onreceive.

[0087] Optionally, when a wearable device communicates with the terminal, the alarm method can also be that the terminal sends a vibration command to the wearable device to make the wearable device vibrate, thereby preventing the user from falling asleep and ignoring the sound emitted by the terminal. Such vibration can wake up the user and take the terminal back from the criminals in time.

[0088] In the above embodiment, a wearable device is introduced. When the terminal is installed with software corresponding to the wearable device, after determining that the first user information recognition fails, it is first determined whether software corresponding to the bracelet is installed locally. If so, it is turned on, and Bluetooth is turned on to connect to a nearby paired wearable device. If the connection is successful, it is determined whether the Bluetooth information has changed from strong to weak or is absent. If so, an alarm is issued, thereby further improving the accuracy of the alarm.

[0089] It should be understood that although Figure 2-4 The steps in the flowchart are shown in sequence as indicated by the arrows, but these steps are not necessarily executed in the order indicated by the arrows. Unless otherwise specified in this document, there is no strict order restriction for the execution of these steps, and these steps can be executed in other orders. Moreover, Figure 2-4 At least part of the steps may include multiple sub-steps or multiple stages. These sub-steps or stages are not necessarily executed at the same time, but can be executed at different times. The execution order of these sub-steps or stages is not necessarily sequential, but can be executed in turn or alternately with other steps or at least part of the sub-steps or stages of other steps.

[0090] In one embodiment, Figure 5 As shown, a terminal alarm device is provided, including: a query module 100, a setting module 200, a receiving module 300, a first judgment module 400, a user information acquisition module 500, a comparison module 600 and an alarm module 700, wherein:

[0091] The query module 100 is used to obtain the scenario reminder information to be pushed, and query the time period corresponding to the scenario reminder information to be pushed.

[0092] The setting module 200 is used to set the terminal mode corresponding to the time period to the anti-theft mode.

[0093] The receiving module 300 is used to receive an input screen opening instruction, where the screen opening instruction carries the first user information.

[0094] The first determination module 400 is used to obtain the current terminal mode and determine whether the current terminal mode is the anti-theft mode.

[0095] The user information acquisition module 500 is used to acquire pre-stored second user information when the current terminal mode is the anti-theft mode.

[0096] The comparison module 600 is used to compare whether the first user information is the same as the second user information.

[0097] The alarm module 700 is used to generate an alarm when the first user information is different from the second user information.

[0098] In one embodiment, the alarm module 700 may include:

[0099] The image acquisition unit is used to acquire the first user image through a camera when the first user information is different from the second user information.

[0100] The recognition unit is used to recognize a first face image from a first user image.

[0101] The matching unit is used to obtain a pre-stored second face image and match the first face image with the second face image.

[0102] The first alarm unit is used to generate an alarm when the first face image does not match the second face image.

[0103] In one embodiment, the identification unit may include:

[0104] The calculation subunit is used to identify the initial face image in the first user image and obtain the number of pixels occupied by the initial face image.

[0105] The sorting unit is used to sort the initial face images in descending order according to the number of pixels.

[0106] The selection subunit is used to select the initial face image ranked first as the first face image.

[0107] In one embodiment, the device may further include:

[0108] The image acquisition module is used to periodically acquire selfies in the album and identify the third person's face image in the selfies.

[0109] The calculation module is used to calculate the similarity between the third face image and the second face image.

[0110] The replacement module is used to select a third face image with the greatest similarity to replace the second face image.

[0111] In one embodiment, the first alarm unit may include:

[0112] The identification acquisition subunit is used to obtain the pre-stored alarm contact terminal identification.

[0113] The sending subunit is used to send a first face image to the alarm contact terminal corresponding to the alarm contact terminal identifier, where the first face image is used to instruct the alarm contact terminal to obtain contact information of a user corresponding to the first face image.

[0114] In one embodiment, the alarm module 700 may include:

[0115] The second determination unit is used to determine whether an application corresponding to the wearable device is installed locally.

[0116] The startup unit is used to start the application and the Bluetooth device in the background if an application corresponding to the wearable device is installed locally.

[0117] The signal strength acquisition unit is used to connect to the wearable device through the Bluetooth device and obtain the signal strength of the Bluetooth device through the application.

[0118] The third judging unit is used to judge whether the signal strength becomes weaker.

[0119] The second alarm unit is used to issue an alarm when the signal strength becomes weak.

[0120] In one of the embodiments, the second alarm unit may also be used to send a vibration instruction to the wearable device via a Bluetooth device, where the vibration instruction is used to instruct the wearable device to vibrate.

[0121] For the specific definition of the terminal alarm device, please refer to the definition of the terminal alarm method above, which will not be repeated here. Each module in the above terminal alarm device can be implemented in whole or in part by software, hardware and a combination thereof. The above modules can be embedded in or independent of the processor in the computer device in the form of hardware, or can be stored in the memory of the computer device in the form of software, so that the processor can call and execute the operations corresponding to the above modules.

[0122] In one embodiment, a computer device is provided. The computer device may be a terminal, and its internal structure diagram may be as follows: Figure 6 As shown. The computer device includes a processor, a memory, a network interface, a display screen and an input device connected through a system bus. Among them, the processor of the computer device is used to provide computing and control capabilities. The memory of the computer device includes a non-volatile storage medium and an internal memory. The non-volatile storage medium stores an operating system and a computer program. The internal memory provides an environment for the operation of the operating system and the computer program in the non-volatile storage medium. The network interface of the computer device is used to communicate with an external terminal through a network connection. When the computer program is executed by the processor, a terminal alarm method is implemented. The display screen of the computer device can be a liquid crystal display screen or an electronic ink display screen, and the input device of the computer device can be a touch layer covering the display screen, or a key, trackball or touchpad set on the computer device housing, or an external keyboard, touchpad or mouse, etc.

[0123] Those skilled in the art will understand that Figure 6 The structure shown in the figure is only a block diagram of a part of the structure related to the solution of the present application, and does not constitute a limitation on the computer device to which the solution of the present application is applied. The specific computer device may include more or fewer components than those shown in the figure, or combine certain components, or have a different arrangement of components.

[0124] In one embodiment, a computer device is provided, including a memory and a processor, the memory storing a computer program, and the processor implementing the following steps when executing the computer program: obtaining scenario reminder information to be pushed, and querying the time period corresponding to the scenario reminder information to be pushed; setting the terminal mode corresponding to the time period to an anti-theft mode; receiving an input screen opening instruction, the screen opening instruction carrying first user information; obtaining the current terminal mode, and determining whether the current terminal mode is the anti-theft mode; when the current terminal mode is the anti-theft mode, obtaining pre-stored second user information; comparing whether the first user information is the same as the second user information; and when the first user information is different from the second user information, issuing an alarm.

[0125] In one embodiment, when the first user information is different from the second user information, the alarm implemented by the processor executing the computer program may include: when the first user information is different from the second user information, capturing the first user image through a camera; identifying a first facial image from the first user image; obtaining a pre-stored second facial image, and matching the first facial image with the second facial image; and when the first facial image does not match the second facial image, issuing an alarm.

[0126] In one embodiment, identifying a first facial image from a first user image when a processor executes a computer program may include: identifying an initial facial image in the first user image, and obtaining the number of pixels occupied by the initial facial image; sorting the initial facial images in descending order according to the number of pixels; and selecting the initial facial image ranked first as the first facial image.

[0127] In one embodiment, when the processor executes the computer program, the following steps are also implemented: regularly obtaining selfies in the album and identifying a third facial image in the selfies; calculating the similarity between the third facial image and the second facial image; and selecting the third facial image with the greatest similarity to replace the second facial image.

[0128] In one embodiment, the alarm implemented when the processor executes the computer program may include: obtaining a pre-stored alarm contact terminal identifier; sending a first facial image to the alarm contact terminal corresponding to the alarm contact terminal identifier, the first facial image being used to instruct the alarm contact terminal to obtain contact information of a user corresponding to the first facial image.

[0129] In one embodiment, before the alarm is implemented when the processor executes the computer program, it may also include: determining whether an application corresponding to the wearable device is installed locally; if an application corresponding to the wearable device is installed locally, starting the application and the Bluetooth device in the background; connecting to the wearable device through the Bluetooth device, and obtaining the signal strength of the Bluetooth device through the application; determining whether the signal strength becomes weak; when the signal strength becomes weak, executing an alarm.

[0130] In one embodiment, the alarm performed when the processor executes the computer program may include: sending a vibration instruction to the wearable device via a Bluetooth device, where the vibration instruction is used to instruct the wearable device to vibrate.

[0131] In one embodiment, a computer-readable storage medium is provided, on which a computer program is stored. When the computer program is executed by a processor, the following steps are implemented: obtaining scenario reminder information to be pushed, and querying the time period corresponding to the scenario reminder information to be pushed; setting the terminal mode corresponding to the time period to the anti-theft mode; receiving an input screen opening instruction, the screen opening instruction carries the first user information; obtaining the current terminal mode, and determining whether the current terminal mode is the anti-theft mode; when the current terminal mode is the anti-theft mode, obtaining the pre-stored second user information; comparing whether the first user information is the same as the second user information; and when the first user information is different from the second user information, issuing an alarm.

[0132] In one embodiment, when the first user information is different from the second user information, the alarm implemented by the computer program executed by the processor may include: when the first user information is different from the second user information, capturing the first user image through a camera; identifying a first facial image from the first user image; obtaining a pre-stored second facial image, and matching the first facial image with the second facial image; and when the first facial image does not match the second facial image, issuing an alarm.

[0133] In one embodiment, the computer program executed by the processor to identify the first facial image from the first user image may include: identifying an initial facial image in the first user image, obtaining the number of pixels occupied by the initial facial image; sorting the initial facial images in descending order according to the number of pixels; and selecting the initial facial image ranked first as the first facial image.

[0134] In one embodiment, when the computer program is executed by the processor, the following steps are also implemented: regularly obtaining selfies in the album and identifying a third facial image in the selfies; calculating the similarity between the third facial image and the second facial image; and selecting the third facial image with the greatest similarity to replace the second facial image.

[0135] In one embodiment, the alarm implemented when the computer program is executed by the processor may include: obtaining a pre-stored alarm contact terminal identifier; sending a first facial image to the alarm contact terminal corresponding to the alarm contact terminal identifier, the first facial image being used to instruct the alarm contact terminal to obtain contact information of the user corresponding to the first facial image.

[0136] In one embodiment, before the alarm is implemented when the computer program is executed by the processor, it may also include: determining whether an application corresponding to the wearable device is installed locally; if an application corresponding to the wearable device is installed locally, starting the application and the Bluetooth device in the background; connecting to the wearable device through the Bluetooth device, and obtaining the signal strength of the Bluetooth device through the application; determining whether the signal strength becomes weak; when the signal strength becomes weak, executing an alarm.

[0137] In one embodiment, the alarm performed when the computer program is executed by the processor may include: sending a vibration instruction to the wearable device via a Bluetooth device, where the vibration instruction is used to instruct the wearable device to vibrate.

[0138] Those of ordinary skill in the art can understand that all or part of the processes in the above-mentioned embodiment methods can be implemented by instructing the relevant hardware through a computer program, and the computer program can be stored in a non-volatile computer-readable storage medium. When the computer program is executed, it can include the processes of the embodiments of the above-mentioned methods. Among them, any reference to memory, storage, database or other media used in the embodiments provided in this application may include non-volatile and / or volatile memory. Non-volatile memory may include read-only memory (ROM), programmable ROM (PROM), electrically programmable ROM (EPROM), electrically erasable programmable ROM (EEPROM) or flash memory. Volatile memory may include random access memory (RAM) or external cache memory. By way of illustration and not limitation, RAM is available in many forms, such as static RAM (SRAM), dynamic RAM (DRAM), synchronous DRAM (SDRAM), double data rate SDRAM (DDRSDRAM), enhanced SDRAM (ESDRAM), synchronous link (Synchlink) DRAM (SLDRAM), memory bus (Rambus) direct RAM (RDRAM), direct memory bus dynamic RAM (DRDRAM), and memory bus dynamic RAM (RDRAM), etc.

[0139] The technical features of the above embodiments may be arbitrarily combined. To make the description concise, not all possible combinations of the technical features in the above embodiments are described. However, as long as there is no contradiction in the combination of these technical features, they should be considered to be within the scope of this specification.

[0140] The above-mentioned embodiments only express several implementation methods of the present application, and the descriptions thereof are relatively specific and detailed, but they cannot be understood as limiting the scope of the invention patent. It should be pointed out that, for a person of ordinary skill in the art, several variations and improvements can be made without departing from the concept of the present application, and these all belong to the protection scope of the present application. Therefore, the protection scope of the patent of the present application shall be subject to the attached claims.

Claims

1. A terminal alarm method, the method comprising: Obtain the scenario reminder information to be pushed, and query the time period corresponding to the scenario reminder information to be pushed; Setting the terminal mode corresponding to the time period to an anti-theft mode; Receiving an input screen opening instruction, wherein the screen opening instruction carries first user information; Obtaining the current terminal mode, and determining whether the current terminal mode is an anti-theft mode; When the current terminal mode is the anti-theft mode, obtaining pre-stored second user information; comparing whether the first user information is the same as the second user information; When the first user information is different from the second user information, an alarm is issued; When the current terminal mode is another mode, if the first user information is different from the second user information, no alarm is issued; When the first user information is different from the second user information, an alarm is issued, including: When the first user information is different from the second user information, capturing an image of the first user through a camera; Recognize a first face image from the first user image; Acquire a pre-stored second facial image, and match the first facial image with the second facial image; When the first face image does not match the second face image, an alarm is issued; Regularly obtain selfies from an album and identify a third person's face image in the selfies; Calculating the similarity between the third facial image and the second facial image; Selecting a third facial image with the greatest similarity to replace the second facial image; The step of identifying a first face image from the first user image includes: Identify an initial face image in the first user image, and obtain the number of pixels occupied by the initial face image; Sorting the initial face images in descending order according to the number of pixels; The initial face image ranked first is selected as the first face image.

2. The method according to claim 1, characterized in that The alarming comprises: Obtain the pre-stored alarm contact terminal identifier; The first facial image is sent to an alarm contact terminal corresponding to the alarm contact terminal identifier, where the first facial image is used to instruct the alarm contact terminal to obtain contact information of a user corresponding to the first facial image.

3. The method according to claim 1, characterized in that Before the alarm is issued, the method further includes: Determine whether an application corresponding to the wearable device is installed locally; If an application corresponding to the wearable device is installed locally, the application and the Bluetooth device are started in the background; Connecting the wearable device with a Bluetooth device and acquiring the signal strength of the Bluetooth device through the application; Determining whether the signal strength becomes weaker; When the signal strength becomes weak, an alarm is issued.

4. The method according to claim 3, characterized in that The alarming comprises: A vibration instruction is sent to the wearable device through the Bluetooth device; the vibration instruction is used to instruct the wearable device to vibrate.

5. A terminal alarm device, characterized in that: The device comprises: A query module, used to obtain the scenario reminder information to be pushed, and query the time period corresponding to the scenario reminder information to be pushed; A setting module, used to set the terminal mode corresponding to the time period to an anti-theft mode; A receiving module, used for receiving an input screen opening instruction, wherein the screen opening instruction carries first user information; A first judgment module is used to obtain the current terminal mode and judge whether the current terminal mode is an anti-theft mode; A user information acquisition module, used for acquiring pre-stored second user information when the current terminal mode is the anti-theft mode; A comparison module, used to compare whether the first user information is the same as the second user information; an alarm module, configured to generate an alarm when the first user information is different from the second user information; and not generate an alarm when the first user information is different from the second user information when the current terminal mode is another mode; The alarm module comprises: an image acquisition unit, configured to acquire an image of the first user through a camera when the first user information is different from the second user information; an identification unit, configured to identify a first face image from the first user image; a matching unit, configured to obtain a pre-stored second face image, and match the first face image with the second face image; A first alarm unit, configured to generate an alarm when the first face image does not match the second face image; An image acquisition module, used to regularly acquire selfies in the album and identify a third person's face image in the selfies; A calculation module, used for calculating the similarity between the third face image and the second face image; A replacement module, used for selecting a third face image with the greatest similarity to replace the second face image; The identification unit comprises: A calculation subunit, used to identify an initial face image in the first user image, and obtain the number of pixels occupied by the initial face image; A sorting unit, used to sort the initial face images in descending order according to the number of pixels; The selection subunit is used to select the initial face image ranked first as the first face image.

6. The device according to claim 5, characterized in that The first alarm unit comprises: The identification acquisition subunit is used to acquire the pre-stored alarm contact terminal identification; The sending subunit is used to send the first facial image to the alarm contact terminal corresponding to the alarm contact terminal identifier, wherein the first facial image is used to instruct the alarm contact terminal to obtain contact information of a user corresponding to the first facial image.

7. The device according to claim 5, characterized in that Before the alarm is issued, the method further includes: A second determination unit, configured to determine whether an application corresponding to the wearable device is installed locally; A startup unit, configured to start the application and the Bluetooth device in the background if an application corresponding to the wearable device is installed locally; A signal strength acquisition unit, used to connect to the wearable device via a Bluetooth device and acquire the signal strength of the Bluetooth device via the application; A third judging unit, used to judge whether the signal strength becomes weaker; The second alarm unit is used to issue an alarm when the signal strength becomes weak.

8. The device according to claim 7, characterized in that The second alarm unit is further used to send a vibration instruction to the wearable device through the Bluetooth device; the vibration instruction is used to instruct the wearable device to vibrate.

9. A computer device comprising a memory and a processor, wherein the memory stores a computer program, wherein: When the processor executes the computer program, the steps of the method according to any one of claims 1 to 4 are implemented.

10. A computer-readable storage medium having a computer program stored thereon, characterized in that: When the computer program is executed by a processor, the steps of the method according to any one of claims 1 to 4 are implemented.

Citation Information

Patent Citations

  • Intelligent mobile phone, theft tracking system and theft tracking method

    CN106534516A

  • Terminal alarming method, terminal and computer readable storage medium

    CN108052812A

  • Terminal anti-theft alarm method, terminal, computer device and storage medium

    CN108234737A

  • Method and device for implementing guard against theft for mobile termianal by face recognition

    WO2012109840A1