Control method, device and computer equipment for gate system
By detecting abnormal infrared sensors in the gate system and assigning them the functions of adjacent normal sensors, the problem of system unusability caused by infrared sensor damage was solved, thus achieving normal system operation and reducing maintenance costs.
Patent Information
- Application Number
- CN202310849052.5
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2023-07-11
- Publication Date
- 2026-02-13
- Estimated Expiration
- 2043-07-11
AI Technical Summary
In existing turnstile systems, damage to infrared sensors renders the system unusable. Replacing the sensors is costly in remote areas, and repairs are unnecessary if the damage does not affect the system's basic functions.
The distribution of abnormal infrared sensors in the gate system is detected, and the infrared detection function of adjacent normal infrared sensors is assigned to the abnormal sensors to generate infrared detection results, thereby realizing the functional replacement of the abnormal sensors and ensuring the normal operation of the system.
Even with faulty infrared sensors, the gate system can still function normally, solving the problem of system unavailability caused by damaged infrared sensors and reducing maintenance costs and manpower and material consumption.
Smart Images

Figure CN117079376B_ABST
Abstract
Description
TECHNICAL FIELD
[0001] The present application relates to the technical field of access control, in particular to a control method and device for a gate system and a computer device. BACKGROUND
[0002] With the development of access control technology, access control using a gate system has been widely applied. In the current gate system, an infrared sensor is generally used as a sensing device for personnel passage. Corresponding infrared sensors are arranged at multiple positions of the access passage to identify pedestrian blocking. On the premise of receiving a card swiping signal, the gate is opened when a pedestrian enters the access passage, and then the pedestrian passage is identified. Finally, the gate is closed after the pedestrian passage is identified to be over. However, in the current gate system, when it is detected that an infrared sensor is damaged and is not replaced, the gate system cannot be used, resulting in a short service life of the gate system. However, it is difficult to replace individual infrared sensors in remote areas due to the large consumption of manpower and resources. Moreover, the damage of individual infrared sensors does not affect the basic function of the gate system, and there is no need to immediately repair the damaged infrared sensor.
[0003] The problem of the damaged infrared sensor of the gate system in the prior art, which causes the gate system to be unusable, has not been effectively solved. SUMMARY
[0004] Therefore, it is necessary to provide a control method and device for a gate system and a computer device to solve the above technical problems.
[0005] In a first aspect, the present application provides a control method for a gate system, the method comprising:
[0006] In the case that there is an abnormal infrared sensor in the gate system, detecting the distribution of the abnormal infrared sensor in the gate system;
[0007] Based on the distribution of the abnormal infrared sensor in the gate system, assigning the infrared detection function of the normal infrared sensor adjacent to the abnormal infrared sensor to the abnormal infrared sensor to generate an infrared detection result;
[0008] Based on the infrared detection result, controlling the gate system.
[0009] In one embodiment, the method further comprises:
[0010] In the case that there are two normal infrared sensors adjacent to the abnormal infrared sensor, sorting the infrared sensors of the gate system in front and back according to the passage direction of the passage object;
[0011] The infrared detection function of a normal infrared sensor adjacent to the abnormal infrared sensor is assigned to the abnormal infrared sensor, and an infrared detection result is generated.
[0012] In one of the embodiments, the method further comprises:
[0013] Based on the state of the transmitting end and the level of the receiving end of the infrared sensor in the gate system, it is determined whether the infrared sensor is an abnormal infrared sensor.
[0014] In one of the embodiments, if the transmitting end of the infrared sensor is in the off state and the receiving end of the infrared sensor is in the low level, it is determined that the infrared sensor is the abnormal infrared sensor; or
[0015] If the transmitting end of the infrared sensor is in the on state and the receiving end of the infrared sensor is in the high level, it is determined that the infrared sensor is the abnormal infrared sensor.
[0016] In one of the embodiments, the control of the gate system based on the infrared detection result comprises:
[0017] According to the infrared detection result, the infrared sensors with the same infrared detection function are divided into the same infrared area, and a division result of the infrared area of the gate system is generated;
[0018] According to the passing direction of the passing object and the division result of the infrared area, the passing behavior of the passing object is detected, and a behavior detection result is obtained;
[0019] According to the behavior detection result, the gate system is controlled.
[0020] In one of the embodiments, the detection of the passing behavior of the passing object according to the passing direction of the passing object and the division result of the infrared area to obtain the behavior detection result comprises:
[0021] According to the passing direction of the passing object, the infrared area is sorted, and the first infrared area and the last infrared area after sorting are determined;
[0022] In a case that the first infrared region and the last infrared region are located at two sides of a door wing of the gate system respectively, a passing behavior of the passing object entering the gate system is detected based on the infrared detection function of the infrared sensor in the first infrared region, so as to obtain a behavior detection result of the passing object entering the gate system; and a passing behavior of the passing object leaving the gate system is detected based on the infrared detection function of the infrared sensor in the last infrared region, so as to obtain a behavior detection result of the passing object leaving the gate system.
[0023] In one of the embodiments, the detecting the passing behavior of the passing object according to the passing direction of the passing object and the division result of the infrared regions to obtain the behavior detection result further comprises:
[0024] The infrared regions are sorted according to the passing direction of the passing object, so as to determine a first infrared region and a last infrared region after sorting;
[0025] Whether the last infrared region is blocked prior to the first infrared region is determined according to the infrared detection function of the infrared sensor in the first infrared region and the infrared detection function of the infrared sensor in the last infrared region;
[0026] In a case that the last infrared region is blocked prior to the first infrared region, it is determined that the passing object has a rush-in behavior.
[0027] In one of the embodiments, the detecting the passing behavior of the passing object according to the passing direction of the passing object and the division result of the infrared regions to obtain the behavior detection result further comprises:
[0028] In a case that there are two adjacent infrared regions respectively located at two sides of the door wing, whether the two adjacent infrared regions respectively located at the two sides of the door wing are blocked simultaneously is determined according to the infrared detection function of the infrared sensor in the two adjacent infrared regions respectively located at the two sides of the door wing;
[0029] In a case that the door wing of the gate is closed and the two adjacent infrared regions respectively located at the two sides of the door wing are blocked simultaneously, it is determined that the passing object has a climbing-over behavior.
[0030] In one of the embodiments, the detecting the passing behavior of the passing object according to the passing direction of the passing object and the division result of the infrared regions to obtain the behavior detection result further comprises:
[0031] In the case of at least three infrared regions, whether two non-adjacent infrared regions are simultaneously blocked is determined according to the infrared detection function of the infrared sensor in the infrared region.
[0032] When two non-adjacent infrared regions are simultaneously blocked, it is determined that the passing object has a tailing behavior.
[0033] In one embodiment, the method further comprises:
[0034] According to the passing direction of the passing object and the distance between the normal infrared sensor and the door wing of the gate system, the closing time of the door wing is set.
[0035] In a second aspect, the present application further provides a control device for a gate system, the device comprising:
[0036] A detection module is configured to detect the distribution of the abnormal infrared sensor in the gate system in the case of the abnormal infrared sensor in the gate system.
[0037] A result module is configured to attribute the infrared detection function of the normal infrared sensor adjacent to the abnormal infrared sensor in the gate system to the abnormal infrared sensor based on the distribution of the abnormal infrared sensor in the gate system, and generate an infrared detection result.
[0038] A control module is configured to control the gate system based on the infrared detection result.
[0039] In a third aspect, the present application further provides a computer device, which comprises a memory and a processor, the memory stores a computer program, and the processor implements the control method for the gate system of the first aspect when executing the computer program.
[0040] In a fourth aspect, the present application further provides a computer readable storage medium, which stores a computer program, and the computer program is executed by a processor to implement the control method for the gate system of the first aspect.
[0041] The control method, device and computer equipment for the gate system can ensure normal use of the gate system in the case that there is an abnormal infrared sensor in the gate system, and solve the problem that the gate system cannot continue to be used due to damage of the infrared sensor of the gate system in the prior art.
[0042] The details of one or more embodiments of the application are set forth in the accompanying drawings and the description below. Other features, objects, and advantages of the application will be apparent from the description and drawings, and from the claims. BRIEF DESCRIPTION OF DRAWINGS
[0043] The accompanying drawings, which are included to provide a further understanding of the application and constitute a part of this application, illustrate embodiments of the application and together with the description serve to explain the application. In the drawings:
[0044] Figure 1 The hardware structure block diagram of the terminal for the control method for the gate system provided by an embodiment of the application is shown in the figure;
[0045] Figure 2 The flowchart of the control method for the gate system provided by an embodiment of the application is shown in the figure;
[0046] Figure 3 The sorting schematic diagram of the infrared sensor of the gate system provided by an embodiment of the application is shown in the figure;
[0047] Figure 4 The division schematic diagram of the infrared area of the gate system provided by an embodiment of the application is shown in the figure;
[0048] Figure 5 The setting principle schematic diagram of the door closing time for the gate system provided by an embodiment of the application is shown in the figure;
[0049] Figure 6 The flowchart of the control method for the gate system provided by a preferred embodiment of the application is shown in the figure;
[0050] Figure 7 The structure block diagram of the control device for the gate system provided by an embodiment of the application is shown in the figure. DETAILED DESCRIPTION
[0051] In order to make the purpose, technical solution and advantages of the application clearer, the application is described and explained in combination with the drawings and embodiments.
[0052] Unless otherwise defined, technical terms and scientific terms used in the present application shall have the same meaning as those commonly understood by a person of ordinary skill in the art to which the present application belongs. The terms "one", "a", "an", "the", "these", and similar terms in the present application do not mean "only one" or "exactly one", but can mean "one or more" or "at least one". The terms "include", "contain", "have", and any variant thereof in the present application are intended to cover the non-exclusive inclusion; for example, a process, method, system, product or device containing a series of steps or modules (units) is not limited to the listed steps or modules (units), but can include steps or modules (units) not listed, or can include other steps or modules (units) inherent to the process, method, product or device. The terms "connect", "connect", "couple" and the like in the present application are not limited to physical or mechanical connection, but can include electrical connection, whether direct or indirect. The term "multiple" in the present application means two or more. The term "and / or" describes the association between the associated objects, which means that there can be three relationships, for example, "A and / or B" can mean that A exists alone, A and B exist together, and B exists alone. Generally, the character " / " represents an "or" relationship between the associated objects. The terms "first", "second", "third" and the like in the present application are only used to distinguish similar objects, and do not represent a specific order of the objects.
[0053] The method embodiments provided in the present embodiment can be executed in a terminal, a computer or a similar computing device. For example, the method embodiments are executed on a terminal, Figure 1 is a hardware structure block diagram of a terminal for the control method of the gate system of the present embodiment. As shown in Figure 1 , the terminal can include one or more (only one is shown in Figure 1 ) processor 102 and memory 104 for storing data, wherein the processor 102 can include but not limited to processing device such as microprocessor MCU or programmable logic device FPGA. The above terminal can also include transmission device 106 for communication function and input / output device 108. Those skilled in the art can understand that Figure 1 The structure shown is only schematic, which does not limit the structure of the above terminal. For example, the terminal can include more or less components than Figure 1 shown, or have a different configuration from Figure 1 shown.
[0054] The memory 104 can be used to store computer programs, such as software programs of application software and modules, such as the computer program corresponding to the control method for the gate system in the present embodiment. The processor 102 can execute various functional applications and data processing, i.e., implement the above method, by running the computer programs stored in the memory 104. The memory 104 can include a high-speed random access memory, and can further include a non-volatile memory, such as one or more magnetic storage devices, flash memories, or other non-volatile solid-state memories. In some examples, the memory 104 can further include memories remotely arranged with respect to the processor 102, which can be connected to the terminal through a network. Examples of the above network include, but are not limited to, the Internet, an intranet, a local area network, a mobile communication network, and a combination thereof.
[0055] The transmission device 106 is used to receive or send data via a network. The above network includes a wireless network provided by a communication provider of the terminal. In one example, the transmission device 106 includes a network adapter (NIC), which can be connected to other network devices through a base station so as to communicate with the Internet. In one example, the transmission device 106 can be a radio frequency (RF) module, which is used to communicate with the Internet in a wireless manner.
[0056] In one embodiment, a control method for a gate system is provided, Figure 2 is a flowchart of the control for the gate system of the present embodiment, as Figure 2 shown, the flowchart includes the following steps:
[0057] In step S210, in the case that there is an abnormal infrared sensor in the gate system, the distribution of the abnormal infrared sensor in the gate system is detected.
[0058] The abnormal infrared sensor can refer to an infrared sensor whose infrared function is abnormal and cannot complete infrared detection. The infrared sensor refers to an active infrared sensor, and each infrared sensor includes a transmitting end and a receiving end. In a case where the functions of the transmitting end and the receiving end of the infrared sensor are in a normal state and the transmitting end can normally irradiate the receiving end, the infrared sensor is identified as a normal infrared sensor; otherwise, the infrared sensor is identified as an abnormal infrared sensor. The generation reason of the abnormal infrared sensor can be that the receiving end of the infrared sensor is abnormal, or that the transmitting end of the infrared sensor is abnormal, or that the transmitting end and the receiving end of the infrared sensor cannot successfully irradiate each other. The distribution of the abnormal infrared sensor in the gate system can be the distribution of the abnormal infrared sensor in the entire gate system, or the distribution relationship between the abnormal infrared sensor and the normal infrared sensor.
[0059] In step S220, based on the distribution of the abnormal infrared sensor in the gate system, the infrared detection function of the normal infrared sensor adjacent to the abnormal infrared sensor in the gate system is given to the abnormal infrared sensor, and an infrared detection result is generated.
[0060] The infrared detection function refers to the detection function of the infrared sensor on whether there is an obstruction in its detection area. Specifically, a normally working infrared sensor includes a successful emission state and an unsuccessful emission state. The successful emission state refers to a state in which the infrared rays emitted by the emission end of the infrared sensor can be successfully received by the receiving end of the infrared sensor. The unsuccessful emission state refers to a state in which the infrared rays emitted by the emission end of the infrared sensor cannot be successfully received by the receiving end of the infrared sensor. When a pedestrian enters the channel of the gate system, the infrared sensor originally in the successful emission state cannot successfully receive the infrared rays emitted by the emission end of the infrared sensor due to the obstruction of the human body, and enters the unsuccessful emission state. Thus, the infrared sensor can realize the above-mentioned infrared detection function by judging whether it is in the successful emission state. Assigning the infrared detection function of a normal infrared sensor to an abnormal infrared sensor means synchronizing the infrared detection result of the normal infrared sensor with the infrared detection result of the abnormal infrared sensor to which the infrared detection function is assigned. When the normal infrared sensor detects an obstruction, it is considered that the abnormal infrared sensor also detects an obstruction. In this embodiment, by assigning the infrared detection function of a normal infrared sensor to an abnormal infrared sensor, the abnormal infrared sensor can still cooperate with other normal infrared sensors to detect the passing behavior of the passing object in the gate system, so as to achieve the purpose that the gate system can continue to operate normally even if there is an abnormal infrared sensor. After setting the infrared detection function of the abnormal infrared sensor, the passing behavior of the passing object in the gate system can be detected based on the infrared detection function of all infrared sensors in the gate system, and the infrared detection result can be obtained.
[0061] In step S230, the gate system is controlled based on the infrared detection result. Exemplarily, the control of the gate system can include functions such as opening and closing of the gate system, anti-pinch function, intrusion detection function, climbing detection function, and tailing detection function.
[0062] In steps S210 to S230, the distribution of the abnormal infrared sensor in the gate system is detected when there is an abnormal infrared sensor in the gate system. The infrared detection function of the normal infrared sensor adjacent to the abnormal infrared sensor in the gate system is assigned to the abnormal infrared sensor based on the distribution of the abnormal infrared sensor in the gate system, and the infrared detection result is generated. Finally, the gate system is controlled based on the infrared detection result. It can ensure that the gate system is normally used when there is an abnormal infrared sensor in the gate system, and solves the problem that the gate system cannot continue to be used due to the damage of the infrared sensor in the gate system in the prior art.
[0063] It should be noted that the control method for the turnstile system provided in this embodiment is applicable to scenarios where both sides of the turnstile gate have normal infrared sensors.
[0064] In another embodiment, the control method for the gate system described above further includes:
[0065] In the presence of two normal infrared sensors adjacent to the abnormal infrared sensor, the infrared sensors of the gate system are ordered according to the passage direction of the object; the infrared detection function of the adjacent normal infrared sensor that is ordered before the abnormal infrared sensor is assigned to the abnormal infrared sensor to generate an infrared detection result.
[0066] The aforementioned "accessible objects" can specifically refer to pedestrians passing through the turnstile system. The passage direction of these objects refers to the direction pre-set by the turnstile system for permitted passage. If card swiping is required to open the gate, the opening direction of the gate wings in the turnstile system is consistent with the passage direction of the cardholder entering the turnstile system channel. In this embodiment, based on the distribution of the aforementioned abnormal infrared sensors in the turnstile system, the positional relationship between the abnormal and normal infrared sensors in the turnstile system can be obtained.
[0067] Alternatively, the infrared sensors of the turnstile system can be sorted in the same direction as the passage direction mentioned above. For example, the first infrared sensor entering the turnstile channel can be labeled as infrared sensor number 1, and so on in ascending order until all the infrared sensors of the turnstile system have been labeled. Figure 3 This is a schematic diagram showing the arrangement of infrared sensors in a gate system according to an embodiment of this application. Wherein, as... Figure 3 As shown, the turnstile system includes one gate wing 300 and eight infrared sensors, which detect the opening direction of the turnstile (…). Figure 3 The eight infrared sensors (represented by arrows) are numbered 1 to 8 using Arabic numerals (as shown in the diagram, the numbers are directly marked on the circles representing the infrared sensors), namely infrared sensor 1, infrared sensor 2, infrared sensor 3, infrared sensor 4, infrared sensor 5, infrared sensor 6, infrared sensor 7, and infrared sensor 8. Alternatively, the infrared sensors can be numbered in other ways, such as alphabetical order. After numbering, the infrared detection function of the normal infrared sensor whose number is adjacent to that of the abnormal infrared sensor and which precedes it in the sequence can be assigned to the abnormal infrared sensor. For example, if... Figure 3 If infrared sensor #2 is an abnormal infrared sensor, then the infrared detection function of infrared sensor #1 will be assigned to infrared sensor #2.
[0068] Specifically, when the first infrared sensor after sorting (i.e.Figure 3 If the first infrared sensor (e.g., the No. 1 infrared sensor in the gate system) is an abnormal infrared sensor, the infrared detection function of the first normal infrared sensor is assigned to all the abnormal infrared sensors in front of the first normal infrared sensor. For example, if the No. 1 infrared sensor in the gate system is an abnormal infrared sensor, and the No. 2 infrared sensor is a normal infrared sensor, the infrared detection function of the No. 2 infrared sensor is assigned to the No. 1 infrared sensor. Alternatively, all the abnormal infrared sensors in front of the first normal infrared sensor can be shielded, and the control of the gate system can be realized by using other infrared sensors. This step realizes the purpose of continuing to use the gate system even if there is an abnormal infrared sensor in the gate system by sorting the infrared sensors in the gate system and setting the infrared detection function of the abnormal infrared sensor according to the sorting result.
[0069] In an embodiment, the above-mentioned control method for the gate system can further include:
[0070] Based on the state of the transmitting end and the level of the receiving end of the infrared sensor in the gate system, it is determined whether the infrared sensor is an abnormal infrared sensor.
[0071] Further, in an embodiment, if the transmitting end of the infrared sensor is in the off state, and the receiving end of the infrared sensor is in the low level, it is determined that the infrared sensor is an abnormal infrared sensor; or if the transmitting end of the infrared sensor is in the on state, and the receiving end of the infrared sensor is in the high level, it is determined that the infrared sensor is an abnormal infrared sensor.
[0072] Under normal circumstances, when the transmitting end of the infrared sensor in the gate system is in the off state, if the receiving end of the infrared sensor is normally installed, at this time the receiving end of the infrared sensor is in the high level. Therefore, when it is detected that the transmitting end of the infrared sensor in the gate system is in the off state, if the receiving end of the infrared sensor does not detect the high level, it is determined that the infrared sensor corresponding to this receiving end is an abnormal infrared sensor. In addition, under normal circumstances, when the transmitting end of the infrared sensor in the gate system is in the on state, if the receiving end and the transmitting end of the infrared sensor are normally installed, at this time the receiving end of the infrared sensor is in the low level. Therefore, when it is detected that the transmitting end of the infrared sensor in the gate system is in the on state, if the receiving end of the infrared sensor does not detect the low level, it is determined that the infrared sensor corresponding to this receiving end is an abnormal infrared sensor. Only when the transmitting end of the infrared sensor in the gate system is in the off state, the receiving end of the infrared sensor is detected to be in the high level, and when the transmitting end is in the on state, the receiving end is detected to be in the low level, it is determined that the infrared sensor corresponding to this receiving end is a normal infrared sensor.
[0073] Therefore, the abnormal detection of the infrared sensor can be realized by controlling the emission end of the infrared sensor of the gate system to change from the closed state to the open state, and measuring whether the level of the receiving end changes from the high level to the low level. Or the abnormal detection of the infrared sensor can be realized by controlling the emission end of the infrared sensor of the gate system to change from the open state to the closed state, and measuring whether the level of the receiving end changes from the low level to the high level. After completing the abnormal detection of each infrared sensor in the gate system, the number of abnormal infrared sensors in the gate system and the distribution of the abnormal infrared sensors in the gate system can be determined. The abnormal detection of the infrared sensor is realized based on the switching state of the emission end of the infrared sensor and the high and low levels of the receiving end, and then the distribution of the abnormal infrared sensors in the gate system is determined, which is convenient for subsequent setting of the infrared detection function of the abnormal infrared sensor based on the distribution of the abnormal infrared sensor.
[0074] In another embodiment, based on the above step S230, the control of the gate system based on the infrared detection result can include:
[0075] According to the infrared detection result, the infrared sensors with consistent infrared detection function are divided into the same infrared area, and the division result of the infrared area of the gate system is generated; according to the passing direction of the passing object and the division result of the infrared area, the passing behavior of the passing object is detected to obtain a behavior detection result; and the gate system is controlled according to the behavior detection result.
[0076] Specifically, the infrared sensors with consistent infrared detection function can be divided into the same area, that is, the normal infrared sensor and all abnormal infrared sensors with consistent infrared detection function are combined into the same area, thereby forming an infrared area. As shown in Figure 4 Figure 4 The division diagram of the infrared area of the gate system provided by an embodiment of the present application is shown. Figure 4 The gate system in the figure includes 1 gate wing 300 and 8 infrared sensors. According to the passing direction of the passing object (indicated by the arrow in the figure), the 8 infrared sensors are numbered from 1 to 8 (as shown in the figure, the numbers are marked below the circles representing the infrared sensors). If the 1st, 3rd, 5th and 7th infrared sensors in the gate system are all abnormal infrared sensors (indicated by horizontal lines in the figure), since the 1st infrared sensor is the first infrared sensor, no normal infrared sensor is set in the front sequence, and the infrared detection function of the normal infrared sensor adjacent to the 1st infrared sensor and behind it, i.e. the 2nd infrared sensor, is assigned to the 1st infrared sensor. Since the 2nd infrared sensor is before the 3rd infrared sensor in sequence and the serial numbers are adjacent, the infrared detection function of the 2nd infrared sensor is also assigned to the 3rd infrared sensor. Since the infrared detection function of the 2nd infrared sensor is assigned to the 1st and 3rd infrared sensors, the infrared detection functions of the 1st, 2nd and 3rd infrared sensors are consistent, and the three infrared sensors are divided into a first region 402. Similarly, the 4th and 5th infrared sensors are divided into a second region 404, the 6th and 7th infrared sensors are divided into a third region 406, and the 8th infrared sensor is divided into a fourth region 408. Based on this, the 4 infrared regions shown in Figure 4 FIG. 4 can be obtained. After obtaining the division result of the infrared regions, according to the passing direction of the passing object in the gate system, based on the detection result of the passing object in each infrared region, the specific passing behavior of the passing object such as entering, leaving, tailing, jumping, etc. is detected, and then the gate system is controlled to take corresponding measures based on different behavior detection results.
[0077] Further, in one embodiment, according to the passing direction of the passing object and the division result of the infrared regions, the passing behavior of the passing object is detected to obtain a behavior detection result, which can specifically include:
[0078] According to the passing direction of the passing object, the infrared regions are sorted to determine the first and last infrared regions in sequence. In the case where the first and last infrared regions are located on both sides of the gate wing of the gate system, the passing behavior of the passing object entering the gate system is detected based on the infrared detection function of the infrared sensor in the first infrared region to obtain the behavior detection result of the passing object entering the gate system, and the passing behavior of the passing object leaving the gate system is detected based on the infrared detection function of the infrared sensor in the last infrared region to obtain the behavior detection result of the passing object leaving the gate system.
[0079] Based on the above passing direction, the divided infrared regions are sorted to determine the first infrared region and the last infrared region after sorting of the gate system. Among them, the entering identification function for the passing object can be realized based on the infrared detection function of the first infrared region, that is, when the first infrared region detects the passing object based on the infrared sensor therein, it is determined that the passing object enters the gate system. Similarly, the leaving identification function for the passing object is realized based on the infrared detection function of the last infrared region, that is, when the last infrared region detects the passing object based on the infrared sensor therein, it is determined that the passing object leaves the gate system. Further, according to the passing behavior detected by the first infrared region and the last infrared region respectively, the control of the opening and closing function of the gate system is performed. More specifically, when the first infrared region is blocked, the gate system is controlled to perform the opening operation, and when the last infrared region is blocked, the gate system is controlled to perform the closing operation. Based on this, the embodiment can realize normal detection of the passing behavior of the passing object entering or leaving even in the case of abnormal infrared sensors in the gate system.
[0080] Additionally, in one embodiment, according to the passing direction of the passing object and the division result of the infrared region, the passing behavior of the passing object is detected to obtain the behavior detection result, which can also include:
[0081] According to the passing direction of the passing object, the infrared regions are sorted to determine the first infrared region and the last infrared region after sorting. According to the infrared detection function of the infrared sensor in the first infrared region and the infrared detection function of the infrared sensor in the last infrared region, it is determined whether the last infrared region is blocked prior to the first infrared region. In the case that the last infrared region is blocked prior to the first infrared region, it is determined that the passing object has a rush-in behavior.
[0082] That is, when the region of the last infrared sensor is blocked prior to the region of the first infrared sensor, it means that the passing object does not pass normally according to the passing regulation, and it is determined that there is a rush-in behavior. Based on this determination, the gate system is controlled to start the control of the rush-in behavior, such as prompting the presence of a rush-in person, prompting correct passing, etc. Therefore, even if there is an abnormal infrared sensor in the gate system, the embodiment can still realize the detection of abnormal passing behaviors such as rush-in behavior through the blocking of the first infrared region and the last infrared region of the gate system, and further realize the control of the rush-in behavior of the gate system.
[0083] Further, the embodiment can also count the blocking conditions of all the infrared regions of the gate system. Along the above passing direction, for the use scenario without card swiping, when the first region of the gate system is blocked, it is determined that a passing object enters the gate system, and the door opening operation is performed. When the infrared regions of the gate system are blocked in sequence, and after the blocking of the last infrared region ends, it is determined that the passing object completes the integrity passing of the gate system. At this time, the gate system is controlled to perform the door closing operation. Through this setting mode, even if there is an abnormal infrared sensor in the gate system, the embodiment can still complete the detection of the integrity passing of the passing object in the gate system, and then realize the complete door opening and closing operation of the gate system.
[0084] Optionally, in an embodiment, according to the passing direction of the passing object and the division result of the infrared regions, the passing behavior of the passing object is detected to obtain a behavior detection result, which can further include:
[0085] In the case that there are two adjacent infrared regions respectively located on both sides of the door wing, whether the two adjacent infrared regions respectively located on both sides of the door wing are simultaneously blocked is determined according to the infrared detection function of the infrared sensors in the two adjacent infrared regions respectively located on both sides of the door wing. In the case that the door wing of the gate is closed and the two adjacent infrared regions respectively located on both sides of the door wing are simultaneously blocked, it is determined that the passing object has a climbing behavior.
[0086] When the two infrared regions closest to the door wing and respectively located on both sides of the door wing are simultaneously blocked, it indicates that there is a situation that the passing object climbs over the door wing. At this time, the passing behavior of the passing object is determined as a climbing behavior, and the gate system is controlled to perform an operation for the climbing behavior. Therefore, even if there is an abnormal infrared sensor in the gate system, the embodiment can still realize the detection of the climbing behavior through the blocking condition of the infrared region, and then realize the operation of the gate system for the climbing behavior.
[0087] Optionally, in an embodiment, according to the passing direction of the passing object and the division result of the infrared regions, the passing behavior of the passing object is detected to obtain a behavior detection result, which can further include:
[0088] In the case that there are at least three infrared regions, whether two non-adjacent infrared regions are simultaneously blocked is determined according to the infrared detection function of the infrared sensors in the infrared regions. When the two non-adjacent infrared regions are simultaneously blocked, it is determined that the passing object has a tailing behavior.
[0089] When there are at least three infrared sensors, and when the non-adjacent two infrared regions are blocked at the same time, it indicates that there is a tailing behavior of one passing object to another passing object. Through this determination, the control gate system starts the operation for the tailing behavior. Therefore, even if the gate system has abnormal infrared sensors, the embodiment can still detect the tailing behavior and implement the operation of the gate system for the tailing behavior.
[0090] Additionally, in one embodiment, the above-mentioned control method for the gate system can further include:
[0091] According to the passing direction of the passing object and the distance between the normal infrared sensor and the door wing of the gate system, the closing time of the door wing is set.
[0092] Specifically, according to the passing direction of the passing object, the position of the normal infrared sensor located at the exit end of the gate passage and farthest from the door wing in the gate system can be determined, and the normal infrared sensor at this position is regarded as the tail normal infrared sensor. According to the distance between the position of the tail normal infrared sensor and the position of the door wing, the closing time of the door wing is set. In addition, the closing time of the door wing can be set based on the delay time after the passing object is identified to leave the tail normal infrared sensor. When the distance between the position of the tail normal infrared sensor and the position of the door wing is closer, the above-mentioned delay time is set longer, and when the distance between the tail normal infrared sensor and the door wing is farther, the above-mentioned delay time is set shorter.
[0093] Figure 5 The gate closing time setting principle diagram for the gate system provided by an embodiment of the present application is shown. As shown in Figure 5 If there are four infrared sensors between the door wing 300 of the gate system and the exit end of the gate system, along the opening direction of the gate (for example, the arrow direction in the figure), the infrared sensors are arranged as shown in the figure. The infrared sensor 1 is located at the exit end of the gate system, the infrared sensor 2 is located at the position closest to the exit end of the gate system, the infrared sensor 3 is located at the position farthest from the exit end of the gate system, and the infrared sensor 4 is located at the position closest to the door wing 300 of the gate system. Figure 5The four infrared sensors are numbered 1, 2, 3 and 4 (as shown in the figure, the numbers are directly marked in the circles representing the infrared sensors). If the fourth infrared sensor is a normal infrared sensor, the gate system can be set to close the door 1 second after the passing object passes the fourth infrared sensor. If the fourth infrared sensor is an abnormal infrared sensor and the third infrared sensor is a normal infrared sensor, the gate system can be set to close the door 2 seconds after the passing object passes the third infrared sensor. If the fourth infrared sensor and the third infrared sensor are both abnormal infrared sensors and the second infrared sensor is a normal infrared sensor, the gate system can be set to close the door 3 seconds after the passing object passes the second infrared sensor. If the fourth infrared sensor, the third infrared sensor and the second infrared sensor are all abnormal infrared sensors and the first infrared sensor is a normal infrared sensor, the gate system can be set to close the door 4 seconds after the passing object passes the first infrared sensor.
[0094] In this embodiment, the specific closing time can be set according to the specific situation. The closing time is set according to the distance between the position of the last normal infrared sensor and the position of the door wing, to prevent the situation that the closing time of the door is not accurate because the abnormal infrared sensor exists and the passing object has not left the gate system, and the door is closed. By setting the closing time of the door wing, the door wing can be prevented from closing when the passing object has not completely left the gate system, thereby realizing the anti-pinch function of the door wing and improving the user experience.
[0095] In the existing gate system, the door is only closed when the gate system recognizes that the pedestrian passes all the infrared sensors in sequence, i.e., the gate system recognizes the integrity passing. When an individual infrared sensor is damaged, the integrity passing of the gate system cannot be realized, the door cannot be normally closed, and other functions of the gate system cannot be realized. The present application sets the infrared detection function of the abnormal infrared sensor, so that all the infrared sensors have the infrared detection function even if there is an abnormal infrared sensor. When the passing object passes the gate system, the situation that the pedestrian passes all the infrared sensors in sequence can be recognized, the integrity passing of the gate system is realized, the door is normally closed, and the opening and closing functions of the gate system are realized.
[0096] Further, the application sets the infrared detection function of the abnormal infrared sensor of the gate system, and then divides the infrared region according to the infrared detection function of the infrared sensor in the gate system, and determines the tailing behavior, jumping behavior and intrusion behavior of the passing object based on the shielding condition of each infrared region, and then realizes the corresponding control of the gate system to the above behaviors. In addition, the closing time of the gate system can be set by the distance between the position of the last normal infrared sensor and the position of the door wing, so as to realize the anti-pinch function of the gate system.
[0097] Figure 6 is a flowchart of the control method for the gate system provided by the preferred embodiment of the application. As shown in Figure 6 , the control method for the gate system includes the following steps:
[0098] Step S610, based on the level of the receiving end of the infrared sensor of the gate system, the abnormal detection of the infrared sensor is carried out, and the abnormal detection result of the infrared sensor is obtained;
[0099] Step S620, according to the passing direction of the passing object, the infrared sensors of the gate system are sorted in front and back;
[0100] Step S630, the infrared detection function of the normal infrared sensor adjacent to the sorted abnormal infrared sensor and sorted in front is given to the abnormal infrared sensor; wherein, in the case that the first infrared sensor after sorting is an abnormal infrared sensor, the infrared detection function of the first normal infrared sensor after sorting is given to all the abnormal infrared sensors in front of the first normal infrared sensor;
[0101] Step S640, according to the above passing direction and the infrared detection result of the infrared sensor, the region of the infrared sensor is divided, and the division result of the infrared region is generated;
[0102] Step S650, according to the division result of the infrared region, the passing behavior of the passing object is detected, and the behavior detection result is obtained;
[0103] Step S660, according to the behavior detection result, the gate system is controlled.
[0104] In this embodiment, the gate system can still be used normally in the case that there is an abnormal infrared sensor in the gate system, and the problem that the gate system cannot be used due to infrared damage in the prior art is solved.
[0105] It should be understood that although the steps in the flowcharts involved in the above embodiments are shown in sequence according to the arrows, the steps are not necessarily executed in the order indicated by the arrows. Unless otherwise specified herein, the execution of the steps is not strictly limited in sequence, and the steps can be executed in other sequences. Moreover, at least some of the steps in the flowcharts involved in the above embodiments can include multiple steps or multiple stages, which are not necessarily executed at the same time, but can be executed at different times, and the execution sequence of the steps or stages is not necessarily sequential, but can be executed alternately or alternately with at least some of the other steps or steps or stages in other steps.
[0106] Based on the same inventive concept, in the present embodiment, a control device for a gate system for implementing the above-mentioned control method for a gate system is also provided, which is used to implement the above-mentioned embodiments and preferred embodiments, and the description of which will not be repeated. The terms "module", "unit", "sub-unit" and the like used below can be a combination of software and / or hardware that can implement a predetermined function. Although the device described in the following embodiments is preferably implemented in software, hardware or a combination of software and hardware is also possible and contemplated.
[0107] Based on the same inventive concept, the present embodiment also provides a control device for a gate system for implementing the above-mentioned control method for a gate system. The implementation scheme for solving the problem provided by the device is similar to the implementation scheme described in the above method, so the specific limitations in one or more control device embodiments for a gate system provided below can refer to the limitations for the control method for a gate system described above, which will not be repeated here.
[0108] In one embodiment, as shown in Figure 7 a control device 70 for a gate system is provided, comprising:
[0109] a detection module 72, configured to detect the distribution of the abnormal infrared sensor in the gate system in the case that the gate system has an abnormal infrared sensor;
[0110] a result module 74, configured to assign the infrared detection function of the normal infrared sensor adjacent to the abnormal infrared sensor in the gate system to the abnormal infrared sensor based on the distribution of the abnormal infrared sensor in the gate system, and generate an infrared detection result;
[0111] and a control module 76, configured to control the gate system based on the infrared detection result.
[0112] The control device 70 for the gate system can ensure normal use of the gate system when there is an abnormal infrared sensor in the gate system, and solves the problem that the gate system cannot be used due to damage of the infrared sensor in the prior art.
[0113] It should be noted that each of the above modules can be a functional module or a program module, and can be implemented by software or hardware. For the modules implemented by hardware, each of the above modules can be located in the same processor; or each of the above modules can also be located in different processors in any combination.
[0114] In one embodiment, a computer device is provided, including a memory and a processor, the memory stores a computer program, and the processor implements the steps in each of the above method embodiments when executing the computer program.
[0115] In one embodiment, a computer readable storage medium is provided, which stores a computer program, and the computer program is executed by a processor to implement the steps in each of the above method embodiments.
[0116] It should be noted that the user information (including but not limited to user equipment information, user personal information, etc.) and data (including but not limited to data for analysis, stored data, displayed data, etc.) involved in the present application are all information and data authorized by the user or authorized by all parties.
[0117] Those skilled in the art can understand that all or part of the processes in the above-mentioned embodiment methods can be completed by instructing the relevant hardware through a computer program. The computer program can be stored in a non-volatile computer readable storage medium, and when the computer program is executed, the processes of the above-mentioned embodiments of the methods can be included. Any reference to memory, database or other medium used in the embodiments provided in the present application can include at least one of non-volatile and volatile memory. Non-volatile memory can include read-only memory (Read-Only Memory, ROM), magnetic tape, floppy disk, flash memory, optical storage, high-density embedded non-volatile memory, resistive memory (ReRAM), magnetoresistive random access memory (Magnetoresistive Random Access Memory, MRAM), ferroelectric memory (Ferroelectric Random Access Memory, FRAM), phase change memory (Phase Change Memory, PCM), graphene memory, etc. Volatile memory can include random access memory (Random Access Memory, RAM) or external cache memory, etc. As an illustration but not limitation, RAM can be in various forms, such as static random access memory (Static Random Access Memory, SRAM) or dynamic random access memory (Dynamic Random Access Memory, DRAM), etc. The database involved in the embodiments provided in the present application can include at least one of a relational database and a non-relational database. The non-relational database can include a distributed database based on a block chain, etc., without being limited thereto. The processor involved in the embodiments provided in the present application can be a general-purpose processor, a central processing unit, a graphics processing unit, a digital signal processor, a programmable logic device, a data processing logic device based on quantum computing, etc., without being limited thereto.
[0118] Any combination of the technical features of the above embodiments can be made. In order to make the description simple, all possible combinations of the technical features in the above embodiments are not described, however, as long as the combination of the technical features does not exist contradictory, it should be considered as the scope of the present application.
[0119] The above embodiments only express several implementation manners of the present application, and the description is more specific and detailed, but it should not be understood as a limitation on the scope of the patent of the present application. It should be pointed out that for ordinary skilled in the art, without departing from the concept of the present application, a number of modifications and improvements can be made, which are within the scope of protection of the present application. Therefore, the protection scope of the present application should be subject to the appended claims.
Claims
1. A control method for a turnstile system, characterized in that, The method includes: In the event of an abnormal infrared sensor in the gate system, the distribution of the abnormal infrared sensor in the gate system shall be detected. Based on the distribution of the abnormal infrared sensors in the turnstile system, the infrared detection function of the normal infrared sensors adjacent to the abnormal infrared sensors in the turnstile system is assigned to the abnormal infrared sensors to generate infrared detection results; wherein: when there are two normal infrared sensors adjacent to the abnormal infrared sensors, the infrared sensors in the turnstile system are ordered according to the passage direction of the passage object; the infrared detection function of the adjacent normal infrared sensors ordered before the abnormal infrared sensors is assigned to the abnormal infrared sensors to generate infrared detection results. The gate system is controlled based on the infrared detection results.
2. The control method for a turnstile system according to claim 1, characterized in that, The method further includes: Based on the state of the transmitter and the level of the receiver of the infrared sensor in the gate system, it is determined whether the infrared sensor is an abnormal infrared sensor.
3. The control method for a turnstile system according to claim 2, characterized in that: If the transmitter of the infrared sensor is off and the receiver is at a low level, then the infrared sensor is determined to be the abnormal infrared sensor; or If the transmitter of the infrared sensor is in the ON state and the receiver of the infrared sensor is at a high level, then the infrared sensor is determined to be the abnormal infrared sensor.
4. The control method for a turnstile system according to claim 1, characterized in that, The control of the gate system based on the infrared detection results includes: Based on the infrared detection results, infrared sensors with consistent infrared detection functions are divided into the same infrared region, generating the infrared region division result of the gate system. Based on the direction of passage of the object and the division result of the infrared region, the passage behavior of the object is detected to obtain the behavior detection result; The gate system is controlled based on the behavior detection results.
5. The control method for a turnstile system according to claim 4, characterized in that, The step of detecting the passage behavior of the passing object based on its passage direction and the infrared region division results, and obtaining the behavior detection results, includes: The infrared regions are sorted according to the direction of passage of the objects, and the first and last infrared regions after sorting are determined. When the first infrared region and the last infrared region are located on both sides of the gate wing of the turnstile system, the passage behavior of the object entering the turnstile system is detected based on the infrared detection function of the infrared sensor in the first infrared region, and the behavior detection result of the object entering the turnstile system is obtained; and, based on the infrared detection function of the infrared sensor in the last infrared region, the passage behavior of the object leaving the turnstile system is detected, and the behavior detection result of the object leaving the turnstile system is obtained.
6. The control method for a turnstile system according to claim 4, characterized in that, The step of detecting the passage behavior of the passing object based on its passage direction and the infrared region division result, and obtaining the behavior detection result, further includes: The infrared regions are sorted according to the direction of passage of the objects, and the first and last infrared regions after sorting are determined. Based on the infrared detection function of the infrared sensor in the first infrared region and the infrared detection function of the infrared sensor in the last infrared region, determine whether the last infrared region is blocked before the first infrared region; If the last infrared region is blocked before the first infrared region, it is determined that the object is committing an intrusion.
7. The control method for a turnstile system according to claim 4, characterized in that, The step of detecting the passage behavior of the passing object based on its passage direction and the infrared region division result, and obtaining the behavior detection result, further includes: In the case of two adjacent infrared regions located on opposite sides of the door wing, the infrared detection function of the infrared sensor in the two adjacent infrared regions located on opposite sides of the door wing is used to determine whether the two adjacent infrared regions located on opposite sides of the door wing are simultaneously blocked. When the gate wings of the turnstile are closed, and the two adjacent infrared zones located on both sides of the gate wings are simultaneously blocked, it is determined that the person passing through is attempting to climb over the gate.
8. The control method for a turnstile system according to claim 4, characterized in that, The step of detecting the passage behavior of the passing object based on its passage direction and the infrared region division result, and obtaining the behavior detection result, further includes: In the presence of at least three infrared regions, it is determined whether two non-adjacent infrared regions are simultaneously blocked based on the infrared detection function of the infrared sensor in the infrared regions. When two non-adjacent infrared regions are simultaneously blocked, it is determined that the passing object is exhibiting tailing behavior.
9. The control method for a turnstile system according to claim 1, characterized in that, The method further includes: The closing time of the gate is set according to the direction of passage of the object and the distance between the normal infrared sensor and the gate wing of the gate system.
10. A control device for a turnstile system, characterized in that, The device includes: The detection module is used to detect the distribution of abnormal infrared sensors in the gate system when abnormal infrared sensors exist in the gate system. The result module is used to assign the infrared detection function of the normal infrared sensors adjacent to the abnormal infrared sensor in the gate system to the abnormal infrared sensor based on the distribution of the abnormal infrared sensor in the gate system, thereby generating an infrared detection result; wherein: when there are two normal infrared sensors adjacent to the abnormal infrared sensor, the infrared sensors in the gate system are ordered according to the passage direction of the object; the infrared detection function of the adjacent normal infrared sensor ordered before the abnormal infrared sensor is assigned to the abnormal infrared sensor, thereby generating an infrared detection result. And a control module for controlling the gate system based on the infrared detection results.
11. A computer device comprising a memory and a processor, wherein the memory stores a computer program, characterized in that, When the processor executes the computer program, it implements the steps of the control method for a gate system as described in any one of claims 1 to 9.
12. A computer-readable storage medium having a computer program stored thereon, characterized in that, When the computer program is executed by the processor, it implements the steps of the control method for a gate system as described in any one of claims 1 to 9.
Citation Information
Patent Citations
Field programmable gate array (FPGA) device for infrared entrance guard management
CN111354115A
Gate passing logic algorithm based on LS-SVM
CN114005204A
Unattended monitoring system
CN217443913U