Nothing Special   »   [go: up one dir, main page]

CN112037405A - Gate control method, device, equipment and medium - Google Patents

Gate control method, device, equipment and medium Download PDF

Info

Publication number
CN112037405A
CN112037405A CN202010864090.4A CN202010864090A CN112037405A CN 112037405 A CN112037405 A CN 112037405A CN 202010864090 A CN202010864090 A CN 202010864090A CN 112037405 A CN112037405 A CN 112037405A
Authority
CN
China
Prior art keywords
gate
time
face image
user
recognized
Prior art date
Legal status (The legal status 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 status listed.)
Pending
Application number
CN202010864090.4A
Other languages
Chinese (zh)
Inventor
王姣
章伦啟
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Zhejiang Dahua Technology Co Ltd
Original Assignee
Zhejiang Dahua Technology Co Ltd
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 Zhejiang Dahua Technology Co Ltd filed Critical Zhejiang Dahua Technology Co Ltd
Priority to CN202010864090.4A priority Critical patent/CN112037405A/en
Publication of CN112037405A publication Critical patent/CN112037405A/en
Pending legal-status Critical Current

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/30Individual registration on entry or exit not involving the use of a pass
    • G07C9/32Individual registration on entry or exit not involving the use of a pass in combination with an identity check
    • G07C9/37Individual registration on entry or exit not involving the use of a pass in combination with an identity check using biometric data, e.g. fingerprints, iris scans or voice recognition

Landscapes

  • Engineering & Computer Science (AREA)
  • Human Computer Interaction (AREA)
  • Physics & Mathematics (AREA)
  • General Physics & Mathematics (AREA)
  • Devices For Checking Fares Or Tickets At Control Points (AREA)

Abstract

The invention discloses a gate control method, a device, equipment and a medium, wherein a corresponding relation between a face image and a walking speed is stored in a database of the gate control method, and when the similarity between an acquired to-be-recognized face image and the face image in the database is determined to meet a set condition, the moment for controlling the gate is determined according to a target walking speed corresponding to a target face image meeting the set condition, a first distance between a first user of the to-be-recognized face image and the gate and a first moment for acquiring the to-be-recognized face image, so that the gate of the gate can be controlled at the corresponding moment, and the accuracy and the safety of gate control are improved.

Description

Gate control method, device, equipment and medium
Technical Field
The invention relates to the field of face recognition and gate control, in particular to a gate control method, device, equipment and medium.
Background
Passageway access & exit management equipment, also known as entrance guard's equipment, is using more and more extensively in people's daily life. The gate is a common gate inhibition device, and the most core function of the gate is to realize the verification of the identity of a person and also comprises the functions of checking attendance, charging and the like. In order to conveniently manage pedestrian flow and regulate pedestrian entrance and exit, the gate is more and more commonly used, and the gate is widely applied to subways, high-speed rails, office buildings, communities, factories, tourist attractions and the like at present.
Along with the continuous perfect of face identification technique, through the face identification floodgate machine of image acquisition equipment discernment personnel's identity, because its anti-fake nature is high, it is convenient to verify, through the fast advantage of speed, replaced old-fashioned gate machine of punching the card, fingerprint floodgate machine etc. gradually.
In the prior art, a face recognition gate is formed by combining a gate channel and an image acquisition device, wherein the gate channel comprises a gate, a face image of a pedestrian is acquired through the image acquisition device, the face image is subjected to similarity matching with a face image in a database, and the gate is opened when the person is determined to be a white list person in the database.
According to the existing gate machine door-passing behavior identification method, when the distance between a pedestrian and the entrance end of a gate machine channel is smaller than a preset value, image acquisition equipment is started to capture the pedestrian, a rectangular coordinate system is established by taking the middle point of the ground of the entrance end of the gate machine channel as the original point, the horizontal direction as the X axis and the gate machine channel direction as the Y axis, a moving track curve of the pedestrian is determined through linear regression according to the moving coordinate of the pedestrian, if the moving track curve and the X axis have an intersection point, if the X value of the intersection point is not larger than one-half of the width of the gate machine channel, it is determined that the pedestrian has an intention to go out, the pedestrian is subjected to face identification, and if the intersection point is verified.
According to the existing gate control method, a limited passing area is arranged, videos are collected according to image collection equipment, whether pedestrians exist in the limited passing area or not is detected according to the videos by adopting a pedestrian detection algorithm, and a gate is opened when the pedestrians exist in the limited passing area and the authority verification of the pedestrians passes.
In the gate control method in the prior art, since the gate is controlled to be opened after the passerby passes the verification, the gate may be opened before the passerby passing the verification does not reach the gate, and there is a risk that a person who is not in the white list passes the gate. In addition, because the opening duration of the gate is a fixed duration, if the gate is opened in advance, the pedestrian who passes the verification will be closed before reaching the gate, and the gate can be opened only for the second time, or after the pedestrian passes the gate, the gate will not be closed, so that the people who are not in the white list will pass the gate.
Disclosure of Invention
The embodiment of the invention provides a gate control method, a gate control device, gate control equipment and a gate control medium, which are used for solving the problem that the gate control method in the prior art is low in safety and accuracy.
The embodiment of the invention provides a gate control method, which comprises the following steps:
acquiring a face image to be recognized, and determining the similarity between the face image to be recognized and a face image prestored in a database of a gate;
if a target face image with similarity meeting set conditions exists, determining a target walking speed corresponding to the target face image according to the corresponding relation between the face image and the walking speed stored in the database;
determining the time for controlling the gate according to the first distance between the first user of the face image to be recognized and the gate, the first time for acquiring the face image to be recognized and the target walking speed, and controlling the gate of the gate at the corresponding time.
Further, determining the time for controlling the gate according to a first distance between a first user of the facial image to be recognized and the gate, a first time for acquiring the facial image to be recognized, and the target walking speed includes:
determining a first time length for a first user to move to the gate according to a first distance between the first user of the facial image to be recognized and the gate and the target walking speed;
and determining the opening time for controlling the opening of the gate according to the first time length and the first time for collecting the face image to be recognized.
Further, determining the time for controlling the gate according to a first distance between a first user of the facial image to be recognized and the gate, a first time for acquiring the facial image to be recognized, and the target walking speed includes:
determining a second distance between a first user of the facial image to be recognized and the outlet end of the gate channel according to a first distance between the first user and the gate of the facial image to be recognized and the length of the gate channel of the gate, which is stored in advance;
determining a second time length for the first user to move to the outlet end of the gate passageway according to the second distance and the target walking speed;
and determining the closing time for controlling the gate to be closed according to the second time length and the first time for collecting the face image to be recognized.
Further, the method further comprises:
acquiring a second moment when the first user moves to the outlet end of the gate channel, and determining a difference value between the second moment and the first moment;
determining an average speed of the first user based on a sum of a first distance of the first user from the gate and a length of the gate channel and the difference;
and updating the target walking speed corresponding to the target face image stored in the database according to the average speed.
Further, the method further comprises:
before controlling the gate to be opened, detecting whether other users exist in the area range of the outlet end of the gate channel or not;
and if so, controlling the gate to be kept closed, and outputting prompt information for prompting the other users to leave the area range of the outlet end.
Further, the method further comprises:
detecting whether the other users disappear in the area range of the outlet end of the gate channel within a first set time length;
if not, an alarm signal is sent out;
and if so, controlling the gate to be opened at the inlet end of the gate channel.
Further, the method further comprises:
determining a third time length for the first user to move to the outlet end of the gate channel according to the length of the gate channel and the target walking speed which are saved in advance;
and determining a fourth time according to the third time of opening the gate and the third duration, and updating the closing time of the gate by adopting the fourth time.
Further, if it is detected within a first set time period that the other users do not disappear within the area range of the outlet end of the gate passageway, before sending an alarm signal, the method further includes:
judging whether the opening time of the gate is within a pre-stored time range or not;
if not, executing the subsequent step of sending out the alarm signal.
Further, if the opening time of the gate is within the pre-stored time range, the method further comprises:
and outputting prompt information prompting the first user to go to other gates, controlling the gate to be opened at the outlet end of the gate channel when the first user disappears in a set area range at the inlet end of the gate channel, and controlling the gate to be closed after the other users are determined to pass through the gate channel.
Correspondingly, an embodiment of the present invention provides a gate control device, including:
the system comprises a determining module, a judging module and a judging module, wherein the determining module is used for acquiring a face image to be recognized and determining the similarity between the face image to be recognized and a face image prestored in a database of a gate; if a target face image with similarity meeting set conditions exists, determining a target walking speed corresponding to the target face image according to the corresponding relation between the face image and the walking speed stored in the database;
and the control module is used for determining the moment for controlling the gate machine according to the first distance between the first user of the face image to be recognized and the gate machine, the first moment for acquiring the face image to be recognized and the target walking speed, and controlling the gate of the gate machine at the corresponding moment.
Further, the control module is specifically configured to determine, according to a first distance between a first user of the facial image to be recognized and the gate and the target walking speed, a first duration for the first user to move to the gate; and determining the opening time for controlling the opening of the gate according to the first time length and the first time for collecting the face image to be recognized.
Further, the control module is specifically configured to determine, according to a first distance between a first user of the facial image to be recognized and the gate and a length of a gate channel of the gate, a second distance between the first user and an outlet end of the gate channel; determining a second time length for the first user to move to the outlet end of the gate passageway according to the second distance and the target walking speed; and determining the closing time for controlling the gate to be closed according to the second time length and the first time for collecting the face image to be recognized.
The device further comprises:
the updating module is used for acquiring a second moment when the first user moves to the outlet end of the gate channel and determining a difference value between the second moment and the first moment; determining an average speed of the first user based on a sum of a first distance of the first user from the gate and a length of the gate channel and the difference; and updating the target walking speed corresponding to the target face image stored in the database according to the average speed.
The device further comprises:
the detection module is used for detecting whether other users exist in the area range of the outlet end of the gate channel before the gate is controlled to be opened; and if so, triggering the control module to execute the steps of controlling the gate to be kept closed and outputting prompt information for prompting the other users to leave the area range of the outlet end.
The detection module is further used for detecting whether the other users disappear in the area range of the outlet end of the gate channel within a first set time length; if yes, triggering the control module to execute a step of controlling the gate to be opened at the inlet end of the gate channel; otherwise, triggering the control module to execute the step of sending out the alarm signal.
The updating module is further configured to determine a third time duration for the first user to move to the outlet end of the gate channel according to the length of the gate channel and the target walking speed, which are saved in advance; and determining a fourth time according to the third time of opening the gate and the third duration, and updating the closing time of the gate by adopting the fourth time.
The control module is further used for judging whether the opening time of the gate is within a pre-stored time range or not before the alarm signal is sent out if the other users do not disappear within the area range of the outlet end of the gate channel within the first set time length; if not, executing the subsequent step of sending out the alarm signal.
The control module is further configured to output prompt information prompting the first user to go to other gates if the opening time of the gate is within a pre-stored time range, control the gate to be opened at the outlet end of the gate channel when the first user disappears within a set area range at the inlet end of the gate channel, and control the gate to be closed after the other users are determined to pass through the gate channel.
Accordingly, an embodiment of the present invention provides an electronic device, which includes a processor and a memory, where the memory is used to store program instructions, and the processor is used to implement the steps of any one of the above gate control methods when executing a computer program stored in the memory.
Accordingly, an embodiment of the present invention provides a computer-readable storage medium, which stores a computer program, and the computer program, when executed by a processor, implements the steps of any one of the above gate control methods.
According to the embodiment of the invention, the corresponding relation between the face image and the walking speed is stored in the database, and when the similarity between the acquired face image to be recognized and the face image in the database is determined to meet the set condition, the moment for controlling the gate is determined according to the target walking speed corresponding to the target face image meeting the set condition, the first distance between the first user of the face image to be recognized and the gate and the first moment for acquiring the face image to be recognized, so that the gate of the gate can be controlled at the corresponding moment, and the accuracy and the safety of gate control are improved.
Drawings
In order to more clearly illustrate the technical solutions in the embodiments of the present invention, the drawings needed to be used in the description of the embodiments will be briefly introduced below, and it is obvious that the drawings in the following description are only some embodiments of the present invention, and it is obvious for those skilled in the art to obtain other drawings based on these drawings without creative efforts.
Fig. 1 is a schematic process diagram of a gate control method according to an embodiment of the present invention;
fig. 2 is a schematic diagram of acquiring a face image to be recognized according to an embodiment of the present invention;
FIG. 3 is a schematic diagram of a gate with an area where other users are located at the exit end of the gate tunnel according to an embodiment of the present invention;
FIG. 4 is a schematic diagram of a gate that disappears from other users within a first predetermined time period within a range of an exit end of the gate tunnel according to an embodiment of the present invention;
FIG. 5 is a schematic process diagram of a gate control method according to an embodiment of the present invention;
fig. 6 is a schematic structural diagram of a gate control device according to an embodiment of the present invention;
fig. 7 is a schematic structural diagram of a gate control device according to an embodiment of the present invention;
fig. 8 is a schematic structural diagram of an electronic device according to an embodiment of the present invention.
Detailed Description
In order to make the objects, technical solutions and advantages of the present invention clearer, the present invention will be described in further detail with reference to the accompanying drawings, and it is apparent that the described embodiments are only a part of the embodiments of the present invention, not all of the embodiments. All other embodiments, which can be derived by a person skilled in the art from the embodiments given herein without making any creative effort, shall fall within the protection scope of the present invention.
In order to improve accuracy and safety of gate control, embodiments of the present invention provide a gate control method, apparatus, device, and medium.
Example 1:
fig. 1 is a schematic diagram of a gate control process provided in an embodiment of the present invention, where the process includes the following steps:
s101: the method comprises the steps of collecting a face image to be recognized, and determining the similarity between the face image to be recognized and a face image prestored in a database of a gate.
The gate control method provided by the embodiment of the invention is applied to electronic equipment, and the electronic equipment can be equipment such as a server and the like, and can also be equipment such as a gate controller and the like.
In order to control the gate, the acquired face image to be recognized needs to be acquired, the specific face image to be recognized can be acquired through the image acquisition equipment, the image acquisition equipment can be independently installed at the corresponding position of the gate from the electronic equipment, image acquisition is convenient, and after the face image to be recognized is acquired by the image acquisition equipment, the face image to be recognized is sent to the electronic equipment. Of course the image acquisition device may also be located in the electronic device.
The face image to be recognized is determined by the electronic equipment according to an image sent by image acquisition equipment of the gate, and the image sent by the image acquisition equipment is an image acquired by the image acquisition equipment within a preset acquisition range.
In order to realize the recognition of the face image to be recognized, in the embodiment of the present invention, at least one face image is pre-stored in a database of the electronic device, after the electronic device acquires the face image to be recognized, in order to determine whether a target face image matching the face image to be recognized exists in the database, the electronic device performs similarity matching between the face image to be recognized and the face image in the database, and determines the similarity between the face image to be recognized and each face image in the database.
S102: and if the target face image with the similarity meeting the set conditions exists, determining the target walking speed corresponding to the target face image according to the corresponding relation between the face image and the walking speed stored in the database.
After determining the similarity between the facial image to be recognized and each facial image in the database, the electronic device also presets a setting condition of the similarity in order to judge whether a target facial image matched with the facial image to be recognized exists in the database. And when the similarity between the facial image to be recognized and the facial image in the database meets the set conditions, determining the facial image as a target facial image matched with the facial image to be recognized.
Specifically, after the similarity between the facial image to be recognized and each facial image in the database is determined, the facial image with the similarity not less than the set threshold is determined. The face images with the similarity not less than the set threshold may have 0, only one, or multiple face images.
And when the similarity of the face images is not less than 0, the electronic equipment determines that no target face image with the similarity meeting the set conditions with the face image to be recognized exists in the database. And when only one face image with the similarity not less than the set threshold is available, determining the face image with the similarity not less than the set threshold in the database as a target face image with the similarity meeting the set conditions. When the similarity of a plurality of face images is not less than the set threshold, the face image with the highest similarity is determined as the target face image with the similarity meeting the set conditions.
After the target face image with the similarity meeting the set condition is determined, in order to realize accurate control of the gate, the corresponding relation between the face image and the walking speed is also stored in the database of the electronic equipment in advance. The face images and the walking speeds are in a one-to-one correspondence relationship, that is, each face image only corresponds to one walking speed, and the walking speed is the walking speed of the user of the face image determined in advance.
And determining the walking speed corresponding to the target face image according to the corresponding relation between the face image and the walking speed stored in the database and the target face image, and determining the walking speed as the target walking speed of the first user of the face image to be recognized.
S103: and determining the moment for controlling the gate according to the first distance between the first user of the facial image to be recognized and the gate, the first moment for acquiring the facial image to be recognized and the target walking speed, and controlling the gate at the corresponding moment.
In order to realize accurate control of the gate, the electronic device needs to determine the time for controlling the gate, namely, the time for controlling the opening and closing of the gate. In the embodiment of the invention, in order to open the gate on time when the first user of the facial image to be recognized moves to the gate, the electronic device needs to determine a first distance from the first user of the facial image to be recognized to the gate.
Specifically, when determining the first distance from the gate to the first user of the facial image to be recognized, the first distance from the gate to the first user may be determined by using an infrared ranging technique in the prior art, or the first distance from the gate to the first user may be determined by using a distance sensor in the prior art. Specifically, the embodiment of the present invention is not limited to this.
In order to determine the time for controlling the gate, in the embodiment of the present invention, the electronic device further needs to determine a first time for acquiring the face image to be recognized. The image acquisition equipment acquires images in real time, so that the face images to be recognized acquired by the image acquisition equipment carry corresponding timestamp information when the face images to be recognized are acquired, and the electronic equipment determines the first moment for acquiring the face images to be recognized according to the timestamp information corresponding to the face images to be recognized after receiving the face images to be recognized sent by the image acquisition equipment.
After the first distance between the first user of the face image to be recognized and the gate is determined, the electronic equipment determines the time length from the first moment to the moment of controlling the gate according to the first distance, the length of the gate channel and the target walking speed of the first user. And determining the time for controlling the gate according to the first time and the sum of the time lengths.
The time for controlling the gate comprises the opening time for controlling the gate to be opened and the closing time for controlling the gate to be closed. The electronic device controls the gate at a corresponding time. Specifically, the gate is controlled to be opened at the opening time, and the gate is controlled to be closed at the closing time.
According to the embodiment of the invention, the walking speed of the user with the face image is also stored in the database, and when the similarity between the acquired face image to be recognized and the face image in the database meets the set condition, the moment for controlling the gate is determined according to the target walking speed corresponding to the target face image meeting the set condition, the first distance between the first user with the face image to be recognized and the gate and the first moment for acquiring the face image to be recognized, so that the gate can be controlled at the corresponding moment, and the accuracy and the safety of gate control are improved.
Example 2:
in order to determine the opening time for controlling the gate to be opened, on the basis of the above embodiment, in an embodiment of the present invention, the determining the time for controlling the gate according to a first distance between a first user of the facial image to be recognized and the gate, a first time for acquiring the facial image to be recognized, and the target walking speed includes:
determining a first time length for a first user to move to the gate according to a first distance between the first user of the facial image to be recognized and the gate and the target walking speed;
and determining the opening time for controlling the opening of the gate according to the first time length and the first time for collecting the face image to be recognized.
In order to determine the opening time of the control gate, the electronic device can predict the time when the first user moves to the gate according to the target walking speed of the first user.
Specifically, according to a first distance between a first user of the facial image to be recognized and the gate and a target walking speed of the first user, the electronic device determines a first time length for the first user to move to the gate, that is, a ratio of the first distance to the target walking speed is determined as a first time length for the first user to move to an entrance end of a gate channel. The entrance end and the exit end of the gate channel are opposite to the first user, the entrance end of the gate channel refers to one end of the gate channel where the first user enters, and the exit end of the gate channel refers to one end of the gate channel where the first user exits; conversely, for other users who are moving in the opposite direction to the first user, the entry end of the gate aisle described herein is the exit end of the gate aisle with respect to the other users, and the exit end of the gate aisle described herein is the entry end of the gate aisle with respect to the other users.
After the first time length when the first user moves to the gate is determined, the electronic equipment determines the sum of the first time length and the first time length as the opening time for controlling the gate to be opened according to the first time for collecting the face image to be recognized.
Fig. 2 is a schematic diagram of gate control according to an embodiment of the present invention, as shown in fig. 2, when the first user is at a location C, an image acquisition device of the gate acquires a to-be-recognized face image of the first user, sends the to-be-recognized face image to an electronic device that controls the gate, and the electronic device determines a target face image whose similarity satisfies a set condition according to a similarity between the to-be-recognized face image and a face image in a database, determines a target walking speed v corresponding to the target face image according to a correspondence between the face image and the walking speed stored in the database, and determines the target walking speed v as the walking speed v of the first user.
The electronic equipment determines a first distance S between the first user and an inlet end AB of a gate channel at a position C by adopting an infrared distance measuring technology in the prior art, and determines a first time length tA when the first user moves to the inlet end AB of the gate channel according to a time length determining formula, wherein tA is S/v.
According to the first time length tA when the first user moves to the gate and the first time t1 when the camera collects the face image to be recognized of the first user, the electronic equipment determines the sum t2 of the first time t1 and the first time length tA, t2 is t1+ tA, and t2 is the opening time of controlling the gate to be opened.
Example 3:
in order to determine the closing time for controlling the gate to close, on the basis of the foregoing embodiments, in an embodiment of the present invention, the determining the time for controlling the gate according to a first distance from a first user of the facial image to be recognized to the gate, a first time for acquiring the facial image to be recognized, and the target walking speed includes:
determining a second distance between a first user of the facial image to be recognized and the outlet end of the gate channel according to a first distance between the first user and the gate of the facial image to be recognized and the length of the gate channel of the gate, which is stored in advance;
determining a second time length for the first user to move to the outlet end of the gate passageway according to the second distance and the target walking speed;
and determining the closing time for controlling the gate to be closed according to the second time length and the first time for collecting the face image to be recognized.
In order to determine the closing time of the control gate, since the walking speed of the first user has small variation, in the embodiment of the present invention, the electronic device may predict the time when the first user moves to the exit end of the gate passage according to the target walking speed of the first user.
After the walking speed of the target face image matched with the face image to be recognized is determined, a second distance between the first user and the outlet end of the gate channel needs to be determined, wherein the gate channel can be passed through at two ends.
In the embodiment of the invention, the electronic device determines a first distance from a first user to an inlet end of a gate passageway according to a collected facial image to be recognized of the first user, and determines a sum of the first distance and the length of the gate passageway as a second distance from the first user to an outlet end of the gate passageway according to the first distance from the first user to the inlet end of the gate passageway and the length of the gate passageway saved in advance because the length of the gate passageway is fixed.
And determining a second time length of the first user moving to the outlet end of the gate channel according to a second distance between the first user and the outlet end of the gate channel and the target walking speed of the first user, namely determining a ratio of the second distance to the target walking speed as the second time length of the first user moving to the outlet end of the gate channel.
After the second time length that the first user moves to the outlet end of the gate channel is determined, the electronic equipment determines the sum of the first time length and the second time length as the closing time for controlling the gate to be closed according to the first time for collecting the face image to be recognized.
As shown in fig. 2, when the first user is at the position C, the image acquisition device of the gate machine acquires a to-be-recognized face image of the first user, and sends the to-be-recognized face image to the electronic device controlling the gate machine, the electronic device determines a target face image with a similarity satisfying a set condition according to the similarity between the to-be-recognized face image and the face image in the database, determines a target walking speed v corresponding to the target face image according to the correspondence between the face image stored in the database and the walking speed, and determines the target walking speed v as the walking speed v of the first user.
The electronic equipment determines a first distance S from a position C of the first user to an inlet end AB of a gate channel according to an infrared ranging technology in the prior art, the electronic equipment stores the length L of the gate channel in advance, and determines that a second distance (S + L) from the first user to an outlet end DE of the gate channel is (S + L) according to the sum of the first distance S and the length L of the gate channel.
And the electronic equipment determines a second time length tB for the first user to move to the outlet end of the gate channel according to the ratio of the second distance to the target walking speed of the first user, wherein the second time length tB is (S + L)/v.
According to the second time length tB when the first user moves to the outlet end of the gate channel and the first time t1 when the image acquisition equipment acquires the face image to be recognized of the first user, the electronic equipment determines the sum t3 of the first time t1 and the second time length tB, wherein the t3 is the closing time t3 for controlling the gate to close, and t3 is t1+ tB.
Example 4:
in order to further improve the accuracy of gate control, on the basis of the above embodiments, in an embodiment of the present invention, the method further includes:
acquiring a second moment when the first user moves to the outlet end of the gate channel, and determining a difference value between the second moment and the first moment;
determining an average speed of the first user based on a sum of a first distance of the first user from the gate and a length of the gate channel and the difference;
and updating the target walking speed corresponding to the target face image stored in the database according to the average speed.
In the embodiment of the present invention, since the walking speed of the first user may change every time the first user passes through the gate, the walking speed of the first user needs to be updated in order to more accurately determine the time for controlling the gate.
To enable updating of the walking speed of the first user, the electronic device determines a second time when the first user moves to the exit end of the gate passageway.
Specifically, the infrared sensor is deployed on the gate, at the inlet end and the outlet end of the gate channel, or around the gate, so that the infrared sensor can acquire pedestrian information at the inlet end and the outlet end of the gate channel, when the infrared sensor determines that the first user moves to the outlet end of the gate channel, the infrared sensor sends a prompt signal to the electronic device, and the electronic device determines that the moment when the prompt signal is received is the second moment.
Or the distance sensor is deployed on the gate, at the inlet end and the outlet end of the gate channel, or around the gate, so that the distance sensor can acquire pedestrian information at the inlet end and the outlet end of the gate channel, when the distance sensor determines that the first user moves to the outlet end of the gate channel, the distance sensor sends a prompt signal to the electronic device, and the electronic device determines that the moment when the prompt signal is received is the second moment. Specifically, the embodiment of the present invention is not limited to this.
According to the second moment when the first user moves to the outlet end of the gate channel and the first moment when the face image to be recognized of the first user is collected, the electronic equipment determines the actual time length of the first user moving to the outlet end of the gate channel, namely the difference value between the second moment and the first moment is the actual time length of the first user moving to the outlet end of the gate channel.
And determining the actual distance from the first user to the outlet end of the gate channel according to the sum of the first distance from the first user to the gate and the length of the gate channel. According to the sum of the first distance between the first user and the gate and the length of the gate channel and the difference value between the second moment and the first moment, the electronic equipment determines the actual average speed of the first user moving to the outlet end of the gate channel. Specifically, the electronic device uses a ratio of the sum of the lengths to the difference of the time as the average speed of the first user.
And updating the target walking speed corresponding to the target face image stored in the database by the electronic equipment according to the average speed of the first user. Specifically, the step of updating the target walking speed may be to use the average speed as the target walking speed corresponding to the updated target face image; or determining an average value of the average speed and the target walking speed, and taking the average value as the target walking speed corresponding to the updated target face image.
Example 5:
in order to improve the safety of gate control, on the basis of the above embodiments, in an embodiment of the present invention, the method further includes:
before controlling the gate to be opened, detecting whether other users exist in the area range of the outlet end of the gate channel or not;
and if so, controlling the gate to be kept closed, and outputting prompt information for prompting the other users to leave the area range of the outlet end.
In the embodiment of the present invention, the gate is opened, that is, the gate is opened from the closed state to the open state, since there may be other users in the area range of the exit end of the gate passageway before the gate is opened, in order to prevent the gate from injuring other users in the opening process, the electronic device needs to detect whether there are other users in the area range of the exit end of the gate passageway before controlling the gate to be opened. The area range of the outlet end of the passage refers to the area range from the gate to the outlet end of the passage in the gate passage, and the gate is positioned in the middle of the gate passage.
Specifically, in the embodiment of the present invention, in order to detect whether there are other users in the area range of the outlet end of the channel, the detection may be performed by an infrared sensor, or may be performed by an image acquisition device, or by another method in the prior art, which is not limited in this embodiment of the present invention.
If other users exist in the area range of the outlet end of the gate channel, in order to prevent other users from being injured, the electronic equipment can control the gate to be in a closed state and output prompt information for prompting the other users to leave the area range of the outlet end. The prompt message can be a voice prompt message or a text prompt message on a display screen.
Fig. 3 is a schematic diagram of a gate machine according to an embodiment of the present invention, in which there are areas where other users are located at the exit end of the gate machine tunnel, as shown in fig. 3, a area P is an area at the entrance end of the gate machine tunnel, a area Q is an area at the exit end of the gate machine tunnel, a user on the P area (upper in the figure) of the gate machine is a first user, and b user on the Q area of the gate machine is another user on the area at the exit end of the gate machine tunnel. Before the user a moves to the gate and the electronic equipment controls the gate to be opened, the user b is detected to exist in the Q area of the gate, and the gate is controlled to be in a closed state.
In order to enable the first user to pass through the gate when there are other users in the area range of the exit end of the gate channel, on the basis of the above embodiments, in an embodiment of the present invention, the method further includes:
detecting whether the other users disappear in the area range of the outlet end of the gate channel within a first set time length;
if not, an alarm signal is sent out;
and if so, controlling the gate to be opened at the inlet end of the gate channel.
When it is determined that other users exist in the area range of the exit end of the gate channel, the electronic device controls the gate to be kept closed, and in order to enable the first user to pass through the gate, in the embodiment of the invention, the electronic device detects whether the other users disappear in the area range of the exit end of the gate channel within a first set time period. Wherein, the first set time length is preset.
If the other users do not disappear within the first set time length, the other users do not actively avoid the first user, and in order to enable the first user to pass through the gate, the electronic equipment controls the alarm device connected with the electronic equipment to send out an alarm signal. The alarm device can be a sound alarm device or a light alarm device, and preferably comprises the sound alarm device and the light alarm device.
If the other users disappear within the first set time period, which indicates that the other users have actively avoided the first user, the electronic device controls the gate to open at the entrance end of the gate passageway, namely controls the gate to open from the entrance end to the exit end of the gate passageway, wherein the entrance end of the gate passageway is opposite to the entrance end of the first user.
Fig. 4 is a schematic diagram of a gate machine according to an embodiment of the present invention, in which other users disappear within an area range of an exit end of the gate machine channel within a first set time period, as shown in fig. 4, the P area is an area range of an entrance end of the gate machine channel, the Q area is an area range of an exit end of the gate machine channel, a user on the P area (upper in the figure) of the gate machine is a first user, and b user in the figure is an other user. When the b user in the Q area of the gate is detected to disappear within the first set time period, namely the b user is detected to disappear from the Q area of the gate within the first set time period, the electronic equipment controls the gate to be opened at the entrance end of the gate channel.
In order to eliminate other users in the area range of the exit end of the gate passage within the first set time period, the first user controls the gate to be closed after passing through the gate, on the basis of the above embodiments, in an embodiment of the present invention, the method further includes:
determining a third time length for the first user to move to the outlet end of the gate channel according to the length of the gate channel and the target walking speed which are saved in advance;
and determining a fourth time according to the third time of opening the gate and the third duration, and updating the closing time of the gate by adopting the fourth time.
Before the gate is controlled to be opened, when other users are detected to be in the area range of the outlet end of the gate channel, and when other users are detected to disappear in the area range of the outlet end of the gate channel within the first set time period, the gate is controlled to be opened at the inlet end of the channel again, so that the opening time of the gate is changed, and the time when the first user moves to the outlet end of the gate channel is also changed, and therefore in the embodiment of the invention, the closing time of the gate is required to be updated.
In order to update the closing time of the gate, the electronic device determines a ratio of the length to the target walking speed as a third time length for the first user to move to the outlet end of the gate channel according to the length of the gate channel and the target walking speed of the first user, which are saved in advance.
In order to redetermine the closing time of the gate, the electronic device determines a third time when the gate is opened, and determines a sum of the third time and the third time as a fourth time according to the third time and the third time, wherein the fourth time is the closing time of the gate. And updating the determined closing time of the gate by the electronic equipment according to the determined fourth time, wherein the fourth time is the updated closing time of the gate.
Example 6:
in order to improve the gate passage efficiency during the peak period of passage in a single direction, on the basis of the above embodiments, in an embodiment of the present invention, before the step of sending an alarm signal, if it is detected that the other users do not disappear within the area range of the exit end of the gate passage within the first set time period, the method further includes:
judging whether the opening time of the gate is within a pre-stored time range or not;
if not, executing the subsequent step of sending out the alarm signal.
In the embodiment of the invention, the number of other users at the exit end of the gate passage is larger because the users can appear in a determined time range in an actual scene. For example, during the off-duty peak period, the number of other users at the exit end of the gate passageway is larger, and in order to improve the passing efficiency of the users of the gate, during the off-duty peak period, and when people are both at the entrance end and the exit end of the gate passageway, the other users at the exit end of the gate passageway are guaranteed to preferentially pass through the gate.
Before the electronic device detects that other users exist in the area range of the outlet end of the gate channel and detects that the other users do not disappear in the area range of the outlet end of the gate channel within a first set time length, the electronic device needs to judge whether the determined opening time for controlling the opening of the gate is within the pre-stored time range before the electronic device controls the alarm device to send an alarm signal.
When the electronic equipment determines that the opening time is not within the pre-stored time range, it is determined that other users at the outlet end of the gate channel do not need to preferentially pass through the gate at the moment, and therefore when the electronic equipment detects that other users do not disappear within the area range of the outlet end of the gate channel within the first set time period, an alarm signal is sent out to remind other users to keep away from the area range of the outlet end of the gate channel, so that the gate is controlled to be opened at the inlet end of the channel, and the first user can pass through the gate.
In order to ensure that other users located in the area range of the exit end of the gate channel pass preferentially when the turn-on time is within the pre-stored time range, on the basis of the above embodiments, in an embodiment of the present invention, if the turn-on time of the gate is within the pre-stored time range, the method further includes:
and outputting prompt information for prompting the first user to go to other gate machines, controlling the gate to be opened at the outlet end of the channel when the first user disappears, and controlling the gate to be closed after the other users pass through the gate machine channel.
When the electronic device determines that the opening time is within the pre-stored time range, in order to ensure that other users located within the area range of the exit end of the gate channel pass preferentially, the first user needs to be far away from the gate, and therefore the electronic device outputs prompt information for prompting the first user to go to other gates. The prompt message can be a voice prompt message or a text prompt message on the display screen, and preferably, the prompt message comprises the voice prompt message and the text prompt message.
And the electronic equipment controls the gate to be opened at the exit end of the channel when determining that the first user disappears, so that other users in the area range of the exit end of the gate channel preferentially pass through the gate channel, and controls the gate to be closed after the other users pass through the gate channel. Specifically, in the embodiment of the present invention, the electronic device determines whether the first user disappears and whether the other users pass through the gate channel through infrared detection.
Example 7:
the gate control method according to the present invention is described below with reference to a specific embodiment, and fig. 5 is a schematic process diagram of the gate control method according to the embodiment of the present invention, where the process includes the following steps:
s501: the image acquisition equipment acquires a face image to be recognized and sends the face image to the electronic equipment, and the electronic equipment determines the similarity between the face image to be recognized and a face image prestored in a database.
S502: and if the target face image with the similarity meeting the set conditions exists, determining the target walking speed corresponding to the target face image according to the corresponding relation between the face image and the walking speed stored in the database.
S503: determining a first time length for a first user to move to a gate according to a first distance between the first user of a face image to be recognized and the gate and the target walking speed; and determining the opening time of the control gate according to the first time and the first time of collecting the face image to be recognized.
S504: determining a second distance between a first user and the outlet end of the gate channel according to a first distance between the first user of the face image to be recognized and the gate and the length of the gate channel which is stored in advance; determining a second time length for the first user to move to the outlet end of the gate channel according to the second distance and the target walking speed; and determining the closing time of the control gate according to the second time length and the first time of collecting the face image to be recognized.
S505: before controlling the gate to be opened, detecting whether other users exist in the area range of the outlet end of the gate channel, if so, entering S506, and if not, entering S510.
S506: the control gate remains closed.
S507: and judging whether the opening time of the gate is within a pre-stored time range, if so, outputting prompt information prompting the first user to go to other gates, controlling the gate to be opened at the outlet end of the channel when the first user disappears, controlling the gate to be closed after the other users pass through the gate channel, and if not, entering S508.
S508: and detecting whether other users disappear in the area range of the outlet end of the gate channel within a first set time length, if not, entering S509, and if so, entering S510.
S509: an alarm signal is sent out, and the process returns to the step S508.
S510: the control gate is opened at the entrance end of the passage.
S511: determining a third time length for the first user to move to the outlet end of the gate channel according to the length of the gate channel and the target walking speed which are stored in advance; and determining a fourth time according to the third time and the third duration of opening the gate, and updating the closing time of the gate by adopting the fourth time.
S512: at which time the gate is controlled to close at the entrance end of the tunnel.
Example 8:
on the basis of the foregoing embodiments, fig. 6 is a schematic structural diagram of a gate control device according to an embodiment of the present invention, where the gate control device includes:
the determining module 601 is configured to acquire a face image to be recognized, and determine similarity between the face image to be recognized and a face image pre-stored in a database of the gate; if a target face image with similarity meeting set conditions exists, determining a target walking speed corresponding to the target face image according to the corresponding relation between the face image and the walking speed stored in the database;
the control module 602 is configured to determine a time for controlling the gate according to a first distance between a first user of the to-be-recognized face image and the gate, a first time for acquiring the to-be-recognized face image, and the target walking speed, and control the gate of the gate at a corresponding time.
The control module 602 is specifically configured to determine, according to a first distance between a first user of the facial image to be recognized and the gate and the target walking speed, a first duration for the first user to move to the gate; and determining the opening time for controlling the opening of the gate according to the first time length and the first time for collecting the face image to be recognized.
The control module 602 is specifically configured to determine, according to a first distance between a first user of the facial image to be recognized and the gate and a length of a gate channel of the gate, a second distance between the first user and an outlet end of the gate channel; determining a second time length for the first user to move to the outlet end of the gate passageway according to the second distance and the target walking speed; and determining the closing time for controlling the gate to be closed according to the second time length and the first time for collecting the face image to be recognized.
The device further comprises:
an updating module 603, configured to obtain a second time when the first user moves to an outlet end of the gate channel, and determine a difference between the second time and the first time; determining an average speed of the first user based on a sum of a first distance of the first user from the gate and a length of the gate channel and the difference; and updating the target walking speed corresponding to the target face image stored in the database according to the average speed.
The device further comprises:
a detecting module 604, configured to detect whether there are other users in a region range of an outlet end of the gate passageway before controlling the gate to open; if yes, triggering the control module 602 to execute a step of controlling the gate to keep closed and outputting a prompt message for prompting the other users to leave the area range of the outlet end.
The detecting module 604 is further configured to detect whether the other users disappear within a region range of an outlet end of the gate channel within a first set time period; if yes, triggering the control module 602 to execute a step of controlling the gate to open at the entrance end of the gate passageway; otherwise, triggering the control module to execute the step of sending out the alarm signal.
The updating module 603 is further configured to determine, according to the length of the gate channel and the target walking speed that are saved in advance, a third time duration for the first user to move to the exit end of the gate channel; and determining a fourth time according to the third time of opening the gate and the third duration, and updating the closing time of the gate by adopting the fourth time.
The control module 602 is further configured to determine whether the opening time of the gate is within a pre-stored time range before detecting that the other users do not disappear within the area range of the outlet end of the gate channel within a first set time period and sending an alarm signal; if not, the subsequent alarm signal sending is executed.
The control module 602 is further configured to output a prompt message prompting the first user to go to another gate if the opening time of the gate is within a pre-stored time range, control the gate to open at the outlet end of the gate channel when the first user disappears within a set area range at the inlet end of the gate channel, and control the gate to close after the other user is determined to pass through the gate channel.
Fig. 7 is a schematic structural diagram of a gate control device according to an embodiment of the present invention, and as shown in fig. 7, the gate control device includes an image acquisition module 701, an intelligent recognition and calculation module 702, an intelligent learning and analysis module 703, a control module 704, and an infrared detection module 705.
The image acquisition module 701 is configured to acquire a face image to be recognized, and send the face image to be recognized to the intelligent recognition computing module 702. The image capturing module 701 corresponds to a sub-module of the determining module 601 for implementing image capturing.
The intelligent recognition calculation module 702 is configured to determine, according to the to-be-recognized face image, a similarity between the to-be-recognized face image and a face image in a database, determine a target walking speed corresponding to a target face image whose similarity satisfies a set condition, a first time at which the to-be-recognized face image is acquired, and a first distance between a first user of the to-be-recognized face image and a gate, and send the first distance, the first time, and the target walking speed to the intelligent learning analysis module 703, where the intelligent recognition calculation module 702 is equivalent to a sub-module that implements similarity calculation and distance calculation in the determination module 601.
The intelligent learning analysis module 703 is configured to determine a time for controlling the gate according to the received first distance, the first time for acquiring the face image to be recognized, and the target walking speed. I.e., determines the opening time and the closing time of the control gate, and sends the determined opening time and the determined closing time to the control module 704. The intelligent learning analysis module 703 is equivalent to a sub-module that realizes the determination of the target face image and the target walking speed by the determination module 601, and a sub-module that realizes the determination of the time for controlling the gate in the control module 602.
The control module 704 is configured to control the gate at a corresponding time, and is equivalent to a sub-module of the control module 602 for controlling the gate.
The infrared detection module 705 is configured to detect whether there is a person in an area range of an exit end of the gate channel, and send a result to the control module 704. The infrared detection module 705 corresponds to the detection module 603.
Example 9:
fig. 8 is a schematic structural diagram of an electronic device according to an embodiment of the present invention, and on the basis of the foregoing embodiments, an electronic device according to an embodiment of the present invention is further provided, where the electronic device includes a processor 801, a communication interface 802, a memory 803, and a communication bus 804, where the processor 801, the communication interface 802, and the memory 803 complete communication with each other through the communication bus 804;
the memory 803 has stored therein a computer program which, when executed by the processor 801, causes the processor 801 to perform the steps of:
acquiring a face image to be recognized, and determining the similarity between the face image to be recognized and a face image prestored in a database of a gate;
if a target face image with similarity meeting set conditions exists, determining a target walking speed corresponding to the target face image according to the corresponding relation between the face image and the walking speed stored in the database;
determining the time for controlling the gate according to the first distance between the first user of the face image to be recognized and the gate, the first time for acquiring the face image to be recognized and the target walking speed, and controlling the gate of the gate at the corresponding time.
Further, the processor 801 is specifically configured to determine, according to a first distance between a first user of the facial image to be recognized and the gate, a first time of acquiring the facial image to be recognized, and the target walking speed, a time of controlling the gate, and includes:
determining a first time length for a first user to move to the gate according to a first distance between the first user of the facial image to be recognized and the gate and the target walking speed;
and determining the opening time for controlling the opening of the gate according to the first time length and the first time for collecting the face image to be recognized.
Further, the processor 801 is specifically configured to determine, according to a first distance between a first user of the facial image to be recognized and the gate, a first time point of acquiring the facial image to be recognized, and the target walking speed, a time point of controlling the gate, and includes:
determining a second distance between a first user of the facial image to be recognized and the outlet end of the gate channel according to a first distance between the first user and the gate of the facial image to be recognized and the length of the gate channel of the gate, which is stored in advance;
determining a second time length for the first user to move to the outlet end of the gate passageway according to the second distance and the target walking speed;
and determining the closing time for controlling the gate to be closed according to the second time length and the first time for collecting the face image to be recognized.
Further, the processor 801 is further configured to obtain a second time when the first user moves to the exit end of the gate passageway, and determine a difference between the second time and the first time;
determining an average speed of the first user based on a sum of a first distance of the first user from the gate and a length of the gate channel and the difference;
and updating the target walking speed corresponding to the target face image stored in the database according to the average speed.
Further, the processor 801 is further configured to detect whether there are other users in a region range of the exit end of the gate passage before controlling the gate to open;
and if so, controlling the gate to be kept closed, and outputting prompt information for prompting the other users to leave the area range of the outlet end.
Further, the processor 801 is further configured to detect whether the other users disappear within a range of an outlet end of the gate passage within a first set time period;
if not, an alarm signal is sent out;
and if so, controlling the gate to be opened at the inlet end of the gate channel.
Further, the processor 801 is further configured to determine a third time period for the first user to move to the exit end of the gate passageway according to the length of the gate passageway saved in advance and the target walking speed;
and determining a fourth time according to the third time of opening the gate and the third duration, and updating the closing time of the gate by adopting the fourth time.
Further, before the processor 801 is further configured to detect that the other users do not disappear within the area range of the exit end of the gate passageway within the first set time period, and send an alarm signal, the method further includes:
judging whether the opening time of the gate is within a pre-stored time range or not;
if not, executing the subsequent step of sending out the alarm signal.
Further, the processor 801 is further configured to output a prompt message prompting the first user to go to another gate if the opening time of the gate is within a pre-stored time range, control the gate to open at the outlet end of the gate channel when the first user disappears within the set area range at the inlet end of the gate channel is determined, and control the gate to close after the other user is determined to pass through the gate channel.
The communication bus mentioned in the electronic device may be a Peripheral Component Interconnect (PCI) bus, an Extended Industry Standard Architecture (EISA) bus, or the like. The communication bus may be divided into an address bus, a data bus, a control bus, etc. For ease of illustration, only one thick line is shown, but this does not mean that there is only one bus or one type of bus.
The communication interface 802 is used for communication between the above-described electronic apparatus and other apparatuses.
The Memory may include a Random Access Memory (RAM) or a Non-Volatile Memory (NVM), such as at least one disk Memory. Alternatively, the memory may be at least one memory device located remotely from the processor.
The Processor may be a general-purpose Processor, including a central processing unit, a Network Processor (NP), and the like; but may also be a Digital instruction processor (DSP), an application specific integrated circuit, a field programmable gate array or other programmable logic device, discrete gate or transistor logic, discrete hardware components, or the like.
Example 10:
on the basis of the foregoing embodiments, an embodiment of the present invention further provides a computer-readable storage medium, which stores a computer program, where the computer program is executed by a processor to perform the following steps:
acquiring a face image to be recognized, and determining the similarity between the face image to be recognized and a face image prestored in a database of a gate;
if a target face image with similarity meeting set conditions exists, determining a target walking speed corresponding to the target face image according to the corresponding relation between the face image and the walking speed stored in the database;
determining the time for controlling the gate according to the first distance between the first user of the face image to be recognized and the gate, the first time for acquiring the face image to be recognized and the target walking speed, and controlling the gate of the gate at the corresponding time.
Further, determining the time for controlling the gate according to a first distance between a first user of the facial image to be recognized and the gate, a first time for acquiring the facial image to be recognized, and the target walking speed includes:
determining a first time length for a first user to move to the gate according to a first distance between the first user of the facial image to be recognized and the gate and the target walking speed;
and determining the opening time for controlling the opening of the gate according to the first time length and the first time for collecting the face image to be recognized.
Further, determining the time for controlling the gate according to a first distance between a first user of the facial image to be recognized and the gate, a first time for acquiring the facial image to be recognized, and the target walking speed includes:
determining a second distance between a first user of the facial image to be recognized and the outlet end of the gate channel according to a first distance between the first user and the gate of the facial image to be recognized and the length of the gate channel of the gate, which is stored in advance;
determining a second time length for the first user to move to the outlet end of the gate passageway according to the second distance and the target walking speed;
and determining the closing time for controlling the gate to be closed according to the second time length and the first time for collecting the face image to be recognized.
Further, the method further comprises:
acquiring a second moment when the first user moves to the outlet end of the gate channel, and determining a difference value between the second moment and the first moment;
determining an average speed of the first user based on a sum of a first distance of the first user from the gate and a length of the gate channel and the difference;
and updating the target walking speed corresponding to the target face image stored in the database according to the average speed.
Further, the method further comprises:
before controlling the gate to be opened, detecting whether other users exist in the area range of the outlet end of the gate channel or not;
and if so, controlling the gate to be kept closed, and outputting prompt information for prompting the other users to leave the area range of the outlet end.
Further, the method further comprises:
detecting whether the other users disappear in the area range of the outlet end of the gate channel within a first set time length;
if not, an alarm signal is sent out;
and if so, controlling the gate to be opened at the inlet end of the gate channel.
Further, the method further comprises:
determining a third time length for the first user to move to the outlet end of the gate channel according to the length of the gate channel and the target walking speed which are saved in advance;
and determining a fourth time according to the third time of opening the gate and the third duration, and updating the closing time of the gate by adopting the fourth time.
Further, if it is detected within a first set time period that the other users do not disappear within the area range of the outlet end of the gate passageway, before sending an alarm signal, the method further includes:
judging whether the opening time of the gate is within a pre-stored time range or not;
if not, executing the subsequent step of sending out the alarm signal.
Further, if the opening time of the gate is within the pre-stored time range, the method further comprises:
and outputting prompt information prompting the first user to go to other gates, controlling the gate to be opened at the outlet end of the gate channel when the first user disappears in a set area range at the inlet end of the gate channel, and controlling the gate to be closed after the other users are determined to pass through the gate channel.
As will be appreciated by one skilled in the art, embodiments of the present application may be provided as a method, system, or computer program product. Accordingly, the present application may take the form of an entirely hardware embodiment, an entirely software embodiment or an embodiment combining software and hardware aspects. Furthermore, the present application may take the form of a computer program product embodied on one or more computer-usable storage media (including, but not limited to, disk storage, CD-ROM, optical storage, and the like) having computer-usable program code embodied therein.
The present application is described with reference to flowchart illustrations and/or block diagrams of methods, apparatus (systems), and computer program products according to the application. It will be understood that each flow and/or block of the flow diagrams and/or block diagrams, and combinations of flows and/or blocks in the flow diagrams and/or block diagrams, can be implemented by computer program instructions. These computer program instructions may be provided to a processor of a general purpose computer, special purpose computer, embedded processor, or other programmable data processing apparatus to produce a machine, such that the instructions, which execute via the processor of the computer or other programmable data processing apparatus, create means for implementing the functions specified in the flowchart flow or flows and/or block diagram block or blocks.
These computer program instructions may also be stored in a computer-readable memory that can direct a computer or other programmable data processing apparatus to function in a particular manner, such that the instructions stored in the computer-readable memory produce an article of manufacture including instruction means which implement the function specified in the flowchart flow or flows and/or block diagram block or blocks.
These computer program instructions may also be loaded onto a computer or other programmable data processing apparatus to cause a series of operational steps to be performed on the computer or other programmable apparatus to produce a computer implemented process such that the instructions which execute on the computer or other programmable apparatus provide steps for implementing the functions specified in the flowchart flow or flows and/or block diagram block or blocks.
It will be apparent to those skilled in the art that various changes and modifications may be made in the present application without departing from the spirit and scope of the application. Thus, if such modifications and variations of the present application fall within the scope of the claims of the present application and their equivalents, the present application is intended to include such modifications and variations as well.

Claims (12)

1. A gate control method, the method comprising:
acquiring a face image to be recognized, and determining the similarity between the face image to be recognized and a face image prestored in a database of a gate;
if a target face image with similarity meeting set conditions exists, determining a target walking speed corresponding to the target face image according to the corresponding relation between the face image and the walking speed stored in the database;
determining the time for controlling the gate according to the first distance between the first user of the face image to be recognized and the gate, the first time for acquiring the face image to be recognized and the target walking speed, and controlling the gate of the gate at the corresponding time.
2. The method of claim 1, wherein determining the time to control the gate according to a first distance from a first user of the facial image to be recognized to the gate, a first time to acquire the facial image to be recognized, and the target walking speed comprises:
determining a first time length for a first user to move to the gate according to a first distance between the first user of the facial image to be recognized and the gate and the target walking speed;
and determining the opening time for controlling the opening of the gate according to the first time length and the first time for collecting the face image to be recognized.
3. The method of claim 1, wherein determining the time to control the gate according to a first distance from a first user of the facial image to be recognized to the gate, a first time to acquire the facial image to be recognized, and the target walking speed comprises:
determining a second distance between a first user of the facial image to be recognized and the outlet end of the gate channel according to a first distance between the first user and the gate of the facial image to be recognized and the length of the gate channel of the gate, which is stored in advance;
determining a second time length for the first user to move to the outlet end of the gate passageway according to the second distance and the target walking speed;
and determining the closing time for controlling the gate to be closed according to the second time length and the first time for collecting the face image to be recognized.
4. The method according to any one of claims 1-3, further comprising:
acquiring a second moment when the first user moves to the outlet end of the gate channel, and determining a difference value between the second moment and the first moment;
determining an average speed of the first user based on a sum of a first distance of the first user from the gate and a length of the gate channel and the difference;
and updating the target walking speed corresponding to the target face image stored in the database according to the average speed.
5. The method of claim 1, further comprising:
before controlling the gate to be opened, detecting whether other users exist in the area range of the outlet end of the gate channel or not;
and if so, controlling the gate to be kept closed, and outputting prompt information for prompting the other users to leave the area range of the outlet end.
6. The method of claim 5, further comprising:
detecting whether the other users disappear in the area range of the outlet end of the gate channel within a first set time length;
if not, an alarm signal is sent out;
and if so, controlling the gate to be opened at the inlet end of the gate channel.
7. The method of claim 6, further comprising:
determining a third time length for the first user to move to the outlet end of the gate channel according to the length of the gate channel and the target walking speed which are saved in advance;
and determining a fourth time according to the third time of opening the gate and the third duration, and updating the closing time of the gate by adopting the fourth time.
8. The method of claim 6, wherein before the step of sending an alarm signal if the absence of the other users in the area of the exit end of the gate passageway is detected within a first set time period, the method further comprises:
judging whether the opening time of the gate is within a pre-stored time range or not;
if not, executing the subsequent step of sending out the alarm signal.
9. The method of claim 8, wherein if the gate is turned on within a pre-stored time range, the method further comprises:
and outputting prompt information prompting the first user to go to other gates, controlling the gate to be opened at the outlet end of the gate channel when the first user disappears in a set area range at the inlet end of the gate channel, and controlling the gate to be closed after the other users are determined to pass through the gate channel.
10. A gate control apparatus, the apparatus comprising:
the system comprises a determining module, a judging module and a judging module, wherein the determining module is used for acquiring a face image to be recognized and determining the similarity between the face image to be recognized and a face image prestored in a database of a gate; if a target face image with similarity meeting set conditions exists, determining a target walking speed corresponding to the target face image according to the corresponding relation between the face image and the walking speed stored in the database;
and the control module is used for determining the moment for controlling the gate machine according to the first distance between the first user of the face image to be recognized and the gate machine, the first moment for acquiring the face image to be recognized and the target walking speed, and controlling the gate of the gate machine at the corresponding moment.
11. An electronic device, characterized in that the electronic device comprises a processor and a memory, the memory being adapted to store program instructions, the processor being adapted to carry out the steps of the gate control method according to any one of claims 1-9 when executing a computer program stored in the memory.
12. A computer-readable storage medium, characterized in that it stores a computer program which, when being executed by a processor, carries out the steps of the gate control method according to any one of claims 1 to 9.
CN202010864090.4A 2020-08-25 2020-08-25 Gate control method, device, equipment and medium Pending CN112037405A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202010864090.4A CN112037405A (en) 2020-08-25 2020-08-25 Gate control method, device, equipment and medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202010864090.4A CN112037405A (en) 2020-08-25 2020-08-25 Gate control method, device, equipment and medium

Publications (1)

Publication Number Publication Date
CN112037405A true CN112037405A (en) 2020-12-04

Family

ID=73581269

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202010864090.4A Pending CN112037405A (en) 2020-08-25 2020-08-25 Gate control method, device, equipment and medium

Country Status (1)

Country Link
CN (1) CN112037405A (en)

Cited By (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN112761094A (en) * 2020-12-30 2021-05-07 浙江大华技术股份有限公司 Gate control method, device, equipment and medium
CN113657210A (en) * 2021-07-30 2021-11-16 深圳市中金岭南有色金属股份有限公司凡口铅锌矿 Method, device and equipment for controlling air door in mine and storage medium
CN113888781A (en) * 2021-10-11 2022-01-04 德施曼机电(中国)有限公司 Door lock control method, electronic equipment, door lock and storage medium
CN113936365A (en) * 2021-11-25 2022-01-14 青岛海信智慧生活科技股份有限公司 Remote unlocking method and device
CN114973468A (en) * 2022-05-23 2022-08-30 北京声智科技有限公司 Gate control method, device, equipment and storage medium
CN116504011A (en) * 2023-06-21 2023-07-28 广东广宇科技发展有限公司 Intelligent security monitoring and early warning method and system based on digital twinning

Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN106600774A (en) * 2016-12-07 2017-04-26 深圳市万睿智能科技有限公司 Face identification gate inhibition control method provided with door opening detection area and system thereof
CN206956597U (en) * 2017-06-13 2018-02-02 黄新 A kind of gate based on pressure sensor
CN108022333A (en) * 2016-11-04 2018-05-11 杭州海康威视数字技术股份有限公司 A kind of access control method, access controller and access control system
CN110517373A (en) * 2018-05-22 2019-11-29 杭州海康威视数字技术股份有限公司 A kind of control method, device, system and the indoor unit of door-control lock of registering one's residence
CN111191572A (en) * 2019-12-26 2020-05-22 恒大智慧科技有限公司 Gate door-passing behavior identification method and device and computer-readable storage medium
JP2020084471A (en) * 2018-11-19 2020-06-04 ナブテスコ株式会社 Automatic accessibility confirmation device, automatic accessibility confirmation method, automatic door control device, and automatic door system

Patent Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN108022333A (en) * 2016-11-04 2018-05-11 杭州海康威视数字技术股份有限公司 A kind of access control method, access controller and access control system
CN106600774A (en) * 2016-12-07 2017-04-26 深圳市万睿智能科技有限公司 Face identification gate inhibition control method provided with door opening detection area and system thereof
CN206956597U (en) * 2017-06-13 2018-02-02 黄新 A kind of gate based on pressure sensor
CN110517373A (en) * 2018-05-22 2019-11-29 杭州海康威视数字技术股份有限公司 A kind of control method, device, system and the indoor unit of door-control lock of registering one's residence
JP2020084471A (en) * 2018-11-19 2020-06-04 ナブテスコ株式会社 Automatic accessibility confirmation device, automatic accessibility confirmation method, automatic door control device, and automatic door system
CN111191572A (en) * 2019-12-26 2020-05-22 恒大智慧科技有限公司 Gate door-passing behavior identification method and device and computer-readable storage medium

Cited By (9)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN112761094A (en) * 2020-12-30 2021-05-07 浙江大华技术股份有限公司 Gate control method, device, equipment and medium
CN113657210A (en) * 2021-07-30 2021-11-16 深圳市中金岭南有色金属股份有限公司凡口铅锌矿 Method, device and equipment for controlling air door in mine and storage medium
CN113657210B (en) * 2021-07-30 2023-11-07 深圳市中金岭南有色金属股份有限公司凡口铅锌矿 Method, device, equipment and storage medium for controlling air door in mine
CN113888781A (en) * 2021-10-11 2022-01-04 德施曼机电(中国)有限公司 Door lock control method, electronic equipment, door lock and storage medium
CN113936365A (en) * 2021-11-25 2022-01-14 青岛海信智慧生活科技股份有限公司 Remote unlocking method and device
CN114973468A (en) * 2022-05-23 2022-08-30 北京声智科技有限公司 Gate control method, device, equipment and storage medium
CN114973468B (en) * 2022-05-23 2024-09-13 北京声智科技有限公司 Gate control method, device, equipment and storage medium
CN116504011A (en) * 2023-06-21 2023-07-28 广东广宇科技发展有限公司 Intelligent security monitoring and early warning method and system based on digital twinning
CN116504011B (en) * 2023-06-21 2023-10-27 广东广宇科技发展有限公司 Intelligent security monitoring and early warning method and system based on digital twinning

Similar Documents

Publication Publication Date Title
CN112037405A (en) Gate control method, device, equipment and medium
JP6406246B2 (en) Object identification device, object identification method, and object identification program
WO2021180060A1 (en) Channel gate control method, apparatus and system
US20150332588A1 (en) Short-time stopping detection from red light camera evidentiary photos
CN109979059A (en) A kind of method, apparatus, equipment and storage medium controlling gate
CN110910550A (en) Gate passing method, gate, system, computer device and storage medium
KR102256802B1 (en) Unmanned parking illegal tailing management system and method using reflector camera
CN111191572A (en) Gate door-passing behavior identification method and device and computer-readable storage medium
CN112037399B (en) Control method of gate passing indication, gate equipment and system
CN111292459A (en) Face brushing authentication method and device applied to subway
CN110246241A (en) A kind of gate control method and device
CN112711960B (en) Gate alarm method and device, control processor and readable storage medium
CN113487784A (en) Gate passing system and method
CN112133011A (en) Public place face recognition access control system and access control method
CN114202839A (en) Gate passage control method, device, equipment and storage medium
CN112761094A (en) Gate control method, device, equipment and medium
CN112863012A (en) Passage control method, device, equipment and storage medium
CN111599064B (en) Bidirectional access control method, system, terminal and computer readable medium
CN210466495U (en) Multifunctional barrier-free passing gate
CN111260838A (en) Face brushing passing method based on local identification and gate equipment
CN111988571A (en) Method and device for detecting access information
US20240265758A1 (en) Authentication device, authentication method, authentication system, and program
CN115428044A (en) Traffic control system and method for controlling the operation of a traffic control system
CN115861919A (en) Passage control method for preventing trailing passage behavior
CN213424051U (en) Wisdom access control system based on RFID

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
RJ01 Rejection of invention patent application after publication
RJ01 Rejection of invention patent application after publication

Application publication date: 20201204