Gate passage control method, device, equipment and medium
By using channel cameras in turnstiles to adjust channel width and allocate passageways, the problem of large objects being unable to pass through narrow turnstile channels has been solved, thus improving passage efficiency.
Patent Information
- Application Number
- CN202211449012.3
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2022-11-18
- Publication Date
- 2025-11-04
- Estimated Expiration
- 2042-11-18
AI Technical Summary
The narrow access control gate channels cause difficulties for the passage of large objects, affecting traffic efficiency.
The width of the target to be passed is determined by acquiring images through the channel camera, the width of the gate channel is adaptively adjusted, the number of passage channels is dynamically allocated, and the target passage channel is determined according to the distance between the target and each channel.
It effectively solved the problem of large objects being unable to pass through narrow turnstile channels, improved passage efficiency, and met actual passage needs.
Smart Images

Figure CN116665361B_ABST
Abstract
Description
Technical Field
[0001] This invention relates to the field of access control technology, and in particular to a gate access control method, device, equipment and medium. Background Technology
[0002] With the continuous development of access control technology, access control systems are being used more and more widely in public places. While improving access efficiency and reducing labor costs, the fixed channel widths of access control systems can cause some inconveniences. Although access control turnstiles of different widths are available, many choose to install narrower specifications to consider site costs and access efficiency. This leads to problems with the passage of large objects (such as luggage, bicycles, electric vehicles, wheelchairs, etc.). Summary of the Invention
[0003] This invention provides a gate access control method, device, equipment, and medium that can dynamically adjust the gate channel width according to the width of the target to be passed, effectively solving the problem of inconvenience for large objects to pass due to narrow gate channels, improving passage efficiency, and better meeting actual passage needs.
[0004] According to one aspect of the present invention, a gate access control method is provided, wherein the gate includes at least two parallel channels, and the channel body has a lifting function, the method comprising:
[0005] The system determines that a first target to pass through appears in front of the gate by capturing images from the channel camera, and then determines whether the width of the first target to pass through satisfies the condition that it is greater than or equal to the channel width and less than the total width of the gate.
[0006] If the conditions are met, the number of passageways is determined based on the width of the first target to be passed and the width of the passageway.
[0007] The target passage for the first target to pass through is determined based on the number of passage channels and the distance between the first target to pass through each channel, and a machine descent command is issued to the target passage channel so that the first target to pass through can pass through the gate.
[0008] According to another aspect of the present invention, a turnstile access control device is provided, the turnstile including at least two parallel channels, and the channel body having a lifting function, the device comprising:
[0009] The first target to pass is determined by the image captured by the channel camera to determine whether a first target to pass appears in front of the gate, and to determine whether the width of the first target to pass is greater than or equal to the channel width and less than the total width of the gate.
[0010] The passageway quantity determination module is used to determine the number of passageways based on the width of the first target to be passed and the passage width if the conditions are met.
[0011] The target passage channel determination module is used to determine the target passage channel for the first target to pass through based on the number of passage channels and the distance between the first target to pass through and each channel, and to issue a machine body descent command to the target passage channel so that the first target to pass through can pass through the gate.
[0012] According to another aspect of the present invention, a gate access control electronic device is provided, the electronic device comprising:
[0013] At least one processor; and
[0014] A memory communicatively connected to the at least one processor; wherein,
[0015] The memory stores a computer program that can be executed by the at least one processor, which is then executed by the at least one processor to enable the at least one processor to perform the gate access control method according to any embodiment of the present invention.
[0016] According to another aspect of the present invention, a computer-readable storage medium is provided, the computer-readable storage medium storing computer instructions, the computer instructions being configured to cause a processor to execute and implement the gate access control method according to any embodiment of the present invention.
[0017] The technical solution of this invention determines the presence of a first target to pass through the turnstile by capturing images from a channel camera, and determines whether the width of the first target to pass through satisfies the condition that it is greater than or equal to the channel width and less than the total width of the turnstile. If it satisfies this condition, the number of passage channels is determined based on the width of the first target to pass through and the channel width. The target passage for the first target to pass through is determined based on the number of passage channels and the distance between the first target to pass through and each channel, and a lowering command is issued to the target passage channel to allow the first target to pass through the turnstile. This technical solution can adaptively adjust the turnstile channel width according to the width of the target to pass through, effectively solving the problem of inconvenience for large objects to pass through due to narrow turnstile channels, improving passage efficiency, and better meeting actual passage needs.
[0018] It should be understood that the description in this section is not intended to identify key or essential features of the embodiments of the present invention, nor is it intended to limit the scope of the invention. Other features of the invention will become readily apparent from the following description. Attached Figure Description
[0019] To more clearly illustrate the technical solutions in the embodiments of the present invention, the accompanying drawings used in the description of the embodiments will be briefly introduced below. Obviously, the accompanying 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.
[0020] Figure 1 This is a flowchart of a gate access control method provided according to Embodiment 1 of the present invention;
[0021] Figure 2 This is a schematic diagram of a turnstile provided according to Embodiment 1 of the present invention;
[0022] Figure 3 This is a flowchart of a gate access control method provided according to Embodiment 2 of the present invention;
[0023] Figure 4 This is a flowchart of a gate access control method provided according to Embodiment 3 of the present invention;
[0024] Figure 5 This is a schematic diagram of the structure of a gate access control device according to Embodiment 4 of the present invention;
[0025] Figure 6 This is a schematic diagram of the structure of an electronic device that implements a gate access control method according to an embodiment of the present invention. Detailed Implementation
[0026] To enable those skilled in the art to better understand the present invention, the technical solutions of the present invention will be clearly and completely described below with reference to the accompanying drawings of the embodiments of the present invention. Obviously, the described embodiments are only some embodiments of the present invention, and not all embodiments. Based on the embodiments of the present invention, all other embodiments obtained by those skilled in the art without creative effort should fall within the scope of protection of the present invention.
[0027] It should be noted that the terms "first," "second," "target," etc., used in the specification, claims, and accompanying drawings of this invention are used to distinguish similar objects and are not necessarily used to describe a specific order or sequence. It should be understood that such data can be interchanged where appropriate so that embodiments of the invention described herein can be implemented in orders other than those illustrated or described herein. Furthermore, the terms "comprising" and "having," and any variations thereof, are intended to cover non-exclusive inclusion; for example, a process, method, system, product, or apparatus that comprises a series of steps or units is not necessarily limited to those steps or units explicitly listed, but may include other steps or units not explicitly listed or inherent to such processes, methods, products, or apparatus.
[0028] Example 1
[0029] Figure 1 This is a flowchart of a turnstile access control method provided in Embodiment 1 of the present invention. This embodiment is applicable to situations where the width of the turnstile channel needs to be adaptively adjusted. This method can be executed by a turnstile access control device, which can be implemented in hardware and / or software. This turnstile access control device can be configured in an electronic device with data processing capabilities. For example... Figure 1 As shown, the method includes:
[0030] S110: Determine the presence of a first target to pass through the gate by capturing images from the channel camera, and determine whether the width of the first target to pass through satisfies the condition that it is greater than or equal to the channel width and less than the total width of the gate.
[0031] The channel camera refers to a camera installed at the gate channel location, used to capture images of targets waiting to pass within a certain range in front of the gate. The gate includes at least two parallel channels, and the channel body has a lifting function. Figure 2 This is a schematic diagram of a turnstile provided in Embodiment 1 of the present invention. Figure 2 As shown, the turnstile includes two parallel lanes, each equipped with a camera. The target waiting to pass through the turnstile can refer to an object waiting to pass through. For example, the target can be a person and / or a large object (such as luggage, bicycles, electric vehicles, or wheelchairs). The first target is relative to the other targets; the "first" has no special meaning and simply indicates a target. For example, the first target could be a person carrying luggage.
[0032] In this embodiment, the presence of a first target to pass through the gate is first determined by the image captured by the channel camera, and the width of the first target to pass through is identified. Then, it is determined whether the width of the first target to pass through is greater than or equal to the channel width and less than the total width of the gate. It is understood that if the width of the first target to pass through is less than the channel width, the first target to pass through can pass smoothly without adjusting the gate channel width; if the width of the first target to pass through is greater than the total width of the gate, it indicates that the width of the first target to pass through is too wide, and even adjusting the gate channel width will not allow the first target to pass through smoothly. Therefore, only when the width of the first target to pass through is greater than or equal to the channel width and less than the total width of the gate is it necessary or necessary to adjust the gate channel width according to the width of the first target to pass through so that the first target to pass through can pass smoothly.
[0033] S120, if satisfied, then the number of passageways is determined based on the width of the first target to be passed and the passage width.
[0034] The number of passageways refers to the number of passageways required for passage. In this embodiment, if the width of the first target to be passed is greater than or equal to the passageway width and less than the total width of the turnstile, it indicates that the passageway width needs to be adjusted. In this case, the number of passageways needs to be determined based on the width of the first target to be passed and the passageway width. For example, assuming the width of the first target to be passed is d, and the width of one passageway of the turnstile is D, the number of passageways can be expressed as d / D. If d / D is not an integer, it is rounded up to ensure that the passageway width is greater than or equal to the width of the first target to be passed, thereby guaranteeing that the first target to be passed can pass through the turnstile smoothly.
[0035] S130: Determine the target passage for the first target based on the number of passage channels and the distance between the first target and each channel, and issue a machine descent command to the target passage so that the first target can pass through the gate.
[0036] The target passageway refers to the passageway that needs to be occupied for passage. Specifically, the target passageway can include a main passageway and auxiliary passageways. The main passageway can be the gate passageway that is closest to the first target to be passed through; the auxiliary passageways can be other passageways in the target passageway besides the main passageway. The gate lowering command can be used to control the gate body of the target passageway to lower until the upper surface of the body is flush with the ground.
[0037] In this embodiment, after determining the number of passageways, it is also necessary to determine the distance between the first target to pass and each passageway. Then, based on the number of passageways and the distance between the first target and each passageway, the target passageway for the first target is determined. Specifically, first, the distance between the first target and each passageway is determined, and then the passageway with the smallest distance is selected as the main passageway. Then, based on the main passageway, passageways are expanded according to the number of passageways, and the expanded passageways are used as auxiliary passageways. After determining the main passageway and auxiliary passageways, the target passageway (main passageway plus auxiliary passageway) can be determined. After determining the target passageway, a lowering command can be issued to the target passageway to allow the first target to pass through the gate.
[0038] It should be noted that this embodiment does not impose any limitations on the channel expansion method, and can be flexibly set according to actual application needs. For example, when expanding a channel, if only one side (left or right) of the main channel can be expanded, the channel is expanded towards the expandable side to obtain a suitable number of passageways. If both sides of the main channel can be expanded, one can choose to expand to the left first; if the number of passageways on the left is insufficient, then expand to the right with the remaining number of passageways; or one can choose to expand to the right first; if the number of passageways on the right is insufficient, then expand to the left with the remaining number of passageways, thus obtaining a suitable number of passageways.
[0039] The technical solution of this invention determines the presence of a first target to pass through the turnstile by capturing images from a channel camera, and determines whether the width of the first target to pass through satisfies the condition that it is greater than or equal to the channel width and less than the total width of the turnstile. If it satisfies this condition, the number of passage channels is determined based on the width of the first target to pass through and the channel width. The target passage for the first target to pass through is determined based on the number of passage channels and the distance between the first target to pass through and each channel, and a lowering command is issued to the target passage channel to allow the first target to pass through the turnstile. This technical solution can adaptively adjust the turnstile channel width according to the width of the target to pass through, effectively solving the problem of inconvenience for large objects to pass through due to narrow turnstile channels, improving passage efficiency, and better meeting actual passage needs.
[0040] In this embodiment, optionally, determining whether the width of the first target to pass is greater than or equal to the channel width and less than the total width of the gate further includes: if the width of the first target to pass is less than the channel width, then performing face recognition on the first target to pass, and determining whether there are identical face recognition results in the images captured by other channel cameras at the same time; if so, determining the distance between the first target to pass and each channel based on the images captured by each channel camera; and determining the opening channel corresponding to the first target to pass based on the distance.
[0041] In this embodiment, if the width of the first target to pass through is less than the width of the passage, it indicates that the first target is a person. In this case, no adjustment to the turnstile passage is required, i.e., the turnstile body does not need to be lowered. It should be noted that under normal passage conditions, if the same person stands in the common recognition area of multiple passage cameras, they will be recognized by multiple passage cameras simultaneously, resulting in one person opening multiple turnstile passages at the same time. Therefore, it is necessary to further perform facial recognition on the first target to pass through and determine whether the same facial recognition result exists in the images captured by other passage cameras at the same time.
[0042] For example, a similarity matching method can be used to determine whether identical face recognition results exist in the images captured by cameras in different channels at the same time. Specifically, first, the face recognition results in the images captured by cameras in different channels at the same time are determined, and then the similarity between each face recognition result is calculated. If a similarity greater than a preset similarity threshold exists, it indicates that identical face recognition results exist in the images captured by cameras in different channels at the same time, that is, the same target to be passed is captured by at least two cameras in different channels at the same time. The preset similarity threshold can refer to a pre-set similarity reference value, which can be used as the basis for determining whether face recognition results are identical. This embodiment does not impose any limitations on the preset similarity threshold; it can be set according to actual needs, for example, the preset similarity threshold can be set to 98%.
[0043] If identical face recognition results are found in images captured by other channels at the same time, it indicates that the same target was captured by at least two channels simultaneously. In other words, the same target was repeatedly recognized by the channels at the same time. In this case, it is necessary to determine the distance between the first target and each channel based on the images captured by each channel. For example, the distance between the first target and each channel can be determined by calculating the distance from the first target to the center region of the captured image. After determining the distance between the first target and each channel, the channel with the closest distance can be selected as the open channel corresponding to the first target.
[0044] This solution effectively prevents one person from opening multiple channels, thereby reducing the chance of people being missed during verification and improving passage efficiency.
[0045] In this embodiment, optionally, before issuing the aircraft descent command to the target passage, the method further includes: if the personnel verification result is that the first target to pass includes a preset prohibited vehicle type, or the facial recognition of the first target to pass fails, then the issuance of the aircraft descent command to the target passage is prohibited; if the personnel verification result is that the first target to pass does not include a preset prohibited vehicle type, and the facial recognition of the first target to pass passes, then the aircraft descent command is issued to the target passage.
[0046] The preset prohibited vehicle types refer to vehicle types that are pre-defined as prohibited from passing through the turnstile. For example, the preset prohibited vehicle type could be a shared bicycle, with the turnstile located at the entrance / exit of the residential area, prohibiting shared bicycles from entering the area. It should be noted that the personnel verification here can include both vehicle type verification and facial recognition. If both vehicle type verification and facial recognition are successful, the personnel verification is considered successful; otherwise, the personnel verification is considered to have failed.
[0047] In this embodiment, the decision to issue a lowering command to the target passage can be based on the personnel verification result. For example, when the first target to pass is a cyclist, vehicle identification can be performed first to verify the vehicle type. If the vehicle type is a preset prohibited vehicle, the vehicle type verification fails, and the personnel verification is directly determined to have failed, meaning the first target does not have passage permission. In this case, issuing a lowering command to the target passage is prohibited to prevent the first target from passing through the gate. If the vehicle type is not a preset prohibited vehicle, the vehicle type verification succeeds, and further facial recognition of the first target is required. If facial recognition fails, it indicates that the person verification has failed, meaning the first person to pass does not have access. In this case, the machine descent command should not be issued to the target passage channel to prevent the first person to pass through the gate. If facial recognition passes, it indicates that the person verification has succeeded, meaning the first person to pass has access. In this case, the machine descent command should be issued to the target passage channel to allow the first person to pass through the gate. The vehicle recognition and facial recognition processes can be performed at any time after the first person to pass appears before the gate is determined by image acquisition. For example, vehicle recognition and facial recognition can be performed on the first person to pass before determining the number of passage channels.
[0048] This solution, through this setup, can quickly and accurately determine the personnel verification result based on the verification result of the first target vehicle model to be passed and the facial recognition result. If the personnel verification is successful, a machine descent command is issued to the target passage channel; if the personnel verification fails, the machine descent command is prohibited from being issued to the target passage channel, thereby achieving effective control and management of the gate passage.
[0049] Example 2
[0050] Figure 3 This is a flowchart of a gate access control method provided in Embodiment 2 of the present invention. This embodiment is based on the above embodiment and optimized. Specifically, the optimization is as follows: before issuing the machine body descent command to the target access channel, it further includes: determining whether the target access channel is occupied by other targets waiting to pass in front of the gate; if so, determining the access priority based on the access time information of the first target to pass and other targets waiting to pass.
[0051] like Figure 3 As shown, the method in this embodiment specifically includes the following steps:
[0052] S210: Determine the presence of a first target to pass through the gate by capturing images from the channel camera, and determine whether the width of the first target to pass through satisfies the condition that it is greater than or equal to the channel width and less than the total width of the gate.
[0053] S220, if satisfied, then the number of passageways is determined based on the width of the first target to be passed and the passage width.
[0054] S230, determine the target passage for the first target based on the number of passageways and the distance between the first target to pass and each passageway.
[0055] The specific implementation methods of S210-S230 can be found in the detailed description of S110-S130, and will not be repeated here.
[0056] S240, determine whether the target passage is occupied by other targets waiting to pass in front of the gate.
[0057] In this embodiment, after determining the target passage for the first target to pass through, it is necessary to further determine whether the target passage is occupied by other targets to pass through in front of the gate. If the passage of other targets to pass through in front of the gate overlaps with the target passage of the first target to pass through, it indicates that the target passage is occupied by other targets to pass through in front of the gate. For example, suppose the target passage for the first target to pass through in front of the gate is passage 1, 2, or 3, and the passage of other targets to pass through is passage 2 or 3. In this case, both the first target to pass through and other targets to pass through need to occupy passage 2 or 3 to pass through, that is, the passages to be occupied overlap, and it can be determined that the target passage is occupied by other targets to pass through in front of the gate.
[0058] S250, if so, then determine the passage priority based on the passage time information of the first target to pass and other targets to pass.
[0059] The passage time information can be used to characterize the time it takes for the channel camera to capture the target to be passed. The passage priority can be used as a basis for determining the passage order of the targets. It can be understood that targets with higher passage priority can pass first, while targets with lower passage priority need to pass later.
[0060] In this embodiment, if the target passage is occupied by other targets waiting to pass in front of the gate, it is necessary to further determine the passage priority based on the passage time information of the first target and other targets. For example, by comparing the passage time information of the first target and other targets, the target with the earlier passage time information can be assigned a higher priority, and the target with the later passage time information can be assigned a lower priority. In other words, whichever target the channel camera captures first indicates that its passage time information is earlier (i.e., it arrives at the gate earlier), and this target can pass first.
[0061] S260 issues a lowering command to the target passage channel according to the passage priority, so that the first target to pass or other targets to pass can pass through the gate.
[0062] In this embodiment, after determining the passage priority of the first target to pass and other targets to pass, a machine descent command can be issued to the target passage channel corresponding to the target with higher passage priority (the first target to pass or other targets to pass) so that the first target to pass or other targets to pass can pass smoothly through the gate.
[0063] The technical solution of this invention determines whether the target passage is occupied by other objects waiting to pass through the gate before issuing a lowering command to the target passage. If so, the passage priority is determined based on the passage time information of the first object waiting to pass and other objects waiting to pass. This technical solution, by adaptively adjusting the gate passage width according to the width of the object waiting to pass, effectively solves the problem of inconvenience for large objects due to narrow gate passages and improves passage efficiency. Furthermore, when the target passage is occupied by other objects waiting to pass through the gate, gate passage control can be performed based on the passage priority of the first object waiting to pass and other objects waiting to pass, thereby better meeting actual passage needs.
[0064] In this embodiment, optionally, determining the passage priority based on the passage time information of the first target to pass and other targets to pass includes: determining the initial acquisition time when the first target to pass and other targets to pass are identified by the channel camera; determining the historical descent time of the target passage channel for the first target to pass and other targets to pass; wherein the historical descent time is the maximum value of the last descent time of all passage channels included in the target passage channel; determining the time difference between the first target to pass and other targets to pass based on the initial acquisition time and historical descent time of the first target to pass and other targets to pass; and determining the priority based on the time difference and the width of other targets to pass.
[0065] The initial acquisition time refers to the acquisition time when the target to be passed is first recognized by the channel camera. The historical descent time refers to the maximum value of the previous descent time of all channels included in the target passage. For example, suppose the target passage for the first target to be passed is channels 1, 2, and 3, and the previous descent times for the three channels are 3:50, 3:55, and 3:52, respectively. Therefore, the maximum value of the previous descent time among the three channels is 3:55 for channel 2, and the historical descent time of the target passage for the first target to be passed can be determined to be 3:55. The time difference refers to the difference between the initial acquisition time and the historical descent time. For example, based on the above example, suppose the initial acquisition time for the first target to be passed is 4:00, then the time difference can be expressed as the difference between 4:00 and 3:55, i.e., a time difference of 5 minutes.
[0066] In this embodiment, when determining the passage priority of the first target to pass and other targets to pass, the initial acquisition time of the first target to pass and other targets to pass are first determined, and then the historical descent time of the target passage channel corresponding to the first target to pass and other targets to pass is determined. Then, based on the difference between the initial acquisition time and the historical descent time, the time difference between the first target to pass and other targets to pass is determined. Finally, the priority is determined based on the time difference between the first target to pass and other targets to pass, and the width of other targets to pass.
[0067] In this embodiment, optionally, determining priority based on time difference and the width of other targets to be passed includes: if the width of other targets to be passed is less than the channel width, and the time difference of the first target to be passed is less than a preset time threshold, then the priority of other targets to be passed and the first target to be passed is determined based on whether the target passage channel descends; if the width of other targets to be passed is greater than or equal to the channel width and less than the total width of the gate, then the priority is determined based on the magnitude of the time difference between the first target to be passed and other targets to be passed; or if the width of other targets to be passed is less than the channel width, and the time difference of the first target to be passed is greater than or equal to a preset time threshold, then the priority is determined based on the magnitude of the time difference between the first target to be passed and other targets to be passed.
[0068] The preset time threshold can refer to a pre-set waiting time reference value. In this embodiment, if the width of other targets waiting to pass is less than the channel width, it indicates that the other targets are people. Meanwhile, since the width of the first target is greater than or equal to the channel width and less than the total width of the gate, it indicates that the first target is larger than the channel width, i.e., the first target is a large object. In this case, the priority of people and large objects needs to be determined based on the comparison between the time difference of the first target and the preset time threshold. Specifically, if the width of other targets is less than the channel width, and the time difference of the first target is less than the preset time threshold, it is necessary to further determine whether the target passage has descended, and determine the priority of other targets and the first target based on the descent of the target passage. If the target passage has descended, the priority of the first target is determined to be greater than that of other targets, i.e., large objects have a higher priority than people, and large objects proceed first. If the target passage has not yet descended, the priority of other targets is determined to be greater than that of the first target, i.e., people have a higher priority than large objects, and people proceed first. If the width of other targets waiting to pass is less than the channel width, and the time difference of the first target waiting to pass is greater than or equal to a preset time threshold, the priority can be determined based on the magnitude of the time difference between the first target and other targets waiting to pass. If the width of other targets waiting to pass is greater than or equal to the channel width but less than the total width of the gate, it indicates that the other targets are large objects. Since the width of the first target waiting to pass satisfies the condition of being greater than or equal to the channel width but less than the total width of the gate, it also indicates that the first target is a large object. In this case, the priority also needs to be determined based on the magnitude of the time difference between the first target and other targets waiting to pass.
[0069] This solution, through its configuration, can determine the priority of large objects and people when both have passage needs, based on a comparison between the time difference of the large objects and a preset time threshold; and when multiple large objects have passage needs, it can determine the priority of each large object based on the size of its time difference, thus helping to further improve passage efficiency.
[0070] In this embodiment, optionally, determining the priority based on the time difference between the first target to be passed and other targets to be passed includes: if the time difference between the first target to be passed and other targets to be passed is the same, then the passage priority is determined based on the number of target passage channels between the first target to be passed and other targets to be passed; if the time difference between the first target to be passed and other targets to be passed is different, then the passage priority is determined based on the comparison result of the time difference between the first target to be passed and other targets to be passed.
[0071] A command to lower the machine body is issued to the opening channel so that the first target to pass through the gate can pass through. In this embodiment, when both the first target to pass and the other targets to pass are large objects, if the time difference between the first target to pass and the other targets to pass is the same, the target with fewer target passage channels will pass first, that is, the target with fewer target passage channels has a higher passage priority; if the time difference between the first target to pass and the other targets to pass is different, the target with a larger time difference will pass first, that is, the target with a larger time difference has a higher passage priority.
[0072] This solution uses a configuration such that when the time difference between the first target to be passed and other targets to be passed is the same, the passing priority is determined based on the number of target passage channels; when the time difference between the first target to be passed and other targets to be passed is different, the passing priority is determined based on the magnitude of the time difference, thus simultaneously taking into account both passage efficiency and passage waiting time.
[0073] In this embodiment, optionally, after determining the priority based on the time difference between the first target to be passed and other targets to be passed, the method further includes: after determining the priority of the final target to be passed with higher priority, when determining the priority of the remaining targets to be passed and the new targets to be passed, the historical descent time of the remaining targets to be passed is determined according to the record before the final target to be passed, and the historical descent time of the new targets to be passed is determined according to the record after the final target to be passed; wherein, the remaining targets to be passed are targets whose priority is compared with the final target to be passed; and the new targets to be passed are targets whose priority is not compared with the final target to be passed.
[0074] Here, "final target to be passed" can refer to targets with high priority. "Remaining targets to be passed" can refer to targets whose priority is compared with the final target to be passed. "New targets to be passed" can refer to targets whose priority has not been compared with the final target to be passed.
[0075] In this embodiment, after determining the priority based on the time difference between the first target to be passed and other targets to be passed, the target with the higher priority can be designated as the final target to be passed. After the final target to be passed completes its passage, the historical descent time of the target passage channel for the final target to be passed will be updated accordingly. After the final target to be passed completes its passage, it is necessary to further determine the passage priority of the remaining targets to be passed and the new targets to be passed based on the time difference (the difference between the initial acquisition time and the historical descent time) between the remaining targets to be passed and the new targets to be passed. Specifically, the historical descent time of the remaining targets to be passed is determined according to the record before the final target to be passed, that is, the historical descent time of the remaining targets to be passed remains unchanged; the historical descent time of the new targets to be passed is determined according to the record after the final target to be passed.
[0076] This scheme, through this setting, can determine the priority of remaining and new targets to be passed based on the historical descent time determined under different conditions, thereby further improving traffic efficiency.
[0077] Example 3
[0078] Figure 4 This is a flowchart of a gate access control method provided in Embodiment 3 of the present invention. This embodiment is an optimization based on the above embodiment. Figure 4 As shown, the method in this embodiment specifically includes the following steps:
[0079] A1. When the first target to pass through arrives at the acquisition area of the channel camera, the first target to pass through is confirmed to be present in front of the gate through the image acquired by the channel camera. The first target to pass through is then verified. If the verification is successful, proceed to A2; otherwise, the first target to pass through the gate is prohibited from passing through the gate.
[0080] A2. Determine whether the width of the first target to pass through meets the requirement of being greater than or equal to the channel width and less than the total width of the gate. If it meets the requirement, proceed to A3; otherwise, proceed to A15.
[0081] A3. Determine the number of passageways based on the width of the first target to be passed and the width of the passageway. Determine the target passageway for the first target to be passed based on the number of passageways and the distance between the first target to be passed and each passageway.
[0082] A4. Determine if the target passage is occupied by other targets waiting to pass in front of the gate. If so, proceed to A5; otherwise, proceed to A14.
[0083] A5. Determine the initial acquisition time of the first target to pass and the other targets to pass when they are identified by the channel camera. Determine the historical descent time of the target passage channel for the first target to pass and the other targets to pass. Determine the time difference between the first target to pass and the other targets to pass based on the initial acquisition time and the historical descent time of the first target to pass and the other targets to pass.
[0084] A6. Determine if the width of other targets waiting to pass is less than the channel width. If yes, proceed to A7; otherwise, proceed to A10.
[0085] A7. Determine whether the time difference of the first target to be passed is less than the preset time threshold. If yes, go to A8; otherwise, go to A9.
[0086] A8. Other targets awaiting passage have a higher priority than the first target awaiting passage.
[0087] A9. Other targets awaiting passage have a lower priority than the first target awaiting passage.
[0088] A10. Determine if the time difference between the first target to be passed and other targets to be passed is the same. If yes, proceed to A11; otherwise, proceed to A12.
[0089] A11. Targets with fewer access lanes have higher access priority.
[0090] A12. Targets with large time differences have higher passage priority.
[0091] A13. Issue a lowering command to the target passage channel according to the passage priority, so that the first target to pass or other targets to pass can pass through the gate.
[0092] A14. Send a command to lower the machine body to the target passage so that the first target to pass through can pass through the gate.
[0093] A15. Determine if the width of the first target to be passed is less than the width of the passage. If yes, proceed to A16; otherwise, proceed to A20.
[0094] A16. Perform face recognition on the first target to be passed, and determine whether there are the same face recognition results in the images captured by other channel cameras at the same time. If so, go to A17; otherwise, go to A18.
[0095] A17. Determine the distance between the first target to be passed and each channel based on the images captured by the cameras in each channel, and determine the channel with the smallest distance as the open channel for the first target to be passed.
[0096] The A18 identifies the channel corresponding to the camera that successfully recognizes a face as the first channel to be opened for passage.
[0097] A19. Send a command to lower the machine body to the opening channel so that the first target to pass through can pass through the gate.
[0098] A20. The first target to be passed is too wide and cannot be passed.
[0099] Example 4
[0100] Figure 5 This is a schematic diagram of a gate access control device provided in Embodiment 4 of the present invention. This device can execute the gate access control method provided in any embodiment of the present invention, and possesses the corresponding functional modules and beneficial effects of the method. For example... Figure 5 As shown, the device includes:
[0101] The first target to pass determination module 410 is used to determine that a first target to pass appears in front of the gate through the image captured by the channel camera, and to determine whether the width of the first target to pass is greater than or equal to the channel width and less than the total width of the gate.
[0102] The passageway quantity determination module 420 is used to determine the number of passageways based on the width of the first target to be passed and the passage width if the conditions are met.
[0103] The target passage channel determination module 430 is used to determine the target passage channel of the first target to pass through based on the number of passage channels and the distance between the first target to pass through and each channel, and to issue a machine body descent command to the target passage channel so that the first target to pass through can pass through the gate.
[0104] Optionally, the device further includes:
[0105] The target passage channel determination module is used to determine whether the target passage channel is occupied by other targets waiting to pass in front of the gate before issuing the machine body descent command to the target passage channel;
[0106] The passage priority determination module is used to determine the passage priority based on the passage time information of the first target to be passed and the other targets to be passed if the condition is met.
[0107] Optionally, the passage priority determination module includes:
[0108] The initial acquisition time determination unit is used to determine the initial acquisition time when the first target to be passed and the other targets to be passed are identified by the channel camera, respectively;
[0109] The historical descent time determination unit is used to determine the historical descent time of the target passage for the first target to pass and the other targets to pass, respectively; wherein, the historical descent time is the maximum value of the previous descent time of all passages included in the target passage;
[0110] The time difference determination unit is used to determine the time difference between the first target to be passed and the other targets to be passed based on the initial acquisition time and the historical descent time of the first target to be passed and the other targets to be passed, respectively.
[0111] The priority determination unit is used to determine the priority based on the time difference and the width of the other targets to be passed.
[0112] Optionally, the priority determination unit includes:
[0113] The first priority determination subunit is used to determine the priority of the other targets to be passed and the first target to be passed based on whether the target passage channel has decreased if the width of the other targets to be passed is less than the channel width and the time difference of the first target to be passed is less than a preset time threshold.
[0114] The second priority determination subunit is used to determine the priority based on the time difference between the first target to be passed and the other targets to be passed if the width of the other targets to be passed is greater than or equal to the channel width and less than the total width of the gate; or if the width of the other targets to be passed is less than the channel width and the time difference of the first targets to be passed is greater than or equal to a preset time threshold, then the priority is determined based on the time difference between the first targets to be passed and the other targets to be passed.
[0115] Optionally, the second priority determining subunit is used for:
[0116] If the time difference between the first target to be passed and the other targets to be passed is the same, then the passing priority is determined according to the number of target passage channels for the first target to be passed and the other targets to be passed.
[0117] If the time difference between the first target to be passed and the other targets to be passed is different, the passing priority is determined based on the comparison result of the time difference between the first target to be passed and the other targets to be passed.
[0118] Optionally, the priority determination unit is further configured to:
[0119] After determining the priority based on the time difference between the first target to be passed and the other targets to be passed, and after the final target to be passed with the higher priority is determined, when determining the priority of the remaining targets to be passed and the new targets to be passed, the historical descent time of the remaining targets to be passed is determined according to the record before the final target to be passed, and the historical descent time of the new targets to be passed is determined according to the record after the final target to be passed;
[0120] Wherein, the remaining targets to be passed are targets whose priority is compared with the final targets to be passed; the new targets to be passed are targets whose priority is not compared with the final targets to be passed.
[0121] Optionally, the device further includes:
[0122] The face recognition result judgment module is used to determine whether the width of the first target to pass is greater than or equal to the channel width and less than the total width of the gate. If the width of the first target to pass is less than the channel width, then face recognition is performed on the first target to pass, and it is determined whether there are the same face recognition results in the images captured by other channel cameras at the same time.
[0123] The distance determination module is used to determine the distance between the first target to be passed and each channel based on the images captured by each channel camera, if such a target exists.
[0124] The channel opening determination module is used to determine the opening channel corresponding to the first target to be passed based on the distance.
[0125] The gate access control device provided in this embodiment of the invention can execute a gate access control method provided in any embodiment of the invention, and has the corresponding functional modules and beneficial effects of the method.
[0126] Example 5
[0127] Figure 6 A schematic diagram of an electronic device 10 that can be used to implement embodiments of the present invention is shown. The electronic device is intended to represent various forms of digital computers, such as laptop computers, desktop computers, workstations, personal digital assistants, servers, blade servers, mainframe computers, and other suitable computers. The electronic device can also represent various forms of mobile devices, such as personal digital processors, cellular phones, smartphones, wearable devices (e.g., helmets, glasses, watches, etc.), and other similar computing devices. The components shown herein, their connections and relationships, and their functions are merely illustrative and are not intended to limit the implementation of the invention described and / or claimed herein.
[0128] like Figure 6 As shown, the electronic device 10 includes at least one processor 11 and a memory, such as a read-only memory (ROM) 12 or a random access memory (RAM) 13, communicatively connected to the at least one processor 11. The memory stores computer programs executable by the at least one processor. The processor 11 can perform various appropriate actions and processes based on the computer program stored in the ROM 12 or loaded from storage unit 18 into the RAM 13. The RAM 13 may also store various programs and data required for the operation of the electronic device 10. The processor 11, ROM 12, and RAM 13 are interconnected via a bus 14. An input / output (I / O) interface 15 is also connected to the bus 14.
[0129] Multiple components in electronic device 10 are connected to I / O interface 15, including: input unit 16, such as keyboard, mouse, etc.; output unit 17, such as various types of displays, speakers, etc.; storage unit 18, such as disk, optical disk, etc.; and communication unit 19, such as network card, modem, wireless transceiver, etc. Communication unit 19 allows electronic device 10 to exchange information / data with other devices through computer networks such as the Internet and / or various telecommunications networks.
[0130] Processor 11 can be a variety of general-purpose and / or special-purpose processing components with processing and computing capabilities. Some examples of processor 11 include, but are not limited to, a central processing unit (CPU), a graphics processing unit (GPU), various special-purpose artificial intelligence (AI) computing chips, various processors running machine learning model algorithms, a digital signal processor (DSP), and any suitable processor, controller, microcontroller, etc. Processor 11 performs the various methods and processes described above, such as gate access control methods.
[0131] In some embodiments, the gate access control method may be implemented as a computer program tangibly contained in a computer-readable storage medium, such as storage unit 18. In some embodiments, part or all of the computer program may be loaded and / or installed on electronic device 10 via ROM 12 and / or communication unit 19. When the computer program is loaded into RAM 13 and executed by processor 11, one or more steps of the gate access control method described above may be performed. Alternatively, in other embodiments, processor 11 may be configured to perform the gate access control method by any other suitable means (e.g., by means of firmware).
[0132] Various embodiments of the systems and techniques described above herein can be implemented in digital electronic circuit systems, integrated circuit systems, field-programmable gate arrays (FPGAs), application-specific integrated circuits (ASICs), application-specific standard products (ASSPs), systems-on-a-chip (SoCs), payload-programmable logic devices (CPLDs), computer hardware, firmware, software, and / or combinations thereof. These various embodiments may include implementations in one or more computer programs that can be executed and / or interpreted on a programmable system including at least one programmable processor, which may be a dedicated or general-purpose programmable processor, capable of receiving data and instructions from a storage system, at least one input device, and at least one output device, and transmitting data and instructions to the storage system, the at least one input device, and the at least one output device.
[0133] Computer programs used to implement the methods of the present invention may be written in any combination of one or more programming languages. These computer programs may be provided to a processor of a general-purpose computer, a special-purpose computer, or other programmable data processing device, such that when executed by the processor, the computer programs cause the functions / operations specified in the flowcharts and / or block diagrams to be performed. The computer programs may be executed entirely on a machine, partially on a machine, or as a standalone software package, partially on a machine and partially on a remote machine, or entirely on a remote machine or server.
[0134] In the context of this invention, a computer-readable storage medium can be a tangible medium that may contain or store a computer program for use by or in conjunction with an instruction execution system, apparatus, or device. A computer-readable storage medium may include, but is not limited to, electronic, magnetic, optical, electromagnetic, infrared, or semiconductor systems, apparatus, or devices, or any suitable combination thereof. Alternatively, a computer-readable storage medium may be a machine-readable signal medium. More specific examples of machine-readable storage media include electrical connections based on one or more wires, portable computer disks, hard disks, random access memory (RAM), read-only memory (ROM), erasable programmable read-only memory (EPROM or flash memory), optical fibers, portable compact disk read-only memory (CD-ROM), optical storage devices, magnetic storage devices, or any suitable combination thereof.
[0135] To provide interaction with a user, the systems and techniques described herein can be implemented on an electronic device having: a display device (e.g., a CRT (cathode ray tube) or LCD (liquid crystal display) monitor) for displaying information to the user; and a keyboard and pointing device (e.g., a mouse or trackball) through which the user provides input to the electronic device. Other types of devices can also be used to provide interaction with the user; for example, feedback provided to the user can be any form of sensory feedback (e.g., visual feedback, auditory feedback, or tactile feedback); and input from the user can be received in any form (including sound input, voice input, or tactile input).
[0136] The systems and technologies described herein can be implemented in computing systems that include backend components (e.g., as data servers), or computing systems that include middleware components (e.g., application servers), or computing systems that include frontend components (e.g., user computers with graphical user interfaces or web browsers through which users can interact with implementations of the systems and technologies described herein), or any combination of such backend, middleware, or frontend components. The components of the system can be interconnected via digital data communication of any form or medium (e.g., communication networks). Examples of communication networks include local area networks (LANs), wide area networks (WANs), blockchain networks, and the Internet.
[0137] A computing system can include clients and servers. Clients and servers are generally located far apart and typically interact through a communication network. The client-server relationship is created by computer programs running on the respective computers and having a client-server relationship with each other. The server can be a cloud server, also known as a cloud computing server or cloud host, which is a hosting product within the cloud computing service system to address the shortcomings of traditional physical hosts and VPS services, such as high management difficulty and weak business scalability.
[0138] It should be understood that the various forms of processes shown above can be used, with steps reordered, added, or deleted. For example, the steps described in this invention can be executed in parallel, sequentially, or in different orders, as long as the desired result of the technical solution of this invention can be achieved, and this is not limited herein.
[0139] The specific embodiments described above do not constitute a limitation on the scope of protection of this invention. Those skilled in the art should understand that various modifications, combinations, sub-combinations, and substitutions can be made according to design requirements and other factors. Any modifications, equivalent substitutions, and improvements made within the spirit and principles of this invention should be included within the scope of protection of this invention.
Claims
1. A gate access control method, characterized in that, The turnstile includes at least two parallel channels, and the channel body has a lifting function. The method includes: The system determines that a first target to pass through appears in front of the gate by capturing images from the channel camera, and then determines whether the width of the first target to pass through satisfies the condition that it is greater than or equal to the channel width and less than the total width of the gate. If the conditions are met, the number of passageways is determined based on the width of the first target to be passed and the width of the passageway. The target passage for the first target to pass through is determined based on the number of passage channels and the distance between the first target to pass through each channel, and a machine descent command is issued to the target passage channel so that the first target to pass through can pass through the gate. Before issuing a descent command to the target passageway, the method further includes: Determine whether the target passage is occupied by other targets waiting to pass in front of the gate; If so, the passage priority is determined based on the passage time information of the first target to be passed and the other targets to be passed; The step of determining the passage priority based on the passage time information of the first target to be passed and the other targets to be passed includes: determining the initial acquisition time when the first target to be passed and the other targets to be passed are identified by the channel camera; determining the historical descent time of the target passage channel for the first target to be passed and the other targets to be passed; wherein the historical descent time is the maximum value of the previous descent time of all passage channels included in the target passage channel; determining the time difference between the first target to be passed and the other targets to be passed based on the initial acquisition time and the historical descent time; and determining the priority based on the time difference and the width of the other targets to be passed.
2. The method according to claim 1, characterized in that, Priority is determined based on the time difference and the width of the other targets to be passed, including: If the width of the other targets to be passed is less than the channel width, and the time difference of the first target to be passed is less than a preset time threshold, then the priority of the other targets to be passed and the first target to be passed is determined according to whether the target passage channel is descending. If the width of the other targets to be passed is greater than or equal to the channel width and less than the total width of the gate, then the priority is determined according to the time difference between the first target to be passed and the other targets to be passed; or if the width of the other targets to be passed is less than the channel width, and the time difference between the first targets to be passed is greater than or equal to a preset time threshold, then the priority is determined according to the time difference between the first target to be passed and the other targets to be passed.
3. The method according to claim 2, characterized in that, Priority is determined based on the time difference between the first target to be passed and the other targets to be passed, including: If the time difference between the first target to be passed and the other targets to be passed is the same, then the passing priority is determined according to the number of target passage channels for the first target to be passed and the other targets to be passed. If the time difference between the first target to be passed and the other targets to be passed is different, the passing priority is determined based on the comparison result of the time difference between the first target to be passed and the other targets to be passed.
4. The method according to claim 3, characterized in that, After determining the priority based on the time difference between the first target to be passed and the other targets to be passed, the method further includes: After the final target with the highest priority has passed, when determining the priority of the remaining targets and new targets, the historical descent time of the remaining targets is determined according to the record before the final target passed, and the historical descent time of the new targets is determined according to the record after the final target passed. Wherein, the remaining targets to be passed are targets whose priority is compared with the final targets to be passed; the new targets to be passed are targets whose priority is not compared with the final targets to be passed.
5. The method according to claim 1, characterized in that, After determining whether the width of the first target to be passed is greater than or equal to the channel width and less than the total width of the gate, the method further includes: If the width of the first target to be passed is less than the width of the channel, then face recognition is performed on the first target to be passed, and it is determined whether there are the same face recognition results in the images captured by other channel cameras at the same time. If so, determine the distance between the first target to be passed and each channel based on the images captured by the cameras in each channel; The opening channel corresponding to the first target to be passed is determined based on the distance.
6. A gate access control device, characterized in that, The turnstile includes at least two parallel channels, and the channel body has a lifting function. The device includes: The first target to pass is determined by the image captured by the channel camera to determine that a first target to pass has appeared in front of the gate, and to determine whether the width of the first target to pass is greater than or equal to the channel width and less than the total width of the gate. The passageway quantity determination module is used to determine the number of passageways based on the width of the first target to be passed and the passage width if the conditions are met. The target passage channel determination module is used to determine the target passage channel of the first target to pass through based on the number of passage channels and the distance between the first target to pass through and each channel, and to issue a machine body descent command to the target passage channel so that the first target to pass through can pass through the gate; The device further includes: The target passage channel determination module is used to determine whether the target passage channel is occupied by other targets waiting to pass in front of the gate before issuing the machine body descent command to the target passage channel; The passage priority determination module is used to determine the passage priority based on the passage time information of the first target to pass and the other targets to pass if the condition is met. The passage priority determination module includes: The initial acquisition time determination unit is used to determine the initial acquisition time when the first target to be passed and the other targets to be passed are identified by the channel camera, respectively; The historical descent time determination unit is used to determine the historical descent time of the target passage for the first target to pass and the other targets to pass, respectively; wherein, the historical descent time is the maximum value of the previous descent time of all passages included in the target passage; The time difference determination unit is used to determine the time difference between the first target to be passed and the other targets to be passed based on the initial acquisition time and the historical descent time of the first target to be passed and the other targets to be passed, respectively. The priority determination unit is used to determine the priority based on the time difference and the width of the other targets to be passed.
7. An electronic device for controlling access to turnstiles, characterized in that, The electronic device includes: At least one processor; and A memory communicatively connected to the at least one processor; wherein, The memory stores a computer program that can be executed by the at least one processor, the computer program being executed by the at least one processor to enable the at least one processor to perform the gate access control method according to any one of claims 1-5.
8. A computer-readable storage medium, characterized in that, The computer-readable storage medium stores computer instructions that are used to cause a processor to execute the gate access control method according to any one of claims 1-5.
Citation Information
Patent Citations
Control method and system of channel gate
CN113393603A
Two-way passing method, two-way passing gate and storage medium
CN114202835A
Floodgate machine and floodgate machine ticketing system
CN208533415U