WO2019134246A1 - Facial recognition-based security monitoring method, device, and storage medium - Google Patents

Facial recognition-based security monitoring method, device, and storage medium Download PDF

Info

Publication number
WO2019134246A1
WO2019134246A1 PCT/CN2018/077623 CN2018077623W WO2019134246A1 WO 2019134246 A1 WO2019134246 A1 WO 2019134246A1 CN 2018077623 W CN2018077623 W CN 2018077623W WO 2019134246 A1 WO2019134246 A1 WO 2019134246A1
Authority
WO
WIPO (PCT)
Prior art keywords
current user
face
image
user
photo
Prior art date
Application number
PCT/CN2018/077623
Other languages
French (fr)
Chinese (zh)
Inventor
杨勇
Original Assignee
平安科技(深圳)有限公司
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by 平安科技(深圳)有限公司 filed Critical 平安科技(深圳)有限公司
Publication of WO2019134246A1 publication Critical patent/WO2019134246A1/en

Links

Images

Classifications

    • GPHYSICS
    • G07CHECKING-DEVICES
    • G07CTIME OR ATTENDANCE REGISTERS; REGISTERING OR INDICATING THE WORKING OF MACHINES; GENERATING RANDOM NUMBERS; VOTING OR LOTTERY APPARATUS; ARRANGEMENTS, SYSTEMS OR APPARATUS FOR CHECKING NOT PROVIDED FOR ELSEWHERE
    • G07C9/00Individual registration on entry or exit
    • G07C9/20Individual registration on entry or exit involving the use of a pass
    • G07C9/22Individual registration on entry or exit involving the use of a pass in combination with an identity check of the pass holder
    • G07C9/25Individual registration on entry or exit involving the use of a pass in combination with an identity check of the pass holder using biometric data, e.g. fingerprints, iris scans or voice recognition
    • G07C9/257Individual registration on entry or exit involving the use of a pass in combination with an identity check of the pass holder using biometric data, e.g. fingerprints, iris scans or voice recognition electronically
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06VIMAGE OR VIDEO RECOGNITION OR UNDERSTANDING
    • G06V40/00Recognition of biometric, human-related or animal-related patterns in image or video data
    • G06V40/10Human or animal bodies, e.g. vehicle occupants or pedestrians; Body parts, e.g. hands
    • G06V40/16Human faces, e.g. facial parts, sketches or expressions
    • G06V40/161Detection; Localisation; Normalisation
    • G06V40/166Detection; Localisation; Normalisation using acquisition arrangements
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06VIMAGE OR VIDEO RECOGNITION OR UNDERSTANDING
    • G06V40/00Recognition of biometric, human-related or animal-related patterns in image or video data
    • G06V40/10Human or animal bodies, e.g. vehicle occupants or pedestrians; Body parts, e.g. hands
    • G06V40/16Human faces, e.g. facial parts, sketches or expressions
    • G06V40/168Feature extraction; Face representation
    • GPHYSICS
    • G07CHECKING-DEVICES
    • G07CTIME OR ATTENDANCE REGISTERS; REGISTERING OR INDICATING THE WORKING OF MACHINES; GENERATING RANDOM NUMBERS; VOTING OR LOTTERY APPARATUS; ARRANGEMENTS, SYSTEMS OR APPARATUS FOR CHECKING NOT PROVIDED FOR ELSEWHERE
    • G07C9/00Individual registration on entry or exit
    • G07C9/20Individual registration on entry or exit involving the use of a pass
    • G07C9/27Individual registration on entry or exit involving the use of a pass with central registration

Definitions

  • the present application relates to the field of computer vision processing technologies, and in particular, to a security monitoring method based on face recognition, an electronic device, and a computer readable storage medium.
  • the application field of face recognition is very extensive, and plays a very important role in many fields such as financial payment, access control, and identification, which brings great convenience to people's lives.
  • the ATM self-service cash withdrawal room of the bank is basically an open place. As long as the access control button is pressed, or the access control system senses someone, it will automatically open the door, and anyone can enter and exit at will, which makes the ATM self-service withdrawal room have security risks. Therefore, how to use face recognition to block criminals from entering the ATM self-service withdrawal room to maintain bank reputation and security is an urgent problem to be solved.
  • the present invention provides a security monitoring method based on face recognition, an electronic device, and a computer readable storage medium, the main purpose of which is to prevent face occluded users and blacklists by face occlusion detection and face recognition.
  • the user enters the monitoring area to improve the security of the monitoring area.
  • the present application provides a security monitoring method based on face recognition, which is applied to an electronic device, and the method includes:
  • S1 receiving a user-initiated door opening request, waking up the camera device to capture a real-time image of the current user, pre-processing the real-time image to obtain a current user's face image;
  • S2 input the facial image into a predetermined facial occlusion detection system, and determine whether the facial image is occluded;
  • the present application further provides an electronic device, including: a memory, a processor, and an imaging device, wherein the memory includes a face recognition-based security monitoring program, and the security monitoring program is processed by the The following steps are implemented when the device is executed:
  • A. Receiving a user-initiated door opening request, waking up the camera device to take a real-time image of the current user, and pre-processing the real-time image to obtain a current user's face image;
  • the facial image is not occluded, input the facial image into a predetermined regularly updated face recognition system, and identify one or more ID cards in the user information database that may match the facial image. Photo and corresponding matching probability;
  • ID card photos take the photo of the ID card corresponding to the maximum probability as the current user's ID card photo, and retrieve the identity information of the current user according to the ID card photo;
  • the present application further provides a computer readable storage medium including a face recognition based security monitoring program, which is implemented by a processor, as described above Any of the steps in the security monitoring method based on face recognition.
  • the face recognition-based security monitoring method, the electronic device and the computer readable storage medium proposed by the present application first perform face occlusion detection on the user's face image to prevent the occluded user from entering the monitoring area; then, the face The unoccluded user determines the user identity through face recognition, compares the user identity information with the blacklist, prevents the user in the blacklist from entering the monitoring area, and periodically updates the face recognition system to improve the accuracy of face recognition; Improve the security of the surveillance area in many ways.
  • FIG. 1 is a schematic diagram of a preferred embodiment of an electronic device of the present application.
  • FIG. 2 is a program block diagram of the face recognition based security monitoring program of FIG. 1;
  • FIG. 3 is a flowchart of a preferred embodiment of a security monitoring method based on face recognition according to the present application
  • FIG. 4 is a schematic diagram of the refinement process of step S20 in the method for security monitoring based on face recognition according to the present application.
  • the application provides an electronic device 1 .
  • the electronic device 1 may be a PC (Personal Computer), or may be a terminal device having a computing function, such as a smart phone, a tablet computer, an e-book reader, a portable computer, or a server.
  • the server may include: a rack server, a blade server, a tower server, a rack server, or the like.
  • the electronic device 1 includes a processor 12, a memory 11, an imaging device 13, a network interface 14, and a communication bus 15.
  • the electronic device 1 is connected to the access control system through the network interface 14.
  • the network interface 14 may include a standard wired interface and a wireless interface (such as a WI-FI interface).
  • Communication bus 15 is used to implement connection communication between these components.
  • the memory 11 includes at least one type of readable storage medium.
  • the at least one type of readable storage medium may be a non-volatile storage medium such as a flash memory, a hard disk, a multimedia card, a card type memory, or the like.
  • the readable storage medium may be an internal storage unit of the electronic device 1, such as a hard disk of the electronic device 1.
  • the readable storage medium may also be an external memory of the electronic device 1, such as a plug-in hard disk equipped on the electronic device 1, a smart memory card (SMC), Secure Digital (SD) card, Flash Card, etc.
  • SMC smart memory card
  • SD Secure Digital
  • the readable storage medium of the memory 11 is generally used to store a face recognition-based security monitoring program 10 installed on the electronic device 1, a predetermined face occlusion detection system, and a face recognition system.
  • the user information database (not shown in the figure).
  • the user information database stores information about all users of a financial institution, including: name, gender, age, ID number, ID card, and the account of the user in the financial institution.
  • the memory 11 can also be used to temporarily store data that has been output or is about to be output.
  • the processor 12 may be a Central Processing Unit (CPU), microprocessor or other data processing chip for running program code or processing data stored in the memory 11, such as performing a face-based Identifyed security monitors 10, etc.
  • CPU Central Processing Unit
  • microprocessor or other data processing chip for running program code or processing data stored in the memory 11, such as performing a face-based Identifyed security monitors 10, etc.
  • the imaging device 13 may be part of the electronic device 1 or may be independent of the electronic device 1.
  • the electronic device 1 is a terminal device having a camera such as a smartphone, a tablet computer, a portable computer, etc., and the camera device 13 is a camera of the electronic device 1.
  • the electronic device 1 may be a server, and the camera device 13 is connected to the electronic device 1 via a network.
  • the camera device 13 is installed in a security monitoring area, such as an ATM self-service cash withdrawal room door, and real-time images are taken in real time for users who need to enter the ATM self-service cash withdrawal room, and the real-time image is transmitted to the processor 12 through the network, and processed.
  • the device 12 identifies the identity of the current user from the real-time image, and invokes the identity information of the current user from the user information database of the memory 11, and compares the identity information of the current user with the blacklist to determine whether the current user is secure and controls Whether the access control system opens.
  • Figure 1 shows only the electronic device 1 with components 11-15, but it should be understood that not all illustrated components may be implemented, and more or fewer components may be implemented instead.
  • the electronic device 1 may further include a user interface
  • the user interface may include an input unit such as a keyboard, a voice input device such as a microphone, a device with a voice recognition function, a voice output device such as an audio, a headphone, and the like.
  • the user interface may also include a standard wired interface and a wireless interface.
  • the electronic device 1 may further include a display, which may also be referred to as a display screen or a display unit.
  • a display may also be referred to as a display screen or a display unit.
  • it may be an LED display, a liquid crystal display, a touch liquid crystal display, and an Organic Light-Emitting Diode (OLED) touch sensor.
  • the display is used to display information processed in the electronic device 1 and a user interface for displaying visualizations.
  • the electronic device 1 further comprises a touch sensor.
  • the area provided by the touch sensor for the user to perform a touch operation is referred to as a touch area.
  • the touch sensor described herein may be a resistive touch sensor, a capacitive touch sensor, or the like.
  • the touch sensor includes not only a contact type touch sensor but also a proximity type touch sensor or the like.
  • the touch sensor may be a single sensor or a plurality of sensors arranged, for example, in an array.
  • the area of the display of the electronic device 1 may be the same as or different from the area of the touch sensor.
  • a display is stacked with the touch sensor to form a touch display. The device detects a user-triggered touch operation based on a touch screen display.
  • the electronic device 1 may further include an access control switch, the access control switch is installed outside the security monitoring area, and the user sends a door opening request to the electronic device 1 by pressing the access control switch.
  • a memory-based security monitoring program 10 is included in the memory 11 as a computer storage medium; the processor 12 executes the face recognition-based security monitoring program 10 stored in the memory 11. The following steps are implemented:
  • A receiving a user-initiated door opening request, waking up the camera device 13 to capture a real-time image of the current user, pre-processing the real-time image to obtain a facial image of the current user;
  • the facial image is not occluded, input the facial image into a predetermined regularly updated face recognition system, and identify one or more ID cards in the user information database that may match the facial image. Photo and corresponding matching probability;
  • ID card photos take the photo of the ID card corresponding to the maximum probability as the current user's ID card photo, and retrieve the identity information of the current user according to the ID card photo;
  • the ATM self-service withdrawal room of the bank is taken as an example, but not limited to the ATM self-service withdrawal room of the bank, and the specific scheme of the present application is explained.
  • the camera device 13 can be woken up to take a real-time image to the current user by pressing the ATM self-service withdrawal access switch, and the real-time image is sent to the processor 12 through the network.
  • the real-time image needs to be pre-processed to facilitate the subsequent face recognition step.
  • the pre-processing step includes: recognizing a face region from the real-time image by using a face recognition algorithm; and when the processor 12 receives the real-time image, acquiring a size of the image to establish an same size.
  • Grayscale image convert the acquired color image into a grayscale image, and create a memory space; equalize the grayscale image histogram, reduce the amount of grayscale image information, speed up the detection, and then detect the person in the image Face, and return an object containing face information, obtain the data of the location of the face, and record the number; finally get the area of the avatar and save it, thus completing the process of face area extraction.
  • the size of the face of the plurality of users in the real-time image is also different. That is to say, the real-time image captured by the camera device 13 may include a plurality of face images of the user, and the face recognition algorithm extracts a plurality of face regions from the real-time image, and selects the face with the largest size from the plurality of face regions. The area is the face image of the current user. If only one face region is extracted from the live image, the face region is used as the face image of the current user.
  • the face image is saved by a preset size (for example, 256*256 pixels).
  • the face recognition algorithm may also be: a geometric feature based method, a local feature analysis method, a feature face method, an elastic model based method, a neural network method, and the like.
  • the face image of the current user is input to a predetermined face average model to identify t face feature points from the face image.
  • an eye region can be determined according to 12 eyelid feature points and 2 eyeball feature points
  • a lip region is determined according to the 20 lip feature points
  • the determined eye region and the lip region are input to a predetermined person.
  • the eye part class model of the face and the lip part class model of the face determine the authenticity of the determined eye region and the lip region based on the results obtained by the model.
  • the control access control system does not open the door, and prompts the user to occlude the face through the voice output device; when both the eye part type model and the lip part type model output result are true, it indicates that the eye area and the lip area are human The eye area and the human lip area, that is, the current facial image is not occluded.
  • the facial average model, the lip part model, and the eye part model are pre-trained, and the training steps and the identification steps have mature technologies, which will not be described here.
  • the facial image After initially determining that the current facial image has not been occluded, the facial image is input into a predetermined facial recognition system, and one or more ID card photos and corresponding matching probabilities that may match the current facial image from the user information database. .
  • the face recognition system is pre-trained by using photos of all users in the user data repository. Currently, the face recognition technology is relatively mature, and will not be described here.
  • the face recognition system recognizes three ID card photos P1, P2, and P3, and the matching probabilities corresponding to each ID card photo are 0.6, 0.2, and 0.2, respectively, and the face recognition system default selection probability is the maximum.
  • the corresponding ID photo P1 is taken as the photo of the current user's ID card, and all the information of the current user is retrieved from the user data information base according to P1, including: ID number, name, age, gender, bank card number, mobile phone number, etc. .
  • the greater the matching probability the greater the possibility that the recognized ID card photo is the current user's ID card photo. Therefore, in other embodiments, in order to improve the accuracy of the face recognition, The probability of identifying one or more ID card photos is filtered.
  • the ID card photo corresponding to the maximum value of the retention probability is used as the identity of the current user.
  • the photo is taken; when the probability maximum value is less than the first preset threshold, the current user is prompted to retake the photo by the voice output device.
  • Update, and the source of the update data is the photo taken when the user enters the ATM self-service cash withdrawal room, from the face image extracted from the real-time image of each user captured by the camera device 13, when from the user information database according to the face image
  • a second preset threshold for example 0.58
  • the facial image is added to the identity information of the current user in the user information database, and the supplementary users are utilized.
  • the photo is updated periodically on the face recognition system.
  • the second preset threshold should be set to be greater than the first preset threshold.
  • the blacklist may be compared with the blacklist.
  • the blacklist may include: a criminal who is involved in the crime, such as a fugitive criminal, a terrorist, or the like.
  • the identity information for example, the ID number, compares the current user's ID number with the ID number in the blacklist.
  • the access control system is opened; The identity information of the current user matches the information in the blacklist, and the access control system is not opened.
  • the electronic device 1 of the above embodiment determines the identity of the user by face recognition, compares the user identity information with the blacklist, prevents the user in the blacklist from entering the security monitoring area, and performs face occlusion detection on the user face image.
  • the user who prevents the face from being occluded enters the security monitoring area, and periodically updates the face recognition system to improve the security of the security monitoring area.
  • the face recognition based security monitor 10 may also be partitioned into one or more modules, one or more modules being stored in the memory 11 and executed by the processor 12 to Complete this application.
  • a module as referred to in this application refers to a series of computer program instructions that are capable of performing a particular function.
  • FIG. 2 it is a program block diagram of the face recognition based security monitoring program 10 of FIG.
  • the face recognition-based security monitoring program 10 can be divided into: an obtaining module 110, a detecting module 120, an identifying module 130, a calling module 140, and a control module 150.
  • the functions or operational steps implemented by the modules 110-150 are similar to the above, and are not described in detail herein, by way of example, for example:
  • the acquiring module 110 is configured to receive a user-initiated door opening request, wake up the camera device to capture a real-time image of the current user, and perform pre-processing on the real-time image to obtain a facial image of the current user;
  • the detecting module 120 is configured to input the facial image into a predetermined facial occlusion detecting system, and determine whether the facial image is occluded;
  • the identification module 130 is configured to: if the facial image is not occluded, input the facial image into a predetermined regularly updated facial recognition system, and identify one of the user information databases that may match the facial image or Multiple ID card photos and corresponding matching probabilities;
  • the retrieving module 140 is configured to take the photo of the ID card corresponding to the maximum probability as the photo of the current user's ID card in the identified one or more ID card photos, and retrieve the current user's ID card according to the ID card photo Identity information;
  • the control module 150 is configured to compare the identity information of the current user with the blacklist, and control the access control system to open when the user identity information of the current user cannot match the information in the blacklist; or, when the identity information of the current user is black The information in the list matches, or when the facial image is occluded, the access control system is not opened.
  • the present application also provides a security monitoring method based on face recognition.
  • FIG. 3 it is a flowchart of a first embodiment of a security monitoring method based on face recognition according to the present application. The method can be performed by a device that can be implemented by software and/or hardware.
  • the security monitoring method based on face recognition includes:
  • S20 input the facial image into a predetermined facial occlusion detection system, and determine whether the facial image is occluded;
  • the identified one or more ID card photos take the photo of the ID card corresponding to the maximum probability as the photo of the ID card of the current user, and retrieve the identity information of the current user according to the photo of the ID card;
  • S50 Comparing the identity information of the current user with the blacklist, and controlling the access control system to open when the current user identity information cannot match the information in the blacklist; or, when the current user identity information matches the information in the blacklist Or, when the facial image is occluded, the control access control system does not open the door.
  • the ATM self-service withdrawal room of the bank is taken as an example, but not limited to the ATM self-service withdrawal room of the bank, and the specific scheme of the present application is explained.
  • the camera can be woken up to take a real-time image to the current user by pressing the ATM self-service withdrawal access switch, and the real-time image is sent to the processor through the network.
  • the real-time image needs to be pre-processed to facilitate the subsequent face recognition step.
  • the pre-processing step in step S10 includes: recognizing a face region from the real-time image by using a face recognition algorithm; after receiving the real-time image, the processor first acquires a size of the image, and establishes A gray image of the same size; convert the acquired color image into a gray image, and create a memory space; equalize the gray image histogram, reduce the amount of gray image information, speed up the detection, and then detect the image
  • the face in the face, and return an object containing the face information obtain the data of the location of the face, and record the number; finally obtain the area of the avatar and save it, thus completing the process of extracting the face region.
  • the real-time image captured by the camera device may include a plurality of face images of the user, and the face recognition algorithm is used to extract a plurality of face regions from the real-time image, and select the face region with the largest size from the plurality of face regions. As the face image of the current user. If only one face region is extracted from the live image, the face region is used as the face image of the current user.
  • the face image is saved by a preset size (for example, 256*256 pixels).
  • the face recognition algorithm may also be: a geometric feature based method, a local feature analysis method, a feature face method, an elastic model based method, a neural network method, and the like.
  • the facial image is input into a predetermined facial recognition system, one or more ID card photos that may match the current facial image in the user information database, and a corresponding matching probability.
  • the face recognition system is pre-trained by using photos of all users in the user data repository. Currently, the face recognition technology is relatively mature, and will not be described here.
  • the face recognition system recognizes three ID card photos P1, P2, and P3, and the matching probabilities corresponding to each ID card photo are 0.6, 0.2, and 0.2, respectively, and the face recognition system default selection probability is the maximum.
  • the corresponding ID photo P1 is taken as the photo of the current user's ID card, and all the information of the current user is retrieved from the user data information base according to P1, including: ID number, name, age, gender, bank card number, mobile phone number, etc. .
  • the greater the matching probability the greater the possibility that the recognized ID card photo is the current user's ID card photo. Therefore, in other embodiments, in order to improve the accuracy of the face recognition, The probability of identifying one or more ID card photos is filtered.
  • the ID card photo corresponding to the maximum value of the retention probability is used as the identity of the current user.
  • the photo is taken; when the probability maximum value is less than the first preset threshold, the current user is prompted to retake the photo by the voice output device.
  • the face recognition system needs to be performed every preset time interval (for example, 6 months).
  • Update, and the source of the updated data is the photo taken when the user enters the ATM self-service cash withdrawal room, and the facial image extracted from the real-time image of each user captured by the camera device is recognized from the user information database according to the facial image.
  • the second preset threshold for example 0.58
  • the facial image is added to the identity information of the current user in the user information database, and the supplementary user is utilized.
  • the photo periodically updates the face recognition system. It should be noted that, in order to ensure that the photo added to the user information database is the current user's own photo, rather than the photos of other users, the second preset threshold should be set to be greater than the first preset threshold.
  • the blacklist may be compared with the blacklist.
  • the blacklist may include: a criminal who is involved in the crime, such as a fugitive criminal, a terrorist, or the like.
  • the identity information for example, the ID number, compares the current user's ID number with the ID number in the blacklist.
  • the access control system is opened; The identity information of the current user matches the information in the blacklist, and the access control system is not opened.
  • the parameters that need to be preset in the first preset threshold, the second preset threshold, and the like may be adjusted according to user needs.
  • the face recognition-based security monitoring method proposed by the foregoing embodiment determines the user identity through face recognition, compares the user identity information with the blacklist, prevents the user in the blacklist from entering the security monitoring area, and periodically recognizes the face.
  • the system is updated to improve the accuracy of face recognition and improve the security of the security monitoring area.
  • step S20 includes the following steps:
  • Step S21 identifying t facial feature points from the facial image, and determining an eye region and a lip region according to position information of the t facial feature points;
  • Step S22 determining the authenticity of the eye region and the lip region, and determining that the facial image is not blocked when the determination result of the eye region and the lip region is true;
  • Step S23 when the determination result of the eye region and the lip region includes an unreality, it is determined that the facial image is occluded.
  • the face image of the current user is input to a predetermined face average model to identify t face feature points from the face image.
  • an eye region can be determined according to 12 eyelid feature points and 2 eyeball feature points
  • a lip region is determined according to the 20 lip feature points
  • the determined eye region and the lip region are input to a predetermined person.
  • the eye part class model of the face and the lip part class model of the face determine the authenticity of the determined eye region and the lip region based on the results obtained by the model.
  • the control access control system does not open the door, and prompts the user to occlude the face through the voice output device; when both the eye part type model and the lip part type model output result are true, it indicates that the eye area and the lip area are human The eye area and the human lip area, that is, the current facial image is not occluded, and the face recognition step is continued.
  • the facial average model, the lip part model, and the eye part model are pre-trained, and the training steps and the identification steps have mature technologies, which will not be described here.
  • the security monitoring method based on the face recognition proposed by the above embodiment prevents the occluded user from entering the security monitoring area by performing face occlusion detection on the user's face image, thereby improving the security of the security monitoring area.
  • the step S50 further includes: when the identity information of the current user matches the information in the blacklist, acquiring user information of other users that are performing service processing in the security monitoring area, and sending the information to the other user.
  • Early warning SMS is proposed based on the above embodiments.
  • the identity information of the current user matches the information in the blacklist
  • the user information of other users who are conducting transactions in the ATM self-service withdrawal room such as a mobile phone number
  • an alert message is sent to other users to inform other users that the ATM self-service withdrawal is involved outdoors. Black is involved in terrorists, please pay attention to personal life and property safety.
  • the security monitoring method based on the face recognition proposed by the foregoing embodiment sends a short message early warning to the user who is conducting the transaction in the security monitoring area, thereby improving the user experience.
  • the present application further provides a computer readable storage medium including a face recognition based security monitoring program, the security monitoring program being executed by the processor to:
  • A. Receiving a user-initiated door opening request, waking up the camera device to take a real-time image of the current user, and pre-processing the real-time image to obtain a current user's face image;
  • the facial image is not occluded, input the facial image into a predetermined regularly updated face recognition system, and identify one or more ID cards in the user information database that may match the facial image. Photo and corresponding matching probability;
  • ID card photos take the photo of the ID card corresponding to the maximum probability as the current user's ID card photo, and retrieve the identity information of the current user according to the ID card photo;
  • a disk including a number of instructions for causing a terminal device (which may be a mobile phone, a computer, a server, or a network device, etc.) to perform the methods described in the various embodiments of the present application.
  • a terminal device which may be a mobile phone, a computer, a server, or a network device, etc.

Landscapes

  • Engineering & Computer Science (AREA)
  • Physics & Mathematics (AREA)
  • General Physics & Mathematics (AREA)
  • Human Computer Interaction (AREA)
  • Health & Medical Sciences (AREA)
  • Oral & Maxillofacial Surgery (AREA)
  • General Health & Medical Sciences (AREA)
  • Multimedia (AREA)
  • Theoretical Computer Science (AREA)
  • Computer Vision & Pattern Recognition (AREA)
  • Collating Specific Patterns (AREA)

Abstract

The present application provides a facial recognition-based security monitoring method, a device, and a storage medium. The method comprises: a photography device photographs a real-time image of the current user and obtains a face image thereof; determine whether the face image is shielded; if the face image is not shielded, input the face image into a predetermined and regularly updated facial recognition system to recognize one or more identity card photos in a user information database possibly matching the face image, and the corresponding matching probability; use the identity card photo corresponding to the maximum probability value as the identity card photo of the current user and retrieve identity information of the current user according to the identity card photo; compare the identity information of the current user with that in the blacklist and control, according to the comparison result, whether an access control system to open a door. Face shielding detection and facial recognition of the present application are implemented to prevent a user with the face shielded and a user in the blacklist from entering a monitoring region so as to improve the security of the monitoring region.

Description

基于人脸识别的安全监控方法、装置及存储介质Security monitoring method, device and storage medium based on face recognition
本申请要求于2018年1月3日提交中国专利局、申请号为201810003944.2、发明名称为“基于人脸识别的安全监控方法、装置及存储介质”的中国专利申请的优先权,其全部内容通过引用结合在申请中。This application claims the priority of the Chinese patent application filed on January 3, 2018, the Chinese Patent Office, the application number is 201810003944.2, and the invention name is "face recognition-based security monitoring method, device and storage medium". The citation is incorporated in the application.
技术领域Technical field
本申请涉及计算机视觉处理技术领域,尤其涉及一种基于人脸识别的安全监控方法、电子装置及计算机可读存储介质。The present application relates to the field of computer vision processing technologies, and in particular, to a security monitoring method based on face recognition, an electronic device, and a computer readable storage medium.
背景技术Background technique
目前,人脸识别的应用领域很广泛,在金融支付、门禁考勤、身份识别等众多领域起到非常重要的作用,给人们的生活带来很大便利。现在银行的ATM自助取款室基本是一个开放的场所,只要按下门禁开关按钮,或者门禁系统感应到有人就会自动开门,任何人都能随意进出,使得ATM自助取款室存在安全隐患。因此,如何利用人脸识别阻挡犯罪份子进入ATM自助取款室,维护银行声誉及治安,是急需解决的一个问题。At present, the application field of face recognition is very extensive, and plays a very important role in many fields such as financial payment, access control, and identification, which brings great convenience to people's lives. Now the ATM self-service cash withdrawal room of the bank is basically an open place. As long as the access control button is pressed, or the access control system senses someone, it will automatically open the door, and anyone can enter and exit at will, which makes the ATM self-service withdrawal room have security risks. Therefore, how to use face recognition to block criminals from entering the ATM self-service withdrawal room to maintain bank reputation and security is an urgent problem to be solved.
发明内容Summary of the invention
本申请提供一种基于人脸识别的安全监控方法、电子装置及计算机可读存储介质,其主要目的在于,通过人脸遮挡检测及人脸识别,阻止脸部有遮挡的用户及黑名单中的用户进入监控区域,提高监控区域的安全性。The present invention provides a security monitoring method based on face recognition, an electronic device, and a computer readable storage medium, the main purpose of which is to prevent face occluded users and blacklists by face occlusion detection and face recognition. The user enters the monitoring area to improve the security of the monitoring area.
为实现上述目的,本申请提供一种基于人脸识别的安全监控方法,应用于电子装置,该方法包括:To achieve the above objective, the present application provides a security monitoring method based on face recognition, which is applied to an electronic device, and the method includes:
S1、接收用户触发的开门请求,唤醒摄像装置拍摄一张当前用户的实时图像,对该实时图像进行预处理获取当前用户的脸部图像;S1, receiving a user-initiated door opening request, waking up the camera device to capture a real-time image of the current user, pre-processing the real-time image to obtain a current user's face image;
S2、将所述脸部图像输入预先确定的人脸遮挡检测系统,判断该脸部图像是否发生遮挡;S2: input the facial image into a predetermined facial occlusion detection system, and determine whether the facial image is occluded;
S3、若该脸部图像未发生遮挡,将该脸部图像输入预先确定的定期更新的人脸识别系统,识别出可能与该脸部图像匹配的用户信息数据库中的一张 或多张身份证照片及对应的匹配概率;S3. If the facial image is not occluded, input the facial image into a predetermined regularly updated face recognition system, and identify one or more ID cards in the user information database that may match the facial image. Photo and corresponding matching probability;
S4、在识别出的一张或多张身份证照片中,取概率最大值对应的身份证照片作为当前用户的身份证照片,并根据所述身份证照片调取当前用户的身份信息;及S4. In the identified one or more ID card photos, take the photo of the ID card corresponding to the maximum probability as the photo of the ID card of the current user, and retrieve the identity information of the current user according to the photo of the ID card;
S5、将当前用户的身份信息与黑名单进行比对,当当前用户的用户身份信息无法与黑名单中信息匹配时,控制门禁系统开门;或,当当前用户的身份信息与黑名单中信息匹配,或者,当所述脸部图像发生遮挡时,控制门禁系统不开门。S5. Comparing the identity information of the current user with the blacklist. When the user identity information of the current user cannot match the information in the blacklist, the access control system is controlled to open; or, when the identity information of the current user matches the information in the blacklist. Or, when the facial image is occluded, the control access control system does not open the door.
此外,为实现上述目的,本申请还提供一种电子装置,该装置包括:存储器、处理器及摄像装置,所述存储器中包括基于人脸识别的安全监控程序,该安全监控程序被所述处理器执行时实现如下步骤:In addition, in order to achieve the above object, the present application further provides an electronic device, including: a memory, a processor, and an imaging device, wherein the memory includes a face recognition-based security monitoring program, and the security monitoring program is processed by the The following steps are implemented when the device is executed:
A、接收用户触发的开门请求,唤醒摄像装置拍摄一张当前用户的实时图像,对该实时图像进行预处理获取当前用户的脸部图像;A. Receiving a user-initiated door opening request, waking up the camera device to take a real-time image of the current user, and pre-processing the real-time image to obtain a current user's face image;
B、将所述脸部图像输入预先确定的人脸遮挡检测系统,判断该脸部图像是否发生遮挡;B. input the facial image into a predetermined facial occlusion detection system, and determine whether the facial image is occluded;
C、若该脸部图像未发生遮挡,将该脸部图像输入预先确定的定期更新的人脸识别系统,识别出可能与该脸部图像匹配的用户信息数据库中的一张或多张身份证照片及对应的匹配概率;C. If the facial image is not occluded, input the facial image into a predetermined regularly updated face recognition system, and identify one or more ID cards in the user information database that may match the facial image. Photo and corresponding matching probability;
D、在识别出的一张或多张身份证照片中,取概率最大值对应的身份证照片作为当前用户的身份证照片,并根据所述身份证照片调取当前用户的身份信息;及D. In the identified one or more ID card photos, take the photo of the ID card corresponding to the maximum probability as the current user's ID card photo, and retrieve the identity information of the current user according to the ID card photo;
E、将当前用户的身份信息与黑名单进行比对,当当前用户的用户身份信息无法与黑名单中信息匹配时,控制门禁系统开门;或,当当前用户的身份信息与黑名单中信息匹配,或者,当所述脸部图像发生遮挡时,控制门禁系统不开门。E. Comparing the identity information of the current user with the blacklist. When the user identity information of the current user cannot match the information in the blacklist, the access control system is opened; or when the identity information of the current user matches the information in the blacklist. Or, when the facial image is occluded, the control access control system does not open the door.
此外,为实现上述目的,本申请还提供一种计算机可读存储介质,所述计算机可读存储介质中包括基于人脸识别的安全监控程序,该安全监控程序被处理器执行时,实现如上所述的基于人脸识别的安全监控方法中的任意步骤。In addition, in order to achieve the above object, the present application further provides a computer readable storage medium including a face recognition based security monitoring program, which is implemented by a processor, as described above Any of the steps in the security monitoring method based on face recognition.
本申请提出的基于人脸识别的安全监控方法、电子装置及计算机可读存 储介质,首先对用户脸部图像进行人脸遮挡检测,防止脸部有遮挡的用户进入监控区域;然后,对脸部未遮挡的用户通过人脸识别确定用户身份,将用户身份信息与黑名单进行比对,防止黑名单中的用户进入监控区域;定期对人脸识别系统进行更新,提高人脸识别的准确性;从多方面提高监控区域的安全性。The face recognition-based security monitoring method, the electronic device and the computer readable storage medium proposed by the present application first perform face occlusion detection on the user's face image to prevent the occluded user from entering the monitoring area; then, the face The unoccluded user determines the user identity through face recognition, compares the user identity information with the blacklist, prevents the user in the blacklist from entering the monitoring area, and periodically updates the face recognition system to improve the accuracy of face recognition; Improve the security of the surveillance area in many ways.
附图说明DRAWINGS
图1为本申请电子装置较佳实施例的示意图;1 is a schematic diagram of a preferred embodiment of an electronic device of the present application;
图2为图1中基于人脸识别的安全监控程序的程序模块图;2 is a program block diagram of the face recognition based security monitoring program of FIG. 1;
图3为本申请基于人脸识别的安全监控方法较佳实施例的流程图;3 is a flowchart of a preferred embodiment of a security monitoring method based on face recognition according to the present application;
图4为本申请基于人脸识别的安全监控方法中步骤S20的细化流程示意图。FIG. 4 is a schematic diagram of the refinement process of step S20 in the method for security monitoring based on face recognition according to the present application.
本申请目的的实现、功能特点及优点将结合实施例,参照附图做进一步说明。The implementation, functional features and advantages of the present application will be further described with reference to the accompanying drawings.
具体实施方式Detailed ways
应当理解,此处所描述的具体实施例仅仅用以解释本申请,并不用于限定本申请。It is understood that the specific embodiments described herein are merely illustrative of the application and are not intended to be limiting.
本申请提供一种电子装置1。参照图1所示,为本申请电子装置1较佳实施例的示意图。在本实施例中,电子装置1可以是PC(Personal Computer,个人电脑),也可以是智能手机、平板电脑、电子书阅读器、便携计算机、服务器等具有计算功能的终端设备。在其他实施例中,当电子装置1为服务器时,该服务器可以包括:机架式服务器、刀片式服务器、塔式服务器或机柜式服务器等。The application provides an electronic device 1 . Referring to FIG. 1 , it is a schematic diagram of a preferred embodiment of the electronic device 1 of the present application. In this embodiment, the electronic device 1 may be a PC (Personal Computer), or may be a terminal device having a computing function, such as a smart phone, a tablet computer, an e-book reader, a portable computer, or a server. In other embodiments, when the electronic device 1 is a server, the server may include: a rack server, a blade server, a tower server, a rack server, or the like.
该电子装置1包括:处理器12、存储器11、摄像装置13、网络接口14及通信总线15。其中,电子装置1通过网络接口14连接门禁系统,可选地,网络接口14可以包括标准的有线接口、无线接口(如WI-FI接口)。通信总线15用于实现这些组件之间的连接通信。The electronic device 1 includes a processor 12, a memory 11, an imaging device 13, a network interface 14, and a communication bus 15. The electronic device 1 is connected to the access control system through the network interface 14. Optionally, the network interface 14 may include a standard wired interface and a wireless interface (such as a WI-FI interface). Communication bus 15 is used to implement connection communication between these components.
存储器11包括至少一种类型的可读存储介质。所述至少一种类型的可读存储介质可为如闪存、硬盘、多媒体卡、卡型存储器等的非易失性存储介质。在一些实施例中,所述可读存储介质可以是所述电子装置1的内部存储单元, 例如该电子装置1的硬盘。在另一些实施例中,所述可读存储介质也可以是所述电子装置1的外部存储器,例如所述电子装置1上配备的插接式硬盘,智能存储卡(Smart Media Card,SMC),安全数字(Secure Digital,SD)卡,闪存卡(Flash Card)等。The memory 11 includes at least one type of readable storage medium. The at least one type of readable storage medium may be a non-volatile storage medium such as a flash memory, a hard disk, a multimedia card, a card type memory, or the like. In some embodiments, the readable storage medium may be an internal storage unit of the electronic device 1, such as a hard disk of the electronic device 1. In other embodiments, the readable storage medium may also be an external memory of the electronic device 1, such as a plug-in hard disk equipped on the electronic device 1, a smart memory card (SMC), Secure Digital (SD) card, Flash Card, etc.
在本实施例中,所述存储器11的可读存储介质通常用于存储安装于所述电子装置1的基于人脸识别的安全监控程序10、预先确定的人脸遮挡检测系统、人脸识别系统及用户信息数据库(图中未标识)等。其中,所述用户信息数据库中存储有某金融机构所有用户的信息,包括:姓名、性别、年龄、身份证号、身份证、该用户在金融机构的账户等信息。所述存储器11还可以用于暂时地存储已经输出或者将要输出的数据。In the embodiment, the readable storage medium of the memory 11 is generally used to store a face recognition-based security monitoring program 10 installed on the electronic device 1, a predetermined face occlusion detection system, and a face recognition system. And the user information database (not shown in the figure). The user information database stores information about all users of a financial institution, including: name, gender, age, ID number, ID card, and the account of the user in the financial institution. The memory 11 can also be used to temporarily store data that has been output or is about to be output.
处理器12在一些实施例中可以是一中央处理器(Central Processing Unit,CPU),微处理器或其他数据处理芯片,用于运行存储器11中存储的程序代码或处理数据,例如执行基于人脸识别的安全监控程序10等。The processor 12, in some embodiments, may be a Central Processing Unit (CPU), microprocessor or other data processing chip for running program code or processing data stored in the memory 11, such as performing a face-based Identifyed security monitors 10, etc.
摄像装置13既可以是所述电子装置1的一部分,也可以独立于电子装置1。在一些实施例中,所述电子装置1为智能手机、平板电脑、便携计算机等具有摄像头的终端设备,则所述摄像装置13即为所述电子装置1的摄像头。在其他实施例中,所述电子装置1可以为服务器,所述摄像装置13独立于该电子装置1、与该电子装置1通过网络连接。The imaging device 13 may be part of the electronic device 1 or may be independent of the electronic device 1. In some embodiments, the electronic device 1 is a terminal device having a camera such as a smartphone, a tablet computer, a portable computer, etc., and the camera device 13 is a camera of the electronic device 1. In other embodiments, the electronic device 1 may be a server, and the camera device 13 is connected to the electronic device 1 via a network.
在本实施例中,该摄像装置13安装于安全监控区域,如ATM自助取款室门口,对需要进入ATM自助取款室的用户实时拍摄得到实时图像,通过网络将实时图像传输至处理器12,处理器12从实时图像中识别当前用户的身份,并从存储器11的用户信息数据库中调用当前用户的身份信息,通过将当前用户的身份信息与黑名单进行比对,确定当前用户是否安全,并控制门禁系统是否开门。In this embodiment, the camera device 13 is installed in a security monitoring area, such as an ATM self-service cash withdrawal room door, and real-time images are taken in real time for users who need to enter the ATM self-service cash withdrawal room, and the real-time image is transmitted to the processor 12 through the network, and processed. The device 12 identifies the identity of the current user from the real-time image, and invokes the identity information of the current user from the user information database of the memory 11, and compares the identity information of the current user with the blacklist to determine whether the current user is secure and controls Whether the access control system opens.
图1仅示出了具有组件11-15的电子装置1,但是应理解的是,并不要求实施所有示出的组件,可以替代的实施更多或者更少的组件。Figure 1 shows only the electronic device 1 with components 11-15, but it should be understood that not all illustrated components may be implemented, and more or fewer components may be implemented instead.
可选地,该电子装置1还可以包括用户接口,用户接口可以包括输入单元比如键盘(Keyboard)、语音输入装置比如麦克风(microphone)等具有语音识别功能的设备、语音输出装置比如音响、耳机等,可选地用户接口还可以包括标准的有线接口、无线接口。Optionally, the electronic device 1 may further include a user interface, and the user interface may include an input unit such as a keyboard, a voice input device such as a microphone, a device with a voice recognition function, a voice output device such as an audio, a headphone, and the like. Optionally, the user interface may also include a standard wired interface and a wireless interface.
可选地,该电子装置1还可以包括显示器,显示器也可以称为显示屏或显示单元。在一些实施例中可以是LED显示器、液晶显示器、触控式液晶显示器以及有机发光二极管(Organic Light-Emitting Diode,OLED)触摸器等。显示器用于显示在电子装置1中处理的信息以及用于显示可视化的用户界面。Optionally, the electronic device 1 may further include a display, which may also be referred to as a display screen or a display unit. In some embodiments, it may be an LED display, a liquid crystal display, a touch liquid crystal display, and an Organic Light-Emitting Diode (OLED) touch sensor. The display is used to display information processed in the electronic device 1 and a user interface for displaying visualizations.
可选地,该电子装置1还包括触摸传感器。所述触摸传感器所提供的供用户进行触摸操作的区域称为触控区域。此外,这里所述的触摸传感器可以为电阻式触摸传感器、电容式触摸传感器等。而且,所述触摸传感器不仅包括接触式的触摸传感器,也可包括接近式的触摸传感器等。此外,所述触摸传感器可以为单个传感器,也可以为例如阵列布置的多个传感器。Optionally, the electronic device 1 further comprises a touch sensor. The area provided by the touch sensor for the user to perform a touch operation is referred to as a touch area. Further, the touch sensor described herein may be a resistive touch sensor, a capacitive touch sensor, or the like. Moreover, the touch sensor includes not only a contact type touch sensor but also a proximity type touch sensor or the like. Furthermore, the touch sensor may be a single sensor or a plurality of sensors arranged, for example, in an array.
此外,该电子装置1的显示器的面积可以与所述触摸传感器的面积相同,也可以不同。可选地,将显示器与所述触摸传感器层叠设置,以形成触摸显示屏。该装置基于触摸显示屏侦测用户触发的触控操作。In addition, the area of the display of the electronic device 1 may be the same as or different from the area of the touch sensor. Optionally, a display is stacked with the touch sensor to form a touch display. The device detects a user-triggered touch operation based on a touch screen display.
可选地,该电子装置1还可以包括门禁开关,所述门禁开关安装在安全监控区域外,用户通过按压门禁开关向电子装置1发送开门请求。Optionally, the electronic device 1 may further include an access control switch, the access control switch is installed outside the security monitoring area, and the user sends a door opening request to the electronic device 1 by pressing the access control switch.
在图1所示的装置实施例中,作为一种计算机存储介质的存储器11中包括基于人脸识别的安全监控程序10;处理器12执行存储器11中存储的基于人脸识别的安全监控程序10时实现如下步骤:In the apparatus embodiment shown in FIG. 1, a memory-based security monitoring program 10 is included in the memory 11 as a computer storage medium; the processor 12 executes the face recognition-based security monitoring program 10 stored in the memory 11. The following steps are implemented:
A、接收用户触发的开门请求,唤醒摄像装置13拍摄一张当前用户的实时图像,对该实时图像进行预处理获取当前用户的脸部图像;A, receiving a user-initiated door opening request, waking up the camera device 13 to capture a real-time image of the current user, pre-processing the real-time image to obtain a facial image of the current user;
B、将所述脸部图像输入预先确定的人脸遮挡检测系统,判断该脸部图像是否发生遮挡;B. input the facial image into a predetermined facial occlusion detection system, and determine whether the facial image is occluded;
C、若该脸部图像未发生遮挡,将该脸部图像输入预先确定的定期更新的人脸识别系统,识别出可能与该脸部图像匹配的用户信息数据库中的一张或多张身份证照片及对应的匹配概率;C. If the facial image is not occluded, input the facial image into a predetermined regularly updated face recognition system, and identify one or more ID cards in the user information database that may match the facial image. Photo and corresponding matching probability;
D、在识别出的一张或多张身份证照片中,取概率最大值对应的身份证照片作为当前用户的身份证照片,并根据所述身份证照片调取当前用户的身份信息;及D. In the identified one or more ID card photos, take the photo of the ID card corresponding to the maximum probability as the current user's ID card photo, and retrieve the identity information of the current user according to the ID card photo;
E、将当前用户的身份信息与黑名单进行比对,当当前用户的用户身份信息无法与黑名单中信息匹配时,控制门禁系统开门;或,当当前用户的身份信息与黑名单中信息匹配,或者,当所述脸部图像发生遮挡时,控制门禁系 统不开门。E. Comparing the identity information of the current user with the blacklist. When the user identity information of the current user cannot match the information in the blacklist, the access control system is opened; or when the identity information of the current user matches the information in the blacklist. Or, when the facial image is occluded, the control access control system does not open the door.
在本实施例中,以银行的ATM自助取款室为例,但不仅限于银行的ATM自助取款室,对本申请的具体方案进行说明。当有用户需要进入ATM自助取款室时,可通过按压ATM自助取款室外的门禁开关,唤醒摄像装置13给当前用户拍摄一张实时图像,并将该实时图像通过网络发送给处理器12。为了从实时图像中确定当前用户对应的脸部图像,需要对实时图像进行预处理,以便于后续的人脸识别步骤。In this embodiment, the ATM self-service withdrawal room of the bank is taken as an example, but not limited to the ATM self-service withdrawal room of the bank, and the specific scheme of the present application is explained. When a user needs to enter the ATM self-service cash withdrawal room, the camera device 13 can be woken up to take a real-time image to the current user by pressing the ATM self-service withdrawal access switch, and the real-time image is sent to the processor 12 through the network. In order to determine the face image corresponding to the current user from the real-time image, the real-time image needs to be pre-processed to facilitate the subsequent face recognition step.
在其他实施例中,所述预处理步骤包括:利用人脸识别算法从该实时图像中识别出人脸区域;当处理器12接收到该实时图像后,先获取图片的大小,建立一个相同大小的灰度图像;将获取的彩色图像,转换成灰度图像,同时创建一个内存空间;将灰度图像直方图均衡化,使灰度图像信息量减少,加快检测速度,然后检测图片中的人脸,并返回一个包含人脸信息的对象,获得人脸所在位置的数据,并记录个数;最终获取头像的区域且保存下来,这样就完成了一次人脸区域提取的过程。In other embodiments, the pre-processing step includes: recognizing a face region from the real-time image by using a face recognition algorithm; and when the processor 12 receives the real-time image, acquiring a size of the image to establish an same size. Grayscale image; convert the acquired color image into a grayscale image, and create a memory space; equalize the grayscale image histogram, reduce the amount of grayscale image information, speed up the detection, and then detect the person in the image Face, and return an object containing face information, obtain the data of the location of the face, and record the number; finally get the area of the avatar and save it, thus completing the process of face area extraction.
可以理解的是,若在摄像装置13的摄像范围内有多名用户,多名用户距离摄像装置13的距离不同,多个用户在实时图像中人脸大小也不同。也就是说,摄像装置13拍摄的实时图像中可能包含多个用户的脸部图像,利用人脸识别算法从实时图像中提取出多个人脸区域,从多个人脸区域中选择尺寸最大的人脸区域作为当前用户的脸部图像。若从实时图像中仅提取出一个人脸区域,则以该人脸区域作为当前用户的脸部图像。同时,为了便于后续人脸遮挡检测及人脸识别,将该脸部图像按预设大小(例如,256*256像素)保存。在其他实施例中,所述人脸识别算法还可以为:基于几何特征的方法、局部特征分析方法、特征脸方法、基于弹性模型的方法、神经网络方法,等等。It can be understood that if there are multiple users in the imaging range of the imaging device 13, and the distances of the plurality of users from the imaging device 13 are different, the size of the face of the plurality of users in the real-time image is also different. That is to say, the real-time image captured by the camera device 13 may include a plurality of face images of the user, and the face recognition algorithm extracts a plurality of face regions from the real-time image, and selects the face with the largest size from the plurality of face regions. The area is the face image of the current user. If only one face region is extracted from the live image, the face region is used as the face image of the current user. At the same time, in order to facilitate subsequent face occlusion detection and face recognition, the face image is saved by a preset size (for example, 256*256 pixels). In other embodiments, the face recognition algorithm may also be: a geometric feature based method, a local feature analysis method, a feature face method, an elastic model based method, a neural network method, and the like.
可以理解的是,为了保证ATM自助取款室的安全,可以拒绝遮挡面部的用户进入,因此需判断该脸部图像是否有发生遮挡,具体包括以下步骤:It can be understood that, in order to ensure the security of the ATM self-service cash withdrawal room, the user who blocks the face can be refused to enter. Therefore, it is necessary to determine whether the face image is occluded, including the following steps:
将当前用户的脸部图像输入预先确定的面部平均模型,以从所述脸部图像中识别出t个面部特征点。当t=34,将实时脸部图像与该面部平均模型进行对齐,然后利用特征提取算法在该实时脸部图像中搜索与该面部平均模型的34个面部特征点匹配的12个眼眶特征点、2个眼球特征点、20个唇部特征点。然后,可以根据12个眼眶特征点、2个眼球特征点确定一个眼部区域,根据 该20个唇部特征点确定一个唇部区域,将确定的眼部区域及唇部区域输入预先确定的人脸的眼部分类模型及人脸的唇部分类模型,根据模型所得的结果判断所述确定的眼部区域及唇部区域的真实性。当眼部分类模型及唇部分类模型输出的结果中均为false,则表示所述眼部区域及唇部区域不是人的眼部区域和人的唇部区域,判断当前脸部图像发生遮挡,控制门禁系统不开门,并通过语音输出装置提示用户脸部发生遮挡;当眼部分类模型及唇部分类模型输出的结果中均为true,则表示所述眼部区域及唇部区域是人的眼部区域和人的唇部区域,也就是说当前脸部图像未发生遮挡。需要说明的是,所述面部平均模型、唇部分类模型及眼部分类模型为预先训练好的,其训练步骤及识别步骤均有较成熟的技术,这里不再进行说明。The face image of the current user is input to a predetermined face average model to identify t face feature points from the face image. When t=34, the real-time facial image is aligned with the facial average model, and then the feature extraction algorithm is used to search the real-time facial image for 12 eyelid feature points matching the 34 facial feature points of the facial average model, 2 eye feature points and 20 lip feature points. Then, an eye region can be determined according to 12 eyelid feature points and 2 eyeball feature points, a lip region is determined according to the 20 lip feature points, and the determined eye region and the lip region are input to a predetermined person. The eye part class model of the face and the lip part class model of the face determine the authenticity of the determined eye region and the lip region based on the results obtained by the model. When the results of the output of the eye part model and the lip part model are both false, it means that the eye area and the lip area are not the human eye area and the human lip area, and the current facial image is determined to be occluded. The control access control system does not open the door, and prompts the user to occlude the face through the voice output device; when both the eye part type model and the lip part type model output result are true, it indicates that the eye area and the lip area are human The eye area and the human lip area, that is, the current facial image is not occluded. It should be noted that the facial average model, the lip part model, and the eye part model are pre-trained, and the training steps and the identification steps have mature technologies, which will not be described here.
初步确定当前脸部图像未发生遮挡后,将脸部图像输入预先确定的人脸识别系统,从用户信息数据库中可能与当前脸部图像匹配的一张或多张身份证照片及对应的匹配概率。其中,所述人脸识别系统是利用用户数据信息库中的所有用户的照片预先训练好的,目前人脸识别技术已比较成熟,这里不再进行说明。After initially determining that the current facial image has not been occluded, the facial image is input into a predetermined facial recognition system, and one or more ID card photos and corresponding matching probabilities that may match the current facial image from the user information database. . The face recognition system is pre-trained by using photos of all users in the user data repository. Currently, the face recognition technology is relatively mature, and will not be described here.
在本实施例中,假设人脸识别系统识别出3张身份证照片P1、P2、P3,每张身份证照片对应的匹配概率分别为0.6、0.2、0.2,人脸识别系统默认选择概率最大值对应的身份证照片P1作为当前用户的身份证照片,并根据P1从用户数据信息库中调取出当前用户的所有信息,包括:身份证号、姓名、年龄、性别、银行卡号、手机号等。可以理解的是,所述匹配概率越大,表示识别出的身份证照片就是当前用户的身份证照片的可能性越大,因此,在其他实施例中,为了提高人脸识别的准确性,可以对识别出的一张或多张身份证照片的概率进行筛选,当概率最大值大于或等于第一预设阈值(例如0.5)时,保留概率最大值对应的身份证照片P1作为当前用户的身份证照片;当概率最大值小于第一预设阈值时,通过语音输出装置提示当前用户重新拍照。In this embodiment, it is assumed that the face recognition system recognizes three ID card photos P1, P2, and P3, and the matching probabilities corresponding to each ID card photo are 0.6, 0.2, and 0.2, respectively, and the face recognition system default selection probability is the maximum. The corresponding ID photo P1 is taken as the photo of the current user's ID card, and all the information of the current user is retrieved from the user data information base according to P1, including: ID number, name, age, gender, bank card number, mobile phone number, etc. . It can be understood that the greater the matching probability, the greater the possibility that the recognized ID card photo is the current user's ID card photo. Therefore, in other embodiments, in order to improve the accuracy of the face recognition, The probability of identifying one or more ID card photos is filtered. When the probability maximum value is greater than or equal to the first preset threshold (for example, 0.5), the ID card photo corresponding to the maximum value of the retention probability is used as the identity of the current user. The photo is taken; when the probability maximum value is less than the first preset threshold, the current user is prompted to retake the photo by the voice output device.
可以理解的是,随着年龄增长,每个人的相貌会发生一定的变化,因此,为了保证人脸识别的准确性,每隔预设时间间隔(例如,6个月)需要对人脸识别系统进行更新,而更新数据的来源也就是用户进入ATM自助取款室时拍摄的照片,从摄像装置13拍摄的各用户的实时图像中提取出的脸部图像中,当根据脸部图像从用户信息数据库中识别出的身份证照片的匹配概率最大值 大于或等于第二预设阈值(例如0.58)时,将所述脸部图像补充到用户信息数据库中当前用户的身份信息中,并利用补充的各用户的照片定期对所述人脸识别系统进行更新。需要说明的是,为了确保补充到用户信息数据库中的照片为当前用户本人的照片,而不是其他用户的照片,所述第二预设阈值应设置为大于第一预设阈值。It can be understood that as the age increases, each person's appearance will change. Therefore, in order to ensure the accuracy of face recognition, the face recognition system needs to be performed every preset time interval (for example, 6 months). Update, and the source of the update data is the photo taken when the user enters the ATM self-service cash withdrawal room, from the face image extracted from the real-time image of each user captured by the camera device 13, when from the user information database according to the face image When the matching probability maximum value of the identified ID card photo is greater than or equal to a second preset threshold (for example, 0.58), the facial image is added to the identity information of the current user in the user information database, and the supplementary users are utilized. The photo is updated periodically on the face recognition system. It should be noted that, in order to ensure that the photo added to the user information database is the current user's own photo, rather than the photos of other users, the second preset threshold should be set to be greater than the first preset threshold.
在确认当前用户的身份信息后,则可与黑名单进行比对,在本实施例中,所述黑名单可以包括:公安系统发布的在逃犯罪分子、恐怖分子等涉黑涉恐涉毒人员的身份信息,例如,身份证号,将当前用户的身份证号与黑名单中的身份证号进行比对,当当前用户的身份证号无法与黑名单中信息匹配时,控制门禁系统开门;当当前用户的身份信息与黑名单中信息匹配,控制门禁系统不开门。After confirming the identity information of the current user, the blacklist may be compared with the blacklist. In this embodiment, the blacklist may include: a criminal who is involved in the crime, such as a fugitive criminal, a terrorist, or the like. The identity information, for example, the ID number, compares the current user's ID number with the ID number in the blacklist. When the current user's ID number cannot match the information in the blacklist, the access control system is opened; The identity information of the current user matches the information in the blacklist, and the access control system is not opened.
上述实施例提出的电子装置1,通过人脸识别确定用户身份,将用户身份信息与黑名单进行比对,防止黑名单中的用户进入安全监控区域,通过对用户脸部图像进行人脸遮挡检测,防止脸部有遮挡的用户进入安全监控区域,定期对人脸识别系统进行更新,提高安全监控区域的安全性。The electronic device 1 of the above embodiment determines the identity of the user by face recognition, compares the user identity information with the blacklist, prevents the user in the blacklist from entering the security monitoring area, and performs face occlusion detection on the user face image. The user who prevents the face from being occluded enters the security monitoring area, and periodically updates the face recognition system to improve the security of the security monitoring area.
可选地,在其他实施例中,基于人脸识别的安全监控程序10还可以被分割为一个或者多个模块,一个或者多个模块被存储于存储器11中,并由处理器12执行,以完成本申请。本申请所称的模块是指能够完成特定功能的一系列计算机程序指令段。参照图2所示,为图1中基于人脸识别的安全监控程序10的程序模块图。所述基于人脸识别的安全监控程序10可以被分割为:获取模块110、检测模块120、识别模块130、调取模块140及控制模块150。所述模块110-150所实现的功能或操作步骤均与上文类似,此处不再详述,示例性地,例如其中:Alternatively, in other embodiments, the face recognition based security monitor 10 may also be partitioned into one or more modules, one or more modules being stored in the memory 11 and executed by the processor 12 to Complete this application. A module as referred to in this application refers to a series of computer program instructions that are capable of performing a particular function. Referring to FIG. 2, it is a program block diagram of the face recognition based security monitoring program 10 of FIG. The face recognition-based security monitoring program 10 can be divided into: an obtaining module 110, a detecting module 120, an identifying module 130, a calling module 140, and a control module 150. The functions or operational steps implemented by the modules 110-150 are similar to the above, and are not described in detail herein, by way of example, for example:
获取模块110,用于接收用户触发的开门请求,唤醒摄像装置拍摄一张当前用户的实时图像,对该实时图像进行预处理获取当前用户的脸部图像;The acquiring module 110 is configured to receive a user-initiated door opening request, wake up the camera device to capture a real-time image of the current user, and perform pre-processing on the real-time image to obtain a facial image of the current user;
检测模块120,用于将所述脸部图像输入预先确定的人脸遮挡检测系统,判断该脸部图像是否发生遮挡;The detecting module 120 is configured to input the facial image into a predetermined facial occlusion detecting system, and determine whether the facial image is occluded;
识别模块130,用于若该脸部图像未发生遮挡,将该脸部图像输入预先确定的定期更新的人脸识别系统,识别出可能与该脸部图像匹配的用户信息数 据库中的一张或多张身份证照片及对应的匹配概率;The identification module 130 is configured to: if the facial image is not occluded, input the facial image into a predetermined regularly updated facial recognition system, and identify one of the user information databases that may match the facial image or Multiple ID card photos and corresponding matching probabilities;
调取模块140,用于在识别出的一张或多张身份证照片中,取概率最大值对应的身份证照片作为当前用户的身份证照片,并根据所述身份证照片调取当前用户的身份信息;及The retrieving module 140 is configured to take the photo of the ID card corresponding to the maximum probability as the photo of the current user's ID card in the identified one or more ID card photos, and retrieve the current user's ID card according to the ID card photo Identity information; and
控制模块150,用于将当前用户的身份信息与黑名单进行比对,当当前用户的用户身份信息无法与黑名单中信息匹配时,控制门禁系统开门;或,当当前用户的身份信息与黑名单中信息匹配,或者,当所述脸部图像发生遮挡时,控制门禁系统不开门。The control module 150 is configured to compare the identity information of the current user with the blacklist, and control the access control system to open when the user identity information of the current user cannot match the information in the blacklist; or, when the identity information of the current user is black The information in the list matches, or when the facial image is occluded, the access control system is not opened.
此外,本申请还提供一种基于人脸识别的安全监控方法。参照图3所示,为本申请基于人脸识别的安全监控方法第一实施例的流程图。该方法可以由一个装置执行,该装置可以由软件和/或硬件实现。In addition, the present application also provides a security monitoring method based on face recognition. Referring to FIG. 3, it is a flowchart of a first embodiment of a security monitoring method based on face recognition according to the present application. The method can be performed by a device that can be implemented by software and/or hardware.
在本实施例中,基于人脸识别的安全监控方法包括:In this embodiment, the security monitoring method based on face recognition includes:
S10、接收用户触发的开门请求,唤醒摄像装置拍摄一张当前用户的实时图像,对该实时图像进行预处理获取当前用户的脸部图像;S10. Receiving a user-initiated door opening request, waking up the camera device to capture a real-time image of the current user, and pre-processing the real-time image to obtain a current user's face image;
S20、将所述脸部图像输入预先确定的人脸遮挡检测系统,判断该脸部图像是否发生遮挡;S20: input the facial image into a predetermined facial occlusion detection system, and determine whether the facial image is occluded;
S30、若该脸部图像未发生遮挡,将该脸部图像输入预先确定的定期更新的人脸识别系统,识别出可能与该脸部图像匹配的用户信息数据库中的一张或多张身份证照片及对应的匹配概率;S30. If the facial image is not occluded, input the facial image into a predetermined regularly updated face recognition system, and identify one or more ID cards in the user information database that may match the facial image. Photo and corresponding matching probability;
S40、在识别出的一张或多张身份证照片中,取概率最大值对应的身份证照片作为当前用户的身份证照片,并根据所述身份证照片调取当前用户的身份信息;及S40. In the identified one or more ID card photos, take the photo of the ID card corresponding to the maximum probability as the photo of the ID card of the current user, and retrieve the identity information of the current user according to the photo of the ID card;
S50、将当前用户的身份信息与黑名单进行比对,当当前用户的用户身份信息无法与黑名单中信息匹配时,控制门禁系统开门;或,当当前用户的身份信息与黑名单中信息匹配,或者,当所述脸部图像发生遮挡时,控制门禁系统不开门。S50: Comparing the identity information of the current user with the blacklist, and controlling the access control system to open when the current user identity information cannot match the information in the blacklist; or, when the current user identity information matches the information in the blacklist Or, when the facial image is occluded, the control access control system does not open the door.
在本实施例中,以银行的ATM自助取款室为例,但不仅限于银行的ATM自助取款室,对本申请的具体方案进行说明。当有用户需要进入ATM自助取款室时,可通过按压ATM自助取款室外的门禁开关,唤醒摄像装置给当前用 户拍摄一张实时图像,并将该实时图像通过网络发送给处理器。为了从实时图像中确定当前用户对应的脸部图像,需要对实时图像进行预处理,以便于后续的人脸识别步骤。In this embodiment, the ATM self-service withdrawal room of the bank is taken as an example, but not limited to the ATM self-service withdrawal room of the bank, and the specific scheme of the present application is explained. When a user needs to enter the ATM self-service cash withdrawal room, the camera can be woken up to take a real-time image to the current user by pressing the ATM self-service withdrawal access switch, and the real-time image is sent to the processor through the network. In order to determine the face image corresponding to the current user from the real-time image, the real-time image needs to be pre-processed to facilitate the subsequent face recognition step.
在其他实施例中,所述步骤S10中的预处理步骤包括:利用人脸识别算法从该实时图像中识别出人脸区域;当处理器接收到该实时图像后,先获取图片的大小,建立一个相同大小的灰度图像;将获取的彩色图像,转换成灰度图像,同时创建一个内存空间;将灰度图像直方图均衡化,使灰度图像信息量减少,加快检测速度,然后检测图片中的人脸,并返回一个包含人脸信息的对象,获得人脸所在位置的数据,并记录个数;最终获取头像的区域且保存下来,这样就完成了一次人脸区域提取的过程。In other embodiments, the pre-processing step in step S10 includes: recognizing a face region from the real-time image by using a face recognition algorithm; after receiving the real-time image, the processor first acquires a size of the image, and establishes A gray image of the same size; convert the acquired color image into a gray image, and create a memory space; equalize the gray image histogram, reduce the amount of gray image information, speed up the detection, and then detect the image The face in the face, and return an object containing the face information, obtain the data of the location of the face, and record the number; finally obtain the area of the avatar and save it, thus completing the process of extracting the face region.
可以理解的是,若在摄像装置的摄像范围内有多名用户,多名用户距离摄像装置的距离不同,多个用户在实时图像中人脸大小也不同。也就是说,摄像装置拍摄的实时图像中可能包含多个用户的脸部图像,利用人脸识别算法从实时图像中提取出多个人脸区域,从多个人脸区域中选择尺寸最大的人脸区域作为当前用户的脸部图像。若从实时图像中仅提取出一个人脸区域,则以该人脸区域作为当前用户的脸部图像。同时,为了便于后续人脸遮挡检测及人脸识别,将该脸部图像按预设大小(例如,256*256像素)保存。在其他实施例中,所述人脸识别算法还可以为:基于几何特征的方法、局部特征分析方法、特征脸方法、基于弹性模型的方法、神经网络方法,等等。It can be understood that if there are multiple users in the imaging range of the imaging device, and the distances of multiple users from the imaging device are different, the size of the face of the plurality of users in the real-time image is also different. That is to say, the real-time image captured by the camera device may include a plurality of face images of the user, and the face recognition algorithm is used to extract a plurality of face regions from the real-time image, and select the face region with the largest size from the plurality of face regions. As the face image of the current user. If only one face region is extracted from the live image, the face region is used as the face image of the current user. At the same time, in order to facilitate subsequent face occlusion detection and face recognition, the face image is saved by a preset size (for example, 256*256 pixels). In other embodiments, the face recognition algorithm may also be: a geometric feature based method, a local feature analysis method, a feature face method, an elastic model based method, a neural network method, and the like.
可以理解的是,为了保证ATM自助取款室的安全,可以拒绝遮挡面部的用户进入,因此需判断该脸部图像是否有发生遮挡。确定当前脸部图像未发生遮挡后,将脸部图像输入预先确定的人脸识别系统,从用户信息数据库中可能与当前脸部图像匹配的一张或多张身份证照片及对应的匹配概率。其中,所述人脸识别系统是利用用户数据信息库中的所有用户的照片预先训练好的,目前人脸识别技术已比较成熟,这里不再进行说明。It can be understood that in order to ensure the safety of the ATM self-service cash withdrawal room, the user who blocks the face can be refused to enter, so it is necessary to determine whether the facial image has occlusion. After determining that the current facial image has not been occluded, the facial image is input into a predetermined facial recognition system, one or more ID card photos that may match the current facial image in the user information database, and a corresponding matching probability. The face recognition system is pre-trained by using photos of all users in the user data repository. Currently, the face recognition technology is relatively mature, and will not be described here.
在本实施例中,假设人脸识别系统识别出3张身份证照片P1、P2、P3,每张身份证照片对应的匹配概率分别为0.6、0.2、0.2,人脸识别系统默认选择概率最大值对应的身份证照片P1作为当前用户的身份证照片,并根据P1从用户数据信息库中调取出当前用户的所有信息,包括:身份证号、姓名、年龄、性别、银行卡号、手机号等。可以理解的是,所述匹配概率越大,表 示识别出的身份证照片就是当前用户的身份证照片的可能性越大,因此,在其他实施例中,为了提高人脸识别的准确性,可以对识别出的一张或多张身份证照片的概率进行筛选,当概率最大值大于或等于第一预设阈值(例如0.5)时,保留概率最大值对应的身份证照片P1作为当前用户的身份证照片;当概率最大值小于第一预设阈值时,通过语音输出装置提示当前用户重新拍照。In this embodiment, it is assumed that the face recognition system recognizes three ID card photos P1, P2, and P3, and the matching probabilities corresponding to each ID card photo are 0.6, 0.2, and 0.2, respectively, and the face recognition system default selection probability is the maximum. The corresponding ID photo P1 is taken as the photo of the current user's ID card, and all the information of the current user is retrieved from the user data information base according to P1, including: ID number, name, age, gender, bank card number, mobile phone number, etc. . It can be understood that the greater the matching probability, the greater the possibility that the recognized ID card photo is the current user's ID card photo. Therefore, in other embodiments, in order to improve the accuracy of the face recognition, The probability of identifying one or more ID card photos is filtered. When the probability maximum value is greater than or equal to the first preset threshold (for example, 0.5), the ID card photo corresponding to the maximum value of the retention probability is used as the identity of the current user. The photo is taken; when the probability maximum value is less than the first preset threshold, the current user is prompted to retake the photo by the voice output device.
可以理解的是,随着年龄增长,每个人的相貌会发生一定的变化,因此,为了保证人脸识别的准确性,每隔预设时间间隔(例如,6个月)需要对人脸识别系统进行更新,而更新数据的来源也就是用户进入ATM自助取款室时拍摄的照片,从摄像装置拍摄的各用户的实时图像中提取出的脸部图像中,当根据脸部图像从用户信息数据库中识别出的身份证照片的匹配概率最大值大于或等于第二预设阈值(例如0.58)时,将所述脸部图像补充到用户信息数据库中当前用户的身份信息中,并利用补充的各用户的照片定期对所述人脸识别系统进行更新。需要说明的是,为了确保补充到用户信息数据库中的照片为当前用户本人的照片,而不是其他用户的照片,所述第二预设阈值应设置为大于第一预设阈值。It can be understood that as the age increases, each person's appearance will change. Therefore, in order to ensure the accuracy of face recognition, the face recognition system needs to be performed every preset time interval (for example, 6 months). Update, and the source of the updated data is the photo taken when the user enters the ATM self-service cash withdrawal room, and the facial image extracted from the real-time image of each user captured by the camera device is recognized from the user information database according to the facial image. When the maximum matching probability of the ID card photo is greater than or equal to the second preset threshold (for example, 0.58), the facial image is added to the identity information of the current user in the user information database, and the supplementary user is utilized. The photo periodically updates the face recognition system. It should be noted that, in order to ensure that the photo added to the user information database is the current user's own photo, rather than the photos of other users, the second preset threshold should be set to be greater than the first preset threshold.
在确认当前用户的身份信息后,则可与黑名单进行比对,在本实施例中,所述黑名单可以包括:公安系统发布的在逃犯罪分子、恐怖分子等涉黑涉恐涉毒人员的身份信息,例如,身份证号,将当前用户的身份证号与黑名单中的身份证号进行比对,当当前用户的身份证号无法与黑名单中信息匹配时,控制门禁系统开门;当当前用户的身份信息与黑名单中信息匹配,控制门禁系统不开门。After confirming the identity information of the current user, the blacklist may be compared with the blacklist. In this embodiment, the blacklist may include: a criminal who is involved in the crime, such as a fugitive criminal, a terrorist, or the like. The identity information, for example, the ID number, compares the current user's ID number with the ID number in the blacklist. When the current user's ID number cannot match the information in the blacklist, the access control system is opened; The identity information of the current user matches the information in the blacklist, and the access control system is not opened.
需要说明的是,所述第一预设阈值、第二预设阈值等需要预先设置的参数,可以根据用户需要进行调整。It should be noted that the parameters that need to be preset in the first preset threshold, the second preset threshold, and the like may be adjusted according to user needs.
上述实施例提出的基于人脸识别的安全监控方法,通过人脸识别确定用户身份,将用户身份信息与黑名单进行比对,防止黑名单中的用户进入安全监控区域,并定期对人脸识别系统进行更新,提高人脸识别准确性,提高了安全监控区域的安全性。The face recognition-based security monitoring method proposed by the foregoing embodiment determines the user identity through face recognition, compares the user identity information with the blacklist, prevents the user in the blacklist from entering the security monitoring area, and periodically recognizes the face. The system is updated to improve the accuracy of face recognition and improve the security of the security monitoring area.
基于上述实施例提出基于人脸识别的安全监控方法的另一个较佳实施例。参照图4所示,是本申请基于人脸识别的安全监控方法的步骤S20的细化流 程示意图。在本实施例中,所述步骤S20包括以下步骤:Another preferred embodiment of the face recognition based security monitoring method is proposed based on the above embodiments. Referring to Fig. 4, it is a refinement flow chart of step S20 of the face recognition based security monitoring method of the present application. In this embodiment, the step S20 includes the following steps:
步骤S21,从所述脸部图像中识别出t个面部特征点,根据该t个面部特征点的位置信息确定眼部区域和唇部区域;Step S21, identifying t facial feature points from the facial image, and determining an eye region and a lip region according to position information of the t facial feature points;
步骤S22,判断所述眼部区域和唇部区域的真实性,当所述眼部区域及唇部区域的判断结果均为真实时,判断该脸部图像未发生遮挡;及Step S22, determining the authenticity of the eye region and the lip region, and determining that the facial image is not blocked when the determination result of the eye region and the lip region is true; and
步骤S23,当所述眼部区域及唇部区域的判断结果包含不真实时,判断该脸部图像发生遮挡。Step S23, when the determination result of the eye region and the lip region includes an unreality, it is determined that the facial image is occluded.
将当前用户的脸部图像输入预先确定的面部平均模型,以从所述脸部图像中识别出t个面部特征点。当t=34,将实时脸部图像与该面部平均模型进行对齐,然后利用特征提取算法在该实时脸部图像中搜索与该面部平均模型的34个面部特征点匹配的12个眼眶特征点、2个眼球特征点、20个唇部特征点。然后,可以根据12个眼眶特征点、2个眼球特征点确定一个眼部区域,根据该20个唇部特征点确定一个唇部区域,将确定的眼部区域及唇部区域输入预先确定的人脸的眼部分类模型及人脸的唇部分类模型,根据模型所得的结果判断所述确定的眼部区域及唇部区域的真实性。当眼部分类模型及唇部分类模型输出的结果中均为false,则表示所述眼部区域及唇部区域不是人的眼部区域和人的唇部区域,判断当前脸部图像发生遮挡,控制门禁系统不开门,并通过语音输出装置提示用户脸部发生遮挡;当眼部分类模型及唇部分类模型输出的结果中均为true,则表示所述眼部区域及唇部区域是人的眼部区域和人的唇部区域,也就是说当前脸部图像未发生遮挡,继续进行人脸识别步骤。需要说明的是,所述面部平均模型、唇部分类模型及眼部分类模型为预先训练好的,其训练步骤及识别步骤均有较成熟的技术,这里不再进行说明。The face image of the current user is input to a predetermined face average model to identify t face feature points from the face image. When t=34, the real-time facial image is aligned with the facial average model, and then the feature extraction algorithm is used to search the real-time facial image for 12 eyelid feature points matching the 34 facial feature points of the facial average model, 2 eye feature points and 20 lip feature points. Then, an eye region can be determined according to 12 eyelid feature points and 2 eyeball feature points, a lip region is determined according to the 20 lip feature points, and the determined eye region and the lip region are input to a predetermined person. The eye part class model of the face and the lip part class model of the face determine the authenticity of the determined eye region and the lip region based on the results obtained by the model. When the results of the output of the eye part model and the lip part model are both false, it means that the eye area and the lip area are not the human eye area and the human lip area, and the current facial image is determined to be occluded. The control access control system does not open the door, and prompts the user to occlude the face through the voice output device; when both the eye part type model and the lip part type model output result are true, it indicates that the eye area and the lip area are human The eye area and the human lip area, that is, the current facial image is not occluded, and the face recognition step is continued. It should be noted that the facial average model, the lip part model, and the eye part model are pre-trained, and the training steps and the identification steps have mature technologies, which will not be described here.
上述实施例提出的基于人脸识别的安全监控方法,通过对用户脸部图像进行人脸遮挡检测,防止脸部有遮挡的用户进入安全监控区域,提高安全监控区域的安全性。The security monitoring method based on the face recognition proposed by the above embodiment prevents the occluded user from entering the security monitoring area by performing face occlusion detection on the user's face image, thereby improving the security of the security monitoring area.
基于上述实施例提出基于人脸识别的安全监控方法的另一个较佳实施例。在本实施例中,所述步骤S50还包括:当当前用户的身份信息与黑名单中信息匹配时,获取正在安全监控区域内进行业务处理的其他用户的用户信息,并向所述其他用户发送预警短信。Another preferred embodiment of the face recognition based security monitoring method is proposed based on the above embodiments. In this embodiment, the step S50 further includes: when the identity information of the current user matches the information in the blacklist, acquiring user information of other users that are performing service processing in the security monitoring area, and sending the information to the other user. Early warning SMS.
当当前用户的身份信息与黑名单中信息匹配时,获取正在ATM自助取款室内进行交易的其他用户的用户信息,例如手机号码,并向其他用户发送预警短信,告知其他用户ATM自助取款室外有涉黑涉恐涉毒人员,请注意个人生命及财产安全。When the identity information of the current user matches the information in the blacklist, the user information of other users who are conducting transactions in the ATM self-service withdrawal room, such as a mobile phone number, is sent, and an alert message is sent to other users to inform other users that the ATM self-service withdrawal is involved outdoors. Black is involved in terrorists, please pay attention to personal life and property safety.
上述实施例提出的基于人脸识别的安全监控方法,对正在安全监控区域内进行交易的用户发出短信预警,提高用户的使用体验。The security monitoring method based on the face recognition proposed by the foregoing embodiment sends a short message early warning to the user who is conducting the transaction in the security monitoring area, thereby improving the user experience.
此外,本申请还提出一种计算机可读存储介质,所述计算机可读存储介质中包括基于人脸识别的安全监控程序,该安全监控程序被处理器执行时实现如下操作:In addition, the present application further provides a computer readable storage medium including a face recognition based security monitoring program, the security monitoring program being executed by the processor to:
A、接收用户触发的开门请求,唤醒摄像装置拍摄一张当前用户的实时图像,对该实时图像进行预处理获取当前用户的脸部图像;A. Receiving a user-initiated door opening request, waking up the camera device to take a real-time image of the current user, and pre-processing the real-time image to obtain a current user's face image;
B、将所述脸部图像输入预先确定的人脸遮挡检测系统,判断该脸部图像是否发生遮挡;B. input the facial image into a predetermined facial occlusion detection system, and determine whether the facial image is occluded;
C、若该脸部图像未发生遮挡,将该脸部图像输入预先确定的定期更新的人脸识别系统,识别出可能与该脸部图像匹配的用户信息数据库中的一张或多张身份证照片及对应的匹配概率;C. If the facial image is not occluded, input the facial image into a predetermined regularly updated face recognition system, and identify one or more ID cards in the user information database that may match the facial image. Photo and corresponding matching probability;
D、在识别出的一张或多张身份证照片中,取概率最大值对应的身份证照片作为当前用户的身份证照片,并根据所述身份证照片调取当前用户的身份信息;及D. In the identified one or more ID card photos, take the photo of the ID card corresponding to the maximum probability as the current user's ID card photo, and retrieve the identity information of the current user according to the ID card photo;
E、将当前用户的身份信息与黑名单进行比对,当当前用户的用户身份信息无法与黑名单中信息匹配时,控制门禁系统开门;或,当当前用户的身份信息与黑名单中信息匹配,或者,当所述脸部图像发生遮挡时,控制门禁系统不开门。E. Comparing the identity information of the current user with the blacklist. When the user identity information of the current user cannot match the information in the blacklist, the access control system is opened; or when the identity information of the current user matches the information in the blacklist. Or, when the facial image is occluded, the control access control system does not open the door.
本申请之计算机可读存储介质的具体实施方式与上述电子装置及基于人脸识别的安全监控方法的具体实施方式大致相同,在此不再赘述。The specific implementation manner of the computer readable storage medium of the present application is substantially the same as the specific implementation manner of the foregoing electronic device and the face recognition-based security monitoring method, and details are not described herein again.
需要说明的是,在本文中,术语“包括”、“包含”或者其任何其他变体意在涵盖非排他性的包含,从而使得包括一系列要素的过程、装置、物品或者方法不仅包括那些要素,而且还包括没有明确列出的其他要素,或者是还包括 为这种过程、装置、物品或者方法所固有的要素。在没有更多限制的情况下,由语句“包括一个……”限定的要素,并不排除在包括该要素的过程、装置、物品或者方法中还存在另外的相同要素。It is to be understood that the term "comprises", "comprising", or any other variants thereof, is intended to encompass a non-exclusive inclusion, such that a process, apparatus, article, or method that comprises a series of elements includes those elements. It also includes other elements not explicitly listed, or elements that are inherent to such a process, device, item, or method. An element that is defined by the phrase "comprising a ..." does not exclude the presence of additional equivalent elements in the process, the device, the item, or the method that comprises the element.
上述本申请实施例序号仅仅为了描述,不代表实施例的优劣。通过以上的实施方式的描述,本领域的技术人员可以清楚地了解到上述实施例方法可借助软件加必需的通用硬件平台的方式来实现,当然也可以通过硬件,但很多情况下前者是更佳的实施方式。基于这样的理解,本申请的技术方案本质上或者说对现有技术做出贡献的部分可以以软件产品的形式体现出来,该计算机软件产品存储在如上所述的一个存储介质(如ROM/RAM、磁碟、光盘)中,包括若干指令用以使得一台终端设备(可以是手机,计算机,服务器,或者网络设备等)执行本申请各个实施例所述的方法。The serial numbers of the embodiments of the present application are merely for the description, and do not represent the advantages and disadvantages of the embodiments. Through the description of the above embodiments, those skilled in the art can clearly understand that the foregoing embodiment method can be implemented by means of software plus a necessary general hardware platform, and of course, can also be through hardware, but in many cases, the former is better. Implementation. Based on such understanding, the technical solution of the present application, which is essential or contributes to the prior art, may be embodied in the form of a software product stored in a storage medium (such as ROM/RAM as described above). , a disk, an optical disk, including a number of instructions for causing a terminal device (which may be a mobile phone, a computer, a server, or a network device, etc.) to perform the methods described in the various embodiments of the present application.
以上仅为本申请的优选实施例,并非因此限制本申请的专利范围,凡是利用本申请说明书及附图内容所作的等效结构或等效流程变换,或直接或间接运用在其他相关的技术领域,均同理包括在本申请的专利保护范围内。The above is only a preferred embodiment of the present application, and is not intended to limit the scope of the patent application, and the equivalent structure or equivalent process transformations made by the specification and the drawings of the present application, or directly or indirectly applied to other related technical fields. The same is included in the scope of patent protection of this application.

Claims (20)

  1. 一种基于人脸识别的安全监控方法,应用于电子装置,其特征在于,该方法包括:A security monitoring method based on face recognition is applied to an electronic device, and the method comprises:
    S1、接收用户触发的开门请求,唤醒摄像装置拍摄一张当前用户的实时图像,对该实时图像进行预处理获取当前用户的脸部图像;S1, receiving a user-initiated door opening request, waking up the camera device to capture a real-time image of the current user, pre-processing the real-time image to obtain a current user's face image;
    S2、将所述脸部图像输入预先确定的人脸遮挡检测系统,判断该脸部图像是否发生遮挡;S2: input the facial image into a predetermined facial occlusion detection system, and determine whether the facial image is occluded;
    S3、若该脸部图像未发生遮挡,将该脸部图像输入预先确定的定期更新的人脸识别系统,识别出可能与该脸部图像匹配的用户信息数据库中的一张或多张身份证照片及对应的匹配概率;S3. If the facial image is not occluded, input the facial image into a predetermined regularly updated face recognition system, and identify one or more ID cards in the user information database that may match the facial image. Photo and corresponding matching probability;
    S4、在识别出的一张或多张身份证照片中,取概率最大值对应的身份证照片作为当前用户的身份证照片,并根据所述身份证照片调取当前用户的身份信息;及S4. In the identified one or more ID card photos, take the photo of the ID card corresponding to the maximum probability as the photo of the ID card of the current user, and retrieve the identity information of the current user according to the photo of the ID card;
    S5、将当前用户的身份信息与黑名单进行比对,当当前用户的用户身份信息无法与黑名单中信息匹配时,控制门禁系统开门;或,当当前用户的身份信息与黑名单中信息匹配,或者,当所述脸部图像发生遮挡时,控制门禁系统不开门。S5. Comparing the identity information of the current user with the blacklist. When the user identity information of the current user cannot match the information in the blacklist, the access control system is controlled to open; or, when the identity information of the current user matches the information in the blacklist. Or, when the facial image is occluded, the control access control system does not open the door.
  2. 如权利要求1所述的基于人脸识别的安全监控方法,其特征在于,所述步骤S1中的预处理包括:The method for security monitoring based on face recognition according to claim 1, wherein the preprocessing in step S1 comprises:
    利用人脸识别算法识别出所述实时图像中包含的人脸区域;Identifying a face region included in the real-time image by using a face recognition algorithm;
    当所述实时图像中包含一个人脸区域,则将该人脸区域作为当前用户的脸部图像,并将该脸部图像按预设大小保存;及When the real-time image includes a face region, the face region is used as a face image of the current user, and the face image is saved according to a preset size; and
    当所述实时图像中包含多个人脸区域,选取尺寸最大的人脸区域作为当前用户的脸部图像,并将该脸部图像按预设大小保存。When the real-time image includes multiple face regions, the face region with the largest size is selected as the face image of the current user, and the face image is saved according to a preset size.
  3. 如权利要求1所述的基于人脸识别的安全监控方法,其特征在于,所述步骤S4还包括:The face recognition-based security monitoring method according to claim 1, wherein the step S4 further comprises:
    当概率最大值大于或等于第一预设阈值时,保留概率最大值对应的身份证照片作为当前用户的身份证照片;及When the maximum value of the probability is greater than or equal to the first preset threshold, the photo of the ID card corresponding to the maximum value of the retention probability is taken as the photo of the ID card of the current user;
    当概率最大值小于第一预设阈值时,返回步骤S1。When the probability maximum value is less than the first preset threshold, the process returns to step S1.
  4. 如权利要求2所述的基于人脸识别的安全监控方法,其特征在于,所述步骤S4还包括:The face recognition-based security monitoring method according to claim 2, wherein the step S4 further comprises:
    当概率最大值大于或等于第一预设阈值时,保留概率最大值对应的身份证照片作为当前用户的身份证照片;及When the maximum value of the probability is greater than or equal to the first preset threshold, the photo of the ID card corresponding to the maximum value of the retention probability is taken as the photo of the ID card of the current user;
    当概率最大值小于第一预设阈值时,返回步骤S1。When the probability maximum value is less than the first preset threshold, the process returns to step S1.
  5. 如权利要求3或4所述的基于人脸识别的安全监控方法,其特征在于,所述步骤S4还包括:The face recognition-based security monitoring method according to claim 3 or 4, wherein the step S4 further comprises:
    当概率最大值大于或等于第二预设阈值时,将所述脸部图像补充到用户信息数据库中当前用户的身份信息中,每隔预设时间间隔对所述人脸识别系统进行更新,其中,所述第二预设阈值大于第一预设阈值。When the probability maximum value is greater than or equal to the second preset threshold, the facial image is added to the identity information of the current user in the user information database, and the face recognition system is updated every preset time interval, wherein The second preset threshold is greater than the first preset threshold.
  6. 如权利要求5所述的基于人脸识别的安全监控方法,其特征在于,所述步骤S2包括:The face recognition-based security monitoring method according to claim 5, wherein the step S2 comprises:
    从所述脸部图像中识别出t个面部特征点,根据该t个面部特征点的位置信息确定眼部区域和唇部区域;Identifying t facial feature points from the facial image, and determining an eye region and a lip region according to position information of the t facial feature points;
    判断所述眼部区域和唇部区域的真实性,当所述眼部区域及唇部区域的判断结果均为真实时,判断该脸部图像未发生遮挡;及Determining the authenticity of the eye region and the lip region, and determining that the facial image is not occluded when the determination result of the eye region and the lip region is true; and
    当所述眼部区域及唇部区域的判断结果包含不真实时,判断该脸部图像发生遮挡。When the judgment result of the eye region and the lip region includes an unreality, it is determined that the facial image is occluded.
  7. 如权利要求1或6所述的基于人脸识别的安全监控方法,其特征在于,所述步骤S5还包括:The face recognition-based security monitoring method according to claim 1 or 6, wherein the step S5 further comprises:
    当前用户的身份信息与黑名单中信息匹配时,获取正在安全监控区域内进行业务处理的其他用户的用户信息,并向所述其他用户发送预警短信。When the identity information of the current user matches the information in the blacklist, the user information of other users who are performing service processing in the security monitoring area is obtained, and the alert message is sent to the other users.
  8. 一种电子装置,其特征在于,所述装置包括:存储器、处理器及摄像装置,所述存储器中包括基于人脸识别的安全监控程序,该安全监控程序被所述处理器执行时实现如下步骤:An electronic device, comprising: a memory, a processor, and an imaging device, wherein the memory includes a face recognition-based security monitoring program, and the security monitoring program is implemented by the processor to implement the following steps :
    A、接收用户触发的开门请求,唤醒摄像装置拍摄一张当前用户的实时图像,对该实时图像进行预处理获取当前用户的脸部图像;A. Receiving a user-initiated door opening request, waking up the camera device to take a real-time image of the current user, and pre-processing the real-time image to obtain a current user's face image;
    B、将所述脸部图像输入预先确定的人脸遮挡检测系统,判断该脸部图像是否发生遮挡;B. input the facial image into a predetermined facial occlusion detection system, and determine whether the facial image is occluded;
    C、若该脸部图像未发生遮挡,将该脸部图像输入预先确定的定期更新的 人脸识别系统,识别出可能与该脸部图像对应的用户信息数据库中的一张或多张身份证照片及对应的匹配概率;C. If the facial image is not occluded, input the facial image into a predetermined regularly updated face recognition system, and identify one or more ID cards in the user information database that may correspond to the facial image. Photo and corresponding matching probability;
    D、在识别出的一张或多张身份证照片中,取概率最大值对应的身份证照片作为当前用户的身份证照片,并根据所述身份证照片调取当前用户的身份信息;及D. In the identified one or more ID card photos, take the photo of the ID card corresponding to the maximum probability as the current user's ID card photo, and retrieve the identity information of the current user according to the ID card photo;
    E、将当前用户的身份信息与黑名单进行比对,当当前用户的用户身份信息无法与黑名单中信息匹配时,控制门禁系统开门;或,当当前用户的身份信息与黑名单中信息匹配,或者,当所述脸部图像发生遮挡时,控制门禁系统不开门。E. Comparing the identity information of the current user with the blacklist. When the user identity information of the current user cannot match the information in the blacklist, the access control system is opened; or when the identity information of the current user matches the information in the blacklist. Or, when the facial image is occluded, the control access control system does not open the door.
  9. 如权利要求8所述的电子装置,其特征在于,所述步骤A中的预处理包括:The electronic device according to claim 8, wherein the preprocessing in the step A comprises:
    利用人脸识别算法识别出所述实时图像中包含的人脸区域;Identifying a face region included in the real-time image by using a face recognition algorithm;
    当所述实时图像中包含一个人脸区域,则将该人脸区域作为当前用户的脸部图像,并将该脸部图像按预设大小保存;及When the real-time image includes a face region, the face region is used as a face image of the current user, and the face image is saved according to a preset size; and
    当所述实时图像中包含多个人脸区域,选取尺寸最大的人脸区域作为当前用户的脸部图像,并将该脸部图像按预设大小保存。When the real-time image includes multiple face regions, the face region with the largest size is selected as the face image of the current user, and the face image is saved according to a preset size.
  10. 如权利要求8所述的电子装置,其特征在于,所述步骤D还包括:The electronic device according to claim 8, wherein the step D further comprises:
    当概率最大值大于或等于第一预设阈值时,保留概率最大值对应的身份证照片作为当前用户的身份证照片;及When the maximum value of the probability is greater than or equal to the first preset threshold, the photo of the ID card corresponding to the maximum value of the retention probability is taken as the photo of the ID card of the current user;
    当概率最大值小于第一预设阈值时,返回步骤A。When the probability maximum value is less than the first preset threshold, return to step A.
  11. 如权利要求9所述的电子装置,其特征在于,所述步骤D还包括:The electronic device of claim 9, wherein the step D further comprises:
    当概率最大值大于或等于第一预设阈值时,保留概率最大值对应的身份证照片作为当前用户的身份证照片;及When the maximum value of the probability is greater than or equal to the first preset threshold, the photo of the ID card corresponding to the maximum value of the retention probability is taken as the photo of the ID card of the current user;
    当概率最大值小于第一预设阈值时,返回步骤A。When the probability maximum value is less than the first preset threshold, return to step A.
  12. 如权利要求10或11所述的电子装置,其特征在于,所述步骤D还包括:The electronic device according to claim 10 or 11, wherein the step D further comprises:
    当概率最大值大于或等于第二预设阈值时,将所述脸部图像补充到用户信息数据库中当前用户的身份信息中,每隔预设时间间隔对所述人脸识别系统进行更新,其中,所述第二预设阈值大于第一预设阈值。When the probability maximum value is greater than or equal to the second preset threshold, the facial image is added to the identity information of the current user in the user information database, and the face recognition system is updated every preset time interval, wherein The second preset threshold is greater than the first preset threshold.
  13. 如权利要求12所述的电子装置,其特征在于,所述步骤B包括:The electronic device of claim 12, wherein the step B comprises:
    从所述脸部图像中识别出t个面部特征点,根据该t个面部特征点的位置信息确定眼部区域和唇部区域;Identifying t facial feature points from the facial image, and determining an eye region and a lip region according to position information of the t facial feature points;
    判断所述眼部区域和唇部区域的真实性,当所述眼部区域及唇部区域的判断结果均为真实时,判断该脸部图像未发生遮挡;及Determining the authenticity of the eye region and the lip region, and determining that the facial image is not occluded when the determination result of the eye region and the lip region is true; and
    当所述眼部区域及唇部区域的判断结果包含不真实时,判断该脸部图像发生遮挡。When the judgment result of the eye region and the lip region includes an unreality, it is determined that the facial image is occluded.
  14. 如权利要求8或13所述的电子装置,其特征在于,所述步骤E还包括:The electronic device according to claim 8 or 13, wherein the step E further comprises:
    当前用户的身份信息与黑名单中信息匹配时,获取正在安全监控区域内进行业务处理的其他用户的用户信息,并向所述其他用户发送预警短信。When the identity information of the current user matches the information in the blacklist, the user information of other users who are performing service processing in the security monitoring area is obtained, and the alert message is sent to the other users.
  15. 一种计算机可读存储介质,其特征在于,所述计算机可读存储介质中包括基于人脸识别的安全监控程序,该安全监控程序被处理器执行时,实现如下步骤:A computer readable storage medium, characterized in that the computer readable storage medium comprises a face recognition based security monitoring program, and when the security monitoring program is executed by the processor, the following steps are implemented:
    A、接收用户触发的开门请求,唤醒摄像装置拍摄一张当前用户的实时图像,对该实时图像进行预处理获取当前用户的脸部图像;A. Receiving a user-initiated door opening request, waking up the camera device to take a real-time image of the current user, and pre-processing the real-time image to obtain a current user's face image;
    B、将所述脸部图像输入预先确定的人脸遮挡检测系统,判断该脸部图像是否发生遮挡;B. input the facial image into a predetermined facial occlusion detection system, and determine whether the facial image is occluded;
    C、若该脸部图像未发生遮挡,将该脸部图像输入预先确定的定期更新的人脸识别系统,识别出可能与该脸部图像对应的用户信息数据库中的一张或多张身份证照片及对应的匹配概率;C. If the facial image is not occluded, input the facial image into a predetermined regularly updated face recognition system, and identify one or more ID cards in the user information database that may correspond to the facial image. Photo and corresponding matching probability;
    D、在识别出的一张或多张身份证照片中,取概率最大值对应的身份证照片作为当前用户的身份证照片,并根据所述身份证照片调取当前用户的身份信息;及D. In the identified one or more ID card photos, take the photo of the ID card corresponding to the maximum probability as the current user's ID card photo, and retrieve the identity information of the current user according to the ID card photo;
    E、将当前用户的身份信息与黑名单进行比对,当当前用户的用户身份信息无法与黑名单中信息匹配时,控制门禁系统开门;或,当当前用户的身份信息与黑名单中信息匹配,或者,当所述脸部图像发生遮挡时,控制门禁系统不开门。E. Comparing the identity information of the current user with the blacklist. When the user identity information of the current user cannot match the information in the blacklist, the access control system is opened; or when the identity information of the current user matches the information in the blacklist. Or, when the facial image is occluded, the control access control system does not open the door.
  16. 如权利要求15所述的计算机可读存储介质,其特征在于,所述步骤A中的预处理包括:The computer readable storage medium of claim 15, wherein the preprocessing in step A comprises:
    利用人脸识别算法识别出所述实时图像中包含的人脸区域;Identifying a face region included in the real-time image by using a face recognition algorithm;
    当所述实时图像中包含一个人脸区域,则将该人脸区域作为当前用户的脸部图像,并将该脸部图像按预设大小保存;及When the real-time image includes a face region, the face region is used as a face image of the current user, and the face image is saved according to a preset size; and
    当所述实时图像中包含多个人脸区域,选取尺寸最大的人脸区域作为当前用户的脸部图像,并将该脸部图像按预设大小保存。When the real-time image includes multiple face regions, the face region with the largest size is selected as the face image of the current user, and the face image is saved according to a preset size.
  17. 如权利要求16所述的计算机可读存储介质,其特征在于,所述步骤D还包括:The computer readable storage medium of claim 16, wherein the step D further comprises:
    当概率最大值大于或等于第一预设阈值时,保留概率最大值对应的身份证照片作为当前用户的身份证照片;及When the maximum value of the probability is greater than or equal to the first preset threshold, the photo of the ID card corresponding to the maximum value of the retention probability is taken as the photo of the ID card of the current user;
    当概率最大值小于第一预设阈值时,返回步骤A。When the probability maximum value is less than the first preset threshold, return to step A.
  18. 如权利要求17所述的计算机可读存储介质,其特征在于,所述步骤D还包括:The computer readable storage medium of claim 17, wherein the step D further comprises:
    当概率最大值大于或等于第一预设阈值时,保留概率最大值对应的身份证照片作为当前用户的身份证照片;及When the maximum value of the probability is greater than or equal to the first preset threshold, the photo of the ID card corresponding to the maximum value of the retention probability is taken as the photo of the ID card of the current user;
    当概率最大值小于第一预设阈值时,返回步骤A。When the probability maximum value is less than the first preset threshold, return to step A.
  19. 如权利要求17或18所述的计算机可读存储介质,其特征在于,所述步骤D还包括:The computer readable storage medium according to claim 17 or 18, wherein the step D further comprises:
    当概率最大值大于或等于第二预设阈值时,将所述脸部图像补充到用户信息数据库中当前用户的身份信息中,每隔预设时间间隔对所述人脸识别系统进行更新,其中,所述第二预设阈值大于第一预设阈值。When the probability maximum value is greater than or equal to the second preset threshold, the facial image is added to the identity information of the current user in the user information database, and the face recognition system is updated every preset time interval, wherein The second preset threshold is greater than the first preset threshold.
  20. 如权利要求19所述的计算机可读存储介质,其特征在于,所述步骤B包括:The computer readable storage medium of claim 19, wherein said step B comprises:
    从所述脸部图像中识别出t个面部特征点,根据该t个面部特征点的位置信息确定眼部区域和唇部区域;Identifying t facial feature points from the facial image, and determining an eye region and a lip region according to position information of the t facial feature points;
    判断所述眼部区域和唇部区域的真实性,当所述眼部区域及唇部区域的判断结果均为真实时,判断该脸部图像未发生遮挡;及Determining the authenticity of the eye region and the lip region, and determining that the facial image is not occluded when the determination result of the eye region and the lip region is true; and
    当所述眼部区域及唇部区域的判断结果包含不真实时,判断该脸部图像发生遮挡。When the judgment result of the eye region and the lip region includes an unreality, it is determined that the facial image is occluded.
PCT/CN2018/077623 2018-01-03 2018-02-28 Facial recognition-based security monitoring method, device, and storage medium WO2019134246A1 (en)

Applications Claiming Priority (2)

Application Number Priority Date Filing Date Title
CN201810003944.2 2018-01-03
CN201810003944.2A CN108399665A (en) 2018-01-03 2018-01-03 Method for safety monitoring, device based on recognition of face and storage medium

Publications (1)

Publication Number Publication Date
WO2019134246A1 true WO2019134246A1 (en) 2019-07-11

Family

ID=63094335

Family Applications (1)

Application Number Title Priority Date Filing Date
PCT/CN2018/077623 WO2019134246A1 (en) 2018-01-03 2018-02-28 Facial recognition-based security monitoring method, device, and storage medium

Country Status (2)

Country Link
CN (1) CN108399665A (en)
WO (1) WO2019134246A1 (en)

Cited By (22)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN110516623A (en) * 2019-08-29 2019-11-29 中新智擎科技有限公司 A kind of face identification method, device and electronic equipment
CN110675538A (en) * 2019-09-16 2020-01-10 杭州安芯科技有限公司 Intelligent door lock system
CN110930155A (en) * 2019-10-17 2020-03-27 平安科技(深圳)有限公司 Risk management and control method and device, computer device and storage medium
CN111368115A (en) * 2020-03-03 2020-07-03 杭州海康威视系统技术有限公司 Data clustering method and device, clustering server and storage medium
CN111724029A (en) * 2020-05-08 2020-09-29 上海市公安局出入境管理局 Workshop staff violation confirmation method and device and computer equipment
CN111798606A (en) * 2020-07-02 2020-10-20 泰森日盛集团有限公司 Finished product warehouse intelligent warehouse system with intelligent entrance guard identification function
CN111798596A (en) * 2020-07-13 2020-10-20 江苏先驰物联网技术有限公司 Security management lock and system based on identity card unlocking and using method thereof
CN111814570A (en) * 2020-06-12 2020-10-23 深圳禾思众成科技有限公司 Face recognition method, system and storage medium based on dynamic threshold
CN112052731A (en) * 2020-07-30 2020-12-08 广州市标准化研究院 Intelligent portrait recognition card punching attendance system and method
CN112182537A (en) * 2020-09-28 2021-01-05 深圳前海微众银行股份有限公司 Monitoring method, device, server, system and storage medium
CN112597886A (en) * 2020-12-22 2021-04-02 成都商汤科技有限公司 Ride fare evasion detection method and device, electronic equipment and storage medium
CN113286199A (en) * 2020-02-20 2021-08-20 佛山市云米电器科技有限公司 Program recommendation method, television and storage medium
CN113293718A (en) * 2021-04-19 2021-08-24 广东携龙科技有限公司 Scenic spot gate terminal and identity information comparison system
CN113609905A (en) * 2021-06-30 2021-11-05 国网福建省电力有限公司信息通信分公司 Regional personnel detection method based on identity re-identification and storage medium
CN114067279A (en) * 2022-01-17 2022-02-18 江西字母表科技有限公司 Personnel object supervision method, device and system in restricted space
CN114785609A (en) * 2022-05-09 2022-07-22 内蒙古铖品科技有限公司 Data transmission safety detection system and method under block chain scene
CN115271766A (en) * 2022-09-20 2022-11-01 湖南三湘银行股份有限公司 Mortgage surface sign on-line processing method and system based on remote video
CN115311703A (en) * 2022-04-21 2022-11-08 亿慧云智能科技(深圳)股份有限公司 Access control system control method and device based on face recognition and terminal equipment
CN115439971A (en) * 2022-08-31 2022-12-06 中国工商银行股份有限公司 Self-service bank access control monitoring management method and system
CN115471944A (en) * 2022-08-08 2022-12-13 国网河北省电力有限公司建设公司 Warehouse access lock control method, device and system and readable storage medium
WO2023035553A1 (en) * 2021-09-09 2023-03-16 南京奥拓电子科技有限公司 Monitoring method and apparatus for service window and self-service device
CN117197916A (en) * 2023-11-02 2023-12-08 南方电网调峰调频发电有限公司信息通信分公司 Attendance registration method and system for door access identification

Families Citing this family (26)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN109145564A (en) * 2018-08-22 2019-01-04 中国工商银行股份有限公司 Control the method and device of mobile terminal
CN110876116A (en) * 2018-08-31 2020-03-10 华为技术有限公司 User identification method and related device
CN109102611A (en) * 2018-08-31 2018-12-28 镇江赛唯思智能科技有限公司 A kind of identity checking method and system
CN109522782A (en) * 2018-09-04 2019-03-26 上海交通大学 Household member's identifying system
TWI671685B (en) * 2018-09-19 2019-09-11 和碩聯合科技股份有限公司 Face recognition method and electronic device using the same
CN109672858A (en) * 2018-11-23 2019-04-23 深圳奥比中光科技有限公司 3D recognition of face monitoring system
CN109558839A (en) * 2018-11-29 2019-04-02 徐州立讯信息科技有限公司 Adaptive face identification method and the equipment and system for realizing this method
CN109345677A (en) * 2018-11-30 2019-02-15 新疆联海创智信息科技有限公司 Testimony of a witness apparatus for checking and testimony of a witness checking method
CN110008802B (en) * 2018-12-04 2023-08-29 创新先进技术有限公司 Method and device for selecting target face from multiple faces and comparing face recognition
CN109949449B (en) * 2019-01-28 2022-10-25 平安科技(深圳)有限公司 Visitor identity identification method and device based on face identification, and computer equipment
CN109872470A (en) * 2019-03-17 2019-06-11 中国建设银行股份有限公司 A kind of self-help teller machine working method, system and device
CN110232322B (en) * 2019-05-13 2024-06-28 平安科技(深圳)有限公司 Authentication method and device for identity card, computer equipment and storage medium
CN110765830B (en) * 2019-06-12 2022-11-04 天津新泰基业电子股份有限公司 Full self-service registration method, system, medium and equipment for human face
CN110390750A (en) * 2019-07-18 2019-10-29 烟台市广智微芯智能科技有限责任公司 Gate inhibition and its control method with limb recognition
CN110428410B (en) * 2019-07-31 2024-02-27 腾讯医疗健康(深圳)有限公司 Fundus medical image processing method, device, equipment and storage medium
CN112784627A (en) * 2019-11-05 2021-05-11 杭州海康威视系统技术有限公司 Identity recognition method, device, electronic equipment and medium
CN113129494A (en) * 2019-12-30 2021-07-16 深圳东沅科技有限公司 Region management method and device based on face recognition and terminal equipment
CN111079712B (en) * 2019-12-31 2023-04-21 中国银行股份有限公司 Permission management method and device based on face recognition
CN111353426A (en) * 2020-02-28 2020-06-30 山东浪潮通软信息科技有限公司 Abnormal behavior detection method and device
CN111724522B (en) * 2020-05-25 2022-04-08 浙江大华技术股份有限公司 Access control system, method and device, control equipment and storage medium
CN111783594B (en) * 2020-06-23 2024-07-23 杭州海康威视数字技术股份有限公司 Alarm method and device and electronic equipment
CN111932751B (en) * 2020-08-15 2021-09-17 广州微服技术股份有限公司 Intelligent park Internet of things comprehensive management platform and management method
CN112560775A (en) * 2020-12-25 2021-03-26 深圳市商汤科技有限公司 Switch control method and device, computer equipment and storage medium
CN112784793A (en) * 2021-01-29 2021-05-11 中国工商银行股份有限公司 Face recognition standard photo updating method and device, computer equipment and storage medium
CN112989993A (en) * 2021-03-10 2021-06-18 深圳市兴海物联科技有限公司 Recording method, recording system, and computer-readable storage medium
CN114187696B (en) * 2021-12-09 2024-02-02 软通智慧信息技术有限公司 Personnel access detection method, device, equipment and storage medium

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20140254892A1 (en) * 2013-03-06 2014-09-11 Suprema Inc. Face recognition apparatus, system and method for managing users based on user grouping
CN205140028U (en) * 2015-07-31 2016-04-06 北京旷视科技有限公司 Gate inhibition system
CN205845137U (en) * 2016-07-12 2016-12-28 北京海鑫科金高科技股份有限公司 Intelligent gate
CN206162736U (en) * 2016-09-30 2017-05-10 深圳市商汤科技有限公司 Access control system based on face recognition
CN106920310A (en) * 2017-03-06 2017-07-04 珠海习悦信息技术有限公司 Access control method, apparatus and system

Family Cites Families (11)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US7421097B2 (en) * 2003-05-27 2008-09-02 Honeywell International Inc. Face identification verification using 3 dimensional modeling
CN101445095B (en) * 2008-12-19 2011-11-16 杨尧任 Anti-theft alarming method of an on-line automobile and alarm system thereof
CN101477621B (en) * 2009-02-20 2012-07-04 华为终端有限公司 Image updating process and apparatus based on human face recognition
CN201611507U (en) * 2010-02-03 2010-10-20 赵毅 Full-intelligent security device of bank ATM
TWI488128B (en) * 2012-03-07 2015-06-11 Altek Corp Face recognition system and face recognition method thereof
CN202817691U (en) * 2012-10-12 2013-03-20 武安市供电公司 High-frequency electricity larceny prevention alarm protector
CN104091176B (en) * 2014-07-18 2015-10-14 吴建忠 Portrait comparison application technology in video
CN105374091A (en) * 2015-10-21 2016-03-02 珠海市新域智能科技有限公司 Intelligent security check self-service customs clearance method, system and equipment
CN105844245A (en) * 2016-03-25 2016-08-10 广州市浩云安防科技股份有限公司 Fake face detecting method and system for realizing same
CN106951846A (en) * 2017-03-09 2017-07-14 广东中安金狮科创有限公司 A kind of face 3D models typing and recognition methods and device
CN107067510A (en) * 2017-03-27 2017-08-18 杭州赛狐科技有限公司 A kind of unattended Supermarket shopping system

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20140254892A1 (en) * 2013-03-06 2014-09-11 Suprema Inc. Face recognition apparatus, system and method for managing users based on user grouping
CN205140028U (en) * 2015-07-31 2016-04-06 北京旷视科技有限公司 Gate inhibition system
CN205845137U (en) * 2016-07-12 2016-12-28 北京海鑫科金高科技股份有限公司 Intelligent gate
CN206162736U (en) * 2016-09-30 2017-05-10 深圳市商汤科技有限公司 Access control system based on face recognition
CN106920310A (en) * 2017-03-06 2017-07-04 珠海习悦信息技术有限公司 Access control method, apparatus and system

Cited By (30)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN110516623B (en) * 2019-08-29 2022-03-22 中新智擎科技有限公司 Face recognition method and device and electronic equipment
CN110516623A (en) * 2019-08-29 2019-11-29 中新智擎科技有限公司 A kind of face identification method, device and electronic equipment
CN110675538A (en) * 2019-09-16 2020-01-10 杭州安芯科技有限公司 Intelligent door lock system
CN110930155A (en) * 2019-10-17 2020-03-27 平安科技(深圳)有限公司 Risk management and control method and device, computer device and storage medium
CN110930155B (en) * 2019-10-17 2023-09-08 平安科技(深圳)有限公司 Risk management and control method, risk management and control device, computer device and storage medium
CN113286199A (en) * 2020-02-20 2021-08-20 佛山市云米电器科技有限公司 Program recommendation method, television and storage medium
CN111368115A (en) * 2020-03-03 2020-07-03 杭州海康威视系统技术有限公司 Data clustering method and device, clustering server and storage medium
CN111368115B (en) * 2020-03-03 2023-09-29 杭州海康威视系统技术有限公司 Data clustering method, device, clustering server and storage medium
CN111724029A (en) * 2020-05-08 2020-09-29 上海市公安局出入境管理局 Workshop staff violation confirmation method and device and computer equipment
CN111814570A (en) * 2020-06-12 2020-10-23 深圳禾思众成科技有限公司 Face recognition method, system and storage medium based on dynamic threshold
CN111814570B (en) * 2020-06-12 2024-04-30 深圳禾思众成科技有限公司 Face recognition method, system and storage medium based on dynamic threshold
CN111798606A (en) * 2020-07-02 2020-10-20 泰森日盛集团有限公司 Finished product warehouse intelligent warehouse system with intelligent entrance guard identification function
CN111798596A (en) * 2020-07-13 2020-10-20 江苏先驰物联网技术有限公司 Security management lock and system based on identity card unlocking and using method thereof
CN112052731A (en) * 2020-07-30 2020-12-08 广州市标准化研究院 Intelligent portrait recognition card punching attendance system and method
CN112052731B (en) * 2020-07-30 2024-03-29 广州市标准化研究院 Intelligent portrait identification card punching attendance system and method
CN112182537A (en) * 2020-09-28 2021-01-05 深圳前海微众银行股份有限公司 Monitoring method, device, server, system and storage medium
CN112597886A (en) * 2020-12-22 2021-04-02 成都商汤科技有限公司 Ride fare evasion detection method and device, electronic equipment and storage medium
CN113293718A (en) * 2021-04-19 2021-08-24 广东携龙科技有限公司 Scenic spot gate terminal and identity information comparison system
CN113609905A (en) * 2021-06-30 2021-11-05 国网福建省电力有限公司信息通信分公司 Regional personnel detection method based on identity re-identification and storage medium
CN113609905B (en) * 2021-06-30 2024-01-05 国网福建省电力有限公司信息通信分公司 Regional personnel detection method based on identity re-identification and storage medium
WO2023035553A1 (en) * 2021-09-09 2023-03-16 南京奥拓电子科技有限公司 Monitoring method and apparatus for service window and self-service device
CN114067279A (en) * 2022-01-17 2022-02-18 江西字母表科技有限公司 Personnel object supervision method, device and system in restricted space
CN115311703A (en) * 2022-04-21 2022-11-08 亿慧云智能科技(深圳)股份有限公司 Access control system control method and device based on face recognition and terminal equipment
CN114785609B (en) * 2022-05-09 2024-02-06 内蒙古铖品科技有限公司 System and method for detecting data transmission safety in block chain scene
CN114785609A (en) * 2022-05-09 2022-07-22 内蒙古铖品科技有限公司 Data transmission safety detection system and method under block chain scene
CN115471944A (en) * 2022-08-08 2022-12-13 国网河北省电力有限公司建设公司 Warehouse access lock control method, device and system and readable storage medium
CN115439971A (en) * 2022-08-31 2022-12-06 中国工商银行股份有限公司 Self-service bank access control monitoring management method and system
CN115271766B (en) * 2022-09-20 2023-01-10 湖南三湘银行股份有限公司 Mortgage surface sign on-line processing method and system based on remote video
CN115271766A (en) * 2022-09-20 2022-11-01 湖南三湘银行股份有限公司 Mortgage surface sign on-line processing method and system based on remote video
CN117197916A (en) * 2023-11-02 2023-12-08 南方电网调峰调频发电有限公司信息通信分公司 Attendance registration method and system for door access identification

Also Published As

Publication number Publication date
CN108399665A (en) 2018-08-14

Similar Documents

Publication Publication Date Title
WO2019134246A1 (en) Facial recognition-based security monitoring method, device, and storage medium
KR102350507B1 (en) Access control method, access control device, system and storage medium
US10509951B1 (en) Access control through multi-factor image authentication
JP6911154B2 (en) Access control methods and devices, systems, electronic devices, programs and media
WO2019134245A1 (en) Number arrangement method, server, and storage medium based on human face recognition
WO2020056980A1 (en) Service guiding method and apparatus based on human facial recognition, and storage medium
CN107680294B (en) House property information inquiry method, system, terminal equipment and storage medium
US10346675B1 (en) Access control through multi-factor image authentication
WO2020135096A1 (en) Method and device for determining operation based on facial expression groups, and electronic device
WO2017181769A1 (en) Facial recognition method, apparatus and system, device, and storage medium
WO2020168468A1 (en) Help-seeking method and device based on expression recognition, electronic apparatus and storage medium
WO2019033572A1 (en) Method for detecting whether face is blocked, device and storage medium
US20100329568A1 (en) Networked Face Recognition System
EP2336949B1 (en) Apparatus and method for registering plurality of facial images for face recognition
JP2007257221A (en) Face recognition system
CN108986245A (en) Work attendance method and terminal based on recognition of face
KR20160147515A (en) Method for authenticating user and electronic device supporting the same
US20120320181A1 (en) Apparatus and method for security using authentication of face
US12039820B2 (en) Multiple-factor recognition and validation for security systems
EP4057237A1 (en) Reference image enrollment and evolution for security systems
US11521208B2 (en) System and method for authenticating transactions from a mobile device
KR101515214B1 (en) Identification method using face recognition and entrance control system and method thereof using the identification method
KR20190122206A (en) Identification methods and devices, electronic devices, computer programs and storage media
JP2014191416A (en) Service user confirmation apparatus
CN110929244A (en) Digital identity identification method, device, equipment and storage medium

Legal Events

Date Code Title Description
121 Ep: the epo has been informed by wipo that ep was designated in this application

Ref document number: 18898709

Country of ref document: EP

Kind code of ref document: A1

NENP Non-entry into the national phase

Ref country code: DE

32PN Ep: public notification in the ep bulletin as address of the adressee cannot be established

Free format text: NOTING OF LOSS OF RIGHTS PURSUANT TO RULE 112(1) EPC (EPO FORM 1205 DATED 09/10/2020)

122 Ep: pct application non-entry in european phase

Ref document number: 18898709

Country of ref document: EP

Kind code of ref document: A1