Gate control method, device, equipment and storage medium

By acquiring images of the area around the turnstile and determining the moving speed of the target object, the problem of low security at turnstiles is solved. This allows the turnstile to be closed in advance if the target object fails to pass authentication, preventing rapid passage and improving security and accuracy.

CN122116516APending Publication Date: 2026-05-29ZHEJIANG UNIVIEW TECH CO LTD

Patent Information

Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
ZHEJIANG UNIVIEW TECH CO LTD
Filing Date
2024-11-29
Publication Date
2026-05-29

AI Technical Summary

Technical Problem

In existing turnstile control methods, unauthorized pedestrians may pass through quickly before the gate closes, resulting in low passage security.

Method used

By acquiring at least two frames of images, the moving speed of the target object is determined, and the gate is controlled to close when its moving speed is greater than a preset speed and the authentication fails. In particular, the gate is closed in advance when the target object moves to the first area outside the pedestrian sensing area of ​​the gate.

Benefits of technology

It effectively prevents target objects from quickly passing through the gate, improves the safety and accuracy of gate passage, and reduces the risk of gate malfunction due to identification errors.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN122116516A_ABST
    Figure CN122116516A_ABST
Patent Text Reader

Abstract

The application provides a gate control method, device, equipment and storage medium, the method comprises the following steps: acquiring at least two images; in the case that the target object is included in the at least two images, determining the moving speed of the target object; in the case that the moving speed of the target object is greater than a preset speed, and the target object moves to a first area outside a pedestrian sensing area of the gate, in the case that the identity authentication of the target object fails, controlling the gate to be closed, the first area and the pedestrian sensing area are located on the same side of the gate. The application can improve the safety of the gate passing.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] This invention relates to the field of gate control technology, and in particular to a gate control method, device, equipment and storage medium. Background Technology

[0002] Pedestrian turnstiles are frequently used in locations requiring secure access control, such as office buildings, residential communities, and train stations. These are mechanical barriers that allow authorized personnel to pass through. To improve pedestrian flow efficiency, the turnstile gates can be set to a normally open state. This allows the gate to remain open when a pedestrian is detected in the sensing area and their identity is verified, and to close when no pedestrian is detected in the sensing area.

[0003] However, with the aforementioned turnstile control methods, there may be instances where unauthorized pedestrians pass through quickly before the gate closes, resulting in low security for turnstile passage. Summary of the Invention

[0004] This invention provides a gate control method, device, equipment, and storage medium to address the shortcomings of low security in gate passage in the prior art and to improve the security of gate passage.

[0005] This invention provides a gate control method, comprising: Acquire at least two frames of images; If the target object is included in both of the at least two frames of images, determine the moving speed of the target object; When the target object moves at a speed greater than a preset speed and moves to a first area outside the pedestrian sensing area of ​​the gate, the gate is controlled to close if the target object's identity verification fails. The first area and the pedestrian sensing area are located on the same side of the gate.

[0006] According to the gate control method provided by the present invention, the number of target objects is at least two; When the target object's moving speed is greater than a preset speed and the target object moves to a first area outside the pedestrian sensing area of ​​the gate, and the target object's authentication fails, controlling the gate to close includes: Based on the moving speed of each of the target objects, predict the first target object among all the target objects that needs to pass through the gate; If the first target object's moving speed is greater than the preset speed, and the first target object moves into the first area, but the authentication of the first target object fails, the gate is controlled to close.

[0007] According to a gate control method provided by the present invention, the step of predicting the first target object that needs to pass through the gate among all the target objects based on the moving speed of each target object includes: For each target object, based on the distance between the pedestrian sensing area and the first area, the moving speed of the target object, and the current time, the target time when the target object moves to the pedestrian sensing area is predicted; The target object corresponding to the minimum target time is determined as the first target object.

[0008] According to a gate control method provided by the present invention, determining the moving speed of the target object includes: If it is determined that the target object is located in the second region based on the at least two frames of images, the target information of the target object in each frame of the image is determined, and the target information includes the position of the target object and / or the pixel ratio of the target object; the first region is located between the second region and the pedestrian sensing area; The moving speed of the target object is determined based on the position of the target object in each frame of the image and / or the pixel ratio of the target object.

[0009] According to a gate control method provided by the present invention, when the moving speed of the target object is greater than a preset speed and the target object moves to a first area outside the pedestrian sensing area of ​​the gate, and the identity verification of the target object fails, the method controls the gate to close, comprising: If the target object moves to the second area and the target object's moving speed is greater than the preset speed, the target object will be authenticated. If the target object fails to authenticate itself during its movement from the second area to the first area, the gate is controlled to close.

[0010] According to a gate control method provided by the present invention, the method further includes: If the identity verification of the target object is successful during the process of the target object moving from the first area to the pedestrian sensing area, the gate is controlled to open.

[0011] According to a gate control method provided by the present invention, the method further includes: When the target object's moving speed is greater than the preset speed and the target object moves to the second region, a facial image of the target object is acquired; If the clarity of the facial image is less than a preset clarity, the gate will be closed.

[0012] The present invention also provides a gate control device, comprising: The acquisition module is used to acquire at least two frames of images; The determining module is configured to determine the moving speed of the target object when the target object is included in both of the at least two frames of images; The control module is configured to control the gate to close when the target object's moving speed is greater than a preset speed and the target object moves to a first area outside the pedestrian sensing area of ​​the gate, provided that the target object's identity verification fails. The first area and the pedestrian sensing area are located on the same side of the gate.

[0013] The present invention also provides an electronic device, including a memory, a processor, and a computer program stored in the memory and executable on the processor, wherein the processor executes the computer program to implement the gate control method as described above.

[0014] The present invention also provides a computer-readable storage medium having a computer program stored thereon, which, when executed by a processor, implements the gate control method as described above.

[0015] The present invention also provides a computer program product, including a computer program that, when executed by a processor, implements the gate control method as described above.

[0016] The turnstile control method, apparatus, device, and storage medium provided by this invention acquire at least two frames of images, and if the target object is included in both frames, determine the moving speed of the target object. When the moving speed of the target object is greater than a preset speed and the target object moves to a first area outside the pedestrian sensing area of ​​the turnstile, the turnstile is controlled to close if the target object's authentication fails. The first area and the pedestrian sensing area are located on the same side of the turnstile. Because the moving speed of the target object is determined to be relatively fast, and the target object's authentication still fails when it moves to the first area, the turnstile can be controlled to close in advance while the target object is in the first area, without waiting for the target object to move to the pedestrian sensing area. This prevents the target object from quickly passing through the turnstile, improving the security of the turnstile passage. Attached Figure Description

[0017] To more clearly illustrate the technical solutions in this invention or the prior art, the drawings used in the description of the embodiments or the prior art will be briefly introduced below. Obviously, the drawings described below are some embodiments of this invention. For those skilled in the art, other drawings can be obtained from these drawings without creative effort.

[0018] Figure 1 This is a schematic diagram of a gate control system provided in an embodiment of the present invention.

[0019] Figure 2 This is a flowchart illustrating the gate control method provided in an embodiment of the present invention.

[0020] Figure 3 This is a schematic diagram of a gate passage scenario provided in an embodiment of the present invention.

[0021] Figure 4 This is a schematic diagram of the gate control device provided in an embodiment of the present invention.

[0022] Figure 5 This is a schematic diagram of the physical structure of an electronic device provided in an embodiment of the present invention. Detailed Implementation

[0023] To make the objectives, technical solutions, and advantages of this invention clearer, the technical solutions of this invention will be clearly and completely described below with reference to the accompanying drawings. Obviously, the described embodiments are only some, not all, of the embodiments of this invention. All other embodiments obtained by those skilled in the art based on the embodiments of this invention without creative effort are within the scope of protection of this invention.

[0024] Currently, turnstiles primarily use facial recognition or card recognition to identify pedestrians and determine whether passage is permitted. For turnstiles that are always open, when a pedestrian is detected entering the sensing area and their identity verification is successful, the gate remains open; if verification fails, the gate closes. However, this method carries the risk of unverified pedestrians quickly passing through before the gate closes, resulting in relatively low security for turnstile access.

[0025] In view of the above problems, this invention proposes a gate control method. In this method, the moving speed of the target object to pass through the gate can be obtained. When the moving speed of the target object is greater than a preset speed and the target object has moved to the first area outside the pedestrian sensing area of ​​the gate, and the identity verification of the target object is still not passed, the gate can be controlled to close in advance, instead of waiting for the target object to move to the pedestrian sensing area closer to the gate. Therefore, it can be ensured that the gate is closed before the target object passes through the gate, preventing the target object from running the gate and improving the security of gate passage.

[0026] Figure 1 This is a schematic diagram of the gate control system provided in an embodiment of the present invention, as shown below. Figure 1As shown, taking identity verification via facial recognition as an example, the gate control system includes a gate body, an image acquisition module, an image processing module, a facial recognition module, a control module, and a drive module. The image acquisition module, image processing module, facial recognition module, control module, and drive module are all located on the gate body. The image acquisition module acquires image information of the target object requiring passage; the image processing module processes relevant image information; the facial recognition module identifies the target object's identity information; and the control module is connected to the facial recognition module, image processing module, and drive module, respectively, to receive information sent by the facial recognition module and image processing module, and to control the operation of the drive module based on the received information. The drive module drives the gate arm or gate of the gate body to open or close.

[0027] Furthermore, the image acquisition module includes a camera or other monitoring equipment for acquiring image information of the target object. The image processing module includes an image processor for processing the image information acquired by the camera, such as determining the position and proportion of the target object in the image, and determining whether the target object is currently within the first area or the pedestrian sensing area based on the image information, and sending the determined information to the control module.

[0028] The control module includes a microprocessor and a memory. The microprocessor is used to receive information sent by the face recognition module and the image processing module, and to control the operation of the drive module according to the received information. The memory is used to store the identity information and image information of the target object.

[0029] The drive module includes a motor and a transmission mechanism. The motor drives the transmission mechanism to open or close the gate arm or gate of the gate body.

[0030] In addition, the gate control system may also include an alarm module, which is connected to the control module and is used to issue an alarm signal when it is determined that a target object has attempted to break through the gate.

[0031] The gate control system may also include a display module, which is connected to the control module and is used to display the identity information and image information of the target object.

[0032] The following is combined with Figure 2 and Figure 3The gate control method provided in this embodiment of the invention is described below. This invention can be applied to any scenario requiring pedestrian identity verification before passage, such as rail transit, office buildings, communities, factories, or tourist attractions. The gate involved in this embodiment is a gate in a normally open state. The executing entity of this method can be an electronic device such as a gate, terminal equipment, server, server cluster, or specially designed gate control equipment, or a gate control device installed in such electronic equipment. This gate control device can be implemented through software, hardware, or a combination of both.

[0033] Figure 2 This is a flowchart illustrating the gate control method provided in an embodiment of the present invention, as shown below. Figure 2 As shown, the method includes: Step 201: Acquire at least two frames of images.

[0034] In this step, the image acquisition module can periodically acquire images to obtain at least two frames.

[0035] Step 202: If the target object is included in at least two frames, determine the moving speed of the target object.

[0036] In this step, the image processing module can identify the captured images to determine whether they contain a target object. If the target object is present in at least two frames, it indicates that the target object intends to pass through the gate and has entered the image acquisition range of the image acquisition module. To prevent the target object from rapidly rushing through the gate, its movement speed can be determined.

[0037] In one implementation, the moving speed of the target object can be detected by a radar installed on the gate itself. In another implementation, the moving speed can be determined by analyzing the position of the target object in each frame of the image and by considering changes in position and the time of image acquisition. In yet another implementation, the moving speed can be determined by analyzing the proportion of the target object in each frame of the image and by measuring changes in that proportion.

[0038] Step 203: When the target object's moving speed is greater than the preset speed and the target object moves to the first area outside the pedestrian sensing area of ​​the gate, if the target object's identity verification fails, control the gate to close. The first area and the pedestrian sensing area are located on the same side of the gate.

[0039] In this step, the preset speed can be set according to the actual situation or experience. Setting the preset speed can prevent the gate from being miscontrolled when the normal movement speed of the target object is identified as a risk of breaking through the gate.

[0040] Figure 3 This is a schematic diagram of a turnstile passage scenario provided in an embodiment of the present invention, such as... Figure 3 As shown, the pedestrian sensing zone is the area located at the entrance of the turnstile, which is the area that the target object needs to pass through before entering the turnstile. In this embodiment, the area where C is located is taken as the pedestrian sensing zone. The first area can be understood as the area outside the turnstile, which is adjacent to the pedestrian sensing zone and located on the same side of the turnstile. In this embodiment, the area where B is located is taken as the first area. It should be understood that the distance from the first area to the gate arm or gate of the turnstile is greater than the distance from the pedestrian sensing zone to the gate arm or gate of the turnstile.

[0041] It should be understood that when facial recognition is used for identity verification, as the target object approaches the gate, if the captured image contains the target object, the facial recognition module will identify the target object's face for identity verification. Before the target object moves to the first area B, regardless of whether the target object's moving speed exceeds a preset speed, the gate will remain open as long as the target object's identity verification is successful.

[0042] If the target's identity verification fails before they move to the first area B, facial recognition will continue. Once it is determined that the target has moved to the first area B and their movement speed exceeds a preset speed, if the target's identity verification still fails, the gate will close. Since the target has not yet moved into the pedestrian sensing area, this prevents the target from quickly rushing through the gate due to excessive movement speed.

[0043] It should be noted that when a target moves to the first area B and fails identity verification, but the target's moving speed is less than or equal to a preset speed, the gate will not close. Instead, facial recognition will continue as the target moves from area B to pedestrian sensing area C. Only if identity verification fails after the target reaches pedestrian sensing area C will the gate close. Because the target's moving speed is relatively slow, even if gate control is initiated after the target reaches pedestrian sensing area C, the gate can still close before the target passes through, preventing unauthorized entry. Once the target reaches pedestrian sensing area C and identity verification is successful, the gate will remain open.

[0044] The turnstile control method provided in this invention acquires at least two frames of images, and if the target object is included in both frames, determines the target object's moving speed. When the target object's moving speed is greater than a preset speed and the target object moves to a first area outside the pedestrian sensing area of ​​the turnstile, the turnstile is controlled to close if the target object's authentication fails. The first area and the pedestrian sensing area are located on the same side of the turnstile. Because the moving speed of the target object is determined to be relatively fast, and the target object's authentication still fails when it moves to the first area, the turnstile can be controlled to close in advance while the target object is still in the first area, without waiting for the target object to move to the pedestrian sensing area. This prevents the target object from quickly passing through the turnstile, improving the security of the turnstile passage.

[0045] For example, based on the above embodiments, when the number of target objects is at least two, if the moving speed of the target object is greater than a preset speed and the target object moves to the first area outside the pedestrian sensing area of ​​the gate, and the gate is closed if the identity verification of the target object fails, this can be achieved in the following way: Based on the movement speed of each target object, predict the first target object that needs to pass through the gate. If the movement speed of the first target object is greater than the preset speed and the first target object moves to the first area, and the authentication of the first target object fails, control the gate to close.

[0046] Specifically, when there are at least two target objects that need to pass through the gate, the time when each of the currently captured target objects arrives at the pedestrian sensing area can be predicted, and the first target object that needs to pass through the gate can be determined based on the time corresponding to each target object.

[0047] If the first target object moves faster than the preset speed and has already moved to the first area, the gate will be closed if the first target object fails to pass authentication.

[0048] The following example illustrates the situation with two target objects, α and β. Assume that target object α moves at a speed of X m / s and target object β moves at a speed of Y m / s. Before target objects α and β reach the first area B, target object α is in front of target object β, meaning target object α is closer to the turnstile.

[0049] If the predicted arrival time of target object α at pedestrian sensing zone C is T1, and the predicted arrival time of target object β at pedestrian sensing zone C is T2, if T2 is less than T1, it means that target object β is expected to arrive at pedestrian sensing zone C before target object α, and is the first target object to pass through the gate. At this time, when target object β moves to the first area B, its moving speed Y m / s is greater than the preset speed, and its identity verification fails, the gate will be closed regardless of whether target object α's moving speed X m / s is greater than the preset speed or whether target object α's identity verification is successful, to prevent target object β from attempting to pass through the gate.

[0050] If T2 is greater than T1, it means that target object α arrives at pedestrian sensing area C first and is the first target object to pass through the gate. At this time, when target object α moves to the first area B, its moving speed X m / s is greater than the preset speed, and its identity verification fails, the gate will be closed regardless of whether the moving speed Y m / s of target object β is greater than the preset speed or whether the identity verification of target object β is successful, in order to prevent target object α from breaking through the gate.

[0051] When the first target object that needs to pass through the gate moves at a speed less than the preset speed, the gate will remain open until the target object moves to the pedestrian sensing area C and its identity verification still fails, at which point the gate will be closed.

[0052] In this embodiment, when there are at least two target objects, the first target object that needs to pass through the gate can be predicted based on the movement speed of each target object. When the first target object moves to the first area, moves at a speed greater than a preset speed, and fails to pass the identity verification of the first target object, the gate will be controlled to close. In this way, when there are at least two target objects that need to pass through the gate, it can prevent any target object from breaking through the gate, thereby further improving the security of gate passage.

[0053] For example, based on the above embodiments, when predicting the first target object that needs to pass through the gate among all target objects based on the moving speed of each target object, it can be that for each target object, based on the distance between the pedestrian sensing area and the first area, the moving speed of the target object and the current time, the target time when the target object moves to the pedestrian sensing area is predicted, and the target object corresponding to the minimum target time is determined as the first target object.

[0054] Specifically, let's continue with the example of two target objects α and β. Assuming that the moving speed of target object α is X m / s and the moving speed of target object β is Y m / s, the target time T1 when target object α moves to the pedestrian sensing area can be determined by T1 = current time + (CB) / X, and the target time T2 when target object β moves to the pedestrian sensing area can be determined by T2 = current time + (CB) / Y, where CB represents the distance between pedestrian sensing area C and the first area B.

[0055] If T1 is less than T2, it means that the target object α arrives at the pedestrian sensing area C first, that is, the target object α is the first target object that needs to pass through the gate. If T1 is greater than T2, it means that the target object β arrives at the pedestrian sensing area C first, that is, the target object β is the first target object that needs to pass through the gate.

[0056] In this embodiment, by predicting the target time when each target object moves to the pedestrian sensing area, and determining the target object corresponding to the minimum target time as the first target object that needs to pass through the gate, the efficiency and accuracy of determining the first target object can be improved.

[0057] For example, based on the above embodiments, when determining the moving speed of the target object, it may be that, after determining that the target object is located in the second region based on at least two frames of images, the target information of the target object in each frame of images is determined. The target information includes the position of the target object and / or the pixel ratio of the target object. The first region is located between the second region and the pedestrian sensing area, and the moving speed of the target object is determined based on the position of the target object and / or the pixel ratio of the target object in each frame of images.

[0058] Specifically, continue to refer to Figure 3 As shown, the second region is denoted by A. This second region A is adjacent to the first region B, meaning that the first region B is located between the second region A and the pedestrian sensing area C. The first region B, the second region A, and the pedestrian sensing area C can be identified through analysis and recognition of the acquired images.

[0059] When, based on at least two captured image frames, it is determined that the target object has moved to the second region A, it indicates that the target object is relatively close to the gate. Therefore, it is necessary to determine the target object's moving speed. Since the time interval between image acquisitions is fixed, the target object's position and / or pixel percentage in the image will differ depending on its moving speed. For example, the faster the moving speed, the closer the target object will be to the image acquisition module or the gate in the image captured at the same time, or the larger its pixel percentage will be. Based on this, by determining the target object's position and / or pixel percentage in each image frame, and analyzing the changes in the target object's position and / or pixel percentage across different image frames, the target object's moving speed can be determined.

[0060] In this embodiment, the target object's movement speed is determined as soon as it is located in the second region. By determining the target object's movement speed in advance, it is possible to effectively prevent the target object from running away with the gate. Furthermore, by determining the target object's position and / or pixel percentage in each frame of the image, and then determining the target object's movement speed based on that position and / or pixel percentage, this method eliminates the need for additional speed sensors, thus reducing costs.

[0061] For example, based on the above embodiments, in order to further improve passage efficiency, the identity of the target object that needs to pass can be verified in advance. Therefore, when the target object's moving speed is greater than a preset speed and the target object moves to the first area outside the pedestrian sensing area of ​​the gate, if the target object's identity verification fails, the gate can be closed when the target object moves to the second area and the target object's moving speed is greater than the preset speed. If the target object's identity verification continues to fail during the process of moving from the second area to the first area, the gate can be closed.

[0062] Specifically, continue to refer to Figure 3As shown, when a target object moves to the second area A and its moving speed is determined to be greater than the preset speed, it indicates that the target object is moving relatively fast and is relatively close to the gate. To ensure that the target object can pass through the gate smoothly without attempting to force its way through, identity verification is required. For example, in a scenario where identity verification is performed using facial recognition, when the target object moves to the second area A, its facial image will be acquired, and facial recognition will be performed based on the acquired image to determine whether the target object's identity is legitimate. If the target object's identity verification is successful in the second area A, and no other target object surpasses it during its movement from the second area A to the pedestrian sensing area C, the gate will remain open.

[0063] If the target's authentication fails in Zone A, authentication will continue as the target moves from Zone A to Zone B. If authentication succeeds during movement to Zone B, the gate will remain open. If authentication fails repeatedly during movement to Zone B, the gate will close to prevent the target from attempting to pass through.

[0064] In this embodiment, when the target object moves to the second area at a relatively high speed, the identity verification operation for the target object is initiated. This ensures that the target object can pass through the gate smoothly if its identity is valid, improving the efficiency of gate passage. If the target object's identity is invalid, the gate can be closed promptly to prevent unauthorized entry. Furthermore, if the target object's identity verification fails, identity verification will continue as it moves from the second area to the first area. Only if verification fails repeatedly will the gate be closed. This prevents the gate from closing accidentally due to identification errors, improving the accuracy of identity verification and further enhancing the accuracy of gate control.

[0065] For example, based on the above embodiments, if the identity verification of the target object is successful during the process of the target object moving from the first area to the pedestrian sensing area, the gate is controlled to open.

[0066] Specifically, if a target fails to authenticate upon reaching the first area B, the gate will close. To prevent misidentification due to facial recognition errors caused by excessive speed or distance, identity verification will continue as the target moves from area B to the pedestrian sensing area C. If authentication is successful before reaching area C, the gate will reopen. If authentication fails before reaching area C, the gate will remain closed until the next target successfully authenticates.

[0067] In this embodiment, if the identity verification fails before the target object moves to the first area, identity verification will continue during its movement from the first area to the pedestrian sensing area. This can eliminate the phenomenon of misidentification caused by the target object moving too fast or too far away, thus improving the accuracy of passage.

[0068] For example, based on the above embodiments, when the target object moves at a speed greater than a preset speed and moves to the second area, a face image of the target object is acquired, and when the clarity of the face image is less than a preset clarity, the gate is controlled to close.

[0069] Specifically, when a target moves to the second area and its movement speed exceeds a preset speed, a facial image of the target will be captured, and identity verification will be performed based on the facial image. If, during the identity verification process, it is determined that the clarity of the facial image is less than the preset clarity, it indicates that the target's movement speed may be very fast, resulting in a blurry image. Therefore, to prevent the target from quickly passing through the gate, the gate will be closed, thereby further improving the security of gate passage.

[0070] When it is determined that a target has violated the gate's rules, the alarm module will issue an alarm signal to alert management personnel to take timely action. Additionally, the display module can be controlled to show the target's identity information and image information for management personnel to verify and handle the situation.

[0071] The gate control device provided by the present invention is described below. The gate control device described below and the gate control method described above can be referred to in correspondence.

[0072] Figure 4 This is a schematic diagram of the gate control device provided in an embodiment of the present invention, with reference to... Figure 4 As shown, the gate control device 400 includes: Acquisition module 11 is used to acquire at least two frames of images; The determining module 12 is used to determine the moving speed of the target object when the target object is included in both of the at least two frames of images; The control module 13 is used to control the gate to close when the target object's moving speed is greater than a preset speed and the target object moves to a first area outside the pedestrian sensing area of ​​the gate, provided that the target object's identity verification fails. The first area and the pedestrian sensing area are located on the same side of the gate.

[0073] In one example embodiment, the number of target objects is at least two; Control module 13 is specifically used for: Based on the moving speed of each of the target objects, predict the first target object among all the target objects that needs to pass through the gate; If the first target object's moving speed is greater than the preset speed, and the first target object moves into the first area, but the authentication of the first target object fails, the gate is controlled to close.

[0074] In one example embodiment, the control module 13 is specifically used for: For each target object, based on the distance between the pedestrian sensing area and the first area, the moving speed of the target object, and the current time, the target time when the target object moves to the pedestrian sensing area is predicted; The target object corresponding to the minimum target time is determined as the first target object.

[0075] In one example embodiment, the determining module 12 is specifically used for: If it is determined that the target object is located in the second region based on the at least two frames of images, the target information of the target object in each frame of the image is determined, and the target information includes the position of the target object and / or the pixel ratio of the target object; the first region is located between the second region and the pedestrian sensing area; The moving speed of the target object is determined based on the position of the target object in each frame of the image and / or the pixel ratio of the target object.

[0076] In one example embodiment, the control module 13 is specifically used for: If the target object moves to the second area and the target object's moving speed is greater than the preset speed, the target object will be authenticated. If the target object fails to authenticate itself during its movement from the second area to the first area, the gate is controlled to close.

[0077] In one example embodiment, the control module 13 is further configured to control the gate to open when the target object passes authentication during the process of the target object moving from the first area to the pedestrian sensing area.

[0078] In one example embodiment, the acquisition module 11 is further configured to acquire a face image of the target object when the moving speed of the target object is greater than the preset speed and the target object moves to the second area; The control module 13 is also used to control the gate to close when the clarity of the face image is less than a preset clarity.

[0079] The apparatus of this embodiment can be used to execute the method of any embodiment in the gate control method side embodiment. Its specific implementation process and technical effects are similar to those in the gate control method side embodiment. For details, please refer to the detailed description in the gate control method side embodiment, which will not be repeated here.

[0080] Figure 5 This is a schematic diagram of the physical structure of an electronic device provided in an embodiment of the present invention, such as... Figure 5 As shown, the electronic device may include a processor 510, a communications interface 520, a memory 530, and a communication bus 540, wherein the processor 510, communications interface 520, and memory 530 communicate with each other via the communication bus 540. The processor 510 can call logical instructions in the memory 530 to execute a gate control method, which includes: acquiring at least two frames of images; determining the moving speed of the target object if both of the at least two frames of images include the target object; and controlling the gate to close if the target object's moving speed is greater than a preset speed and the target object moves to a first area outside the pedestrian sensing area of ​​the gate, provided that the target object's authentication has failed. The first area and the pedestrian sensing area are located on the same side of the gate.

[0081] Furthermore, the logical instructions in the aforementioned memory 530 can be implemented as software functional units and, when sold or used as independent products, can be stored in a computer-readable storage medium. Based on this understanding, the technical solution of the present invention, or the part that contributes to the prior art, or a part of the technical solution, can be embodied in the form of a software product. This computer software product is stored in a storage medium and includes several instructions to cause a computer device (which may be a personal computer, server, or network device, etc.) to execute all or part of the steps of the methods described in the various embodiments of the present invention. The aforementioned storage medium includes various media capable of storing program code, such as USB flash drives, portable hard drives, read-only memory (ROM), random access memory (RAM), magnetic disks, or optical disks.

[0082] On the other hand, the present invention also provides a computer program product, which includes a computer program that can be stored on a non-transitory computer-readable storage medium. When the computer program is executed by a processor, the computer can execute the gate control method provided by the above methods. The method includes: acquiring at least two frames of images; determining the moving speed of the target object when both of the at least two frames of images include the target object; and controlling the gate to close when the moving speed of the target object is greater than a preset speed and the target object moves to a first area outside the pedestrian sensing area of ​​the gate, provided that the identity verification of the target object has failed. The first area and the pedestrian sensing area are located on the same side of the gate.

[0083] In another aspect, the present invention also provides a non-transitory computer-readable storage medium storing a computer program thereon, which, when executed by a processor, implements the gate control method provided by the above methods, the method comprising: acquiring at least two frames of images; determining the moving speed of the target object when both of the at least two frames of images include a target object; and controlling the gate to close when the moving speed of the target object is greater than a preset speed and the target object moves to a first area outside the pedestrian sensing area of ​​the gate, provided that the identity verification of the target object has failed, wherein the first area and the pedestrian sensing area are located on the same side of the gate.

[0084] The device embodiments described above are merely illustrative. The units described as separate components may or may not be physically separate. The components shown as units may or may not be physical units; that is, they may be located in one place or distributed across multiple network units. Some or all of the modules can be selected to achieve the purpose of this embodiment according to actual needs. Those skilled in the art can understand and implement this without any creative effort.

[0085] Through the above description of the embodiments, those skilled in the art can clearly understand that each embodiment can be implemented by means of software plus necessary general-purpose hardware platforms, and of course, it can also be implemented by hardware. Based on this understanding, the above technical solutions, in essence or the part that contributes to the prior art, can be embodied in the form of a software product. This computer software product can be stored in a computer-readable storage medium, such as ROM / RAM, magnetic disk, optical disk, etc., and includes several instructions to cause a computer device (which may be a personal computer, server, or network device, etc.) to execute the methods described in the various embodiments or some parts of the embodiments.

[0086] Finally, it should be noted that the above embodiments are only used to illustrate the technical solutions of the present invention, and not to limit them; although the present invention has been described in detail with reference to the foregoing embodiments, those skilled in the art should understand that modifications can still be made to the technical solutions described in the foregoing embodiments, or equivalent substitutions can be made to some of the technical features; and these modifications or substitutions do not cause the essence of the corresponding technical solutions to deviate from the spirit and scope of the technical solutions of the embodiments of the present invention.

Claims

1. A gate control method, characterized in that, include: Acquire at least two frames of images; If the target object is included in both of the at least two frames of images, determine the moving speed of the target object; When the target object moves at a speed greater than a preset speed and moves to a first area outside the pedestrian sensing area of ​​the gate, the gate is controlled to close if the target object's identity verification fails. The first area and the pedestrian sensing area are located on the same side of the gate.

2. The gate control method according to claim 1, characterized in that, The number of target objects is at least two; When the target object's moving speed is greater than a preset speed and the target object moves to a first area outside the pedestrian sensing area of ​​the gate, controlling the gate to close if the target object's authentication fails includes: Based on the moving speed of each of the target objects, predict the first target object among all the target objects that needs to pass through the gate; If the first target object's moving speed is greater than the preset speed, and the first target object moves into the first area, and the authentication of the first target object fails, the gate is controlled to close.

3. The gate control method according to claim 2, characterized in that, The step of predicting the first target object that needs to pass through the gate among all the target objects based on the moving speed of each target object includes: For each of the target objects, based on the distance between the pedestrian sensing area and the first area, the moving speed of the target object, and the current time, the target time when the target object moves to the pedestrian sensing area is predicted; The target object corresponding to the minimum target time is determined as the first target object.

4. The gate control method according to any one of claims 1-3, characterized in that, Determining the moving speed of the target object includes: If it is determined that the target object is located in the second region based on the at least two frames of images, the target information of the target object in each frame of the image is determined, and the target information includes the position of the target object and / or the pixel ratio of the target object; the first region is located between the second region and the pedestrian sensing area; The moving speed of the target object is determined based on the position of the target object in each frame of the image and / or the pixel ratio of the target object.

5. The gate control method according to claim 4, characterized in that, When the target object's moving speed is greater than a preset speed and the target object moves to a first area outside the pedestrian sensing area of ​​the gate, controlling the gate to close if the target object's authentication fails includes: If the target object moves to the second area and the target object's moving speed is greater than the preset speed, the target object will be authenticated. If the target object fails to authenticate itself during its movement from the second area to the first area, the gate is controlled to close.

6. The gate control method according to claim 5, characterized in that, The method further includes: If the identity verification of the target object is successful during the process of the target object moving from the first area to the pedestrian sensing area, the gate is controlled to open.

7. The gate control method according to claim 5 or 6, characterized in that, The method further includes: When the target object's moving speed is greater than the preset speed and the target object moves to the second area, a facial image of the target object is acquired. If the clarity of the facial image is less than a preset clarity, the gate will be closed.

8. A gate control device, characterized in that, include: The acquisition module is used to acquire at least two frames of images; The determining module is configured to determine the moving speed of the target object when the target object is included in both of the at least two frames of images; The control module is configured to control the gate to close when the target object's moving speed is greater than a preset speed and the target object moves to a first area outside the pedestrian sensing area of ​​the gate, provided that the target object's identity verification fails. The first area and the pedestrian sensing area are located on the same side of the gate.

9. An electronic device comprising a memory, a processor, and a computer program stored in the memory and executable on the processor, characterized in that, When the processor executes the computer program, it implements the gate control method as described in any one of claims 1 to 7.

10. A computer-readable storage medium having a computer program stored thereon, characterized in that, When the computer program is executed by the processor, it implements the gate control method as described in any one of claims 1 to 7.