Stress alarm method and system based on face recognition and gesture recognition
Through face recognition and gesture recognition technology, the user's coercion status is recognized and alarm information is automatically sent, which solves the problem of traditional security measures being unable to respond in coercion situations, and enables users to seek covert help and safety assurance in coercion situations.
Patent Information
- Application Number
- CN202410746351.0
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-06-11
- Publication Date
- 2024-09-24
AI Technical Summary
Existing technology cannot effectively identify and respond to alarm intentions when users are under duress, traditional identity verification methods cannot protect user safety under duress, and traditional methods of seeking help are not feasible or unsafe.
A coercion alarm method based on face recognition and gesture recognition is adopted. By obtaining the user's face image and comparing it with the preset database, the similarity score is determined. If it is greater than the threshold, gesture recognition is started, the user's coercion gesture is recognized, and the preset database is sent. The alarm object sends alarm information and unlocks the door lock.
Accurately and quickly identify and respond to alarm intentions when users are under duress, send out help signals silently, improve user safety, and ensure that alarm information is only sent under duress.
Smart Images

Figure CN118692199A
Abstract
Description
Technical Field
[0001] The present invention relates to the technical field of smart door locks, and in particular to a duress alarm method and system based on face recognition and gesture recognition, a smart door lock and a computer-readable storage medium. Background Art
[0002] Security issues in modern society are becoming increasingly prominent, and people are increasingly concerned about personal safety. In many cases, people may not be able to call for help directly for various reasons, such as being kidnapped, robbed, or other forms of coercion. Under coercion, users cannot use conventional authentication methods to seek help because doing so may allow the coercer to succeed. Traditional security measures such as passwords and fingerprint recognition may not be able to effectively protect user safety under coercion. Traditional ways of asking for help, such as shouting or using a mobile phone to call the police, may not be feasible or safe in some cases, and users under coercion need a covert alarm method, that is, to let users send out a help signal without making any noise to avoid angering or attracting the attention of the coercer.
[0003] Therefore, the prior art still needs to be improved and developed. Summary of the invention
[0004] The main purpose of the present invention is to provide a duress alarm method, system, smart door lock and computer-readable storage medium based on face recognition and gesture recognition, aiming to solve the problem in the prior art that when the user is in a duress state, the door lock cannot understand the user's intention to alarm and cannot make an alarm response in a timely and covert manner.
[0005] To achieve the above object, the present invention provides a duress alarm method based on face recognition and gesture recognition, and the duress alarm method based on face recognition and gesture recognition comprises the following steps:
[0006] Obtaining a facial image of the user, and comparing the facial image with each facial image stored in a preset registered facial image database to obtain a highest similarity score;
[0007] Determining whether the highest similarity score is greater than a similarity score threshold, and if the highest similarity score is greater than the similarity score threshold, starting a gesture recognition function to recognize a user's gesture action;
[0008] The gesture action is compared with the duress gesture pre-stored by the corresponding user. If the gesture action is consistent with the duress gesture, a preset alarm message is sent to a preset alarm object and the door lock is unlocked.
[0009] Optionally, the duress alarm method based on face recognition and gesture recognition, wherein the step of obtaining a face image of a user and comparing the face image with each face image stored in a preset registered face image database to obtain a highest similarity score, specifically includes:
[0010] Pre-storing at least one facial image of a different user in a preset registered facial image database;
[0011] After capturing a facial image of a current user facing the smart door lock camera, the facial image is mapped to a feature space through a deep learning model;
[0012] In the feature space, the facial image is compared with each facial image stored in a preset registered facial image database one by one using a similarity measurement method such as Euclidean distance, cosine similarity or Mahalanobis distance to obtain a plurality of similarity scores;
[0013] A highest similarity score is selected from the plurality of similarity scores.
[0014] Optionally, the duress alarm method based on face recognition and gesture recognition, wherein the step of judging whether the highest similarity score is greater than a similarity score threshold, and if the highest similarity score is greater than the similarity score threshold, starting a gesture recognition function to recognize the user's gesture action, specifically includes:
[0015] Presetting and storing a similarity score threshold, and determining whether the highest similarity score is greater than the similarity score threshold;
[0016] If the highest similarity score is greater than the similarity score threshold, the gesture recognition function is started and a gesture recognition algorithm is used to recognize the user's gesture action.
[0017] Optionally, the duress alarm method based on face recognition and gesture recognition, wherein the step of using a gesture recognition algorithm to recognize a user's gesture action specifically includes:
[0018] Use a depth camera or infrared sensor to capture images of the user's gestures;
[0019] Preprocessing the captured gesture image, wherein the preprocessing includes denoising, filtering and enhancement operations;
[0020] Separate the user's gesture from the background using background subtraction or skin color detection techniques;
[0021] The machine learning algorithm is used to perform feature learning and extraction on the gesture image, key feature points are extracted from the gesture image, geometric features of the gesture are calculated, and the user's gesture action is obtained.
[0022] Optionally, in the duress alarm method based on face recognition and gesture recognition, the step of judging whether the highest similarity score is greater than a similarity score threshold further comprises:
[0023] If the highest similarity score is not greater than the similarity score threshold, the door lock is kept locked.
[0024] Optionally, the duress alarm method based on face recognition and gesture recognition, wherein the gesture action is compared with a duress gesture pre-stored by the corresponding user, and if the gesture action is consistent with the duress gesture, a preset alarm message is sent to a preset alarm object, and a door lock is unlocked, specifically comprising:
[0025] According to the settings of different users, at least one coercive gesture of different users is stored in a gesture database in advance, and a preset alarm object bound to each user is pre-set;
[0026] Comparing the gesture action of the current user with all the coercive gestures in the gesture database, calculating a similarity score, and judging whether there is a coercive gesture pre-stored by the corresponding user in the gesture database according to the similarity score and the classification result;
[0027] If there is a duress gesture pre-stored by the corresponding user in the gesture database, it means that the current user is in a duress state, and a preset alarm message is automatically sent to a preset alarm object through a preset communication method, and the door lock is unlocked.
[0028] Optionally, in the duress alarm method based on face recognition and gesture recognition, the alarm information includes the user's identity information, current location and a danger prompt that the user is in a dangerous state.
[0029] In addition, to achieve the above-mentioned purpose, the present invention further provides a duress alarm system based on face recognition and gesture recognition, wherein the duress alarm system based on face recognition and gesture recognition comprises:
[0030] A face comparison module, used to obtain a face image of a user, and compare the face image with each face image stored in a preset registered face image database to obtain a highest similarity score;
[0031] A gesture recognition module, used to determine whether the highest similarity score is greater than a similarity score threshold, and if the highest similarity score is greater than the similarity score threshold, start a gesture recognition function to recognize the user's gesture action;
[0032] The alarm unlocking module is used to compare the gesture action with the coercion gesture pre-stored by the corresponding user. If the gesture action is consistent with the coercion gesture, a preset alarm message is sent to a preset alarm object and the door lock is unlocked.
[0033] In addition, to achieve the above-mentioned purpose, the present invention also provides a smart door lock, wherein the smart door lock includes: a memory, a processor, and a duress alarm program based on face recognition and gesture recognition stored in the memory and runnable on the processor, wherein the duress alarm program based on face recognition and gesture recognition, when executed by the processor, implements the steps of the duress alarm method based on face recognition and gesture recognition as described above.
[0034] In addition, to achieve the above-mentioned purpose, the present invention also provides a computer-readable storage medium, wherein the computer-readable storage medium stores a duress alarm program based on face recognition and gesture recognition, and when the duress alarm program based on face recognition and gesture recognition is executed by a processor, the steps of the duress alarm method based on face recognition and gesture recognition as described above are implemented.
[0035] In the present invention, a facial image of a user is obtained, and the facial image is compared with each facial image stored in a preset registered facial image database to obtain the highest similarity score; it is determined whether the highest similarity score is greater than a similarity score threshold, and if the highest similarity score is greater than the similarity score threshold, a gesture recognition function is activated to recognize the user's gesture action; the gesture action is compared with a coercive gesture pre-stored by the corresponding user, and if the gesture action is consistent with the coercive gesture, a preset alarm message is sent to a preset alarm object, and the door lock is unlocked. The present invention aims to combine facial recognition and gesture recognition, accurately and quickly identify and respond to the user's intention to alarm when the user is in a coercive state, and send an alarm message to a preset alarm object, so that the user can silently seek help in a coercive state, thereby improving the user's safety. BRIEF DESCRIPTION OF THE DRAWINGS
[0036] Figure 1 It is a flow chart of a preferred embodiment of the duress alarm method based on face recognition and gesture recognition of the present invention;
[0037] Figure 2 It is a schematic diagram of the entire process of realizing the detection of the duress state and invisible help-seeking by the smart door lock in the preferred embodiment of the duress alarm method based on face recognition and gesture recognition of the present invention;
[0038] Figure 3 It is a structural diagram of a preferred embodiment of the duress alarm system based on face recognition and gesture recognition of the present invention;
[0039] Figure 4 This is a structural diagram of a preferred embodiment of the smart door lock of the present invention. DETAILED DESCRIPTION
[0040] In order to make the purpose, technical solution and advantages of the present invention clearer and more specific, the present invention is further described in detail below with reference to the accompanying drawings and examples. It should be understood that the specific embodiments described herein are only used to explain the present invention and are not used to limit the present invention.
[0041] The intimidation alarm method based on face recognition and gesture recognition described in the preferred embodiment of the present invention is as follows: Figure 1 and Figure 2 As shown, the duress alarm method based on face recognition and gesture recognition includes the following steps:
[0042] Step S10: Obtain a facial image of the user, and compare the facial image with each facial image stored in a preset registered facial image database to obtain a highest similarity score.
[0043] Specifically, at least one facial image of a different user (for example, multiple facial images taken at different angles) is stored in a preset registered facial image database in advance, and then compared with the facial images in the subsequent steps. After capturing the facial image of the current user facing the smart door lock camera, the facial image is mapped to a feature space through a deep learning model. In the feature space, the facial image is compared one by one with each facial image stored in the preset registered facial image database using a similarity measurement method such as Euclidean distance, cosine similarity or Mahalanobis distance to obtain multiple similarity scores, and finally the highest similarity score is selected from the multiple similarity scores.
[0044] Among them, deep learning models, especially convolutional neural networks (CNN), have achieved remarkable results in the field of face recognition. By training a deep network, face images can be mapped to a feature space, and then similarity metrics (such as Euclidean distance or cosine similarity) are used in this space to compare features.
[0045] In the face recognition system of smart door locks, comparing the similarity of facial features usually involves the following technical methods:
[0046] (1) Euclidean distance: Euclidean distance is the simplest distance measurement method. It calculates the straight-line distance between two feature vectors in a multidimensional space. In face recognition, the extracted feature vectors can be regarded as points in a high-dimensional space. The smaller the Euclidean distance, the more similar the two features are.
[0047] (2) Cosine Similarity: Cosine similarity is used to determine the similarity between two vectors by calculating the cosine value of the angle between them. It measures the degree of similarity between the vectors in direction, rather than in magnitude. The closer the cosine value is to 1, the more similar the directions of the two vectors are, and the more matching the features are.
[0048] (3) Mahalanobis distance: Mahalanobis distance takes into account the covariance of the data and is applicable to situations where there is correlation between features. It can better handle the multicollinearity problem between features and provide a more accurate similarity measure.
[0049] Step S20: determining whether the highest similarity score is greater than a similarity score threshold; if the highest similarity score is greater than the similarity score threshold, starting a gesture recognition function to recognize the user's gesture action.
[0050] Specifically, a similarity score threshold is pre-set and stored, and it is determined whether the highest similarity score is greater than the similarity score threshold. If the highest similarity score is greater than the similarity score threshold, the gesture recognition function is started, and the gesture recognition algorithm is used to recognize the user's gesture action. Figure 2 As shown, if the highest similarity score is not greater than the similarity score threshold, the door lock is kept locked.
[0051] The specific process of using gesture recognition algorithm to recognize the user's gesture action is as follows:
[0052] (1) Using a depth camera or an infrared sensor to capture a user's gesture image; preprocessing the captured gesture image, wherein the preprocessing includes operations such as denoising, filtering, and enhancement to improve the accuracy of gesture features.
[0053] (2) Use background subtraction or skin color detection technology to separate the user's gesture from the background for subsequent feature extraction.
[0054] (3) Using a machine learning algorithm (such as SVM (support vector machine), KNN (K nearest neighbor) or a deep learning model) to perform feature learning and extraction on the gesture image, extract key feature points (such as the position information of fingertips, wrists, etc.) from the gesture image, calculate the geometric features of the gesture (such as the angle between fingers, the shape of the gesture outline, etc.), and obtain the user's gesture action.
[0055] Step S30: compare the gesture action with the duress gesture pre-stored by the corresponding user. If the gesture action is consistent with the duress gesture, send a preset alarm message to the preset alarm target and unlock the door lock.
[0056] Specifically, at least one coercive gesture of different users (each user can also store multiple coercive gestures according to his own habits) is stored in a gesture database in advance according to the settings of different users, and a preset alarm object bound to each user is preset; the gesture action of the current user is compared with all the coercive gestures in the gesture database, and a similarity score is calculated. The gestures are classified using a classifier, such as a decision tree, a random forest or a neural network, and it is determined whether there is a coercive gesture pre-stored by the corresponding user in the gesture database according to the similarity score and the classification result; if there is a coercive gesture pre-stored by the corresponding user in the gesture database, it means that the current user is in a coerced state, and a preset alarm message (the alarm message includes the user's identity information, current location and a danger prompt that the user is in a dangerous state) is automatically sent to the preset alarm object through a preset communication method (such as SMS, email, or any other preset communication method), and the door lock is unlocked. In this process, the user's behavior looks like a normal face recognition process and will not arouse the suspicion of the coercer.
[0057] like Figure 2 As shown, if the gesture database does not contain the corresponding user's pre-stored duress gesture, that is, the matching fails, it means that the user is currently in a normal state and can directly unlock the door lock.
[0058] Furthermore, for dynamic gestures, such as waving arms or making multiple gestures continuously, the algorithm needs to identify the dynamic features and trajectories of the gestures, and use techniques such as optical flow or dynamic time warping (DTW) to analyze the dynamic changes and trajectories of the gestures.
[0059] Furthermore, users are allowed to customize gestures in the system settings to ensure that gestures are unique and easy to execute. The system learns and trains gestures to build a user-specific gesture model.
[0060] For example, when a user passes through an access control system or a door at home, if someone outside the door threatens the user to open the door with a weapon, the user can make a preset coercive gesture while opening the door. After the system detects the gesture, it immediately sends a signal for help to the security service or the police, and may also trigger the internal locking mechanism of the door lock, delaying or preventing the door from opening.
[0061] For example, if the user is kidnapped or held hostage, the criminal may force the user to open the door. The user can use a preset gesture during the door opening process, and the system will receive the signal and silently notify the relevant security agency or individual.
[0062] Beneficial effects of the present invention:
[0063] (1) It can simultaneously perform face recognition and gesture recognition to detect whether the user is in a state of duress. When the user is in a state of duress, the user can trigger an alarm by making a duress gesture after face recognition. The user can send a signal for help without attracting the attention of the duressor.
[0064] (2) The user can preset one or more specific gestures as signals of duress status. The system is designed to accurately identify these gestures. When the system detects that the user makes a preset duress gesture, it will automatically send a help message to the preset alarm target without attracting the attention of the duresser. The duress status can be quickly identified and the alarm message can be quickly and automatically sent, thereby improving the user's help efficiency.
[0065] (3) The system design takes user privacy protection into consideration, ensuring that alarm information is only sent under duress.
[0066] Furthermore, if Figure 3 As shown, based on the above-mentioned duress alarm method based on face recognition and gesture recognition, the present invention also provides a duress alarm system based on face recognition and gesture recognition, wherein the duress alarm system based on face recognition and gesture recognition includes:
[0067] A face comparison module 51 is used to obtain a face image of a user, and compare the face image with each face image stored in a preset registered face image database to obtain a highest similarity score;
[0068] A gesture recognition module 52, used to determine whether the highest similarity score is greater than a similarity score threshold, and if the highest similarity score is greater than the similarity score threshold, start a gesture recognition function to recognize the user's gesture action;
[0069] The alarm unlocking module 53 is used to compare the gesture action with the coercion gesture pre-stored by the corresponding user. If the gesture action is consistent with the coercion gesture, a preset alarm message is sent to a preset alarm object and the door lock is unlocked.
[0070] Furthermore, if Figure 4 As shown, based on the above-mentioned duress alarm method and system based on face recognition and gesture recognition, the present invention also provides a smart door lock accordingly, and the smart door lock includes a processor 10, a memory 20 and a display 30. Figure 4 Only some components of the smart door lock are shown, but it should be understood that it is not required to implement all the components shown, and more or fewer components may be implemented instead.
[0071] In some embodiments, the memory 20 may be an internal storage unit of the smart door lock, such as a hard disk or memory of the smart door lock. In other embodiments, the memory 20 may also be an external storage device of the smart door lock, such as a plug-in hard disk, a smart memory card (Smart Media Card, SMC), a secure digital (Secure Digital, SD) card, a flash card (Flash Card), etc. equipped on the smart door lock. Further, the memory 20 may also include both an internal storage unit of the smart door lock and an external storage device. The memory 20 is used to store application software and various types of data installed in the smart door lock, such as the program code for installing the smart door lock. The memory 20 may also be used to temporarily store data that has been output or is to be output. In one embodiment, a duress alarm program 40 based on face recognition and gesture recognition is stored on the memory 20, and the duress alarm program 40 based on face recognition and gesture recognition can be executed by the processor 10, thereby realizing the duress alarm method based on face recognition and gesture recognition in the present application.
[0072] In some embodiments, the processor 10 may be a central processing unit (CPU), a microprocessor or other data processing chip, used to run the program code or process data stored in the memory 20, such as executing the duress alarm method based on face recognition and gesture recognition.
[0073] In some embodiments, the display 30 may be an LED display, a liquid crystal display, a touch-sensitive liquid crystal display, an OLED (Organic Light-Emitting Diode) touch device, etc. The display 30 is used to display information on the smart door lock and to display a visual user interface. The components 10-30 of the smart door lock communicate with each other via a system bus.
[0074] In one embodiment, when the processor 10 executes the duress alarm program 40 based on face recognition and gesture recognition in the memory 20, the following steps are implemented:
[0075] Obtaining a facial image of the user, and comparing the facial image with each facial image stored in a preset registered facial image database to obtain a highest similarity score;
[0076] Determining whether the highest similarity score is greater than a similarity score threshold, and if the highest similarity score is greater than the similarity score threshold, starting a gesture recognition function to recognize a user's gesture action;
[0077] The gesture action is compared with the duress gesture pre-stored by the corresponding user. If the gesture action is consistent with the duress gesture, a preset alarm message is sent to a preset alarm object and the door lock is unlocked.
[0078] The step of obtaining a facial image of a user and comparing the facial image with each facial image stored in a preset registered facial image database to obtain a highest similarity score specifically includes:
[0079] Pre-storing at least one facial image of a different user in a preset registered facial image database;
[0080] After capturing a facial image of a current user facing the smart door lock camera, the facial image is mapped to a feature space through a deep learning model;
[0081] In the feature space, the facial image is compared with each facial image stored in a preset registered facial image database one by one using a similarity measurement method such as Euclidean distance, cosine similarity or Mahalanobis distance to obtain a plurality of similarity scores;
[0082] A highest similarity score is selected from the plurality of similarity scores.
[0083] The determining whether the highest similarity score is greater than a similarity score threshold, and if the highest similarity score is greater than the similarity score threshold, starting a gesture recognition function to recognize a user's gesture action, specifically includes:
[0084] Presetting and storing a similarity score threshold, and determining whether the highest similarity score is greater than the similarity score threshold;
[0085] If the highest similarity score is greater than the similarity score threshold, the gesture recognition function is started and a gesture recognition algorithm is used to recognize the user's gesture action.
[0086] The step of using a gesture recognition algorithm to recognize the user's gesture action specifically includes:
[0087] Use a depth camera or infrared sensor to capture images of the user's gestures;
[0088] Preprocessing the captured gesture image, wherein the preprocessing includes denoising, filtering and enhancement operations;
[0089] Separate the user's gesture from the background using background subtraction or skin color detection techniques;
[0090] The machine learning algorithm is used to perform feature learning and extraction on the gesture image, key feature points are extracted from the gesture image, geometric features of the gesture are calculated, and the user's gesture action is obtained.
[0091] The step of determining whether the highest similarity score is greater than a similarity score threshold further includes:
[0092] If the highest similarity score is not greater than the similarity score threshold, the door lock is kept locked.
[0093] The step of comparing the gesture action with a coercion gesture pre-stored by the corresponding user, and if the gesture action is consistent with the coercion gesture, sending a preset alarm message to a preset alarm object and unlocking the door lock specifically includes:
[0094] According to the settings of different users, at least one coercive gesture of different users is stored in a gesture database in advance, and a preset alarm object bound to each user is pre-set;
[0095] Comparing the gesture action of the current user with all the coercive gestures in the gesture database, calculating a similarity score, and judging whether there is a coercive gesture pre-stored by the corresponding user in the gesture database according to the similarity score and the classification result;
[0096] If there is a duress gesture pre-stored by the corresponding user in the gesture database, it means that the current user is in a duress state, and a preset alarm message is automatically sent to a preset alarm object through a preset communication method, and the door lock is unlocked.
[0097] The alarm information includes the user's identity information, current location, and a danger prompt that the user is in a dangerous state.
[0098] The present invention also provides a computer-readable storage medium, wherein the computer-readable storage medium stores a duress alarm program based on face recognition and gesture recognition, and when the duress alarm program based on face recognition and gesture recognition is executed by a processor, the steps of the duress alarm method based on face recognition and gesture recognition as described above are implemented.
[0099] In summary, the present invention provides a duress alarm method, system, smart door lock and storage medium based on face recognition and gesture recognition, the method comprising: obtaining a user's face image, comparing the face image with each face image stored in a preset registered face image database to obtain the highest similarity score; judging whether the highest similarity score is greater than a similarity score threshold, if the highest similarity score is greater than the similarity score threshold, activating a gesture recognition function to recognize the user's gesture action; comparing the gesture action with the duress gesture pre-stored by the corresponding user, if the gesture action is consistent with the duress gesture, sending a preset alarm message to a preset alarm object and unlocking the door lock. The present invention aims to combine face recognition and gesture recognition, accurately and quickly identify and respond to the user's intention to alarm when the user is in a duress state, send an alarm message to a preset alarm object, so that the user can silently ask for help in a duress state, thereby improving the user's safety.
[0100] It should be noted that, in this article, the terms "include", "comprises" or any other variations thereof are intended to cover non-exclusive inclusion, so that a process, method, article or smart door lock including a series of elements includes not only those elements, but also other elements not explicitly listed, or also includes elements inherent to such process, method, article or smart door lock. In the absence of further restrictions, an element defined by the sentence "includes a ..." does not exclude the existence of other identical elements in the process, method, article or smart door lock including the element.
[0101] Of course, those skilled in the art can understand that all or part of the processes in the above-mentioned embodiments can be implemented by instructing related hardware (such as a processor, a controller, etc.) through a computer program, and the program can be stored in a computer-readable storage medium that can be read by a computer, and the program can include the processes of the above-mentioned method embodiments when executed. The computer-readable storage medium can be a memory, a disk, an optical disk, etc.
[0102] It should be understood that the application of the present invention is not limited to the above examples. For ordinary technicians in this field, improvements or changes can be made based on the above description. All these improvements and changes should fall within the scope of protection of the claims attached to the present invention.
Claims
1. A duress alarm method based on face recognition and gesture recognition, characterized in that: The duress alarm method based on face recognition and gesture recognition includes: Obtaining a facial image of the user, and comparing the facial image with each facial image stored in a preset registered facial image database to obtain a highest similarity score; Determining whether the highest similarity score is greater than a similarity score threshold, and if the highest similarity score is greater than the similarity score threshold, starting a gesture recognition function to recognize a user's gesture action; The gesture action is compared with the duress gesture pre-stored by the corresponding user. If the gesture action is consistent with the duress gesture, a preset alarm message is sent to a preset alarm object and the door lock is unlocked.
2. The method for duress alarm based on face recognition and gesture recognition according to claim 1, characterized in that: The step of obtaining a facial image of the user and comparing the facial image with each facial image stored in a preset registered facial image database to obtain a highest similarity score specifically includes: Pre-storing at least one facial image of a different user in a preset registered facial image database; After capturing a facial image of a current user facing the smart door lock camera, the facial image is mapped to a feature space through a deep learning model; In the feature space, the facial image is compared with each facial image stored in a preset registered facial image database one by one using a similarity measurement method such as Euclidean distance, cosine similarity or Mahalanobis distance to obtain a plurality of similarity scores; A highest similarity score is selected from the plurality of similarity scores.
3. The method for duress alarm based on face recognition and gesture recognition according to claim 1, characterized in that: The determining whether the highest similarity score is greater than a similarity score threshold, and if the highest similarity score is greater than the similarity score threshold, starting a gesture recognition function to recognize a user's gesture action, specifically includes: Presetting and storing a similarity score threshold, and determining whether the highest similarity score is greater than the similarity score threshold; If the highest similarity score is greater than the similarity score threshold, the gesture recognition function is started and a gesture recognition algorithm is used to recognize the user's gesture action.
4. The method for duress alarm based on face recognition and gesture recognition according to claim 3 is characterized in that: The step of using a gesture recognition algorithm to recognize a user's gesture action specifically includes: Use a depth camera or infrared sensor to capture images of the user's gestures; Preprocessing the captured gesture image, wherein the preprocessing includes denoising, filtering and enhancement operations; Separate the user's gesture from the background using background subtraction or skin color detection techniques; The machine learning algorithm is used to perform feature learning and extraction on the gesture image, key feature points are extracted from the gesture image, geometric features of the gesture are calculated, and the user's gesture action is obtained.
5. The duress alarm method based on face recognition and gesture recognition according to claim 1 or 3, characterized in that: The determining whether the highest similarity score is greater than a similarity score threshold further includes: If the highest similarity score is not greater than the similarity score threshold, the door lock is kept locked.
6. The method for duress alarm based on face recognition and gesture recognition according to claim 1, characterized in that: The step of comparing the gesture action with a coercion gesture pre-stored by the corresponding user, and if the gesture action is consistent with the coercion gesture, sending a preset alarm message to a preset alarm object and unlocking the door lock specifically includes: According to the settings of different users, at least one coercive gesture of different users is stored in a gesture database in advance, and a preset alarm object bound to each user is pre-set; Comparing the gesture action of the current user with all the coercive gestures in the gesture database, calculating a similarity score, and judging whether there is a coercive gesture pre-stored by the corresponding user in the gesture database according to the similarity score and the classification result; If there is a duress gesture pre-stored by the corresponding user in the gesture database, it means that the current user is in a duress state, and a preset alarm message is automatically sent to a preset alarm object through a preset communication method, and the door lock is unlocked.
7. The method for duress alarm based on face recognition and gesture recognition according to claim 1, characterized in that: The alarm information includes the user's identity information, current location, and a danger prompt that the user is in a dangerous state.
8. A duress alarm system based on face recognition and gesture recognition, characterized in that: The duress alarm system based on face recognition and gesture recognition includes: A face comparison module, used to obtain a face image of a user, and compare the face image with each face image stored in a preset registered face image database to obtain a highest similarity score; A gesture recognition module, used to determine whether the highest similarity score is greater than a similarity score threshold, and if the highest similarity score is greater than the similarity score threshold, start a gesture recognition function to recognize the user's gesture action; The alarm unlocking module is used to compare the gesture action with the coercion gesture pre-stored by the corresponding user. If the gesture action is consistent with the coercion gesture, a preset alarm message is sent to a preset alarm object and the door lock is unlocked.
9. A smart door lock, characterized in that: The smart door lock includes: a memory, a processor, and a duress alarm program based on face recognition and gesture recognition stored in the memory and runnable on the processor. When the duress alarm program based on face recognition and gesture recognition is executed by the processor, the steps of the duress alarm method based on face recognition and gesture recognition as described in any one of claims 1 to 7 are implemented.
10. A computer-readable storage medium, characterized in that: The computer-readable storage medium stores a duress alarm program based on face recognition and gesture recognition, and when the duress alarm program based on face recognition and gesture recognition is executed by a processor, the steps of the duress alarm method based on face recognition and gesture recognition as described in any one of claims 1-7 are implemented.
Citation Information
Cited By
Stress gesture implicit alarm method and system based on space-time convolutional network
CN122090516A
Implicit Alarm Method and System for Coercive Gestures in Spatiotemporal Convolutional Networks
CN122090516B
