Barrier control method and device, electronic equipment and storage medium
Patent Information
- Application Number
- CN202311627796.9
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2023-11-30
- Publication Date
- 2026-09-25
- Estimated Expiration
- 2043-11-30
AI Technical Summary
[0003]本发明实施例提供了一种道闸控制方法、装置、电子设备及存储介质,以解决现有技术中道闸控制精度较低的问题
[0035]本发明实施例提供一种道闸控制方法、装置、电子设备及存储介质,其中,该方法通过第一目标的实时位置,确定第一目标的行进方向和实时速度,进而基于行进方向和实时速度,确定对应道闸的开启时间,实现自动开闸,其中无需进行人脸识别或车牌识别,可以避免因环境光导致无法准确控制道闸开关的问题,有效提升道闸控制的精准度。
Smart Images

Figure CN117649716B_ABST
Abstract
Description
Technical Field
[0001] This invention relates to the field of automation control technology, and in particular to a gate control method, device, electronic equipment and storage medium. Background Technology
[0002] During tunnel construction, personnel and vehicle barriers are typically installed at tunnel entrances to ensure safety. Related technologies utilize facial recognition and license plate recognition to automatically open and close these barriers. However, bright ambient light is required for facial and license plate recognition. The ambient light at tunnel entrances is typically dim, hindering accurate facial and license plate recognition and resulting in low barrier control precision. Summary of the Invention
[0003] This invention provides a barrier gate control method, device, electronic equipment, and storage medium to solve the problem of low control accuracy in the prior art.
[0004] In a first aspect, embodiments of the present invention provide a barrier gate control method, comprising:
[0005] Obtain the real-time location of the first target;
[0006] Based on the real-time location, the travel direction and real-time speed of the first target are determined;
[0007] Based on the direction of travel and the real-time speed, the opening time of the corresponding barrier gate of the first target is determined, and when the opening time is reached, the corresponding barrier gate is controlled to open.
[0008] In one possible implementation, after controlling the opening of the corresponding barrier gate, the method further includes:
[0009] After the first target passes through the corresponding barrier gate, it is detected whether there is a second target within a preset distance range from the first target;
[0010] If the second target exists, then the direction of travel of the second target is detected based on the real-time position of the second target;
[0011] When the direction of travel of the second target is the same as that of the first target, calculate the real-time speed of the second target;
[0012] Based on the real-time speed and real-time position of the second target, the closing time of the corresponding barrier gate is calculated, and the corresponding barrier gate is controlled to close after the closing time is reached.
[0013] In one possible implementation, calculating the closing time of the corresponding barrier gate based on the real-time speed and real-time position of the second target includes:
[0014] Based on the real-time speed and real-time position of the second target, calculate the time it takes for the second target to reach the corresponding barrier gate;
[0015] If the time it takes for the second target to reach the corresponding barrier gate is less than or equal to a preset multiple of the barrier gate's operating time, then according to... Calculate the closing time of the corresponding barrier gate;
[0016] Where t represents the closing time of the corresponding barrier gate, t2 represents the time when the second target arrives at the corresponding barrier gate, l represents the reserved distance, and v2 represents the real-time speed of the second target.
[0017] In one possible implementation, after calculating the time it takes for the second target to arrive at the corresponding barrier gate, the method further includes:
[0018] If the time it takes for the second target to reach the corresponding barrier gate is greater than the preset multiple of the corresponding barrier gate's operating time, then the corresponding barrier gate is controlled to close.
[0019] In one possible implementation, after detecting whether a second target exists within a preset distance range from the first target, the method further includes:
[0020] If no second target exists, the corresponding barrier gate is closed.
[0021] After detecting the direction of travel of the second target, the process also includes:
[0022] When the direction of travel of the second target is different from that of the first target, the corresponding barrier gate is controlled to close.
[0023] In one possible implementation, determining the opening time of the corresponding gate for the first target based on the direction of travel and the real-time speed includes:
[0024] Based on the direction of travel of the first target, determine the corresponding gate for the first target;
[0025] The opening time of the corresponding barrier gate is calculated based on the real-time speed of the first target and the action time of the corresponding barrier gate.
[0026] In one possible implementation, calculating the opening time of the corresponding barrier gate based on the real-time speed of the first target and the action time of the corresponding barrier gate includes:
[0027] according to Calculate the opening time of the corresponding barrier gate;
[0028] Where t1 represents the opening time of the corresponding barrier gate, s1 represents the real-time distance between the first target and the corresponding barrier gate, v1 represents the real-time speed of the first target, and T represents the action time of the corresponding barrier gate.
[0029] Secondly, embodiments of the present invention provide a barrier gate control device, comprising:
[0030] The acquisition module is used to acquire the real-time location of the first target;
[0031] The determination module is used to determine the direction of travel and real-time speed of the first target based on the real-time position;
[0032] The control module is used to determine the opening time of the corresponding gate of the first target based on the direction of travel and the real-time speed, and to control the corresponding gate to open when the opening time is reached.
[0033] Thirdly, embodiments of the present invention provide 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 steps of the method as described in the first aspect or any possible implementation of the first aspect.
[0034] Fourthly, embodiments of the present invention provide a computer-readable storage medium storing a computer program that, when executed by a processor, implements the steps of the method as described in the first aspect or any possible implementation thereof.
[0035] This invention provides a barrier gate control method, device, electronic device, and storage medium. The method determines the direction and speed of the first target's movement based on its real-time position, and then determines the opening time of the corresponding barrier gate based on the direction and speed of movement, thereby achieving automatic gate opening. This eliminates the need for facial recognition or license plate recognition, avoiding the problem of inaccurate barrier gate control due to ambient light, and effectively improving the accuracy of barrier gate control. Attached Figure Description
[0036] To more clearly illustrate the technical solutions in the embodiments of the present invention, the drawings used in the description of the embodiments or the prior art will be briefly introduced below. Obviously, the drawings described below are only some embodiments of the present invention. For those skilled in the art, other drawings can be obtained based on these drawings without creative effort.
[0037] Figure 1This is a flowchart illustrating the implementation of a barrier gate control method according to an embodiment of the present invention;
[0038] Figure 2 This is a flowchart illustrating the implementation of a barrier gate control method according to another embodiment of the present invention;
[0039] Figure 3 This is a flowchart illustrating the implementation of a barrier gate control method according to another embodiment of the present invention;
[0040] Figure 4 This is a schematic diagram of the structure of the barrier gate control device provided in an embodiment of the present invention;
[0041] Figure 5 This is a schematic diagram of an electronic device provided in an embodiment of the present invention. Detailed Implementation
[0042] In the following description, specific details such as particular system architectures and techniques are set forth for illustrative purposes and not for limitation, in order to provide a thorough understanding of the embodiments of the invention. However, those skilled in the art will understand that the invention can be implemented in other embodiments without these specific details. In other instances, detailed descriptions of well-known systems, apparatuses, circuits, and methods are omitted so as not to obscure the description of the invention with unnecessary detail.
[0043] The inventors discovered that traditional technologies for automatically opening and closing gates using facial recognition and license plate recognition require bright ambient light. However, the ambient light at tunnel entrances is relatively dim, making accurate facial and license plate recognition impossible, resulting in low gate control precision.
[0044] In order to improve the control accuracy of the barrier gate, the embodiments of this application realize the automatic opening and closing of the barrier gate by using the real-time position, direction of movement, and real-time speed of the target. This eliminates the need for facial recognition or license plate recognition, avoiding the problem of inaccurate control of the barrier gate opening and closing due to ambient light, and effectively improving the accuracy of barrier gate control.
[0045] To make the objectives, technical solutions, and advantages of the present invention clearer, specific embodiments will be described below in conjunction with the accompanying drawings.
[0046] Figure 1 The implementation flowchart of the barrier gate control method provided in the embodiments of the present invention is described in detail below:
[0047] Step 101: Obtain the real-time location of the first target.
[0048] To ensure tunnel construction safety, positioning terminals are typically provided for personnel and vehicles entering and exiting the tunnel. Each positioning terminal is communicatively connected to a positioning base station to transmit its corresponding code and real-time location in real time. The code of each positioning terminal reflects its type, i.e., personnel positioning or vehicle positioning. The execution entity in this embodiment of the invention can be a control system on a personnel gate and / or a vehicle gate. This control system is communicatively connected to the positioning base station to obtain the real-time location of a first target. The first target can be the person closest to the personnel gate and / or the vehicle closest to the vehicle gate.
[0049] Step 102: Based on the real-time location, determine the direction of travel and the real-time speed of the first target.
[0050] In this embodiment, the direction of travel of the first target can be determined based on the real-time changes in its position. That is, whether the first target is entering or leaving the tunnel. The direction of travel can be used to determine the gate corresponding to the first target. The real-time speed can be used to determine the opening time of the corresponding gate.
[0051] Step 103: Determine the opening time of the corresponding barrier gate of the first target based on the direction of travel and real-time speed, and control the corresponding barrier gate to open when the opening time is reached.
[0052] Optionally, this embodiment can determine the arrival time of the first target at the corresponding barrier gate based on the direction of travel and real-time speed, and then determine the opening time of the corresponding barrier gate. The corresponding barrier gate opens at a set time according to this opening time, so that the first target can pass directly without the need for facial recognition or license plate recognition, avoiding the problem that the barrier gate opening and closing cannot be accurately controlled due to the influence of ambient light.
[0053] In some embodiments, when determining the opening time of the corresponding gate of the first target based on the direction of travel and the real-time speed, the corresponding gate of the first target can be determined first based on the direction of travel of the first target, and then the opening time of the corresponding gate can be calculated based on the real-time speed of the first target and the action time of the corresponding gate.
[0054] Here, the personnel barrier at the tunnel entrance includes personnel entry and exit gates. The vehicle barrier includes vehicle entry and exit gates. This embodiment can determine the type of the first target based on the type of the positioning terminal on the first target. It can be understood that when the positioning terminal is for personnel positioning, the type of the first target is personnel. When the positioning terminal is for vehicle positioning, the type of the first target is a vehicle. This embodiment can determine the corresponding barrier based on the type of the first target and its direction of travel.
[0055] In some embodiments, it may be based on Calculate the opening time of the corresponding barrier gate;
[0056] Where t1 represents the opening time of the corresponding barrier gate, s1 represents the real-time distance between the first target and the corresponding barrier gate, v1 represents the real-time speed of the first target, and T represents the action time of the corresponding barrier gate.
[0057] This is used to indicate the arrival time of the first target to the corresponding barrier gate. This embodiment of the invention takes into account that the corresponding barrier gate requires a certain amount of time to perform its opening action. Therefore, based on the aforementioned arrival time and action time, the opening time of the corresponding barrier gate is determined, thereby achieving the technical effect of allowing direct passage without waiting.
[0058] In some embodiments, see Figure 2 After controlling the corresponding barrier gate to open when the opening time is reached, the above also includes:
[0059] Step 104: After the first target passes through the corresponding barrier gate, detect whether there is a second target within a preset distance range from the first target.
[0060] This invention addresses the issue of frequent personnel and vehicle traffic during tunnel construction, which leads to frequent opening and closing of the barrier gates and reduces their lifespan. To solve this problem, after the first target passes through the corresponding barrier gate, a second target is detected within a preset distance range. It is understood that the second target is of the same type as the first target.
[0061] The preset distance here can be determined according to the actual situation. For example, in this embodiment, it can be determined based on s = 2Tv. max Calculate the preset distance. Where s represents the preset distance, T represents the corresponding gate's action time, and v... max This indicates the maximum speed of the second target.
[0062] Step 105: If a second target exists, detect the direction of travel of the second target based on its real-time position.
[0063] This application takes into account that the entrance and exit gates are set at the same opening. In order to avoid confusion about the direction of entry and exit, the travel direction of the second target can be further detected.
[0064] Step 106: When the direction of travel of the second target is the same as that of the first target, calculate the real-time speed of the second target.
[0065] Here, the second target's direction of travel is the same as the first target's, indicating that the second target will also pass through the corresponding barrier gate. Once it is determined that the second target will subsequently pass through the corresponding barrier gate, the real-time speed of the second target can be calculated, thereby determining the closing time of the corresponding barrier gate.
[0066] Step 107: Based on the real-time speed and real-time position of the second target, calculate the closing time of the corresponding barrier gate, and control the corresponding barrier gate to close after the closing time is reached.
[0067] To address the issue of reduced lifespan of barrier gate equipment, this embodiment further detects whether a second target exists near the first target after the first target has passed through the corresponding barrier gate. When the second target's direction of travel is the same as the first target, and the distance between the second target and the first target is less than a preset distance, it indicates that the second target will subsequently pass through the corresponding barrier gate. At this time, it is necessary to calculate the real-time speed of the second target and determine the closing time of the corresponding barrier gate based on the real-time speed of the second target.
[0068] In some embodiments, see Figure 2 After step 104, the following may also be included:
[0069] Step 108: If there is no second target, then control the corresponding barrier gate to close.
[0070] In some embodiments, after step 105, the following may also be included:
[0071] Step 109: When the direction of travel of the second target is different from that of the first target, control the corresponding gate to close.
[0072] If there is no second target or the second target's direction of travel is different from the first target, it means that no personnel or vehicles will pass through the corresponding barrier gate in the short term. After the first target passes through the corresponding barrier gate, the barrier gate will be closed.
[0073] In some embodiments, see Figure 3 The above-mentioned calculation of the closing time of the corresponding barrier gate based on the real-time speed and real-time position of the second target, and control of the corresponding barrier gate to close after the closing time is reached, may include:
[0074] Step 171: Calculate the time it takes for the second target to reach the corresponding barrier gate based on the real-time speed and real-time position of the second target.
[0075] Step 172: If the time it takes for the second target to reach the corresponding barrier gate is less than or equal to a preset multiple of the barrier gate's operating time, then according to... Calculate the closing time of the corresponding barrier gate.
[0076] Where t represents the closing time of the corresponding barrier gate, t2 represents the time when the second target arrives at the corresponding barrier gate, l represents the reserved distance, and v2 represents the real-time speed of the second target.
[0077] The preset multiplier can be determined by the user, and this embodiment of the invention does not impose specific limitations on it. For example, the preset multiplier can be 2.
[0078] That is, if the time it takes for the second target to reach the corresponding barrier gate is less than or equal to twice the action time of the corresponding barrier gate, then according to... Calculate the closing time of the corresponding barrier gate.
[0079] When the first target passes through the corresponding barrier gate, if the time it takes for the second target to arrive at the corresponding barrier gate is less than or equal to the sum of the closing and opening times of the barrier gate, then there is no need to immediately close the barrier gate. This embodiment can calculate the closing time of the corresponding barrier gate based on the time it takes for the second target to arrive, and then control the barrier gate to close when the closing time is reached. It can be understood that the closing time of the corresponding barrier gate is equal to the opening time.
[0080] When calculating the closing time of the corresponding barrier gate, this embodiment of the invention adds the time required for the second target to travel a reserved distance to the time it takes for the second target to arrive at the barrier gate, in order to ensure that the second target can pass through the barrier gate smoothly and improve security. The reserved distance can be set by the user, and this embodiment of the invention does not impose specific limitations.
[0081] In some embodiments, see Figure 3 Following step 171, the following is also included:
[0082] Step 173: If the time it takes for the second target to reach the corresponding barrier gate is greater than a preset multiple of the corresponding barrier gate's operating time, then control the corresponding barrier gate to close.
[0083] If the time it takes for the second target to reach the corresponding barrier gate is greater than a preset multiple of the barrier gate's operating time, it indicates that the second target will not pass through the barrier gate in a short period of time. In this embodiment, the barrier gate can be closed after the first target has passed through it. The barrier gate can then be opened when the second target is about to reach it.
[0084] Compared to existing technologies, this invention determines the direction of travel and real-time speed of the first target based on its real-time location. Based on this direction of travel and real-time speed, the opening time of the corresponding barrier gate is determined, achieving automatic gate opening. This eliminates the need for facial recognition or license plate recognition, effectively avoiding the problem of inaccurate barrier gate control due to ambient light interference, and significantly improving the accuracy of barrier gate control.
[0085] Furthermore, in this embodiment of the invention, after the first target passes through the corresponding barrier gate, the time for the second target to arrive at the corresponding barrier gate is further calculated. Based on this time and the action time of the corresponding barrier gate, the closing time of the corresponding barrier gate is determined, which can avoid the phenomenon of frequent opening and closing of the barrier gate and improve the service life of the barrier gate equipment.
[0086] It should be understood that the sequence number of each step in the above embodiments does not imply the order of execution. The execution order of each process should be determined by its function and internal logic, and should not constitute any limitation on the implementation process of the embodiments of the present invention.
[0087] The following are device embodiments of the present invention. For details not described in detail, please refer to the corresponding method embodiments described above.
[0088] Figure 4 A schematic diagram of the barrier gate control device provided in an embodiment of the present invention is shown. For ease of explanation, only the parts related to the embodiment of the present invention are shown, and are described in detail below:
[0089] like Figure 4 As shown, the barrier gate control device 4 includes: an acquisition module 41, a determination module 42, and a control module 43.
[0090] The acquisition module 41 is used to acquire the real-time position of the first target;
[0091] The determination module 42 is used to determine the direction of travel and real-time speed of the first target based on its real-time position.
[0092] The control module 43 is used to determine the opening time of the corresponding barrier gate of the first target based on the direction of travel and real-time speed, and to control the corresponding barrier gate to open when the opening time is reached.
[0093] In one possible implementation, the control module 43 is further configured to:
[0094] After the first target passes through the corresponding barrier gate, it is detected whether there is a second target within a preset distance from the first target;
[0095] If a second target exists, its direction of travel is detected based on its real-time location.
[0096] When the second target's direction of travel is the same as the first target's direction of travel, calculate the second target's real-time velocity;
[0097] Based on the real-time speed and real-time position of the second target, calculate the closing time of the corresponding barrier gate, and control the corresponding barrier gate to close after the closing time is reached.
[0098] In one possible implementation, control module 43 is specifically used for:
[0099] Based on the real-time speed and real-time position of the second target, calculate the time it takes for the second target to reach the corresponding barrier gate;
[0100] If the time it takes for the second target to reach the corresponding barrier gate is less than or equal to a preset multiple of the barrier gate's operating time, then according to... Calculate the closing time of the corresponding barrier gate;
[0101] Where t represents the closing time of the corresponding barrier gate, t2 represents the time when the second target arrives at the corresponding barrier gate, l represents the reserved distance, and v2 represents the real-time speed of the second target.
[0102] In one possible implementation, the control module 43 is further configured to:
[0103] If the time it takes for the second target to reach the corresponding barrier gate is greater than a preset multiple of the corresponding barrier gate's operating time, then the corresponding barrier gate will be closed.
[0104] In one possible implementation, the control module 43 is further configured to:
[0105] If no second target exists, the corresponding barrier gate is closed.
[0106] When the direction of travel of the second target is different from that of the first target, the corresponding gate is closed.
[0107] In one possible implementation, module 42 is specifically used for:
[0108] Determine the corresponding gate for the first target based on its direction of travel;
[0109] Calculate the opening time of the corresponding barrier gate based on the real-time speed of the first target and the action time of the corresponding barrier gate.
[0110] In one possible implementation, module 42 is specifically used for:
[0111] according to Calculate the opening time of the corresponding barrier gate;
[0112] Where t1 represents the opening time of the corresponding barrier gate, s1 represents the real-time distance between the first target and the corresponding barrier gate, v1 represents the real-time speed of the first target, and T represents the action time of the corresponding barrier gate.
[0113] In this embodiment of the invention, the determining module 42 determines the direction of travel and the real-time speed of the first target based on its real-time position. The control module 43 determines the opening time of the corresponding barrier gate based on the direction of travel and the real-time speed, thereby achieving automatic gate opening without the need for facial recognition or license plate recognition. This effectively avoids the problem of inaccurate control of the barrier gate opening and closing due to ambient light, and effectively improves the accuracy of barrier gate control.
[0114] In addition, after the first target passes through the corresponding barrier gate, the control module 43 further calculates the time when the second target arrives at the corresponding barrier gate. Based on this time and the action time of the corresponding barrier gate, the closing time of the corresponding barrier gate is determined, which can avoid the phenomenon of frequent opening and closing of the barrier gate and extend the service life of the barrier gate equipment.
[0115] Figure 5 This is a schematic diagram of an electronic device provided in an embodiment of the present invention. For example... Figure 5 As shown, the electronic device 5 in this embodiment includes: a processor 50, a memory 51, and a computer program 52 stored in the memory 51 and executable on the processor 50. When the processor 50 executes the computer program 52, it implements the steps in the various embodiments of the gate control method described above, for example... Figure 1 Steps 101 to 103 are shown. Alternatively, when the processor 50 executes the computer program 52, it implements the functions of each module / unit in the above-described device embodiments, for example... Figure 4 The functions of modules 41 to 43 are shown.
[0116] For example, the computer program 52 can be divided into one or more modules / units, which are stored in the memory 51 and executed by the processor 50 to complete the present invention. The one or more modules / units can be a series of computer program instruction segments capable of performing a specific function, which describe the execution process of the computer program 52 in the electronic device 5. For example, the computer program 52 can be divided into... Figure 4 Modules 41 to 43 are shown.
[0117] The electronic device 5 can be a desktop computer, laptop, handheld computer, or cloud server, etc. The electronic device 5 may include, but is not limited to, a processor 50 and a memory 51. Those skilled in the art will understand that... Figure 5 This is merely an example of electronic device 5 and does not constitute a limitation on electronic device 5. It may include more or fewer components than shown, or combine certain components, or different components. For example, the electronic device may also include input / output devices, network access devices, buses, etc.
[0118] The processor 50 may be a Central Processing Unit (CPU), or other general-purpose processors, digital signal processors (DSPs), application-specific integrated circuits (ASICs), field-programmable gate arrays (FPGAs), or other programmable logic devices, discrete gate or transistor logic devices, discrete hardware components, etc. A general-purpose processor may be a microprocessor or any conventional processor.
[0119] The memory 51 can be an internal storage unit of the electronic device 5, such as a hard disk or memory. The memory 51 can also be an external storage device of the electronic device 5, such as a plug-in hard disk, Smart Media Card (SMC), Secure Digital (SD) card, or Flash Card. Furthermore, the memory 51 can include both internal and external storage units of the electronic device 5. The memory 51 is used to store the computer program and other programs and data required by the electronic device. The memory 51 can also be used to temporarily store data that has been output or will be output.
[0120] Those skilled in the art will clearly understand that, for the sake of convenience and brevity, the above-described division of functional units and modules is merely an example. In practical applications, the above functions can be assigned to different functional units and modules as needed, that is, the internal structure of the device can be divided into different functional units or modules to complete all or part of the functions described above. The functional units and modules in the embodiments can be integrated into one processing unit, or each unit can exist physically separately, or two or more units can be integrated into one unit. The integrated unit can be implemented in hardware or as a software functional unit. Furthermore, the specific names of the functional units and modules are only for easy differentiation and are not intended to limit the scope of protection of this application. The specific working process of the units and modules in the above system can be referred to the corresponding process in the foregoing method embodiments, and will not be repeated here.
[0121] In the above embodiments, the descriptions of each embodiment have different focuses. For parts that are not described in detail or recorded in a certain embodiment, please refer to the relevant descriptions of other embodiments.
[0122] Those skilled in the art will recognize that the units and algorithm steps of the various examples described in conjunction with the embodiments disclosed herein can be implemented in electronic hardware, or a combination of computer software and electronic hardware. Whether these functions are implemented in hardware or software depends on the specific application and design constraints of the technical solution. Those skilled in the art can use different methods to implement the described functions for each specific application, but such implementations should not be considered beyond the scope of this invention.
[0123] In the embodiments provided by this invention, it should be understood that the disclosed devices / electronic devices and methods can be implemented in other ways. For example, the device / electronic device embodiments described above are merely illustrative. For instance, the division of modules or units is only a logical functional division, and in actual implementation, there may be other division methods. For example, multiple units or components may be combined or integrated into another system, or some features may be ignored or not executed. Furthermore, the coupling or direct coupling or communication connection shown or discussed may be through some interfaces; the indirect coupling or communication connection between devices or units may be electrical, mechanical, or other forms.
[0124] 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 units can be selected to achieve the purpose of this embodiment according to actual needs.
[0125] Furthermore, the functional units in the various embodiments of the present invention can be integrated into one processing unit, or each unit can exist physically separately, or two or more units can be integrated into one unit. The integrated unit can be implemented in hardware or as a software functional unit.
[0126] If the integrated module / unit is implemented as a software functional unit and sold or used as an independent product, it can be stored in a computer-readable storage medium. Based on this understanding, all or part of the processes in the above embodiments of the present invention can also be implemented by a computer program instructing related hardware. The computer program can be stored in a computer-readable storage medium, and when executed by a processor, it can implement the steps of the various barrier gate control method embodiments described above. The computer program includes computer program code, which can be in the form of source code, object code, executable files, or certain intermediate forms. The computer-readable medium can include: any entity or device capable of carrying the computer program code, a recording medium, a USB flash drive, a portable hard drive, a magnetic disk, an optical disk, a computer memory, a read-only memory (ROM), a random access memory (RAM), an electrical carrier signal, a telecommunication signal, and a software distribution medium, etc. The above-described embodiments are only used to illustrate the technical solutions of the present invention, and are not intended to limit it. 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. Such 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, and should all be included within the protection scope of the present invention.
Claims
1. A method for controlling a barrier gate, characterized in that, include: Obtain the real-time location of the first target; the first target is the person closest to the personnel gate and / or the vehicle closest to the vehicle gate; The personnel and the vehicle are equipped with positioning terminals, which are used to send the corresponding codes and real-time locations of each positioning terminal; the codes are used to reflect the type of positioning terminal, and the type of positioning terminal on the first target is used to reflect the type of the first target; the type of the first target is either personnel or vehicle. Based on the real-time location, the travel direction and real-time speed of the first target are determined; Based on the direction of travel and the real-time speed, determine the opening time of the corresponding gate of the first target, and control the corresponding gate to open when the opening time is reached; After the first target passes through the corresponding barrier gate, it is detected whether there is a second target within a preset distance from the first target; the type of the second target is the same as the type of the first target; If the second target exists, then the direction of travel of the second target is detected based on the real-time position of the second target; When the direction of travel of the second target is the same as that of the first target, calculate the real-time speed of the second target; Based on the real-time speed and real-time position of the second target, the closing time of the corresponding barrier gate is calculated, and the corresponding barrier gate is controlled to close after the closing time is reached; The calculation of the closing time of the corresponding barrier gate based on the real-time speed and real-time position of the second target includes: Based on the real-time speed and real-time position of the second target, calculate the time it takes for the second target to reach the corresponding barrier gate; If the time it takes for the second target to reach the corresponding barrier gate is less than or equal to a preset multiple of the barrier gate's operating time, then according to... Calculate the closing time of the corresponding barrier gate; in, This indicates the closing time of the corresponding barrier gate. This indicates the time when the second target arrives at the corresponding barrier gate. This indicates that a distance has been reserved. This indicates the real-time velocity of the second target.
2. The barrier gate control method according to claim 1, characterized in that, After calculating the time it takes for the second target to reach the corresponding barrier gate, the process further includes: If the time it takes for the second target to reach the corresponding barrier gate is greater than the preset multiple of the corresponding barrier gate's operating time, then the corresponding barrier gate is controlled to close.
3. The barrier gate control method according to claim 1, characterized in that, After detecting whether a second target exists within a preset distance range from the first target, the method further includes: If no second target exists, the corresponding barrier gate is closed. After detecting the direction of travel of the second target, the process also includes: When the direction of travel of the second target is different from that of the first target, the corresponding barrier gate is controlled to close.
4. The barrier gate control method according to claim 1, characterized in that, Determining the opening time of the corresponding gate for the first target based on the direction of travel and the real-time speed includes: Based on the direction of travel of the first target, determine the corresponding gate for the first target; The opening time of the corresponding barrier gate is calculated based on the real-time speed of the first target and the action time of the corresponding barrier gate.
5. The barrier gate control method according to claim 4, characterized in that, The step of calculating the opening time of the corresponding barrier gate based on the real-time speed of the first target and the action time of the corresponding barrier gate includes: according to Calculate the opening time of the corresponding barrier gate; in, This indicates the opening time of the corresponding barrier gate. This indicates the real-time distance between the first target and the corresponding barrier gate. This indicates the real-time velocity of the first target. This indicates the action time of the corresponding barrier gate.
6. A barrier gate control device, characterized in that, include: The acquisition module is used to acquire the real-time location of the first target; the first target is the person closest to the personnel gate and / or the vehicle closest to the vehicle gate; The personnel and the vehicle are equipped with positioning terminals, which are used to send the corresponding codes and real-time locations of each positioning terminal; the codes are used to reflect the type of positioning terminal, and the type of positioning terminal on the first target is used to reflect the type of the first target; the type of the first target is either personnel or vehicle. The determination module is used to determine the direction of travel and real-time speed of the first target based on the real-time position; The control module is used to determine the opening time of the corresponding gate of the first target based on the direction of travel and the real-time speed, and to control the corresponding gate to open when the opening time is reached; After the first target passes through the corresponding barrier gate, it is detected whether there is a second target within a preset distance from the first target; the type of the second target is the same as the type of the first target; If the second target exists, then the direction of travel of the second target is detected based on the real-time position of the second target; When the direction of travel of the second target is the same as that of the first target, calculate the real-time speed of the second target; Based on the real-time speed and real-time position of the second target, the closing time of the corresponding barrier gate is calculated, and the corresponding barrier gate is controlled to close after the closing time is reached; The calculation of the closing time of the corresponding barrier gate based on the real-time speed and real-time position of the second target includes: Based on the real-time speed and real-time position of the second target, calculate the time it takes for the second target to reach the corresponding barrier gate; If the time it takes for the second target to reach the corresponding barrier gate is less than or equal to a preset multiple of the barrier gate's operating time, then according to... Calculate the closing time of the corresponding barrier gate; in, This indicates the closing time of the corresponding barrier gate. This indicates the time when the second target arrives at the corresponding barrier gate. This indicates that a distance has been reserved. This indicates the real-time velocity of the second target.
7. 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 steps of the gate control method as described in any one of claims 1 to 5.
8. A computer-readable storage medium storing a computer program, characterized in that, When the computer program is executed by the processor, it implements the steps of the gate control method as described in any one of claims 1 to 5 above.
Citation Information
Patent Citations
Door-access control method and device
CN103310513A