Duress alarm method, device, equipment and storage medium based on face recognition

By extracting the key point coordinates of the face image and comparing it with the preset area, it can determine whether the user is being coerced and output an alarm. This solves the problem in the existing technology of being unable to determine that the user is coerced and ensures user safety.

CN111931675BActive Publication Date: 2024-10-01DONGGUAN ZKTECO ELECTRONICS TECH
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202010830883.4
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2020-08-18
Publication Date
2024-10-01
Estimated Expiration
2040-08-18

AI Technical Summary

Technical Problem

Existing technology cannot determine whether a user is being coerced through face recognition, and cannot guarantee user safety.

Method used

By obtaining the face image to be recognized, multiple key point coordinates are extracted, and based on the preset coercion area, it is determined whether the user is in a coercion state. If the user is in a coercion state, a coercion alarm is output to the preset security terminal.

Benefits of technology

It is possible to determine whether a user is being coerced through facial recognition, and promptly notify security personnel to ensure user safety.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN111931675B_ABST
    Figure CN111931675B_ABST
Patent Text Reader

Abstract

The present invention discloses a method, device, equipment and storage medium for duress alarm based on face recognition, including obtaining a face image to be identified; extracting multiple key point coordinates of the face image to be identified; judging whether the object corresponding to the face image to be identified is in a duress state according to the multiple key point coordinates and at least one preset duress area; if so, outputting a duress alarm to a preset security terminal. This solves the technical problem in the prior art that it is impossible to judge whether a user is duressed through face recognition and to ensure user safety, and timely notifies security personnel to ensure user safety.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention relates to the field of face recognition technology, and in particular to a duress alarm method, device, equipment and storage medium based on face recognition. Background Art

[0002] In the development history of access control systems, password access control systems are the most primitive, simplest and cheapest, but due to their relatively low security performance, they gradually faded out of the field of access control systems. Later, card access control systems or card induction access control systems became the mainstream of current access control systems due to their durability, good cost performance, fast reading speed and high security. However, in recent years, biometric access control systems have become more and more popular in the consumer market because they are more secure and are currently the most advanced and secure technology.

[0003] In traditional access control systems, the controller controls the door opening and closing after receiving certain data for identity authentication. The data sent to the controller by this access control system is usually through different fingerprint data that can be set according to the user to identify whether the fingerprint holder is in a state of duress.

[0004] However, the above-mentioned duress alarm method cannot be applied to the field of face recognition. Face recognition methods usually do not have physical buttons and cannot effectively protect user safety. Summary of the invention

[0005] The present invention provides a duress alarm method, device, equipment and storage medium based on face recognition, which solves the technical problem in the prior art that it is impossible to determine whether a user is duressed through face recognition and cannot ensure the safety of the user.

[0006] The present invention provides a face recognition-based duress alarm method, comprising:

[0007] Obtain a face image to be recognized;

[0008] Extracting coordinates of a plurality of key points of the face image to be identified;

[0009] Determining whether the object corresponding to the face image to be identified is in a state of duress according to the multiple key point coordinates and at least one preset duress area;

[0010] If so, a duress alarm is output to the preset security terminal.

[0011] Optionally, the step of extracting coordinates of a plurality of key points of the face image to be recognized includes:

[0012] A face detection algorithm is used to extract coordinates of multiple key points of the face image to be identified.

[0013] Optionally, the step of judging whether the object corresponding to the face image to be identified is in a duress state according to the multiple key point coordinates and at least one preset duress area includes:

[0014] Determining whether the number of the key point coordinates in the at least one preset stress area is greater than a preset threshold;

[0015] If the number is greater than or equal to the preset threshold, it is determined that the object corresponding to the face image to be identified is in a state of duress;

[0016] If the number is less than the preset threshold, it is determined that the object corresponding to the face image to be identified is not in a state of duress.

[0017] Optionally, before the step of outputting the duress alarm to the preset security terminal, the method further includes:

[0018] Output prompt tone;

[0019] Receive the facial image to be recognized that is adjusted by the object corresponding to the facial image to be recognized based on the content of the prompt sound;

[0020] Return to the step of extracting coordinates of multiple key points of the face image to be recognized;

[0021] When it is determined again that the object corresponding to the face image to be identified is in a duress state, a duress alarm is output to a preset security terminal.

[0022] The present invention also provides a face recognition-based duress alarm device, comprising:

[0023] A face image acquisition module, used to acquire a face image to be identified;

[0024] A key point coordinate extraction module, used to extract multiple key point coordinates of the face image to be identified;

[0025] A duress state determination module, used to determine whether the object corresponding to the face image to be identified is in a duress state according to the multiple key point coordinates and at least one preset duress area;

[0026] The duress alarm output module is used to output a duress alarm to a preset security terminal if so.

[0027] Optionally, the key point coordinate extraction module includes:

[0028] The key point coordinate extraction submodule is used to extract multiple key point coordinates of the face image to be identified using a face detection algorithm.

[0029] Optionally, the stress state determination module includes:

[0030] A quantity determination submodule, used to determine whether the number of the key point coordinates in the at least one preset stress area is greater than a preset threshold;

[0031] A duress state determination submodule, configured to determine that the object corresponding to the face image to be identified is in a duress state if the number is greater than or equal to the preset threshold;

[0032] The non-duressed state determination submodule is used to determine that the object corresponding to the face image to be identified is not in a duressed state if the number is less than the preset threshold.

[0033] Optionally, the duress alarm output module includes:

[0034] A prompt tone output module, used for outputting prompt tone;

[0035] A face image receiving module, used for receiving the face image to be identified which is adjusted by the object corresponding to the face image to be identified based on the content of the prompt sound;

[0036] A return module, used for returning the step of extracting the coordinates of multiple key points of the face image to be recognized;

[0037] The alarm output module is used to output a duress alarm to a preset security terminal when it is determined again that the object corresponding to the face image to be identified is in a duress state.

[0038] The present invention also provides an electronic device, including a memory and a processor, wherein a computer program is stored in the memory, and when the computer program is executed by the processor, the processor executes the steps of the above-mentioned face recognition-based duress alarm method.

[0039] The present invention also provides a computer-readable storage medium on which a computer program is stored. When the computer program is executed by the processor, the above-mentioned face recognition-based duress alarm method is implemented.

[0040] It can be seen from the above technical solutions that the present invention has the following advantages:

[0041] In an embodiment of the present invention, by extracting multiple key point coordinates from the face image to be identified, based on the comparison of the multiple key point coordinates with the preset duress area, it is determined whether the object corresponding to the face image to be identified is in a duress state; if so, a duress alarm is output to a preset security terminal, thereby solving the technical problem in the prior art that it is impossible to determine whether the user is duressed through face recognition and the user's safety cannot be guaranteed, and the security personnel are notified in time to ensure the user's safety. BRIEF DESCRIPTION OF THE DRAWINGS

[0042] In order to more clearly illustrate the embodiments of the present invention or the technical solutions in the prior art, the drawings required for use in the embodiments or the description of the prior art will be briefly introduced below. Obviously, the drawings described below are only some embodiments of the present invention. For ordinary technicians in this field, other drawings can be obtained based on these drawings without paying creative labor.

[0043] Figure 1 A flowchart of a method for providing a duress alarm based on face recognition according to an embodiment of the present invention;

[0044] Figure 2 A flowchart of a method for providing a duress alarm based on face recognition according to an optional embodiment of the present invention;

[0045] Figure 3 A schematic diagram of the coordinate positions of key points in an embodiment of the present invention;

[0046] Figure 4 A schematic diagram of a preset stress area according to an embodiment of the present invention;

[0047] Figure 5 A flowchart of some steps of a duress alarm method based on face recognition provided by an embodiment of the present invention;

[0048] Figure 6 A structural block diagram of a face recognition-based duress alarm device provided in an embodiment of the present invention. DETAILED DESCRIPTION

[0049] The embodiments of the present invention provide a duress alarm method, device, equipment and storage medium based on face recognition, which are used to solve the technical problem in the prior art that it is impossible to determine whether a user is duressed through face recognition and to ensure the safety of the user.

[0050] In order to make the purpose, features and advantages of the present invention more obvious and easy to understand, the technical solutions in the embodiments of the present invention will be clearly and completely described below in conjunction with the drawings in the embodiments of the present invention. Obviously, the embodiments described below are only part of the embodiments of the present invention, not all of the embodiments. Based on the embodiments of the present invention, all other embodiments obtained by ordinary technicians in this field without creative work are within the scope of protection of the present invention.

[0051] See also Figure 1 , Figure 1 A flowchart of the steps of a duress alarm method based on face recognition provided by an embodiment of the present invention.

[0052] The present invention provides a face recognition-based duress alarm method, comprising:

[0053] Step 101, obtaining a face image to be recognized;

[0054] In a specific implementation, when a user object is in a state of duress, the duresser may require the user object to open certain areas. At this time, the face image to be identified of the user object can be obtained through the face recognition device, so as to use the face image to be identified to output a duress alarm, thereby ensuring the safety of the object.

[0055] Step 102, extracting coordinates of a plurality of key points of the face image to be recognized;

[0056] In one example of the present invention, in order to further improve the recognition efficiency of the duress state, multiple key point coordinates of the face image to be recognized may be extracted, and then further recognition operations may be performed using the multiple key point coordinates.

[0057] Step 103, judging whether the object corresponding to the face image to be identified is in a state of duress according to the coordinates of the multiple key points and the preset duress area;

[0058] In a specific implementation, the user object may set a preset duress area in advance, and the preset duress area may be one or more. By comparing the coordinates of multiple key points with the preset duress area, it is determined whether the object corresponding to the face image to be identified is in a duress state.

[0059] Step 104: If yes, output a duress alarm to a preset security terminal.

[0060] If the object corresponding to the face image to be identified is in a state of duress, a duress alarm can be output to a preset security terminal, wherein the preset security terminal can be a police station or a security center set by the user, so as to notify security personnel to rescue him in time.

[0061] In an embodiment of the present invention, by extracting multiple key point coordinates from the face image to be identified, based on the comparison of the multiple key point coordinates with the preset duress area, it is determined whether the object corresponding to the face image to be identified is in a duress state; if so, a duress alarm is output to a preset security terminal, thereby solving the technical problem in the prior art that it is impossible to determine whether the user is duressed through face recognition and the user's safety cannot be guaranteed, and the security personnel are notified in time to ensure the user's safety.

[0062] See also Figure 2 , Figure 2 A flowchart of the steps of a duress alarm method based on face recognition is provided for an optional embodiment of the present invention.

[0063] The present invention provides a face recognition-based duress alarm method, comprising:

[0064] Step 201, obtaining a face image to be recognized;

[0065] In the embodiment of the present invention, the specific implementation process of step 201 is similar to step 101 and will not be repeated here.

[0066] Optionally, the above step 102 may be replaced by the following step 202:

[0067] Step 202, using a face detection algorithm to extract coordinates of multiple key points of the face image to be identified;

[0068] See also Figure 3 , Figure 3 Schematic diagram of key point coordinate positions of an embodiment of the present invention.

[0069] In one example of the present invention, in order to extract multiple key point coordinates of a face image to be identified, the key point coordinates can be extracted through a face detection algorithm, for example, the key point coordinates can be extracted through a three-layer cascaded convolutional neural network model, and the embodiment of the present invention is not limited to this.

[0070] Furthermore, the above step 103 may be replaced by the following steps 203-205:

[0071] Step 203, determining whether the number of the key point coordinates in the at least one preset stress area is greater than a preset threshold;

[0072] Step 204: if the number is greater than or equal to the preset threshold, it is determined that the object corresponding to the face image to be identified is in a state of duress;

[0073] Step 205: If the number is less than the preset threshold, it is determined that the object corresponding to the face image to be identified is not in a state of duress.

[0074] See also Figure 4 , Figure 4 A schematic diagram of a preset stress area in an embodiment of the present invention is shown.

[0075] In another example of the present invention, the preset coercion area can be set in advance, and the preset coercion area can include multiple areas. For example, the upper left corner of the face image to be identified can be used as the origin coordinate, and the area formed by the coordinates (x1, y1), (x2, y2), (x1, y2), (x2, y1) is used as the preset coercion area A; the area formed by the coordinates (x3, y3), (x4, y4), (x3, y4), (x4, y3) is used as the preset coercion area B. The embodiment of the present invention is not limited to this.

[0076] In an optional embodiment of the present invention, when there are multiple preset duress areas, it is determined whether the number of key point coordinates in at least one preset duress area is greater than a preset threshold. If it is greater than or equal to, it is determined that the object corresponding to the face image to be identified is in a duress state; if it is less than the preset threshold, it means that the object corresponding to the face image to be identified is not in a duress state, which is a normal face recognition operation.

[0077] Step 206: Output a duress alarm to a preset security terminal.

[0078] In a specific implementation, when it is identified that the object corresponding to the face image to be identified is in a duress state, a duress alarm can be output to a preset security terminal to notify security personnel in time of the duress situation to ensure user safety.

[0079] Furthermore, while outputting the duress alarm to the preset security terminal, the subsequent operation of face recognition can also be continued to prevent the duressor from endangering the safety of the duressee.

[0080] Optionally, if the object corresponding to the face image to be recognized is not in a duress state, the face recognition operation can be continued and subsequent operations can be performed.

[0081] Further, see Figure 5 , the step 206 may include the following steps S1-S4:

[0082] Step S1, outputting a prompt tone;

[0083] Step S2, receiving the face image to be recognized that is adjusted by the object corresponding to the face image to be recognized based on the content of the prompt sound;

[0084] Step S3, returning to the step of extracting coordinates of a plurality of key points of the face image to be identified;

[0085] Step S4: when it is determined again that the object corresponding to the face image to be identified is in a duress state, a duress alarm is output to a preset security terminal.

[0086] In an embodiment of the present invention, in order to further solve the problem of mismatching of key point areas for recognition due to poor user position during face recognition, after first determining whether the object is in a duress state, a disguised prompt voice may be output and played, such as "please adjust your eye position" or "please confirm again". After the object adjusts its position based on the content of the prompt voice, the adjusted face image to be recognized of the object is reacquired, and then the key point coordinates are reacquired based on the adjusted face image to be recognized to determine whether the object is in a duress state. If the object is determined to be in a duress state again, a duress alarm is directly output to the preset security terminal.

[0087] In an embodiment of the present invention, a face detection algorithm is used to obtain the coordinates of multiple key points of a face image to be identified, and it is determined whether the number of the multiple key point coordinates in at least one preset duress area is greater than or equal to a predetermined threshold. If so, it is determined that the object corresponding to the face image to be identified is in a duress state. At this time, an alarm is sent to a preset security terminal. A prompt sound can also be output before the alarm is sent to prompt the user to adjust the position, and it is determined again whether the object is in a duress state. This solves the technical problem in the prior art that it is impossible to determine whether the user is duressed through face recognition and to ensure the safety of the user, and the security personnel are notified in time to ensure the safety of the user.

[0088] See also Figure 6 , Figure 6 A structural block diagram of a face recognition-based duress alarm device provided in an embodiment of the present invention.

[0089] A duress alarm device based on face recognition, comprising:

[0090] The face image acquisition module 601 is used to acquire the face image to be recognized;

[0091] A key point coordinate extraction module 602 is used to extract a plurality of key point coordinates of the face image to be identified;

[0092] A duress state determination module 603 is used to determine whether the object corresponding to the face image to be identified is in a duress state according to the multiple key point coordinates and at least one preset duress area;

[0093] The duress alarm output module 604 is used to output a duress alarm to a preset security terminal if yes.

[0094] Optionally, the key point coordinate extraction module 602 includes:

[0095] The key point coordinate extraction submodule is used to extract multiple key point coordinates of the face image to be identified using a face detection algorithm.

[0096] Optionally, the stressed state determination module 603 includes:

[0097] A quantity determination submodule, used to determine whether the number of the key point coordinates in the at least one preset stress area is greater than a preset threshold;

[0098] A duress state determination submodule, configured to determine that the object corresponding to the face image to be identified is in a duress state if the number is greater than or equal to the preset threshold;

[0099] The non-duressed state determination submodule is used to determine that the object corresponding to the face image to be identified is not in a duressed state if the number is less than the preset threshold.

[0100] Optionally, the device further comprises:

[0101] A prompt tone output module, used for outputting prompt tone;

[0102] A face image receiving module, used for receiving the face image to be identified which is adjusted by the object corresponding to the face image to be identified based on the content of the prompt sound;

[0103] A return module, used for returning the step of extracting the coordinates of multiple key points of the face image to be recognized;

[0104] The alarm output module is used to output a duress alarm to a preset security terminal when it is determined again that the object corresponding to the face image to be identified is in a duress state.

[0105] An embodiment of the present invention further provides an electronic device, including a memory and a processor, wherein a computer program is stored in the memory, and when the computer program is executed by the processor, the processor executes the steps of the face recognition-based duress alarm method as described in any of the above embodiments.

[0106] An embodiment of the present invention further provides a computer-readable storage medium on which a computer program is stored. When the computer program is executed by the processor, the method for duress alarm based on face recognition as described in any of the above embodiments is implemented.

[0107] Those skilled in the art can clearly understand that, for the convenience and brevity of description, the specific working processes of the above-described devices and units can refer to the corresponding processes in the aforementioned method embodiments and will not be repeated here.

[0108] In the several embodiments provided by the present invention, it should be understood that the disclosed devices and methods can be implemented in other ways. For example, the device embodiments described above are only schematic. For example, the division of the units is only a logical function division. There may be other division methods in actual implementation, such as multiple units or components can be combined or integrated into another system, or some features can be ignored or not executed. Another point is that the mutual coupling or direct coupling or communication connection shown or discussed can be through some interfaces, indirect coupling or communication connection of devices or units, which can be electrical, mechanical or other forms.

[0109] The units described as separate components may or may not be physically separated, and the components shown as units may or may not be physical units, that is, they may be located in one place or distributed on multiple network units. Some or all of the units may be selected according to actual needs to achieve the purpose of the solution of this embodiment.

[0110] In addition, each functional unit in each embodiment of the present invention may be integrated into one processing unit, or each unit may exist physically separately, or two or more units may be integrated into one unit. The above-mentioned integrated unit may be implemented in the form of hardware or in the form of software functional units.

[0111] If the integrated unit is implemented in the form of a software functional unit and sold or used as an independent product, it can be stored in a computer-readable storage medium. Based on this understanding, the technical solution of the present invention is essentially or the part that contributes to the prior art or all or part of the technical solution can be embodied in the form of a software product. The computer software product is stored in a storage medium, including several instructions for a computer device (which can be a personal computer, a server, or a network device, etc.) to perform all or part of the steps of the method described in each embodiment of the present invention. The aforementioned storage medium includes: U disk, mobile hard disk, read-only memory (ROM, Read-Only Memory), random access memory (RAM, Random Access Memory), disk or optical disk and other media that can store program codes.

[0112] As described above, the above embodiments are only used to illustrate the technical solutions of the present invention, rather than to limit the same. Although the present invention has been described in detail with reference to the aforementioned embodiments, those skilled in the art should understand that the technical solutions described in the aforementioned embodiments may still be modified, or some of the technical features thereof may be replaced by equivalents. However, these modifications or replacements do not deviate the essence of the corresponding technical solutions from the spirit and scope of the technical solutions of the embodiments of the present invention.

Claims

1. A duress alarm method based on face recognition, characterized in that: include: Obtaining a face image to be recognized; Extracting coordinates of a plurality of key points of the face image to be identified; Determining whether the object corresponding to the face image to be identified is in a state of duress according to the multiple key point coordinates and at least one preset duress area; If yes, then output a duress alarm to the preset security terminal; The step of judging whether the object corresponding to the face image to be identified is in a duress state according to the multiple key point coordinates and at least one preset duress area comprises: Determining whether the number of the key point coordinates in the at least one preset stress area is greater than a preset threshold; If the number is greater than or equal to the preset threshold, it is determined that the object corresponding to the face image to be identified is in a state of duress; If the number is less than the preset threshold, it is determined that the object corresponding to the face image to be identified is not in a state of duress; The step of outputting the duress alarm to the preset security terminal includes: Output prompt tone; Receiving a facial image to be recognized that is adjusted by the object corresponding to the facial image to be recognized based on the content of the prompt sound; Return to the step of extracting coordinates of multiple key points of the face image to be recognized; When it is determined again that the object corresponding to the face image to be identified is in a duress state, a duress alarm is output to a preset security terminal.

2. The method according to claim 1, characterized in that: The step of extracting the coordinates of a plurality of key points of the face image to be identified comprises: A face detection algorithm is used to extract coordinates of multiple key points of the face image to be identified.

3. A duress alarm device based on face recognition, characterized in that: include: A face image acquisition module, used to acquire a face image to be identified; A key point coordinate extraction module, used to extract multiple key point coordinates of the face image to be identified; A duress state determination module, used to determine whether the object corresponding to the face image to be identified is in a duress state according to the multiple key point coordinates and at least one preset duress area; A duress alarm output module is used to output a duress alarm to a preset security terminal if yes; The duress state determination module comprises: A quantity determination submodule, used to determine whether the number of the key point coordinates in the at least one preset stress area is greater than a preset threshold; A duress state determination submodule, configured to determine that the object corresponding to the face image to be identified is in a duress state if the number is greater than or equal to the preset threshold; a non-duressed state determination submodule, configured to determine that the object corresponding to the to-be-recognized face image is not in a duressed state if the number is less than the preset threshold; The duress alarm output module comprises: A prompt tone output module, used for outputting prompt tone; A face image receiving module, used for receiving the face image to be identified which is adjusted by the object corresponding to the face image to be identified based on the content of the prompt sound; A return module, used for returning the step of extracting the coordinates of multiple key points of the face image to be recognized; The alarm output module is used to output a duress alarm to a preset security terminal when it is determined again that the object corresponding to the face image to be identified is in a duress state.

4. The device according to claim 3, characterized in that The key point coordinate extraction module comprises: The key point coordinate extraction submodule is used to extract multiple key point coordinates of the face image to be identified using a face detection algorithm.

5. An electronic device, characterized in that: It comprises a memory and a processor, wherein a computer program is stored in the memory, and when the computer program is executed by the processor, the processor executes the steps of the duress alarm method based on face recognition as described in any one of claims 1-2.

6. A computer-readable storage medium having a computer program stored thereon, characterized in that: When the computer program is executed by a processor, the face recognition-based duress alarm method according to any one of claims 1 to 2 is implemented.