CN114973468A - Gate control method, device, equipment and storage medium - Google Patents

Gate control method, device, equipment and storage medium Download PDF

Info

Publication number
CN114973468A
CN114973468A CN202210561646.1A CN202210561646A CN114973468A CN 114973468 A CN114973468 A CN 114973468A CN 202210561646 A CN202210561646 A CN 202210561646A CN 114973468 A CN114973468 A CN 114973468A
Authority
CN
China
Prior art keywords
target
determining
gate
moving speed
distance
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
CN202210561646.1A
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.)
Beijing SoundAI Technology Co Ltd
Original Assignee
Beijing SoundAI 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 Beijing SoundAI Technology Co Ltd filed Critical Beijing SoundAI Technology Co Ltd
Priority to CN202210561646.1A priority Critical patent/CN114973468A/en
Publication of CN114973468A publication Critical patent/CN114973468A/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/10Movable barriers with registering means
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06VIMAGE OR VIDEO RECOGNITION OR UNDERSTANDING
    • G06V20/00Scenes; Scene-specific elements
    • G06V20/50Context or environment of the image
    • G06V20/52Surveillance or monitoring of activities, e.g. for recognising suspicious objects
    • G06V20/53Recognition of crowd images, e.g. recognition of crowd congestion

Landscapes

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

Abstract

The invention provides a gate control method, a gate control device, gate control equipment and a storage medium. The method comprises the following steps: acquiring a target video acquired at an entrance of a gate channel; determining the moving speed of a target user based on the target video; determining the opening time period of the gate according to the moving speed, the first preset distance and the second preset distance; the first preset distance is the distance between the entrance of the gate channel and the gate, the second preset distance is the channel length of the gate channel, and the gate is arranged between the entrance of the gate channel and the entrance of the gate channel. According to the embodiment of the invention, the opening time period of the gate is flexibly set according to the moving speed of the target user, and the opening time period of the gate is adjusted through the method, so that the probability of pedestrians passing through the gate is improved, and the passing efficiency of the gate is improved.

Description

Gate control method, device, equipment and storage medium
Technical Field
The invention relates to the technical field of security protection, in particular to a gate control method, a gate control device, gate control equipment and a storage medium.
Background
At present, the entrance of most public places is provided with the passageway floodgate machine, and when the pedestrian passed through the floodgate machine, the floodgate machine was through verification modes such as punching the card, fingerprint, people's face verification pedestrian's identity, opened the floodgate door after verifying the passing through to the pedestrian passes through.
After the verification is passed, the opening time of the gate is set to be a fixed preset time, however, the pedestrian does not necessarily pass through the gate within the preset time, in this case, the identity of the pedestrian needs to be verified again, which reduces the passing efficiency of the gate. In addition, the gate may also trap pedestrians, creating a safety hazard.
Disclosure of Invention
The embodiment of the invention aims to provide a gate control method, a gate control device, gate control equipment and a storage medium, and solves the technical problem of low passing efficiency of gates. The specific technical scheme is as follows:
in a first aspect of the embodiments of the present invention, there is provided a gate control method, including:
acquiring a target video acquired at an entrance of a gate channel; the video content of the target video comprises a scene that a target user moves from a first position to a second position according to a preset direction;
determining a moving speed of the target user based on the target video;
determining the opening time period of the gate according to the moving speed, the first preset distance and the second preset distance;
wherein, first predetermined distance does floodgate machine passageway entrance with distance between the floodgate door, second predetermined distance does the passageway length of floodgate machine passageway, the floodgate door is located the floodgate machine passageway with between the floodgate machine passageway entrance.
In a second aspect of the embodiments of the present invention, there is also provided a gate control device, including:
the acquisition module is used for acquiring a target video acquired at an entrance of a gate channel; the video content of the target video comprises a scene that a target user moves from a first position to a second position according to a preset direction;
a first determination module, configured to determine a moving speed of the target user based on the target video;
the second determining module is used for determining the opening time period of the gate according to the moving speed, the first preset distance and the second preset distance;
wherein, first predetermined distance does floodgate machine passageway entrance with distance between the floodgate door, second predetermined distance does the passageway length of floodgate machine passageway, the floodgate door is located the floodgate machine passageway with between the floodgate machine passageway entrance.
In a third aspect of the embodiments of the present invention, there is further provided a computer-readable storage medium, having stored therein instructions, which, when run on a computer, cause the computer to execute the gate control method according to any of the above-mentioned embodiments.
In a fourth aspect of the present invention, there is also provided a computer program product containing instructions which, when run on a computer, cause the computer to perform the gate control method according to any one of the above embodiments.
In the embodiment of the invention, a target video collected at an entrance of a gate channel is obtained; determining the moving speed of a target user based on the target video; determining the opening time period of the gate according to the moving speed, the first preset distance and the second preset distance; the first preset distance is the distance between the entrance of the gate channel and the gate door, and the second preset distance is the channel length of the gate channel. According to the embodiment of the invention, the opening time period of the gate is flexibly set according to the moving speed of the target user, and the opening time period of the gate is adjusted through the method, so that the probability of pedestrians passing through the gate is improved, and the passing efficiency of the gate is improved. In addition, the safety accident is avoided by adjusting the opening time of the gate.
Drawings
In order to more clearly illustrate the embodiments of the present invention or the technical solutions in the prior art, the drawings used in the description of the embodiments or the prior art will be briefly described below.
FIG. 1 is a flow chart illustrating a method for controlling a gate according to an embodiment of the present invention;
FIG. 2 is a diagram illustrating an application scenario of the gate control method according to an embodiment of the present invention;
FIG. 3 is a second application scenario of the gate control method according to the embodiment of the present invention;
FIG. 4 is a schematic structural diagram of a gate control device according to an embodiment of the present invention;
fig. 5 is a schematic structural diagram of an electronic device in an embodiment of the present invention.
Detailed Description
The technical solutions in the embodiments of the present invention will be described below with reference to the drawings in the embodiments of the present invention.
In order to make the objects, technical solutions and advantages of the embodiments of the present disclosure more clear, the technical solutions of the embodiments of the present disclosure will be described clearly and completely with reference to the drawings in the embodiments of the present disclosure, and it is obvious that the described embodiments are only a part of the embodiments of the present disclosure, not all of the embodiments. The components of embodiments of the present disclosure, as generally described and illustrated herein, may be arranged and designed in a wide variety of different configurations. Thus, the following detailed description of the embodiments of the present disclosure is not intended to limit the scope of the disclosure, as claimed, but is merely representative of selected embodiments of the disclosure. All other embodiments, which can be derived by a person skilled in the art from the embodiments of the disclosure without making any creative effort, shall fall within the protection scope of the disclosure.
It has been found through research that the opening time period of the gate in most public places is set to a fixed preset time period, however, pedestrians do not necessarily pass through the gate within the preset time period, which reduces the passing efficiency of the gate. In addition, the gate may also trap pedestrians, creating a safety hazard.
The defects existing in the above solutions and the solutions proposed by the present disclosure to the above problems in the following are the results obtained by the inventors after practical and careful study, and therefore, the discovery process of the above problems and the solutions proposed by the present disclosure to the above problems in the following should be the contribution of the inventors to the present disclosure in the process of the present disclosure.
It should be noted that: like reference numbers and letters refer to like items in the following figures, and thus, once an item is defined in one figure, it need not be further defined and explained in subsequent figures.
In order to facilitate understanding of the present embodiment, a detailed description is first provided for a gate control method disclosed in an embodiment of the present disclosure, and an execution subject of the gate control method provided in the embodiment of the present disclosure is a gate control device.
Referring to fig. 1, fig. 1 is a flowchart illustrating a gate control method according to an embodiment of the invention. The gate control method provided by the embodiment of the invention comprises the following steps:
s101, acquiring a target video acquired at an entrance of a gate channel.
The gate control method provided by this embodiment may be applied to a gate control device, where the gate control device includes a gate and a camera, and optionally, the gate control device may be a gate.
Optionally, the camera among the floodgate machine controlling means is installed at floodgate machine passageway entrance, and in this step, can gather the video of floodgate door entrance in real time, or the video of gathering floodgate door entrance during the interval presets.
Optionally, the gate control device includes an identity authentication module, which may be disposed at an entrance of the gate passageway, and the identity authentication module is configured to authenticate an identity of the user, and when the authentication passes, the identity authentication module indicates that the user has authorization to pass through the gate passageway, determines the user as a target user, and obtains a target video collected at the entrance of the gate passageway. The identity verification module may verify the identity of the user by performing face recognition on the user, or verify the identity of the user based on fingerprint information of the user, or verify the identity of the user by other methods, which is not specifically limited herein.
The video content of the target video comprises a scene that a target user moves from a first position to a second position according to a preset direction.
Optionally, the first position may be understood as a position where a preset first reference object is located in a shooting scene corresponding to the target video; the second position may be understood as a position where a second reference object preset in a shooting scene corresponding to the target video is located. The distance between the first position and the entrance of the gate channel is greater than the distance between the second position and the entrance of the gate channel, and the direction of the preset direction is from the first position to the second position.
For easy understanding, please refer to fig. 2, in the scene shown in fig. 2, the first reference object is located at a first position, the second reference object is located at a second position, and the direction indicated by the arrow in fig. 2 is a predetermined direction.
And S102, determining the moving speed of the target user based on the target video.
In this step, after the target video is acquired, the moving speed of the target user may be determined based on the video content included in the target video. Please refer to the following embodiments for specific technical solutions.
S103, determining the opening time period of the gate according to the moving speed, the first preset distance and the second preset distance.
In the gate control apparatus of the present embodiment, the gate is located between the gate passageway and the gate passageway entrance, and for the convenience of understanding, please refer to fig. 2 and 3, D1 in fig. 2 and 3 is used to identify the gate passageway, D2 is used to identify the gate, and the dashed line identified by D3 is used to indicate the gate passageway entrance.
The first preset distance is a distance between the gate passage entrance and the gate door, and the second preset distance is a passage length of the gate passage. In this step, the opening time and the closing time of the gate door can be determined according to the moving speed obtained in the previous step, the first preset distance and the second preset distance, so as to set the opening time period of the gate door. Namely, the opening duration of the gate is adjusted according to the moving speed of the target user.
In the embodiment of the invention, a target video collected at an entrance of a gate channel is obtained; determining the moving speed of a target user based on the target video; further setting the opening time period of the gate according to the moving speed, the first preset distance and the second preset distance; the first preset distance is the distance between the entrance of the gate channel and the gate door, and the second preset distance is the channel length of the gate channel. According to the embodiment of the invention, the opening time period of the gate is flexibly set according to the moving speed of the target user, and the opening time period of the gate is adjusted through the method, so that the probability of pedestrians passing through the gate is improved, and the passing efficiency of the gate is improved. In addition, the safety accident is avoided by adjusting the opening time of the gate.
The following specifically explains how to determine the moving speed of the target user based on the target video:
optionally, the determining the moving speed of the target user based on the target video comprises:
determining, based on the target video, a first duration for the target user to move from the first location to the second location;
and determining the moving speed of the target user according to the first time length and the distance from the first position to the second position.
As described above, the video content of the target video includes a scene in which the target user moves from the first position to the second position according to the preset direction, and then, a duration corresponding to the video scene in which the target user moves from the first position to the second position in the target video is obtained, and the duration is referred to as a first duration.
It should be understood that the first position and the second position are preset, and as described above, the position where the first reference object preset in the shooting scene is located may be referred to as the first position, and the position where the second reference object preset in the shooting scene is located may be referred to as the second position, and then, the distance between the first position and the second position is also preset.
In this embodiment, the moving speed of the target user is determined according to a first duration of the target user moving from the first location to the second location and a distance between the first location and the second location.
For example, if the distance from the first location to the second location is 5 meters and the first time period for the target user to move from the first location to the second location is 5 seconds, the moving speed of the target user may be determined to be 1 meter/second.
Optionally, the determining the moving speed of the target user based on the target video comprises:
for any adjacent position of the first position, the second position and the at least one third position, acquiring a target distance and a target duration between the adjacent positions;
determining a target speed corresponding to the adjacent position based on the target distance and the target duration;
and determining the moving speed based on the target speed, wherein the moving speed is the average value of the target speeds corresponding to the adjacent positions.
In this embodiment, at least one third position is included between the first position and the second position, and the third position may be understood as a position where a third reference object preset in the shooting scene is located.
For ease of understanding, referring to fig. 3, in the scenario shown in fig. 3, a third reference object is included between the first reference object and the second reference object, and the third reference object is located at a third position, so that the first position and the third position can be determined as adjacent positions, and the second position and the third position can be determined as adjacent positions. It will be appreciated that in other scenarios, a plurality of third references may be included between the first reference and the second reference, i.e. a plurality of third locations may be included between the first location and the second location.
And for any adjacent position, acquiring a target distance and a target time length between the adjacent positions, wherein the target time length is a time length corresponding to the target user moving from a former position of the adjacent positions to a latter position of the adjacent positions according to a preset direction. Further, a target speed corresponding to the adjacent position is determined based on the target distance and the target duration, and optionally, a division result between the target distance and the target duration is determined as the target speed corresponding to the adjacent position.
In this embodiment, after the target speeds corresponding to the adjacent positions are obtained, an average value of the target speeds corresponding to the adjacent positions may be determined as the moving speed of the target user.
For ease of understanding, referring to fig. 3, in the scenario shown in fig. 3, the first position and the third position are referred to as a first adjacent position, the target distance between the first position and the third position is 5 meters, and the target time duration is 5 seconds, then the target speed corresponding to the first adjacent position may be determined to be 1 meter/second. And the third position and the second position are called as second adjacent positions, the target distance between the third position and the second position is 3 meters, and the target duration is 1.5 seconds, so that the target speed corresponding to the second adjacent positions can be determined to be 2 meters/second. In this way, the average value of the target speed corresponding to the first adjacent position and the target speed corresponding to the second adjacent position is 1.5 m/s, and is determined as the moving speed of the target user.
In this embodiment, the average value of the target speeds corresponding to each adjacent position of the target user is determined as the moving speed of the target user, so as to obtain a more accurate moving speed, and further, in the setting process of the subsequent gate opening time period, the gate opening duration is more accurately adjusted.
Optionally, the target video, determining the moving speed of the target user includes:
determining, based on the target video, a first length of time that the target user moved from the first location to the fourth location;
obtaining a first distance between the first position and the fourth position;
and determining the moving speed of the target user according to the first time length and the first distance.
In this embodiment, at least one fourth position is included between the first position and the second position, and the fourth position may be understood as a position where a preset reference object is located in the shooting scene.
For example, in the scenario shown in fig. 3, a third reference object is included between the first reference object and the second reference object, and the position of the third reference object may be determined as the fourth position.
In this embodiment, the fourth position is located between the first position and the second position, and the target user must pass through the fourth position in the process that the target user moves from the first position to the second position. In this way, the duration and distance that the target user moves from the first location to the fourth location, also referred to as the second duration, and the distance, also referred to as the first distance, may be obtained. Further, the moving speed of the target user is determined based on the division result between the first distance and the second time length.
For example, if the distance between the first location and the fourth location is 6 meters and the length of time for the target user to move from the first location to the fourth location is 3 seconds, the moving speed of the target user may be determined to be 2 meters/second.
In this embodiment, in the case that the fourth location is included between the first location and the second location, the moving speed of the target user may be determined only according to the duration and the distance between the first location and the fourth location, so that the calculation steps in the process of determining the moving speed of the target user are reduced, and thus the moving speed of the target user may be determined quickly based on the target video.
Further, in the case where a fourth position is included between the first position and the second position, when the moving speed of the target user is determined based on the target video, a length of time for which the target user moves from the fourth position to the second position may also be determined based on the target video; acquiring the distance between the fourth position and the second position; and determining the moving speed of the target user according to the duration and the distance.
For example, if the distance between the fourth location and the second location is 4 meters and the time period for the target user to move from the fourth location to the second location is 2 seconds, the moving speed of the target user may be determined to be 2 meters/second.
In this embodiment, in the case that the fourth location is included between the first location and the second location, the moving speed of the target user may be determined only according to the duration and the distance between the fourth location and the second location, so that the calculation steps in the process of determining the moving speed of the target user are reduced, and thus the moving speed of the target user may be determined quickly based on the target video.
In this embodiment, the fourth position is located between the first position and the second position, and the target user must pass through the fourth position in the process that the target user moves from the first position to the second position. In this way, the length of time and the distance that the target user moves from the fourth location to the second location can be obtained. Further, the moving speed of the target user is determined based on a division result between a distance between the fourth position and the second position and a time period for the target user to move from the fourth position to the second position.
Optionally, the determining, according to the moving speed, the first preset distance, and the second preset distance, an opening time period of the gate includes:
determining a third time length and a fourth time length according to the moving speed, the first preset distance and the second preset distance;
determining the sum of the target time and the third duration as the starting time;
and determining the sum of the opening time and the fourth duration as the closing time.
In this embodiment, a third time length and a fourth time length may be determined according to the moving speed, the first preset distance and the second preset distance, where the third time length is used to represent a time length that the target user moves from the gate passageway entrance to the gate door, and the fourth time length is used to represent a time length that the target user passes through the gate passageway. Please refer to the following embodiments specifically for how to determine the third duration and the fourth duration.
After the third time length and the fourth time length are determined, adding the target time and the third time length, and determining the sum of the target time and the third time length as the opening time, wherein the target time is the time corresponding to the target user at the entrance of the gate channel; and performing addition operation on the opening time and the fourth time length, and determining the sum of the opening time and the fourth time length as the closing time.
For example, if the target time is 18:00:00 and the third time period is 30 seconds, the opening time of the gate is 18:00: 30. In the case of a fourth time period of 5 seconds, the closing time of the gate is 18:00: 35.
Optionally, the determining the third duration and the fourth duration according to the moving speed, the first preset distance and the second preset distance includes:
determining the third duration based on the first preset distance and the moving speed;
and determining the fourth time length based on the second preset distance and the moving speed.
In this embodiment, a division operation may be performed on the first preset distance and the moving speed to obtain a division result, and the division result is determined as the third duration. And carrying out division operation on the second preset distance and the moving speed to obtain a division result, and determining the division result as a fourth duration.
For example, if the moving speed is 1 m/s and the first preset distance is 5 m, the third duration is determined to be 5 s. In the case where the second preset distance is 3 meters, the fourth duration is determined to be 3 seconds.
Optionally, the determining, according to the moving speed, the first preset distance, and the second preset distance, an opening time period of the gate includes:
determining a third time length according to the moving speed and the first preset distance; the third time length is used for representing the time length of the target user moving from the entrance of the gate passageway to the gate door;
determining the sum of the target time and the third duration as the starting time; the target time is the time corresponding to the target user at the entrance of the gate channel;
determining a fourth time length according to the moving speed and a second preset distance; the fourth time length is used for representing the time length of the target user passing through the gate channel;
determining the sum of the fourth time length and a preset time length as the starting time length; the preset duration is associated with the target user.
As described above, the third duration may be determined according to the moving speed and the first preset distance; and determining a fourth time length according to the moving speed and the second preset distance. In particular, please refer to the above embodiments, and a detailed technical solution of how to determine the third time period and the fourth time period is not described repeatedly herein.
And after the third time length is obtained, determining the sum of the target time and the third time length as the starting time. In this embodiment, a sum of the fourth duration and a preset duration is determined as the on duration, where the preset duration is associated with the target user, so as to set different on durations according to different target users.
In an alternative embodiment, the preset duration is associated with the age of the target user. After the target user is determined, carrying out age identification on the face features corresponding to the target user in the target video to obtain the age of the target user. In this embodiment, a mapping table representing a mapping relationship between an age and a preset time length is preset, and the age of the target user is queried in the mapping table to determine the preset time length.
In another optional embodiment, the preset duration is associated with identity information of the target user. After the target user is determined, face recognition is carried out on the face features corresponding to the target user in the target video, and identity information of the target user is obtained. In this embodiment, a mapping table representing a mapping relationship between the identity information and the preset time length is preset, and the identity information of the target user is queried in the mapping table to determine the preset time length.
As shown in fig. 4, an embodiment of the present invention further provides a gate control device 200, where the gate control device 200 includes:
the acquisition module 201 is used for acquiring a target video acquired at an entrance of a gate channel;
a first determining module 202, configured to determine a moving speed of the target user based on the target video;
and the second determining module 203 is configured to determine an opening time period of the gate according to the moving speed, the first preset distance, and the second preset distance.
Optionally, the first determining module 202 is specifically configured to:
determining, based on the target video, a first length of time that the target user moved from the first location to the second location;
and determining the moving speed of the target user according to the first time length and the distance from the first position to the second position.
Optionally, the first determining module 202 is further specifically configured to:
for any adjacent position of the first position, the second position and the at least one third position, acquiring a target distance and a target duration between the adjacent positions;
determining a target speed corresponding to the adjacent position based on the target distance and the target duration, wherein the target speed is a division result of the target distance and the target duration;
and determining the moving speed based on the target speed, wherein the moving speed is the average value of the target speeds corresponding to the adjacent positions.
Optionally, the first determining module 202 is further specifically configured to:
determining, based on the target video, a second length of time that the target user moved from the first location to the fourth location;
obtaining a first distance between the first position and the fourth position;
and determining the moving speed of the target user according to the second time length and the first distance.
Optionally, the second determining module 203 is specifically configured to:
determining a third time length and a fourth time length according to the moving speed, the first preset distance and the second preset distance;
determining the sum of the target time and the third duration as the starting time;
and determining the sum of the opening time and the fourth time length as the closing time.
Optionally, the second determining module 203 is further specifically configured to:
determining the third duration based on the first preset distance and the moving speed;
and determining the fourth time length based on the second preset distance and the moving speed.
Optionally, the second determining module 203 is further specifically configured to:
determining a third time length according to the moving speed and the first preset distance;
determining the sum of the target time and the third duration as the starting time;
determining a fourth time length according to the moving speed and a second preset distance;
and determining the sum of the fourth time length and a preset time length as the starting time length.
An embodiment of the present invention further provides an electronic device, as shown in fig. 5, including a processor 301, a communication interface 302, a memory 303, and a communication bus 304, where the processor 301, the communication interface 302, and the memory 303 complete mutual communication through the communication bus 304.
The memory 303 is used for storing computer programs;
the processor 301 is configured to obtain a target video collected at an entrance of a gate passageway when the computer program is executed by the processor 301 when the program stored in the memory 303 is executed;
determining a moving speed of the target user based on the target video;
and determining the opening time period of the gate according to the moving speed, the first preset distance and the second preset distance.
The computer program, when executed by the processor 301, is further operable to determine a first length of time for the target user to move from the first location to the second location based on the target video;
and determining the moving speed of the target user according to the first time length and the distance from the first position to the second position.
The computer program, when executed by the processor 301, is further configured to, for any adjacent position among the first position, the second position, and the at least one third position, obtain a target distance and a target duration between the adjacent positions;
determining a target speed corresponding to the adjacent position based on the target distance and the target duration;
determining the movement speed based on the target speed.
The computer program, when executed by the processor 301, is further configured to determine a second length of time for the target user to move from the first location to the fourth location based on the target video;
obtaining a first distance between the first position and the fourth position;
and determining the moving speed of the target user according to the second time length and the first distance.
The computer program, when executed by the processor 301, is further configured to determine a third duration and a fourth duration according to the moving speed, the first preset distance, and the second preset distance;
determining the sum of the target time and the third duration as the starting time;
and determining the sum of the opening time and the fourth duration as the closing time.
The computer program, when executed by the processor 301, is further configured to determine the third duration based on the first preset distance and the moving speed;
and determining the fourth time length based on the second preset distance and the moving speed.
The computer program, when executed by the processor 301, is further configured to determine a third duration according to the moving speed and the first preset distance;
determining the sum of the target time and the third duration as the starting time;
determining a fourth time length according to the moving speed and a second preset distance;
and determining the sum of the fourth time length and a preset time length as the starting time length.
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 is used for communication between the terminal and other equipment.
The Memory may include a Random Access Memory (RAM) or a non-volatile Memory (non-volatile Memory), such as at least one disk Memory. Optionally, the memory may also be at least one memory device located remotely from the processor.
The Processor may be a general-purpose Processor, and includes a Central Processing Unit (CPU), a Network Processor (NP), and the like; the Integrated Circuit may also be a Digital Signal Processor (DSP), an Application Specific Integrated Circuit (ASIC), a Field Programmable Gate Array (FPGA) or other Programmable logic device, a discrete Gate or transistor logic device, or a discrete hardware component.
In yet another embodiment of the present invention, a computer-readable storage medium is further provided, which has instructions stored therein, and when the computer-readable storage medium runs on a computer, the computer is caused to execute the gate control method according to any one of the above embodiments.
In yet another embodiment, a computer program product containing instructions is provided, which when run on a computer causes the computer to execute the gate control method according to any of the above embodiments.
In the above embodiments, the implementation may be wholly or partially realized by software, hardware, firmware, or any combination thereof. When implemented in software, it may be implemented in whole or in part in the form of a computer program product. The computer program product includes one or more computer instructions. When loaded and executed on a computer, cause the processes or functions described in accordance with the embodiments of the invention to occur, in whole or in part. The computer may be a general purpose computer, a special purpose computer, a network of computers, or other programmable device. The computer instructions may be stored in a computer readable storage medium or transmitted from one computer readable storage medium to another, for example, from one website site, computer, server, or data center to another website site, computer, server, or data center via wired (e.g., coaxial cable, fiber optic, Digital Subscriber Line (DSL)) or wireless (e.g., infrared, wireless, microwave, etc.). The computer-readable storage medium can be any available medium that can be accessed by a computer or a data storage device, such as a server, a data center, etc., that incorporates one or more of the available media. The usable medium may be a magnetic medium (e.g., floppy Disk, hard Disk, magnetic tape), an optical medium (e.g., DVD), or a semiconductor medium (e.g., Solid State Disk (SSD)), among others.
It is noted that, herein, relational terms such as first and second, and the like may be used solely to distinguish one entity or action from another entity or action without necessarily requiring or implying any actual such relationship or order between such entities or actions. Also, the terms "comprises," "comprising," or any other variation thereof, are intended to cover a non-exclusive inclusion, such that a process, method, article, or apparatus that comprises a list of elements does not include only those elements but may include other elements not expressly listed or inherent to such process, method, article, or apparatus. The term "comprising", without further limitation, means that the element so defined is not excluded from the group consisting of additional identical elements in the process, method, article, or apparatus that comprises the element.
All the embodiments in the present specification are described in a related manner, and the same and similar parts among the embodiments may be referred to each other, and each embodiment focuses on the differences from the other embodiments. In particular, for the system embodiment, since it is substantially similar to the method embodiment, the description is simple, and for the relevant points, reference may be made to the partial description of the method embodiment.
The above description is only for the preferred embodiment of the present invention, and is not intended to limit the scope of the present invention. Any modification, equivalent replacement, or improvement made within the spirit and principle of the present invention shall fall within the protection scope of the present invention.

Claims (10)

1. A gate control method, the method comprising:
acquiring a target video acquired at an entrance of a gate channel; the video content of the target video comprises a scene that a target user moves from a first position to a second position according to a preset direction;
determining a moving speed of the target user based on the target video;
determining the opening time period of the gate according to the moving speed, the first preset distance and the second preset distance;
wherein, first predetermined distance does floodgate machine passageway entrance with distance between the floodgate door, second predetermined distance does the passageway length of floodgate machine passageway, the floodgate door is located the floodgate machine passageway with between the floodgate machine passageway entrance.
2. The method of claim 1, wherein the determining the moving speed of the target user based on the target video comprises:
determining, based on the target video, a first length of time that the target user moved from the first location to the second location;
and determining the moving speed of the target user according to the first time length and the distance from the first position to the second position.
3. The method of claim 1 or 2, wherein the first location and the second location include at least one third location therebetween, and wherein determining the moving speed of the target user based on the target video comprises:
for any adjacent position of the first position, the second position and the at least one third position, acquiring a target distance and a target duration between the adjacent positions; the target duration is the duration corresponding to the target user moving from the previous position of the adjacent position to the next position of the adjacent position according to a preset direction;
determining a target speed corresponding to the adjacent position based on the target distance and the target duration, wherein the target speed is a division result of the target distance and the target duration;
and determining the moving speed based on the target speed, wherein the moving speed is the average value of the target speeds corresponding to the adjacent positions.
4. The method of claim 1 or 2, wherein a fourth location is included between the first location and the second location, and wherein determining the speed of movement of the target user based on the target video comprises:
determining, based on the target video, a second length of time that the target user moved from the first location to the fourth location;
obtaining a first distance between the first position and the fourth position;
and determining the moving speed of the target user according to the second time length and the first distance.
5. The method of claim 1, wherein the period of time that the gate is open includes an open time and a closed time; the determining the opening time period of the gate according to the moving speed, the first preset distance and the second preset distance comprises:
determining a third time length and a fourth time length according to the moving speed, the first preset distance and the second preset distance; the third time length is used for representing the time length of the target user moving from the entrance of a gate channel to the gate, and the fourth time length is used for representing the time length of the target user passing through the gate channel;
determining the sum of the target time and the third duration as the starting time; the target time is the time corresponding to the target user at the entrance of the gate channel;
and determining the sum of the opening time and the fourth duration as the closing time.
6. The method of claim 5, wherein determining the third duration and the fourth duration based on the moving speed, the first predetermined distance, and the second predetermined distance comprises:
determining the third duration based on the first preset distance and the moving speed; the fourth time length is a division result of the first preset distance and the moving speed;
determining the fourth duration based on the second preset distance and the moving speed; and the fourth time length is a division result of the second preset distance and the moving speed.
7. The method of claim 1, wherein the opening time period of the gate comprises an opening time and an opening duration, and wherein determining the opening time period of the gate based on the moving speed, the first predetermined distance, and the second predetermined distance comprises:
determining a third time length according to the moving speed and the first preset distance; the third time length is used for representing the time length of the target user moving from the entrance of the gate passageway to the gate door;
determining the sum of the target time and the third duration as the starting time; the target time is the time corresponding to the target user at the entrance of the gate channel;
determining a fourth time length according to the moving speed and a second preset distance; the fourth time length is used for representing the time length of the target user passing through the gate channel;
determining the sum of the fourth time length and a preset time length as the starting time length; the preset duration is associated with the target user.
8. A gate control device, comprising:
the acquisition module is used for acquiring a target video acquired at an entrance of a gate channel; the video content of the target video comprises a scene that a target user moves from a first position to a second position according to a preset direction;
a first determination module, configured to determine a moving speed of the target user based on the target video;
the second determining module is used for determining the opening time period of the gate according to the moving speed, the first preset distance and the second preset distance;
wherein, first predetermined distance does floodgate machine passageway entrance with distance between the floodgate door, second predetermined distance does the passageway length of floodgate machine passageway, the floodgate door is located the floodgate machine passageway with between the floodgate machine passageway entrance.
9. An electronic device is characterized by comprising a processor, a communication interface, a memory and a communication bus, wherein the processor and the communication interface are used for realizing mutual communication by the memory through the communication bus;
a memory for storing a computer program;
a processor for implementing the gate control method according to any one of claims 1 to 7 when executing a program stored in a memory.
10. A computer-readable storage medium, on which a computer program is stored, which, when being executed by a processor, carries out the gate control method according to any one of claims 1 to 7.
CN202210561646.1A 2022-05-23 2022-05-23 Gate control method, device, equipment and storage medium Pending CN114973468A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202210561646.1A CN114973468A (en) 2022-05-23 2022-05-23 Gate control method, device, equipment and storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202210561646.1A CN114973468A (en) 2022-05-23 2022-05-23 Gate control method, device, equipment and storage medium

Publications (1)

Publication Number Publication Date
CN114973468A true CN114973468A (en) 2022-08-30

Family

ID=82985695

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202210561646.1A Pending CN114973468A (en) 2022-05-23 2022-05-23 Gate control method, device, equipment and storage medium

Country Status (1)

Country Link
CN (1) CN114973468A (en)

Citations (8)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN110390745A (en) * 2019-06-03 2019-10-29 浙江大华技术股份有限公司 Gate control method, system, readable storage medium storing program for executing and equipment
CN111191572A (en) * 2019-12-26 2020-05-22 恒大智慧科技有限公司 Gate door-passing behavior identification method and device and computer-readable storage medium
CN111882728A (en) * 2020-06-30 2020-11-03 同方威视技术股份有限公司 Gate system and control method of gate system
CN112037405A (en) * 2020-08-25 2020-12-04 浙江大华技术股份有限公司 Gate control method, device, equipment and medium
WO2021000313A1 (en) * 2019-07-04 2021-01-07 深圳市大疆创新科技有限公司 Methods of using lateral millimeter wave radar to detect lateral stationary object and measure moving speed
CN112634628A (en) * 2020-12-08 2021-04-09 鹏城实验室 Vehicle speed determination method, terminal and storage medium
CN112669510A (en) * 2020-12-16 2021-04-16 日立楼宇技术(广州)有限公司 Park brake control method, device, equipment and storage medium
WO2021180060A1 (en) * 2020-03-11 2021-09-16 杭州海康威视数字技术股份有限公司 Channel gate control method, apparatus and system

Patent Citations (8)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN110390745A (en) * 2019-06-03 2019-10-29 浙江大华技术股份有限公司 Gate control method, system, readable storage medium storing program for executing and equipment
WO2021000313A1 (en) * 2019-07-04 2021-01-07 深圳市大疆创新科技有限公司 Methods of using lateral millimeter wave radar to detect lateral stationary object and measure moving speed
CN111191572A (en) * 2019-12-26 2020-05-22 恒大智慧科技有限公司 Gate door-passing behavior identification method and device and computer-readable storage medium
WO2021180060A1 (en) * 2020-03-11 2021-09-16 杭州海康威视数字技术股份有限公司 Channel gate control method, apparatus and system
CN111882728A (en) * 2020-06-30 2020-11-03 同方威视技术股份有限公司 Gate system and control method of gate system
CN112037405A (en) * 2020-08-25 2020-12-04 浙江大华技术股份有限公司 Gate control method, device, equipment and medium
CN112634628A (en) * 2020-12-08 2021-04-09 鹏城实验室 Vehicle speed determination method, terminal and storage medium
CN112669510A (en) * 2020-12-16 2021-04-16 日立楼宇技术(广州)有限公司 Park brake control method, device, equipment and storage medium

Non-Patent Citations (2)

* Cited by examiner, † Cited by third party
Title
朱意灏;汤起;: "基于使用体验研究的闸机设计", 建筑与文化, no. 07, 15 July 2020 (2020-07-15) *
葛晓霞;: "人群疏散基础数据采集方法及其应用研究", 安全与环境学报, no. 03, 25 June 2013 (2013-06-25) *

Similar Documents

Publication Publication Date Title
US20180270253A1 (en) Method and system for identifying a human or machine
CN108038176B (en) Method and device for establishing passerby library, electronic equipment and medium
CN108038937B (en) Method and device for showing welcome information, terminal equipment and storage medium
CN109858442B (en) Stranger passing monitoring method and device based on entrance guard machine
CN109712291B (en) Opening method and device of electronic gate and server
CN111126098A (en) Certificate image acquisition method, device, equipment and storage medium
CN114202839A (en) Gate passage control method, device, equipment and storage medium
CN111027643A (en) Deep neural network model training method, man-machine interaction recognition method and device, electronic equipment and storage medium
WO2016171923A1 (en) Method and system for identifying a human or machine
CN112183167B (en) Attendance checking method, authentication method, living body detection method, device and equipment
CN114973468A (en) Gate control method, device, equipment and storage medium
CN109614844B (en) Link verification method, device and equipment
CN111914591A (en) Duration determination method and device
CN111008925A (en) Certificate watermark verification method, device, equipment and storage medium
CN115455386A (en) Operation behavior identification method and device
CN108173714B (en) Public export IP address detection method and device and electronic equipment
CN107679865B (en) Identity verification method and device based on touch area
CN111353138A (en) Abnormal user identification method and device, electronic equipment and storage medium
CN111339829B (en) User identity authentication method, device, computer equipment and storage medium
CN112822676A (en) Method and device for accessing application
CN112560765A (en) Pedestrian flow statistical method, system, equipment and storage medium based on pedestrian re-identification
CN111708988A (en) Infringement video identification method and device, electronic equipment and storage medium
CN114666142B (en) Object authentication method, device and system
CN114863365A (en) Gate control method, device, equipment and storage medium
CN111385342A (en) Internet of things industry identification method and device, electronic equipment and storage medium

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