Gate control method and device, electronic equipment and storage medium

By detecting the angle between the door wing and the gate body in the gate machine, and dynamically adjusting the number of candidate detection structures for anti-clip judgment, the problem of anti-clip detection loopholes in the existing gate machine is solved, and effective prevention of unauthorized personnel and guaranteeing pedestrian safety is achieved.

CN120066121APending Publication Date: 2025-05-30ZHEJIANG UNIVIEW TECH CO LTD
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202311620376.8
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2023-11-29
Publication Date
2025-05-30

AI Technical Summary

Technical Problem

There is a loophole in the existing gate anti-clip detection, and unauthorized personnel can use this loophole to illegally pass through the gate channel.

Method used

During the closing process of the door wing, by detecting the angle between the door wing and the gate body, the number of candidate detection structures used for anti-clip judgment is dynamically adjusted, thereby avoiding illegal passage of unauthorized personnel.

Benefits of technology

Effectively prevent unauthorized personnel from illegally breaking in using anti-clip detection loopholes, while avoiding pedestrians being squeezed.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN120066121A_ABST
    Figure CN120066121A_ABST
Patent Text Reader

Abstract

The invention discloses a gate control method and device, electronic equipment and a storage medium, and relates to the technical field of security and protection equipment. The gate machine at least comprises a gate machine body, a door wing and a plurality of candidate detection structures which are arranged on the gate machine body at least in the passing direction, and the method comprises the steps that in the door wing closing process, the included angle between the door wing and the gate machine body is detected; determining an area range for anti-pinch judgment according to the included angle; determining a target detection structure for anti-pinch judgment from the candidate detection structures according to the area range; and controlling the door wing according to a detection result of the target detection structure. According to the scheme, in the door wing closing process, the number of the candidate detection structures used for anti-pinch judgment is dynamically adjusted according to the change of the included angle between the door wing and the gate machine body, and the situation that unauthorized personnel illegally pass through a gate machine channel through anti-pinch detection loopholes is avoided.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention relates to the technical field of security devices, and particularly to a turnstile control method, device, electronic device, and storage medium. Background Art

[0002] A turnstile is a passage blocking device, mainly applied to urban rail transit management and toll gate systems for managing the flow of people and regulating pedestrian access. In addition, with the rise of smart communities and smart passages, turnstiles of various types and functions have continuously come into the public eye and can be seen in places such as communities, schools, scenic spots, amusement parks, companies, etc., wherever it is necessary to control the flow of people and regulate access. Summary of the Invention

[0003] The present invention provides a turnstile control method, device, electronic device, and storage medium.

[0004] According to one aspect of the present invention, there is provided a turnstile control method. The turnstile at least includes a turnstile body, a wing, and a plurality of candidate detection structures disposed on the turnstile body at least along the passage direction. The method includes:

[0005] During the closing process of the wing, detecting the angle between the wing and the turnstile body;

[0006] Determining a region range for anti-pinch judgment according to the angle;

[0007] Determining a target detection structure for anti-pinch judgment from the candidate detection structures according to the region range;

[0008] Controlling the wing according to the detection result of the target detection structure.

[0009] According to another aspect of the present invention, there is provided a turnstile control device. The turnstile at least includes a turnstile body, a wing, and a plurality of candidate detection structures disposed on the turnstile body at least along the passage direction. The device includes:

[0010] An angle detection module, configured to detect the angle between the wing and the turnstile body during the closing process of the wing;

[0011] A quantity determination module, configured to determine a region range for anti-pinch judgment according to the angle;

[0012] A detection structure determination module, configured to determine a target detection structure for anti-pinch judgment from the candidate detection structures according to the region range;

[0013] A control module, configured to control the wing according to the detection result of the target detection structure.

[0014] According to another aspect of the present invention, there is provided an electronic device, which includes:

[0015] at least one processor; and

[0016] a memory communicatively connected to the at least one processor; wherein,

[0017] the memory stores a computer program executable by the at least one processor, and when the computer program is executed by the at least one processor, the at least one processor is enabled to execute the turnstile control method described in the embodiments of the present invention.

[0018] According to another aspect of the present invention, there is provided a computer-readable storage medium storing computer instructions for causing a processor to implement the turnstile control method described in the embodiments of the present invention when executed.

[0019] In the technical solution of the embodiments of the present invention, during the process of closing the door wing, according to the change in the angle between the door wing and the turnstile body, the number of candidate detection structures for anti-pinch judgment is dynamically adjusted, so as to prevent unauthorized personnel from illegally passing through the turnstile channel by taking advantage of anti-pinch detection loopholes.

[0020] It should be understood that the content described in this part is not intended to identify the key or important features of the embodiments of the present invention, nor is it used to limit the scope of the present invention. Other features of the present invention will become easily understood through the following description. BRIEF DESCRIPTION OF THE DRAWINGS

[0021] In order to more clearly illustrate the technical solutions in the embodiments of the present invention, the following will briefly introduce the drawings required for the description of the embodiments. Obviously, the drawings in the following description are only some embodiments of the present invention, and those of ordinary skill in the art can also obtain other drawings based on these drawings without creative efforts.

[0022] Figure 1a is a top view of a turnstile device provided according to an embodiment of the present invention;

[0023] Figure 1b is a schematic flowchart of a turnstile control method provided according to an embodiment of the present invention;

[0024] Figure 1c is a top view of the turnstile at a certain moment during the rotation of the door wing according to an embodiment of the present invention;

[0025] Figure 2 is a schematic flowchart of a turnstile control method provided according to an embodiment of the present invention;

[0026] Figure 3 It is a schematic flowchart of a turnstile control method provided according to an embodiment of the present invention;

[0027] Figure 4 It is a schematic structural diagram of a turnstile control device provided according to an embodiment of the present invention;

[0028] Figure 5 It is a schematic structural diagram of an electronic device for implementing the turnstile control method of the embodiment of the present invention. Detailed implementation manners

[0029] In order to enable those skilled in the art to better understand the solution of the present invention, the technical solutions in the embodiments of the present invention will be clearly and completely described below in conjunction with the accompanying drawings in the embodiments of the present invention. Obviously, the described embodiments are only a part of the embodiments of the present invention, rather than all the embodiments. Based on the embodiments of the present invention, all other embodiments obtained by those of ordinary skill in the art without creative efforts shall fall within the protection scope of the present invention.

[0030] For the convenience of understanding the solution of the present invention, the turnstile involved in the present invention will be first explained. In the solution of the present invention, the turnstile may include a controller module, a turnstile body, a wing, and a plurality of candidate detection structures. Among them, the wing is arranged on the turnstile body through a door shaft and rotates through the door shaft to realize the opening and closing of the wing; the candidate detection structures are arranged on the turnstile body at least along the passing direction, for example, arranged at equal intervals along the passing direction, and the installation height of the candidate detection structures may be higher than the height corresponding to the upper boundary of the wing or lower than the height corresponding to the lower boundary of the wing; the controller module may be arranged inside the turnstile body and is used to control the opening and closing of the wing, and the controller module can be used to execute the turnstile control method involved in the present invention.

[0031] Exemplarily, refer to Figure 1a, which shows a top view of a turnstile device. Among them, the turnstile includes a first turnstile body, a second turnstile body, a first door wing and a second door wing, and a candidate detection structure. The candidate detection structure may optionally include an infrared emission unit (T1 - T18) provided on the first turnstile body and an infrared reception unit (R1 - R18) provided on the second turnstile body. The infrared emission units on the first turnstile body correspond one-to-one with the infrared reception units on the second turnstile body, and moreover, the infrared emission units and the infrared reception units are arranged at equal intervals centered on the door axis of the door wing. On the basis of introducing the turnstile structure, when detecting whether there are targets such as pedestrians or objects in the turnstile passage, the detection principle is as follows: The infrared emission unit in the turnstile body on one side of the passage emits infrared light of a certain wavelength, and the infrared reception unit in the turnstile body on the other side of the passage receives the infrared light. If the optical path is not blocked, the infrared reception unit can receive the infrared light sent by the infrared emission unit. If the optical path is blocked, the infrared light cannot be received, and thus it can be detected whether there is a target to be detected in the passage.

[0032] Furthermore, during the operation of the turnstile, in order to ensure the safety of pedestrians, the anti-pinch function (that is, preventing the door wing from squeezing pedestrians in the turnstile passage) is of the highest priority. Therefore, all candidate detection structures (that is, infrared emission units and infrared reception units) on the turnstile body are usually configured with the anti-pinch function. At this time, the entire turnstile passage area is the area for anti-pinch judgment, so that during the closing process of the door wing, if a candidate detection structure at any position on the turnstile body detects a pedestrian or an object (that is, the pedestrian or the object appears at any position in the turnstile passage area), the controller module will control the door wing to stop closing. This anti-pinch configuration has certain loopholes or problems: Pedestrians are likely to trigger the infrared anti-pinch function, causing the passage to be in an open state, resulting in the inability to effectively prevent the illegal intrusion of unauthorized personnel. For example, after an authorized person has passed through the turnstile passage, if an unauthorized person happens to enter the turnstile passage from the opposite side during the closing process of the door wing, in order to prevent the door wing from squeezing the unauthorized person, the door wing will be controlled to stop closing, resulting in the unauthorized person passing through the turnstile illegally. To solve this problem, the present invention proposes a new turnstile control method. During the closing process of the door wing, it is determined in real time which candidate detection structures are used for the anti-pinch function, that is, during the closing process of the door wing, some candidate detection structures are selected for the anti-pinch function, rather than all candidate detection structures being used for the anti-pinch function. Thus, during the closing process of the door wing, even if a candidate detection structure not used for the anti-pinch function detects a pedestrian, it will not affect the closing of the door wing, and it can effectively prevent unauthorized personnel from passing through the turnstile illegally and will not cause pedestrians to be squeezed. The specific turnstile control method can be seen in the following embodiments.

[0033] Embodiment 1

[0034] Figure 1bThe present invention provides a flowchart of a turnstile control method. This embodiment is applicable to the scenario of controlling turnstiles in public places to prevent unauthorized personnel from breaking in illegally. This method can be executed by a turnstile control device, which can be implemented in the form of hardware and / or software, and can be configured in an electronic device, such as integrated in a turnstile device.

[0035] As Figure 1b shown, the turnstile control method includes:

[0036] S101. During the closing process of the wing, detect the angle between the wing and the turnstile body.

[0037] During the closing process of the turnstile wing, the distance between the two wings gradually shortens. If a pedestrian or an object is in the middle of the wings, it will be squeezed and clamped by the two closing wings on both sides, which will cause certain injuries. Therefore, the anti-pinch treatment is mainly carried out during the closing process of the wing. Therefore, the solution of the present invention mainly realizes anti-pinch and anti-illegal intrusion during the closing process of the wing.

[0038] During the closing process of the wing, the angle between the wing and the turnstile body can be detected in real time. After detecting the angle between the wing and the turnstile body, the turnstile can be controlled according to the steps of S102 - S104. And the angle between the wing and the turnstile body can be detected in real time in the following ways: (1) Install an angle sensor on the turnstile wing. When the wing rotates, the angle sensor detects the rotation angle of the wing and transmits the data to the turnstile controller module, so that the controller module can realize turnstile control according to the steps of S102 - S104. That is, the angle between the wing and the turnstile body can be determined in real time according to the data collected in real time by the angle sensor installed on the wing. (2) Install a limit switch on the turnstile wing. When the wing rotates to a specific angle, the limit switch will trigger the control system, thereby detecting the rotation angle of the wing. (3) Using a camera and image processing technology, a camera can be installed around the turnstile wing, and the image captured by the camera is analyzed through image processing technology to detect the rotation angle of the wing.

[0039] Exemplarily, referring to Figure 1c , which shows a top view of a certain moment during the rotation of the wing, where θ is the angle between the wing and the turnstile body. The length of the thick black line segment in the dashed box is the length of the projection of the wing on the turnstile body.

[0040] S102. Determine the area range for anti-pinch judgment according to the angle.

[0041] The purpose of the solution of the present invention is to use some candidate detection structures to perform anti-pinch judgment, rather than using all candidate detection structures for anti-pinch judgment. Therefore, how to determine the target detection structure for anti-pinch judgment from the candidate detection structures is the core of the solution of the present invention. Since the angle between the door wing and the turnstile body is 0 degrees, the door wing is fully opened; when the angle between the door wing and the turnstile body is 90 degrees, the door wing is in a fully closed state. Therefore, the process of closing the door wing is actually a process in which the angle between the door wing and the turnstile body changes from 0 degrees to 90 degrees. When the angle is 0 degrees, the anti-pinch area corresponding to the door wing is the largest, and the maximum anti-pinch area is: a sector area centered on the door axis of the door wing, with the length of the door wing as the radius and a central angle of 90 degrees; during the process of closing the door wing, the angle between the door wing and the turnstile body is continuously increasing, so that the anti-pinch area corresponding to the closing door wing is continuously decreasing. Specifically, during the process of closing the door wing, the anti-pinch area corresponding to any moment is: a sector area centered on the door axis of the door wing, with the length of the door wing as the radius and a central angle of 90 degrees minus the current moment angle. It can be seen from this that as the angle between the door wing and the turnstile body increases, the anti-pinch area corresponding to the door wing is continuously decreasing, and the reduction of the anti-pinch area causes the number of candidate detection structures for anti-pinch judgment to decrease accordingly. Therefore, during the process of closing the door wing, the area range for anti-pinch judgment can be determined in real time according to the angle between the door wing and the turnstile body detected in real time. In this way, the area range for anti-pinch judgment is dynamically adjusted, avoiding using the entire turnstile channel area as the area range for anti-pinch judgment, so that unauthorized personnel cannot use the anti-pinch detection loopholes to break in illegally.

[0042] In this embodiment, in order to facilitate subsequent determination of the target detection structure for anti-pinch judgment from the candidate detection structures according to the area range for anti-pinch judgment, it is necessary to quantify the area range for anti-pinch judgment. Optionally, the area range for anti-pinch judgment can be measured by the projection length of the door wing on the turnstile body. For example, the projection length of the door wing on the turnstile body can be directly used as the area range for anti-pinch judgment. In addition, since each candidate detection structure corresponds to a detection position, different detection ranges can be determined according to different numbers of candidate detection structures. Therefore, in this embodiment, the effective number of candidate detection structures for anti-pinch judgment can also be used as a standard for measuring the area range for anti-pinch judgment.

[0043] In a case where the effective number of candidate detection structures for pinch protection judgment is used as a criterion for measuring the area range, in an alternative implementation, multiple included angle intervals can be preset in advance, and each included angle interval corresponds to an effective number of candidate detection structures for pinch protection judgment; thus, when the included angle between the door wing and the turnstile body determined in real time is obtained, according to the included angle interval to which the included angle at each moment belongs, the effective number of candidate detection structures for pinch protection judgment at this moment is determined, and this effective number is used to quantitatively represent the area range for pinch protection judgment at this moment.

[0044] In another alternative implementation, projection technology can also be adopted. At any moment during the closing process of the door wing, according to the included angle at this moment, the projection range of the door wing on the turnstile body is determined, and then according to the number of candidate detection structures within the projection range, the effective number of candidate detection structures for pinch protection judgment is determined, and this effective number is used as a quantitative description of the area range.

[0045] It can be understood that the above two specific implementation schemes are only examples, and other methods can also be used to determine the effective number of candidate detection structures for pinch protection judgment according to the included angle, which is not specifically limited here. In addition to the infrared transmitting and receiving units, in other embodiments of the present application, transmitting and receiving units based on electromagnetic waves such as radar or ultrasonic waves, or piezoelectric units based on gravity can also be used to detect whether there is a target in the turnstile channel.

[0046] S103. Determine the target detection structure for pinch protection judgment from the candidate detection structures according to the area range.

[0047] In this embodiment, if the projection length of the door wing on the turnstile body is used to represent the area range, then determining the target detection structure for pinch protection judgment from the candidate detection structures according to the area range includes: according to the installation positions of the candidate detection structures, the candidate detection structures falling within the projection range are used as the target detection structures for pinch protection judgment. In addition, in a case where the determined effective number of candidate detection structures for pinch protection judgment is used as a criterion for measuring the area range, on the turnstile body, the candidate detection structures are optionally arranged at equal intervals centered on the door axis of the door wing. Therefore, according to the effective number, determining the target detection structure for pinch protection judgment from the candidate detection structures can be carried out in the following manner: starting from the door axis of the door wing, along the passing direction of the turnstile channel, select candidate detection structures in sequence until the number of selected candidate turnstiles is equal to the effective number; and then the selected candidate detection structures are used as the target detection structures; for example, see Figure 1a, for the first turnstile body and the first door wing, if the determined effective quantity is 3, then select the candidate detection structures (infrared emission units) labeled T7, T8, and T9 as the target detection structures. In other embodiments, after the hardware assembly is completed, the distance ranges can also be corresponded to the candidate detection structures one by one. For example, 0 - 10 cm corresponds to T8, 10 - 20 cm corresponds to T7, 20 - 40 cm corresponds to T6, etc. Those skilled in the art can make adaptive adjustments to the corresponding relationship according to the actual situation of the installation of the detection structures. When using range electromagnetic wave devices such as radar to detect the target, those skilled in the art can select the target position and the corresponding anti-pinch range from the software level without having to calculate the quantity of the target detection structures. It should be noted that only the selected target detection structures are used for anti-pinch judgment, and the other remaining candidate detection structures except the selected target detection structures are not used for anti-pinch judgment. In this way, not only can the anti-pinch function be effectively realized, but also it is avoided that other remaining candidate detection structures detect unauthorized personnel and trigger the anti-pinch function, so that unauthorized personnel cannot break in illegally by taking advantage of the loopholes in the anti-pinch detection.

[0048] S104. Control the door wing according to the detection result of the target detection structure.

[0049] In this embodiment, if the target detection structure detects a pedestrian or an object in the turnstile passage, control the door wing to stop rotating to prevent the pedestrian or the item from being squeezed by the door wing; if the target detection structure does not detect a pedestrian or an object in the turnstile passage, control the door wing to continue to close to prevent unauthorized pedestrians from passing through the turnstile passage.

[0050] The technical solution of the embodiment of the present invention adjusts the area range for anti-pinch judgment according to the change of the angle between the door wing and the turnstile body during the closing process of the door wing. Different area ranges correspond to different quantities of candidate detection structures. In this way, the effect of dynamically adjusting the quantity of the candidate detection structures for anti-pinch judgment is achieved. Not only can the anti-pinch function be effectively realized, but also it is avoided that unauthorized personnel pass through the turnstile passage illegally by taking advantage of the loopholes in the anti-pinch detection.

[0051] Embodiment 2

[0052] Figure 2 is a flowchart of a turnstile control method provided by an embodiment of the present invention. Refer to Figure 2 , and the method process includes the following steps:

[0053] S201. During the closing process of the door wing, detect the angle between the door wing and the turnstile body.

[0054] In this embodiment, during the closing process of the door wing, the included angle between the door wing and the main body of the turnstile is detected in real time, and then the area range for anti-pinch judgment is determined according to the included angle by following steps S202 - S203.

[0055] S202. According to the included angle and in combination with the length of the door wing, determine the length of the current projection of the door wing on the main body of the turnstile.

[0056] In this embodiment, the length M of the door wing can be determined according to the size of the door wing and is a constant. It should be noted that for different types of turnstiles, the lengths of their door wings can be different or the same. For the included angle θ between the door wing and the main body of the turnstile detected at any moment, the length L of the current projection of the door wing on the main body of the turnstile can be calculated according to the following formula: L = Mcosθ.

[0057] S203. Determine the area range for anti-pinch judgment according to the length of the current projection.

[0058] In this embodiment, if the size of the projection length is used to measure the area range for anti-pinch judgment, then the length L = Mcosθ of the current projection can be directly used as the area range for anti-pinch judgment. If the effective number of candidate detection structures for anti-pinch judgment is used as the standard for measuring the area range, then determining the area range for anti-pinch judgment according to the length of the current projection is actually determining the effective number of candidate detection structures for anti-pinch judgment according to the length of the current projection.

[0059] In this embodiment, the process of determining the effective number of candidate detection structures for anti-pinch judgment according to the current projection length is as follows: Since the candidate detection structures are arranged at equal intervals centered on the door hinge, the starting point of the projection of the door wing on the turnstile body is also the door hinge of the door wing. Therefore, according to the projection length L, a projection range can be determined, and then according to the installation positions of the candidate detection structures, the number of candidate detection structures within the projection range can be determined and used as the effective number of candidate detection structures for anti-pinch judgment. In addition, the effective number of candidate detection structures for anti-pinch judgment can also be determined in the following way: According to the distance d between any two adjacent candidate detection structures and the door wing length M, a number threshold x for the candidate detection structures for anti-pinch judgment is determined. Specifically, since when the door wing is in the fully open position, the number of candidate detection structures that can be blocked by the projection of the door wing on the door body is the largest. On this basis, the relationship between the number threshold x, the distance d, and the door wing length M can be obtained as follows: M = (x - 0.5) * d. Since the distance d and the door wing length M are known values, the number threshold x can be derived through formula calculation. It should be noted that if the derived number threshold is not an integer, the derived number threshold is rounded up. Further, according to the current projection length, in combination with the number threshold and the door wing length, the effective number of candidate detection structures for anti-pinch judgment is determined. In specific implementation, the effective number X can be determined according to the following formula: Since L = Mcosθ, it can be deduced that

[0060] It can be understood that determining the number threshold for anti-pinch judgment can be performed in advance. In this way, when determining the effective number of candidate detection structures for anti-pinch judgment according to the included angle, the controller module only needs to pre-obtain the number threshold x for anti-pinch judgment configured by the user, and then in combination with the included angle θ between the door wing and the turnstile body detected in real time during the closing process of the door wing, the effective number of candidate detection structures for anti-pinch judgment at each moment can be quickly determined through the formula xcosθ.

[0061] S204. Determine the target detection structure for anti-pinch judgment from the candidate detection structures according to the area range.

[0062] For the case where the effective number of candidate detection structures for anti-pinch judgment is used as the measurement standard for the area range, the process of determining the target detection structure for anti-pinch judgment from the candidate detection structures may optionally include: starting from the door hinge of the door wing, along the passing direction of the turnstile channel, sequentially select candidate detection structures until the number of selected candidate turnstiles is equal to the effective number; and then use the selected candidate detection structures as the target detection structures.

[0063] S205. Control the wing according to the detection result of the target detection structure.

[0064] In this embodiment, if the target detection structure detects a pedestrian or an object in the turnstile passage, the rotation of the wing is controlled to stop to prevent the pedestrian or the object from being squeezed by the wing; if the target detection structure does not detect a pedestrian or an object in the turnstile passage, the wing is controlled to continue to close to prevent unauthorized pedestrians from passing through the turnstile passage.

[0065] In this embodiment, the projection technology is used to determine the effective number of candidate detection structures for anti-pinch judgment at any time during the closing process of the wing, which improves the accuracy of determining the effective number. Furthermore, on the basis of ensuring anti-pinch, it can effectively prevent unauthorized personnel from illegally breaking in by taking advantage of anti-pinch loopholes.

[0066] Embodiment III

[0067] Figure 3 It is a flowchart of a turnstile control method provided by an embodiment of the present invention. Refer to Figure 3 , and the method process includes the following steps:

[0068] S301. During the closing process of the wing, detect the included angle between the wing and the turnstile body.

[0069] S302. According to the included angle, combined with the wing length, determine the length of the current projection of the wing on the turnstile body.

[0070] In this embodiment, the wing length M can be determined according to the wing size and is a constant. It should be noted that for different types of turnstiles, the wing lengths can be different or the same. For the included angle θ detected between the wing and the turnstile body at any time, the length L of the current projection of the wing on the turnstile body can be calculated according to the following formula: L = Mcosθ.

[0071] After obtaining the length of the current projection, in addition to determining the effective number in the manner of the above embodiment, the effective number X of candidate detection structures for anti-pinch judgment can also be determined according to step S303.

[0072] S303. According to the length of the current projection, combined with the total number of candidate detection structures arranged on the turnstile body and the distance between any two adjacent candidate detection structures, determine the effective number of candidate detection structures for anti-pinch judgment.

[0073] In this embodiment, the total number of candidate detection structures arranged on the turnstile body is n, and the distance between any two adjacent candidate detection structures is d. Thus, the length p of the connection line of all candidate detection structures is equal to (n - 1)*d. Thus, the effective number X can be determined according to the following formula: It should be noted that if the calculated effective quantity is not an integer, the ceiling function can be used to obtain the final effective quantity.

[0074] S304. Determine a target detection structure for anti-pinch judgment from the candidate detection structures according to the effective quantity.

[0075] Optionally, starting from the door wing hinge, along the passing direction of the turnstile channel, select candidate detection structures in sequence until the number of selected candidate turnstiles is equal to the effective quantity; and then use the selected candidate detection structures as the target detection structures.

[0076] S305. Control the door wing according to the detection result of the target detection structure.

[0077] In this embodiment, if the target detection structure detects a pedestrian or an object in the turnstile channel, control the door wing to stop rotating to prevent the pedestrian or the object from being squeezed by the door wing; if the target detection structure does not detect a pedestrian or an object in the turnstile channel, control the door wing to continue closing to prevent unauthorized pedestrians from passing through the turnstile channel.

[0078] In this embodiment, another method for determining the effective quantity of the candidate detection structure for anti-pinch judgment is provided, which can be used as an alternative solution.

[0079] Embodiment 4

[0080] Figure 4 FIG. is a schematic structural diagram of a turnstile control device provided by an embodiment of the present invention. This embodiment is applicable to the scenario of controlling turnstiles in public places to prevent unauthorized personnel from breaking in illegally. The device can execute any turnstile control method in the embodiment of the present invention, and the turnstile control device can be configured in the turnstile equipment, and the turnstile equipment can further include a turnstile body, a door wing, and a plurality of candidate detection structures arranged on the turnstile body at least along the passing direction. As Figure 4 shown, the turnstile control device specifically includes:

[0081] An included angle detection module 401, configured to detect the included angle between the door wing and the turnstile body during the closing process of the door wing;

[0082] A quantity determination module 402, configured to determine a region range for anti-pinch judgment according to the included angle;

[0083] A detection structure determination module 403, configured to determine a target detection structure for anti-pinch judgment from the candidate detection structures according to the region range;

[0084] The control module 404 is configured to control the door wing according to the detection result of the target detection structure.

[0085] In an alternative implementation, the quantity determination module includes:

[0086] The projection determination unit is configured to determine the length of the current projection of the door wing on the turnstile body according to the included angle and in combination with the door wing length.

[0087] The quantity determination unit is configured to determine the area range for anti-pinch judgment according to the length of the current projection.

[0088] In an alternative implementation, the candidate detection structures are arranged at equal intervals; the turnstile control device further includes:

[0089] The threshold determination module is configured to determine the quantity threshold of the candidate detection structures for anti-pinch judgment according to the distance between any two adjacent candidate detection structures and the door wing length.

[0090] In an alternative implementation, the quantity determination unit is further configured to:

[0091] Determine the effective quantity of the candidate detection structures for anti-pinch judgment according to the length of the current projection, in combination with the quantity threshold and the door wing length.

[0092] In an alternative implementation, the quantity determination unit is further configured to:

[0093] Determine the effective quantity X according to the following formula:

[0094] Wherein, M represents the door wing length, L represents the length of the current projection, x represents the quantity threshold, and θ represents the included angle.

[0095] In an alternative implementation, the quantity determination unit is further configured to:

[0096] Determine the effective quantity of the candidate detection structures for anti-pinch judgment according to the length of the current projection, in combination with the total number of candidate detection structures provided on the turnstile body and the distance between any two adjacent candidate detection structures.

[0097] In an alternative implementation, the control module is further configured to:

[0098] If the target detection structure detects a pedestrian or an object in the turnstile passage, control the door wing to stop rotating to prevent the pedestrian or the article from being squeezed by the door wing.

[0099] If the target detection structure does not detect any pedestrians or objects in the turnstile channel, control the wing gate to continue closing to prevent unauthorized pedestrians from passing through the turnstile channel.

[0100] The turnstile control device provided by the embodiments of the present invention can execute the turnstile control method provided by any embodiment of the present invention, and has corresponding functional modules and beneficial effects for executing the method.

[0101] Embodiment Five

[0102] Figure 5 FIG. shows a schematic structural diagram of an electronic device 10 that can be used to implement the embodiments of the present invention. The electronic device is intended to represent various forms of digital computers, such as, for example, 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, for example, personal digital processors, cellular phones, smart phones, wearable devices (such as 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 present invention described and / or claimed herein.

[0103] As Figure 5 shown, the electronic device 10 includes at least one processor 11, and a memory communicatively connected to the at least one processor 11, such as a read-only memory (ROM) 12, a random access memory (RAM) 13, etc. Among them, the memory stores a computer program executable by the at least one processor. The processor 11 can execute various appropriate actions and processes according to the computer program stored in the read-only memory (ROM) 12 or the computer program loaded from the storage unit 18 into the random access memory (RAM) 13. In the RAM 13, various programs and data required for the operation of the electronic device 10 can also be stored. The processor 11, the ROM 12, and the RAM 13 are connected to each other through a bus 14. The input / output (I / O) interface 15 is also connected to the bus 14.

[0104] A plurality of components in the electronic device 10 are connected to the I / O interface 15, including: an input unit 16, such as a keyboard, a mouse, etc.; an output unit 17, such as various types of displays, speakers, etc.; a storage unit 18, such as a magnetic disk, an optical disk, etc.; and a communication unit 19, such as a network card, a modem, a wireless communication transceiver, etc. The communication unit 19 allows the electronic device 10 to exchange information / data with other devices through a computer network such as the Internet and / or various telecommunication networks.

[0105] The processor 11 may be various general-purpose and / or special-purpose processing components with processing and computing capabilities. Some examples of the processor 11 include, but are not limited to, a central processing unit (CPU), a graphics processing unit (GPU), various dedicated artificial intelligence (AI) computing chips, various processors running machine learning model algorithms, a digital signal processor (DSP), and any suitable processor, controller, microcontroller, etc. The processor 11 executes the various methods and processes described above, such as executing the turnstile control method.

[0106] In some embodiments, the turnstile control method may be implemented as a computer program tangibly embodied in a computer-readable storage medium, such as the storage unit 18. In some embodiments, part or all of the computer program may be loaded and / or installed onto the electronic device 10 via the ROM 12 and / or the communication unit 19. When the computer program is loaded into the RAM 13 and executed by the processor 11, one or more steps of the turnstile control method described above may be executed. Alternatively, in other embodiments, the processor 11 may be configured to execute the turnstile control method by any other suitable means (e.g., by means of firmware).

[0107] Various embodiments of the systems and techniques described above herein can be implemented in digital electronic circuitry, integrated circuit systems, field-programmable gate arrays (FPGA), application-specific integrated circuits (ASIC), application-specific standard products (ASSP), systems-on-chip (SOC), complex programmable logic devices (CPLD), computer hardware, firmware, software, and / or combinations thereof. These various embodiments can include: being implemented in one or more computer programs that can be executed and / or interpreted on a programmable system including at least one programmable processor, which can be a special-purpose or general-purpose programmable processor that can receive data and instructions from a storage system, at least one input device, and at least one output device, and transmit the data and instructions to the storage system, the at least one input device, and the at least one output device.

[0108] The computer program for implementing the method of the present invention can be written in any combination of one or more programming languages. These computer programs can be provided to the processor of a general-purpose computer, a special-purpose computer, or other programmable turnstile control device, such that when the computer program is executed by the processor, the functions / operations specified in the flowchart and / or block diagram are implemented. The computer program can be executed entirely on the machine, partially on the machine, as a stand-alone software package partially on the machine and partially on a remote machine, or entirely on a remote machine or server.

[0109] In the context of the present invention, a computer-readable storage medium can be a tangible medium that can contain or store a computer program for use by or in connection with an instruction execution system, apparatus, or device. The computer-readable storage medium can include, but is not limited to, electronic, magnetic, optical, electromagnetic, infrared, or semiconductor systems, apparatus, or devices, or any suitable combination of the foregoing. Alternatively, the computer-readable storage medium can be a machine-readable signal medium. More specific examples of the machine-readable storage medium would include an electrical connection based on one or more wires, a portable computer disk, a hard disk, a random access memory (RAM), a read-only memory (ROM), an erasable programmable read-only memory (EPROM or Flash memory), an optical fiber, a portable compact disc read-only memory (CD-ROM), an optical storage device, a magnetic storage device, or any suitable combination of the foregoing.

[0110] To provide for 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 a pointing device (e.g., a mouse or a trackball) by which the user can provide input to the electronic device. Other kinds of devices can also be used to provide for 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 acoustic input, voice input, or tactile input).

[0111] The systems and techniques described herein can be implemented in a computing system that includes backend components (such as, for example, a data server), or a computing system that includes middleware components (such as, for example, an application server), or a computing system that includes frontend components (such as, for example, a user computer having a graphical user interface or a web browser through which the user can interact with an implementation of the systems and techniques described herein), or a computing system that includes any combination of such backend components, middleware components, or frontend components. The components of the system can be interconnected by any form or medium of digital data communication (such as, for example, a communication network). Examples of communication networks include: a local area network (LAN), a wide area network (WAN), a blockchain network, and the Internet.

[0112] A computing system may include a client and a server. The client and the server are generally far from each other and usually interact via a communication network. The relationship between the client and the server is generated by computer programs running on respective computers and having a client-server relationship with each other. The server may be a cloud server, also known as a cloud computing server or a cloud host, which is a host product in the cloud computing service system, solving the defects of difficult management and weak business scalability existing in traditional physical hosts and VPS services.

[0113] It should be understood that various forms of processes shown above can be used, with steps reordered, added or deleted. For example, the steps recited in the present invention can be executed in parallel, sequentially or in different orders, as long as the desired results of the technical solution of the present invention can be achieved, and no limitation is made herein.

[0114] The above specific embodiments do not constitute a limitation on the protection scope of the present 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 principle of the present invention shall be included within the protection scope of the present invention.

Claims

1. A gate control method, characterized in that, the gate at least includes a gate body, a wing, and a plurality of candidate detection structures disposed on the gate body at least along the passing direction, and the method includes: During the closing process of the wing, detecting the angle between the wing and the gate body; Determining a region range for anti-pinch judgment according to the angle; Determining a target detection structure for anti-pinch judgment from the candidate detection structures according to the region range; Controlling the wing according to the detection result of the target detection structure.

2. The method according to claim 1, characterized in that, Determining a region range for anti-pinch judgment according to the angle, including: According to the angle, combining with the length of the wing, determining the length of the current projection of the wing on the gate body; Determining a region range for anti-pinch judgment according to the length of the current projection.

3. The method according to claim 2, characterized in that, The candidate detection structures are arranged at equal intervals, and the method further includes: Determining a quantity threshold of the candidate detection structures for anti-pinch judgment according to the distance between any two adjacent candidate detection structures and the length of the wing.

4. The method according to claim 3, characterized in that, Determining a region range for anti-pinch judgment according to the length of the current projection, including: According to the length of the current projection, combining with the quantity threshold and the length of the wing, determining the effective quantity of the candidate detection structures for anti-pinch judgment.

5. The method according to claim 4, characterized in that, According to the length of the current projection, combining with the quantity threshold and the length of the wing, determining the effective quantity of the candidate detection structures for anti-pinch judgment, including: Determining the effective quantity X according to the following formula: where M represents the length of the wing, L represents the length of the current projection, x represents the quantity threshold, and θ represents the angle.

6. The method according to claim 3, characterized in that, Determining a region range for anti-pinch judgment according to the length of the current projection, including: According to the length of the current projection, combining with the total number of candidate detection structures disposed on the gate body and the distance between any two adjacent candidate detection structures, determining the effective quantity of the candidate detection structures for anti-pinch judgment.

7. The method according to claim 1, characterized in that, Controlling the wing according to the detection result of the target detection structure, including: If the target detection structure detects a pedestrian or an object in the gate passage, controlling the wing to stop rotating to prevent the pedestrian or the object from being squeezed by the wing; If the target detection structure does not detect a pedestrian or an object in the gate passage, controlling the wing to continue closing to prevent unauthorized pedestrians from passing through the gate passage.

8. A gate control device, characterized in that, the gate at least includes a gate body, a wing, and a plurality of candidate detection structures disposed on the gate body at least along the passing direction, and the device includes: An angle detection module for detecting the angle between the wing and the gate body during the closing process of the wing; A quantity determination module, configured to determine a range of an area for pinch protection determination according to the included angle; A detection structure determination module, configured to determine a target detection structure for pinch protection determination from the candidate detection structures according to the area range; A control module, configured to control the door wing according to a detection result of the target detection structure.

9. An electronic device, characterized in that, it includes: at least one processor; and a memory communicatively connected to the at least one processor; wherein, the memory stores a computer program executable by the at least one processor, and the computer program is executed by the at least one processor so that the at least one processor can execute the method according to any one of claims 1-7.

10. A computer-readable storage medium, characterized in that, the computer-readable storage medium stores computer instructions for causing a processor to execute the method according to any one of claims 1-7 when executed.