Anti-tailgating method, device, equipment and readable medium

By collecting pedestrian images at the gate, face detection and feature point distance judgment, judge whether to follow up, and issue a warning to solve the problem of hidden safety hazards caused by the existing technology, which improves the safety of the access control or gate. Essence

CN112149478BActive Publication Date: 2025-01-24GUANGZHOU HUIRUI SITONG INFORMATION SCI & TECH CO LTD
View PDF 4 Cites 0 Cited by

Patent Information

Application Number
CN201910578714.3
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2019-06-28
Publication Date
2025-01-24
Estimated Expiration
2039-06-28

AI Technical Summary

Technical Problem

After using facial recognition to verify the identity of a passer, the prior art is prone to follow-up passes, resulting in security risks.

Method used

By obtaining pedestrian images collected by the image collection device at the preset position of the gate, the face test is performed. If the number of face images that meet the preset conditions is greater than 1, the distance between the distance between the characteristic points is determined whether to follow and control the gate and control the gate The machine was warned.

Benefits of technology

It can effectively prevent malicious following, improve the security of access control or gate, and provide security guarantee for passers-by during identity verification.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN112149478B_ABST
    Figure CN112149478B_ABST
Patent Text Reader

Abstract

The present application relates to a method, device, equipment and readable medium for preventing tailgating. The present application relates to the field of access control security technology. By acquiring a pedestrian image captured by an image acquisition device arranged at a preset position of a gate, face detection is performed on the pedestrian image to obtain a face image. If the number of face images that meet preset conditions is greater than 1, whether tailgating occurs is determined based on the distance between feature points in the face image. If tailgating is determined to occur, the gate is controlled to issue a tailgating warning, so as to prevent someone from maliciously tailgating through an access control or gate. In addition, by detecting and warning the tailgator, security can be provided for the person requesting passage when performing identity authentication.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present application relates to the field of access control security technology, and in particular to an anti-tailgating method, device, equipment and readable medium. Background Art

[0002] With the development of the big data era, identity information verification has become more convenient and diverse. Among them, the development of face recognition applications is a hot research field. At present, the existing technology uses face recognition technology to verify the identity of the person requesting a pass at the access control terminal or gate, replacing the traditional card swiping or manual verification method. However, when the identity of the person requesting a pass is successfully authenticated, the gate is released, and it is easy for someone to follow through, causing a certain degree of security risks. Summary of the invention

[0003] In order to solve the above technical problems or at least partially solve the above technical problems, the present application provides an anti-tailgating method, device, equipment and readable medium.

[0004] In a first aspect, the present application provides a method for preventing tailgating, comprising:

[0005] Acquire a pedestrian image captured by an image acquisition device disposed at a preset position of the gate;

[0006] Performing face detection on the pedestrian image to obtain a face image;

[0007] If the number of face images that meet the preset condition is greater than 1, determining whether tailing occurs based on the distance between feature points in the face images;

[0008] If tailgating is determined to have occurred, the gate will be controlled to issue a tailgating warning.

[0009] Optionally, the anti-tailgating method further includes:

[0010] A feature point is extracted from each face image, and the feature point is marked on the pedestrian image, wherein the face image where the feature point closest to the center of the pedestrian image is located is the face image of a normal pedestrian.

[0011] Optionally, the anti-tailgating method further includes:

[0012] The facial images other than the facial images of normal pedestrians on the pedestrian image are determined to be facial images of suspected tailgating persons.

[0013] Optionally, the step of determining whether tailing occurs based on the distance between feature points in the face image includes:

[0014] Calculate the feature distance between the feature points of the facial image of a normal passer-by and the feature points of the facial image of the trailing suspect;

[0015] If the characteristic distance is within a preset trailing distance range, it is determined that trailing occurs.

[0016] Optionally, the anti-tailgating method further includes:

[0017] Calculate the face ratio of the detected face image to the pedestrian image;

[0018] Determine whether the face ratio is greater than a preset ratio threshold;

[0019] If the face ratio is greater than a preset ratio threshold, it is determined that the face image meets a preset ratio condition.

[0020] Optionally, the anti-tailgating method further includes:

[0021] Acquire multiple images to be selected that are captured by image capture devices at different preset positions;

[0022] The minimum value of the face pixels in multiple candidate images is determined as the segmentation threshold.

[0023] Optionally, the preset position of the gate is determined according to the pixel and focal length parameters of the camera.

[0024] In a second aspect, the present application provides an anti-tailgating device, comprising:

[0025] An acquisition module, the acquisition module is used to acquire a pedestrian image acquired by an image acquisition device disposed at a preset position of the gate;

[0026] A detection module, the detection module is used to perform face detection on the pedestrian image to obtain a face image;

[0027] a judgment module, for determining whether tailing occurs based on the distance between feature points in the face images if the number of face images that meet the preset condition is greater than 1;

[0028] The control module is used to control the gate to issue a tailgating warning if tailgating is determined to have occurred.

[0029] In a third aspect, the present application provides an anti-tailgating device, comprising a memory and a processor, wherein the memory stores a computer program that can be executed on the processor, and when the processor executes the computer program, the steps of any one of the methods described in the first aspect are implemented.

[0030] In a fourth aspect, the present application provides a computer-readable medium having a non-volatile program code executable by a processor, wherein the program code enables the processor to execute any method described in the first aspect.

[0031] The above technical solution provided by the embodiment of the present application has the following advantages over the prior art: the present application obtains a pedestrian image captured by an image capture device arranged at a preset position of the gate; performs face detection on the pedestrian image to obtain a face image; if the number of face images that meet the preset conditions is greater than 1, determines whether tailing occurs based on the distance between feature points in the face image; if tailing is determined to occur, controls the gate to issue a tailing warning, thereby preventing someone from maliciously tailing through the access control or gate, and through detection and warning of the tailer, provides security for the person requesting passage when performing identity authentication. BRIEF DESCRIPTION OF THE DRAWINGS

[0032] The accompanying drawings, which are incorporated in and constitute a part of this specification, illustrate embodiments consistent with the invention and, together with the description, serve to explain the principles of the invention.

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

[0034] Figure 1 A flow chart of an anti-tailgating method provided in an embodiment of the present application;

[0035] Figure 2 Provided for the embodiments of this application Figure 1 Step S103 method flow chart;

[0036] Figure 3 A flow chart of another anti-tailgating method provided in an embodiment of the present application;

[0037] Figure 4 A flow chart of another anti-tailgating method provided in an embodiment of the present application;

[0038] Figure 5 A schematic diagram of an anti-tailgating device module provided in an embodiment of the present application.

[0039] icon:

[0040] 01-acquisition module; 02-detection module; 03-judgment module; 04-control module. DETAILED DESCRIPTION

[0041] In order to make the purpose, technical solution and advantages of the embodiments of the present application clearer, the technical solution in the embodiments of the present application will be clearly and completely described below in conjunction with the drawings in the embodiments of the present application. Obviously, the described embodiments are part of the embodiments of the present application, not all of the embodiments. Based on the embodiments in the present application, all other embodiments obtained by ordinary technicians in this field without making creative work are within the scope of protection of this application.

[0042] First, the present invention provides an embodiment of an anti-tailgating method, such as Figure 1 As shown, the anti-tailgating method includes:

[0043] Step S101, obtaining a pedestrian image captured by an image acquisition device disposed at a preset position at the gate;

[0044] In an embodiment of the present invention, a plurality of image acquisition devices may be provided at preset positions at the gate, wherein the image acquisition devices include: a camera, wherein images captured by cameras at different preset positions can view the situation around the gate from multiple angles, and a pedestrian image with the best quality is comprehensively selected, which can reflect the scene around the gate clearly enough, wherein the preset position of the gate is determined according to physical parameters such as the pixel and focal length of the camera, for example: setting the focal length to 6mm, and the distance between the camera and the shooting point to 1.2 meters, then a pedestrian image with a resolution of 720x1280 and an image pixel value of 200 can be obtained, and the specific setting method can be determined according to the actual situation, with the aim of ensuring the clarity of the quality of the acquired image.

[0045] Step S102, performing face detection on the pedestrian image to obtain a face image;

[0046] In the embodiment of the present invention, the pedestrian image is segmented by an image segmentation algorithm based on the pedestrian image to obtain the face image. The specific image segmentation algorithm selected may be determined according to the actual situation.

[0047] Step S103, if the number of face images that meet the preset condition is greater than 1, determining whether tailing occurs based on the distance between feature points in the face images;

[0048] In an embodiment of the present invention, after performing face segmentation on a pedestrian image, if the number of faces in the pedestrian image is greater than 1, it is possible that a tailgater follows a normal pedestrian. Therefore, it is necessary to determine whether the distance between faces satisfies a safe distance. Specifically, feature points on the face image may be extracted, and the distance between the feature points may be used to determine the distance between the faces, and then the relationship between the latter and the normal pedestrian may be determined. The feature points may be key points on the face image, such as nose, eyes, lips, etc. In another embodiment of the present invention, the anti-tailgate method further includes:

[0049] A feature point is extracted from each face image, and the feature point is marked on the pedestrian image, wherein the face image with the feature point closest to the center of the pedestrian image is the face image of a normal pedestrian;

[0050] In the embodiment of the present invention, taking the nose as an example, the nose on each face image is extracted, and the nose closest to the center of the pedestrian image is selected as the nose of the face image of the normal passerby; at the same time, the face images other than the face images of the normal passerby on the pedestrian image can also be determined as the face images of the trailing suspect. Based on the above method, in another embodiment of the present invention, Figure 2 As shown, step S103, determining whether tailing occurs based on the distance between feature points in the face image, includes:

[0051] Step S201, calculating the characteristic distance between the characteristic points of the facial image of a normal passer-by and the characteristic points of the facial image of the trailing suspect;

[0052] Step S202: If the characteristic distance is within a preset tailing distance range, it is determined that tailing occurs.

[0053] In the embodiment of the present invention, the nose can be taken as an example. Assuming that the preset safety distance is 5m, it is determined which face's nose is closer to the center of the pedestrian image, and the person is determined to be a normal passerby. The person whose nose is farther from the horizontal center is a follower. When the distance between the two noses is greater than 5m, it is considered that the latter is not a follower. If it is less than the threshold, it is considered that the latter is a follower. In the embodiment of the present invention, the feature point closer to the image center is determined as the feature point of the normal passerby image. In actual applications, in order to ensure the accuracy of the above implementation, a prompt box can be set at the gate. When a face approaches, , step S101 is executed only when the outline of the face is aligned with the prompt box, and the pedestrian image collected by the image acquisition device set at the preset position of the gate is obtained. In order to avoid the normal passerby's body tilting, the feature points of the normal passerby's image are far away from the center of the pedestrian image, and the feature points of the image of the person standing behind the normal passerby are mistakenly judged as the normal passerby's feature points, thereby identifying the latter as a normal passerby. The specific implementation method can also be that the normal passerby stands in the preset line area before the anti-tailgating passage procedure is executed. The specific selection method can be determined according to the actual situation, and the present invention does not make specific limitations on this.

[0054] Step S104: If tailgating is determined to have occurred, the gate is controlled to issue a tailgating warning.

[0055] In an embodiment of the present invention, it is determined whether the distance between faces meets a safe distance. Specifically, feature points on a face image can be extracted, and the distance between the feature points can be used to determine the distance between faces, and then the relationship between the latter and a normal passer-by is determined. When it is determined that the distance between the latter and the normal passer-by is less than a preset distance, the latter is determined to be a tailgater, the gate is kept closed, the face recognition verification program is not started, and a warning is issued to prompt a normal passer-by who requests identity verification. The present application obtains a pedestrian image captured by an image acquisition device set at a preset position of the gate; performs face detection on the pedestrian image to obtain a face image; if the number of face images that meet preset conditions is greater than 1, determines whether tailing occurs based on the distance between feature points in the face image; if tailing is determined to occur, controls the gate to issue a tailing warning, thereby preventing someone from maliciously tailing through a door or gate, and through detection and warning of tailgaters, provides security for the passer-by requesting identity verification.

[0056] In another embodiment of the present invention, Figure 3 As shown, the anti-tailgating method also includes:

[0057] Step S301, calculating the face ratio of the detected face image to the pedestrian image;

[0058] In an embodiment of the present invention, a threshold value of the face ratio of the face image to the pedestrian image is set. Only when the face image ratio exceeds the threshold value, the face image is included in the consideration range of determining whether it is tailing. The purpose is to eliminate the interference of distant pedestrians on the detection results. In addition, in order to screen out all the faces in the pedestrian image with the greatest accuracy before performing the face ratio detection step of the face image to the pedestrian image, in another embodiment of the present invention, Figure 4 As shown, the anti-tailgating method also includes:

[0059] Step S401, acquiring a plurality of images to be selected captured by image capture devices at different preset positions;

[0060] Step S402, determining the minimum value of face pixels in the plurality of images to be selected as the segmentation threshold;

[0061] In an embodiment of the present invention, a plurality of image acquisition devices may be provided at preset positions at the gate, wherein the image acquisition devices include: cameras. Images captured by cameras at different preset positions can view the situation around the gate from multiple angles, and a pedestrian image with the best quality is comprehensively selected. However, there may be differences in image pixels due to factors such as different cameras, angles, and focal lengths. Therefore, the minimum value of the face pixels in multiple images to be selected is determined as the segmentation threshold, so that the faces in the pedestrian images finally screened out from the images to be screened can be screened out as much as possible, and then the face ratio of the face image to the pedestrian image is detected.

[0062] Step S302, determining whether the face ratio is greater than a preset ratio threshold;

[0063] Step S303, if the face ratio is greater than a preset ratio threshold, determining that the face image meets a preset ratio condition;

[0064] In the embodiment of the present invention, when the ratio of face images to pedestrian images exceeds a threshold, the face images are included in the consideration of whether to be followed, in order to eliminate the interference of distant pedestrians on the detection results.

[0065] The present application also provides an anti-tailgating device, such as Figure 5 As shown, the anti-tailgating device comprises:

[0066] An acquisition module 01 is used to acquire a pedestrian image acquired by an image acquisition device disposed at a preset position of a gate;

[0067] The detection module 02 is used to perform face detection on the pedestrian image to obtain a face image;

[0068] Determination module 03, if the number of face images that meet the preset condition is greater than 1, determines whether tailing occurs based on the distance between feature points in the face images;

[0069] The control module 04 controls the gate to issue a tailgating warning if tailgating is determined to have occurred.

[0070] Those skilled in the art who are familiar with the embodiments of the present invention may clearly understand that, for the convenience and brevity of description, the specific working processes of the above-described systems, devices and units may refer to the corresponding processes in the aforementioned method embodiments and will not be repeated here.

[0071] The present application provides an anti-tailgating device, including a memory and a processor, wherein the memory stores a computer program that can be run on the processor, and when the processor executes the computer program, the steps of the method described in any one of the above embodiments are implemented.

[0072] The present application provides a computer-readable medium having a non-volatile program code executable by a processor, wherein the program code enables the processor to execute any of the methods described in the above embodiments.

[0073] The above technical solution provided by the embodiment of the present application has the following advantages over the prior art: the present application obtains a pedestrian image captured by an image capture device arranged at a preset position of the gate; performs face detection on the pedestrian image to obtain a face image; if the number of face images that meet the preset conditions is greater than 1, determines whether tailing occurs based on the distance between feature points in the face image; if tailing is determined to occur, controls the gate to issue a tailing warning, thereby preventing someone from maliciously tailing through the access control or gate, and through detection and warning of the tailer, provides security for the person requesting passage when performing identity authentication.

[0074] It should be noted that, in this article, relational terms such as "first" and "second" are only used to distinguish one entity or operation from another entity or operation, and do not necessarily require or imply any such actual relationship or order between these entities or operations. Moreover, the terms "include", "comprise" or any other variants thereof are intended to cover non-exclusive inclusion, so that a process, method, article or device including a series of elements includes not only those elements, but also other elements not explicitly listed, or also includes elements inherent to such process, method, article or device. In the absence of further restrictions, the elements defined by the sentence "comprise a ..." do not exclude the existence of other identical elements in the process, method, article or device including the elements.

[0075] The foregoing is merely a specific embodiment of the present invention, which enables those skilled in the art to understand or implement the present invention. Various modifications to these embodiments will be apparent to those skilled in the art, and the general principles defined herein may be implemented in other embodiments without departing from the spirit or scope of the present invention. Therefore, the present invention will not be limited to the embodiments shown herein, but rather to the widest scope consistent with the principles and novel features claimed herein.

Claims

1. A method for preventing tailgating, characterized in that: include: Acquire a pedestrian image captured by an image acquisition device disposed at a preset position of the gate; Performing face detection on the pedestrian image to obtain a face image; If the number of face images that meet the preset condition is greater than 1, determining whether tailing occurs based on the distance between feature points in the face images; If tailgating is determined to have occurred, the gate will be controlled to issue a tailgating warning; The method further includes: when the pedestrian reaches the preset line area, extracting a feature point on each face image, and marking the feature point on the pedestrian image, wherein the face image where the feature point closest to the center of the pedestrian image is located is the face image of a normal pedestrian; Determining that facial images other than facial images of normal pedestrians on the pedestrian image are facial images of suspected stalkers; The step of determining whether tailing occurs based on the distance between feature points in the face image comprises: Calculate the feature distance between the feature points of the facial image of a normal passer-by and the feature points of the facial image of the trailing suspect; If the characteristic distance is within a preset tailing distance range, it is determined that tailing occurs; The method further comprises: Calculate the face ratio of the detected face image to the pedestrian image; Determine whether the face ratio is greater than a preset ratio threshold; If the face ratio is greater than a preset ratio threshold, determining that the face image meets a preset ratio condition; If the face ratio is not greater than a preset ratio threshold, the step of determining whether tailing occurs based on the distance between feature points in the face image is not performed.

2. The anti-tailgating method according to claim 1, characterized in that: Also includes: Acquire multiple images to be selected that are captured by image capture devices at different preset positions; The minimum value of the face pixels in multiple candidate images is determined as the segmentation threshold.

3. The anti-tailgating method according to claim 1, characterized in that: The preset position of the gate is determined according to the pixel and focal length parameters of the camera.

4. An anti-tailgating device, characterized in that: include: An acquisition module, the acquisition module is used to acquire a pedestrian image acquired by an image acquisition device disposed at a preset position of the gate; A detection module, the detection module is used to perform face detection on the pedestrian image to obtain a face image; a judgment module, for determining whether tailing occurs based on the distance between feature points in the face images if the number of face images that meet the preset condition is greater than 1; The control module is used to control the gate to issue a tailgating warning if tailgating is determined to occur; The device also performs the following steps: Extracting a feature point from each face image, and marking the feature point on the pedestrian image, wherein the face image where the feature point closest to the center of the pedestrian image is located is the face image of a normal pedestrian; Determining that facial images other than facial images of normal pedestrians on the pedestrian image are facial images of suspected stalkers; The step of determining whether tailing occurs based on the distance between feature points in the face image comprises: Calculate the feature distance between the feature points of the facial image of a normal passer-by and the feature points of the facial image of the trailing suspect; If the characteristic distance is within a preset tailing distance range, it is determined that tailing occurs; The device also performs the following steps: Calculate the face ratio of the detected face image to the pedestrian image; Determine whether the face ratio is greater than a preset ratio threshold; If the face ratio is greater than a preset ratio threshold, determining that the face image meets a preset ratio condition; If the face ratio is not greater than a preset ratio threshold, the step of determining whether tailing occurs based on the distance between feature points in the face image is not performed.

5. An anti-tailgating device, comprising a memory and a processor, wherein the memory stores a computer program that can be run on the processor, characterized in that: When the processor executes the computer program, the steps of the method according to any one of claims 1 to 3 are implemented.

6. A computer-readable medium having a non-volatile program code executable by a processor, characterized in that: The program code enables the processor to execute the method according to any one of claims 1 to 3.

Citation Information

Patent Citations

  • Facial image acquiring method and device

    CN103377367A

  • Method of identifying trailing and related product

    CN109784274A

  • Face recognition-based anti-following method and device, equipment and device, and storage medium

    CN109858329A

  • Method and apparatus for adjusting recognition range of photographing apparatus

    WO2017215351A1