Method and apparatus for processing detection result, storage medium and electronic device
Patent Information
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- ZHEJIANG DAHUA TECH CO LTD
- Filing Date
- 2022-12-30
- Publication Date
- 2026-07-14
Smart Images

Figure CN115857041B_ABST
Abstract
Description
Technical Field
[0001] The embodiments of the present invention relate to the field of communications, and more specifically, to a method, apparatus, storage medium, and electronic device for processing detection results. Background Technology
[0002] With the development of science and technology and the progress of society, more and more smart devices that combine infrared technology are making daily life more convenient for people. For example, smart gate devices and smart payment devices are used in most residential communities, public transportation and companies for personnel management and security management.
[0003] In related technologies, intelligent gate devices typically use light curtain infrared to identify people or items passing through. However, light curtain infrared is easily interfered with by natural light when used outdoors, which can lead to the inability of the light curtain infrared to identify people or items passing through due to interference from natural light.
[0004] There is currently no effective solution to the problem that light curtain infrared equipment is susceptible to interference, leading to inaccurate detection results. Summary of the Invention
[0005] The present invention provides a method, apparatus, storage medium and electronic device for processing detection results, so as to at least solve the problem that light curtain infrared devices are susceptible to interference, resulting in inaccurate detection results in related technologies.
[0006] According to an embodiment of the present invention, a method for processing detection results is provided, comprising: acquiring a first detection result obtained by an independent infrared device detecting a target area; determining the occlusion state of each of the multiple light curtain infrared devices included in the first detection result, wherein the light curtain infrared devices are used to detect the target area; and, if it is determined that there is a target light curtain infrared device that is abnormally occluded among the multiple light curtain infrared devices, invalidating the target detection result obtained by the target light curtain infrared device detecting the target area.
[0007] In an exemplary embodiment, determining the occlusion state of each of the multiple light curtain infrared devices based on the first detection result includes: when it is determined based on the first detection result that there is no obstruction in the target area, acquiring second detection results obtained by the multiple light curtain infrared devices respectively detecting the target area, wherein the operation of the multiple light curtain infrared devices detecting the target area is performed synchronously with the operation of the independent infrared device detecting the target area; and determining the occlusion state of each of the multiple second detection results.
[0008] In an exemplary embodiment, obtaining the first detection result obtained by the independent infrared device detecting the target area includes: when it is determined that the obstruction exists in the target area, continuously obtaining the detection result obtained by the independent infrared device detecting the target area until the first detection result is obtained.
[0009] In an exemplary embodiment, invalidating the detection result obtained by the target light curtain infrared device from the target area includes: invalidating the detection result obtained by the target light curtain infrared device from the target area when it is determined that the duration of continuously acquiring the first detection result reaches a first predetermined duration.
[0010] In an exemplary embodiment, after invalidating the detection result obtained by the target light curtain infrared device from detecting the target area, the method further includes: determining the duration for which there is no abnormally blocked target light curtain infrared device among the plurality of light curtain infrared devices; and, if the duration is determined to reach a second predetermined duration, validating the target detection result obtained by the target light curtain infrared device from detecting the target area again, wherein the second predetermined duration is longer than a predetermined detection period, and the predetermined detection period is the acquisition period for obtaining the detection results obtained by the plurality of light curtain infrared devices from detecting the target area.
[0011] In one exemplary embodiment, the method further includes: updating the time when the independent infrared device is blocked if it is determined based on the first detection result that there is an obstruction in the target area.
[0012] In an exemplary embodiment, the method further includes determining whether an obstruction exists in the target area by: acquiring valid detection results obtained by valid light curtain infrared devices among a plurality of light curtain infrared devices detecting the target area, wherein the valid light curtain infrared devices are light curtain infrared devices whose detection results obtained by detecting the target area are not set to invalid; and determining whether the obstruction exists in the target area based on the first detection result and the valid detection result.
[0013] According to another embodiment of the present invention, a processing apparatus for detection results is provided, comprising: an acquisition module, configured to acquire a first detection result obtained by an independent infrared device detecting a target area; a first determination module, configured to determine the occlusion state of each of the multiple light curtain infrared devices included in the plurality of light curtain infrared devices based on the first detection result, wherein the light curtain infrared devices are used to detect the target area; and a first processing module, configured to invalidate the target detection result obtained by the target light curtain infrared device detecting the target area if it is determined that there is a target light curtain infrared device that is abnormally occluded among the multiple light curtain infrared devices.
[0014] According to yet another embodiment of the present invention, a computer-readable storage medium is also provided, wherein a computer program is stored therein, wherein the computer program is configured to perform the steps in any of the above method embodiments when executed.
[0015] According to yet another embodiment of the present invention, an electronic device is also provided, including a memory and a processor, wherein the memory stores a computer program and the processor is configured to run the computer program to perform the steps in any of the above method embodiments.
[0016] This invention obtains a first detection result from an independent infrared device detecting a target area. Based on this first detection result, the occlusion status of each light curtain infrared device among multiple light curtain infrared devices is determined. Furthermore, if it is determined that a target light curtain infrared device is abnormally occluded, the target detection result obtained by that target light curtain infrared device detecting the target area is invalidated. By employing this method, the occlusion status of each light curtain infrared device among multiple light curtain infrared devices is determined based on the first detection result from an independent infrared device detecting the target area. This allows for dynamic adjustment of the target detection result obtained by the target light curtain infrared device detecting the target area, making the installation position of the light curtain infrared device unrestricted. This effectively solves the problem in related technologies where light curtain infrared devices are susceptible to interference, leading to inaccurate detection results. This achieves the effect of improving the anti-interference capability of light curtain infrared devices and increasing the accuracy of detection results. Attached Figure Description
[0017] Figure 1 This is a front view of the side elevation of a single-sided gate in the relevant technology.
[0018] Figure 2 This is a hardware structure block diagram of a mobile terminal for processing detection results according to an embodiment of the present invention.
[0019] Figure 3 This is a flowchart of a method for processing detection results according to an embodiment of the present invention;
[0020] Figure 4 This is the bypass detection process of the light curtain infrared receiver point according to a specific embodiment of the present invention. Figure 1 ;
[0021] Figure 5 This is the bypass detection process of the light curtain infrared receiver point according to a specific embodiment of the present invention. Figure 2 ;
[0022] Figure 6 This is a flowchart of bypass removal according to a specific embodiment of the present invention;
[0023] Figure 7 This is a structural block diagram of a device for processing detection results according to an embodiment of the present invention. Detailed Implementation
[0024] The embodiments of the present invention will be described in detail below with reference to the accompanying drawings and examples.
[0025] It should be noted that the terms "first," "second," etc., in the specification, claims, and drawings of this invention are used to distinguish similar objects and are not necessarily used to describe a specific order or sequence.
[0026] First, the relevant technologies and equipment involved in this invention will be described:
[0027] Suitable for devices such as turnstiles that are detected by infrared identification points.
[0028] Turnstiles: Access control devices used to manage entrances and exits. Common types include swing gates, wing gates, and tripod turnstiles.
[0029] Independent infrared: It consists of two parts: a single emitter and a receiver. The receiver outputs IO (Input / Output) status based on whether it receives a signal from the emitter.
[0030] Infrared light curtain: It consists of two parts: a light emitter and a light receiver. The light emitter has multiple built-in infrared transmitters, and the light receiver has multiple built-in infrared receivers. Through existing strategies, the internal infrared transmitters and receivers can be arranged in close proximity without interfering with each other. The receiver outputs IO status based on whether it has received a signal from the transmitter.
[0031] Figure 1 This is a front view of the side elevation of a single-sided gate in related technologies, such as... Figure 1 As shown, numbers 11 to 30 at the top are four groups of infrared receivers for the light curtain, each group containing five infrared receivers. Numbers 1 to 10 at the bottom are independent infrared receivers. It should be noted that... Figure 1This is merely an example; in practical applications, the number and location of the light curtain infrared devices and independent infrared devices can be flexibly adjusted based on the actual situation. The solution in this embodiment of the invention can be applied to... Figure 1 The architecture shown is, of course, not limited to, this architecture. The following describes the embodiments of the present invention:
[0032] The methods and embodiments provided in this application can be executed on a mobile terminal, a computer terminal, or a similar computing device. Taking running on a mobile terminal as an example, Figure 2 This is a hardware structure block diagram of a mobile terminal for processing detection results according to an embodiment of the present invention. For example... Figure 2 As shown, a mobile terminal may include one or more ( Figure 2 Only one is shown in the diagram. A processor 202 (which may include, but is not limited to, a microprocessor MCU or a programmable logic device FPGA, etc.) and a memory 204 for storing data are also shown. The mobile terminal may further include a transmission device 206 for communication functions and an input / output device 208. Those skilled in the art will understand that... Figure 2 The structure shown is for illustrative purposes only and does not limit the structure of the mobile terminal described above. For example, the mobile terminal may also include components that are more... Figure 2 The more or fewer components shown, or having the same Figure 2 The different configurations shown.
[0033] The memory 204 can be used to store computer programs, such as application software programs and modules, like the computer program corresponding to the detection result processing method in this embodiment of the invention. The processor 202 executes various functional applications and data processing by running the computer program stored in the memory 204, thereby implementing the above-described method. The memory 204 may include high-speed random access memory, and may also include non-volatile memory, such as one or more magnetic storage devices, flash memory, or other non-volatile solid-state memory. In some instances, the memory 204 may further include memory remotely located relative to the processor 202, and these remote memories can be connected to the mobile terminal via a network. Examples of such networks include, but are not limited to, the Internet, corporate intranets, local area networks, mobile communication networks, and combinations thereof.
[0034] The transmission device 206 is used to receive or send data via a network. Specific examples of the network described above may include a wireless network provided by the mobile terminal's communication provider. In one example, the transmission device 206 includes a Network Interface Controller (NIC), which can connect to other network devices via a base station to communicate with the Internet. In another example, the transmission device 206 may be a Radio Frequency (RF) module, used for wireless communication with the Internet.
[0035] This embodiment provides a method for processing detection results. Figure 3 This is a flowchart of a method for processing detection results according to an embodiment of the present invention, such as... Figure 3 As shown, the process includes the following steps:
[0036] S302, Obtain the first detection result obtained by an independent infrared device detecting the target area;
[0037] S304, based on the first detection result, determine the occlusion state of each of the multiple light curtain infrared devices, wherein the light curtain infrared devices are used to detect the target area;
[0038] S306, if it is determined that there is a target light curtain infrared device that is abnormally blocked among the multiple light curtain infrared devices, the target detection result obtained by the target light curtain infrared device in detecting the target area is set to invalid.
[0039] The device performing the above operations can be a controller or control system, or a device with control capabilities, such as an intelligent gate device, or a processor installed in an intelligent device, or other processing devices or processing units with similar processing capabilities. The aforementioned independent infrared device includes an independent infrared emitter and an independent infrared receiver, and the aforementioned light curtain infrared device includes a light curtain infrared emitter and a light curtain infrared receiver.
[0040] In the above embodiments, there may be multiple independent infrared devices. If there is an invalid independent infrared device among the multiple independent infrared devices (for example, the invalid independent infrared device may be a faulty independent infrared device, an independent infrared device that has been pre-marked as invalid, or an invalid independent infrared device determined by other means), the first detection result obtained by the valid independent infrared device among the multiple independent infrared devices can be obtained to detect the target area, thereby avoiding interference from the first detection result of the invalid independent infrared device.
[0041] In the above embodiments, there can be multiple effective independent infrared devices, thereby acquiring multiple first detection results. The occlusion status of each of the multiple light curtain infrared devices can be determined using these multiple first detection results. In this embodiment, the target area can be further divided into multiple smaller sub-regions. In this case, the number of independent infrared devices detecting each sub-region can be multiple. Generally, since the area of the sub-region is relatively small, the detection results of the multiple independent infrared devices detecting the sub-region should be consistent. If there are inconsistent first detection results among the multiple independent infrared devices detecting the sub-region... In such cases, the first detection result with the largest proportion can be taken as the final first detection result. For example, if there are 10 effective independent infrared devices and 10 first detection results are obtained, and if 2 of these first detection results indicate that there is an obstruction in the target area, while the remaining 8 first detection results indicate that there is no obstruction in the target area, it means that the 2 independent infrared devices that detected obstruction may have malfunctioned or been affected by external factors (e.g., the device is covered with oil or other stains, or has shredded paper stuck to it). In this case, it can be considered that there is actually no obstruction in that sub-area. In addition, the higher priority or greater weight can be used to select the first detection result. The first detection result obtained by an effective independent infrared device in detecting the sub-region is taken as the final first detection result. For example, when there are 5 effective independent infrared devices (independent infrared device 1, independent infrared device 2, independent infrared device 3, independent infrared device 4, and independent infrared device 5), and the priority or weight order of these 5 independent infrared devices is independent infrared device 1 > independent infrared device 2 > independent infrared device 3 > independent infrared device 4 > independent infrared device 5, if the first detection results of independent infrared device 1 and independent infrared device 2 both indicate that there is an obstruction in the sub-region, while the first detection results of independent infrared device 3, independent infrared device 4, and independent infrared device 5 indicate that there is an obstruction in the sub-region... If there are no obstructions in the sub-region, then the target region is considered to have obstructions. Of course, before determining whether there are obstructions in the sub-region through the above two methods, the obtained first detection result can be verified. For example, it can be verified by sensors (vibration sensors, capacitance sensors, temperature sensors, etc.), or by recording and storing video (whether the obstruction is captured), etc. It should also be noted that the above examples of independent infrared devices, first detection results, and verification methods of the first detection results are only exemplary embodiments, and independent infrared devices, first detection results, and verification methods of the first detection results are not limited to the above examples.
[0042] In the above embodiments, a first detection result obtained by an independent infrared device detecting a target area is acquired. Based on the first detection result, the occlusion status of each light curtain infrared device among multiple light curtain infrared devices is determined. Furthermore, if it is determined that there is a target light curtain infrared device that is abnormally occluded among the multiple light curtain infrared devices, the target detection result obtained by the target light curtain infrared device detecting the target area is invalidated. By employing the method of the present invention, the occlusion status of each light curtain infrared device among multiple light curtain infrared devices is determined based on the first detection result obtained by an independent infrared device detecting a target area. This dynamically adjusts the target detection result obtained by the target light curtain infrared device detecting the target area, making the installation position of the light curtain infrared device unrestricted. This effectively solves the problem in related technologies where light curtain infrared devices are easily interfered with, leading to inaccurate detection results. It achieves the effect of improving the anti-interference capability of light curtain infrared devices and improving the accuracy of detection results.
[0043] In an exemplary embodiment, determining the occlusion state of each of the multiple light curtain infrared devices based on the first detection result includes: if it is determined based on the first detection result that there is no obstruction in the target area, acquiring the second detection results obtained by the multiple light curtain infrared devices respectively when detecting the target area, wherein the operation of the multiple light curtain infrared devices detecting the target area is performed synchronously with the operation of the independent infrared device detecting the target area; and determining the occlusion state of each of the multiple second detection results. In this embodiment, the multiple light curtain infrared devices may include invalid light curtain infrared devices (i.e., light curtain infrared devices determined to be invalid in the previous round of processing). Only the second detection results obtained by the valid light curtain infrared devices among the multiple light curtain infrared devices when detecting the target area can be acquired, thereby avoiding interference from the second detection results of the invalid light curtain infrared devices.
[0044] In the above embodiments, there can be multiple effective light curtain infrared devices, thus acquiring multiple second detection results. These multiple second detection results can be acquired simultaneously, or they can be acquired sequentially according to a specific order (e.g., a pre-set acquisition order, an acquisition order determined by the priority of each light curtain infrared device, or an order determined by the position of the light curtain infrared devices, etc.). The occlusion status of each effective light curtain infrared device is then determined based on these multiple second detection results. In this embodiment, when it is determined based on the first detection result that there is no occlusion in the target area, the ideal detection results of the multiple light curtain infrared devices should also indicate the absence of an occlusion. If the detection results of individual light curtain infrared devices indicate the presence of an occlusion, it means that the detection result of that individual light curtain infrared device is incorrect and needs to be invalidated to avoid affecting the final detection result or infrared imaging result. In this embodiment, the invalidated detection results are used to indicate that there is no occlusion in the target area.
[0045] In an exemplary embodiment, obtaining the first detection result obtained by an independent infrared device detecting a target area includes: when it is determined that an obstruction exists in the target area, continuously obtaining the detection result obtained by the independent infrared device detecting the target area until the first detection result is obtained. In this embodiment, when an obstruction continuously exists in the target area, the detection result obtained by the independent infrared device detecting the target area is continuously obtained until the obtained detection result indicates that there is no obstruction in the target area, at which point the acquisition of detection results stops. That is, when an effective independent infrared device continuously detects an obstruction in the target area, if the light curtain infrared device is interfered with at this time, it is highly likely to be interfered with by passing personnel or objects.
[0046] In an exemplary embodiment, invalidating the detection result obtained by the target light curtain infrared device from the target area includes: invalidating the detection result obtained by the target light curtain infrared device from the target area when it is determined that the duration for which the first detection result is continuously acquired reaches a first predetermined duration. In this embodiment, when a valid independent infrared device continuously detects that there are no obstructions in the target area, if the light curtain infrared device is interfered with at this time, it is highly likely to be interfered with by natural light (or other light that affects the light curtain infrared).
[0047] In the above embodiments, the first predetermined duration can be preset, such as 5 seconds, 6 seconds, 7 seconds, etc. For example, when the first predetermined duration is 5 seconds, if it is determined that the duration of continuously obtaining the first detection result reaches 5 seconds, the detection result obtained by the target light curtain infrared device to detect the target area is set to invalid. In addition, after the first predetermined duration is preset, it can also be adjusted according to the actual application situation. It should be noted that the above example of the first predetermined duration is only an exemplary embodiment, and the first predetermined duration is not limited to the above example.
[0048] In an exemplary embodiment, after invalidating the detection result obtained by the target light curtain infrared device from detecting the target area, the method further includes: determining the duration for which there is no abnormally blocked target light curtain infrared device among the plurality of light curtain infrared devices; and, if the duration is determined to reach a second predetermined duration, validating the target detection result obtained by the target light curtain infrared device from detecting the target area again, wherein the second predetermined duration is longer than a predetermined detection period, and the predetermined detection period is the acquisition period for obtaining the detection results obtained by the plurality of light curtain infrared devices from detecting the target area. In this embodiment, both the second predetermined duration and the predetermined detection period can be preset. The second predetermined duration can be set to 5 seconds, 6 seconds, 7 seconds, etc., and the predetermined detection period can be set to 1 second, 2 seconds, 3 seconds, etc. For example, when the second predetermined duration is 5 seconds and the predetermined detection period is 1 second, if it is determined that the duration has reached 5 seconds (in which case the duration is greater than the predetermined detection period of 1 second), the target detection result obtained by the target light curtain infrared device detecting the target area again is set as valid. In addition, after the second predetermined duration and the predetermined detection period are preset, they can also be adjusted according to the actual application. It should be noted that the above examples of the second predetermined duration and the predetermined detection period are only exemplary embodiments, and the second predetermined duration and the predetermined detection period are not limited to the above examples.
[0049] In the above embodiments, the target detection result obtained by the target light curtain infrared device detecting the target area again must meet the following prerequisites: the effective independent infrared device and the effective light curtain infrared device included in the multiple light curtain infrared devices are not blocked, and the duration of the absence of a target light curtain infrared device that is abnormally blocked among the multiple light curtain infrared devices reaches the second predetermined duration.
[0050] In an exemplary embodiment, the method further includes: updating the time when the obstruction of the independent infrared device is determined to exist within the target area based on the first detection result. In this embodiment, by updating the time when the obstruction of the independent infrared device is determined, when it is necessary to verify the first detection result of the independent infrared device later, the corresponding independent infrared device can be found by updating the time, and its first detection result can be specifically verified to determine whether it is a valid device.
[0051] In an exemplary embodiment, the method further includes determining whether an obstruction exists within the target area by: acquiring valid detection results obtained by valid light curtain infrared devices among a plurality of light curtain infrared devices detecting the target area, wherein the valid light curtain infrared device is a light curtain infrared device whose detection results obtained from detecting the target area have not been invalidated; and determining whether an obstruction exists within the target area based on the first detection result and the valid detection result. In this embodiment, before acquiring the first detection result obtained by an independent infrared device detecting the target area, it is necessary to detect the target area using a valid independent infrared device and a valid light curtain infrared device to determine whether an obstruction exists within the target area. If it is determined that there is no obstruction within the target area, the target area is determined to be in an idle state. If the first detection result of a valid independent infrared device determines that the target area remains in an idle state, and if the valid light curtain infrared device is obstructed at this time, it indicates that the light curtain infrared device is being interfered with by natural light (or other light that affects the light curtain infrared). In this case, it is necessary to invalidate the detection result obtained by the light curtain infrared device detecting the target area to avoid misidentification. In case of an anomaly, if an obstruction is identified within the target area and the area is confirmed to be busy, and the effective infrared light curtain device is obstructed, it cannot be immediately determined whether the interference is due to pedestrians or objects or to natural light (or other light that affects the infrared light curtain). In this case, a fault-tolerant mechanism is needed to further determine the type of interference. This involves using an independent infrared device to detect the target area. If an obstruction is detected, it indicates that the infrared light curtain device is being interfered with by pedestrians or objects. If, for a period of time, the independent infrared device detects no obstructions within the target area, it indicates that the infrared light curtain device is being interfered with by natural light (or other light that affects the infrared light curtain).
[0052] Obviously, the embodiments described above are only some embodiments of the present invention, and not all embodiments.
[0053] The present invention will now be described in detail with reference to specific embodiments (including turnstiles with light curtain infrared devices and independent infrared devices, and taking the target area as the turnstile channel area):
[0054] Figure 4 This is the bypass detection process of the light curtain infrared receiver point according to a specific embodiment of the present invention. Figure 1 ,like Figure 4 As shown, the process includes the following steps:
[0055] S402, Begin;
[0056] S404, perform the first judgment to determine whether the gate is in an idle state;
[0057] The gate channel status is determined by a passage identification algorithm based on the detection results of other effective infrared devices (corresponding to the aforementioned independent infrared device and the aforementioned effective light curtain infrared device) (corresponding to the aforementioned first detection result and the aforementioned effective detection result).
[0058] S406, if the result of the first judgment above is negative, perform the busy state processing (i.e., corresponding to...) Figure 5 (processing flow);
[0059] S408, if the first judgment result is yes, a second judgment is made to determine whether the independent infrared (corresponding to the independent infrared device) has not been triggered;
[0060] Determine whether the independent infrared sensors are unobstructed, and combine this with the gate's idle status to confirm that the passage is idle and there are no people or objects (corresponding to the aforementioned obstructions) in the passage.
[0061] S410, If the result of the second judgment above is negative, the process ends;
[0062] S412, if the second judgment result is yes, traverse the light curtain infrared (corresponding to the above multiple light curtain infrared devices);
[0063] Traverse the infrared receivers of the light curtain and count the points where signals are received from the transmitter (i.e., count the points affected by interference). Once any point meets the requirements, proceed to step S418.
[0064] S414, perform the third judgment to determine whether the light curtain infrared has been triggered;
[0065] S416, if the result of the third judgment above is negative, perform the bypass cancellation process (i.e., the corresponding...). Figure 6 (processing flow);
[0066] S418, if the third judgment result is yes, the bypassed point (corresponding to the above-mentioned invalidation of the target detection result obtained by the target light curtain infrared device to detect the target area) is bypassed and the bypass time is recorded (the point in the bypass state receives the transmitter signal by default), and step S410 is executed.
[0067] Figure 5 This is the bypass detection process of the light curtain infrared receiver point according to a specific embodiment of the present invention. Figure 2 ,like Figure 5 As shown, the process includes the following steps:
[0068] S502, the turnstile channel is busy;
[0069] S504, perform the first judgment to determine whether the independent infrared sensors have not been triggered;
[0070] Determine if none of the independent infrared sensors have been triggered. If so, it means that there may be no people or items in the passage.
[0071] S506, if the first judgment result is negative, update the time when the independent infrared is blocked;
[0072] S508, End;
[0073] S510, if the first judgment result is yes, traverse the infrared light curtain;
[0074] Traverse the infrared area of the light curtain and count the number of infrared points that are blocked (i.e., count the points that are interfered with).
[0075] S512, perform a second judgment to determine whether the light curtain infrared has been triggered. If the result of the second judgment is no, proceed to step S508.
[0076] S514, if the second judgment result is yes, a third judgment is made to determine whether the duration of the independent infrared continuous clear air exceeds N seconds (corresponding to the first predetermined duration mentioned above). If the third judgment result is no, step S508 is executed.
[0077] Determine whether the independent infrared clearance exceeds a certain time N. This time can be adjusted according to the actual situation. If this condition is met, it means that there are most likely no people or items in the passage.
[0078] S516, if the third judgment result is yes, bypass the triggered point and record the bypass time (the point in bypass state receives the transmitter signal by default), and execute step S408.
[0079] Figure 6 This is a flowchart of bypass deactivation according to a specific embodiment of the present invention, such as... Figure 6As shown, the process includes the following steps:
[0080] S602, clearance at infrared points of light curtain;
[0081] S604, perform the first judgment to determine whether the clearance time of the bypassed light curtain infrared point exceeds X seconds;
[0082] Determine whether the time since the last bypass at the location exceeds X seconds (corresponding to the second predetermined duration mentioned above). This time value should be greater than the bypass detection cycle (corresponding to the predetermined detection cycle mentioned above).
[0083] S606, If the result of the first judgment above is negative, the process ends;
[0084] S608, if the first judgment result is yes, the bypass of the infrared point of the light curtain is released.
[0085] It should also be noted that the above embodiments are independent for each light curtain infrared point, that is, the bypass and de-circuiting of the light curtain infrared point are independent of each other, thus allowing for real-time dynamic adjustment of the bypass status of each light curtain infrared point.
[0086] As can be seen from the foregoing embodiments, when the turnstile channel is idle (i.e., the previous passage has ended and there are no people or objects obstructing the infrared device), misidentification by any receiver point of the light curtain infrared can cause the turnstile's recognition to enter an abnormal state. Therefore, in this state, it is necessary to quickly identify and bypass misidentified receiver points. When the turnstile channel is busy, if any receiver point of the light curtain infrared detects an obstruction, it cannot immediately distinguish whether the obstruction is caused by a person or object passing through, or by a mis-touch due to natural light. In this case, a fault tolerance mechanism is needed. Since natural light can change in illumination angle and intensity due to time, weather, etc., interference with the light curtain infrared by natural light is not a long-term interference. When the interference disappears, the bypass needs to be immediately deactivated so that the turnstile can restore its maximum resolution to distinguish whether there are any objects obstructing the channel. Turnstile products equipped with light curtain infrared dynamically adjust the bypass state of the light curtain infrared by using the output states of independent infrared and passage recognition algorithms, thereby improving the applicability of the light curtain infrared.
[0087] Through the above description of the embodiments, those skilled in the art can clearly understand that the methods according to the above embodiments can be implemented by means of software plus necessary general-purpose hardware platforms. Of course, they can also be implemented by hardware, but in many cases the former is a better implementation method. Based on this understanding, the technical solution of the present invention, in essence, or the part that contributes to the prior art, can be embodied in the form of a software product. This computer software product is stored in a storage medium (such as ROM / RAM, magnetic disk, optical disk) and includes several instructions to cause a terminal device (which may be a mobile phone, computer, server, or network device, etc.) to execute the methods described in the various embodiments of the present invention.
[0088] This embodiment also provides a processing device for detection results, which is used to implement the above embodiments and preferred embodiments; details already described will not be repeated. As used below, the term "module" can refer to a combination of software and / or hardware that implements a predetermined function. Although the device described in the following embodiments is preferably implemented in software, hardware implementation, or a combination of software and hardware, is also possible and contemplated.
[0089] Figure 7 This is a structural block diagram of a device for processing detection results according to an embodiment of the present invention, as shown below. Figure 7 As shown, the device includes:
[0090] The acquisition module 72 is used to acquire the first detection result obtained by an independent infrared device detecting the target area;
[0091] The first determining module 74 is used to determine the occlusion state of each of the multiple light curtain infrared devices included in the first detection result, wherein the light curtain infrared devices are used to detect the target area;
[0092] The first processing module 76 is used to invalidate the target detection result obtained by the target light curtain infrared device from detecting the target area when it is determined that there is a target light curtain infrared device that is abnormally blocked among the multiple light curtain infrared devices.
[0093] In one exemplary embodiment, the first determining module 74 includes:
[0094] The first acquisition submodule is used to acquire, when it is determined based on the first detection result that there is no obstruction in the target area, the second detection result obtained by the multiple light curtain infrared devices respectively detecting the target area, wherein the operation of the multiple light curtain infrared devices detecting the target area and the operation of the independent infrared device detecting the target area are executed synchronously.
[0095] The first determining submodule is used to determine the occlusion state of each of the light curtain infrared devices based on multiple second detection results.
[0096] In one exemplary embodiment, the acquisition module 72 includes:
[0097] The second acquisition submodule is used to continuously acquire the detection results obtained by the independent infrared device in detecting the target area when it is determined that the obstruction exists in the target area, until the first detection result is acquired.
[0098] In one exemplary embodiment, the first processing module 76 includes:
[0099] The first processing submodule is configured to invalidate the detection result obtained by the target light curtain infrared device from the target area when it is determined that the duration of continuously acquiring the first detection result has reached a first predetermined duration.
[0100] In one exemplary embodiment, the above-described apparatus further includes:
[0101] The second determining module is used to determine the duration for which no target light curtain infrared device is abnormally blocked among the multiple light curtain infrared devices after invalidating the detection result obtained by the target light curtain infrared device from the detection of the target area.
[0102] The second processing module is used to, when it is determined that the duration has reached a second predetermined duration, set the target detection result obtained by the target light curtain infrared device to be valid again when it detects the target area again, wherein the second predetermined duration is longer than a predetermined detection period, and the predetermined detection period is the acquisition period for obtaining the detection results obtained by multiple light curtain infrared devices detecting the target area.
[0103] In one exemplary embodiment, the above-described apparatus further includes:
[0104] An update module is used to update the time when the independent infrared device is blocked, based on the first detection result and it is determined that there is an obstruction in the target area.
[0105] In an exemplary embodiment, the above-described apparatus is further configured to determine whether an obstruction exists within the target area by means of:
[0106] The effective detection results obtained by the effective light curtain infrared devices among the multiple light curtain infrared devices are obtained by detecting the target area, wherein the effective light curtain infrared devices are the light curtain infrared devices whose detection results obtained by detecting the target area are not set to invalid;
[0107] Based on the first detection result and the effective detection result, it is determined whether the obstruction exists in the target area.
[0108] It should be noted that the above modules can be implemented by software or hardware. For the latter, they can be implemented in the following ways, but are not limited to: all the above modules are located in the same processor; or, the above modules are located in different processors in any combination.
[0109] Embodiments of the present invention also provide a computer-readable storage medium storing a computer program, wherein the computer program is configured to perform the steps in any of the above method embodiments when executed.
[0110] In one exemplary embodiment, the aforementioned computer-readable storage medium may include, but is not limited to, various media capable of storing computer programs, such as a USB flash drive, read-only memory (ROM), random access memory (RAM), portable hard disk, magnetic disk, or optical disk.
[0111] Embodiments of the present invention also provide an electronic device including a memory and a processor, the memory storing a computer program and the processor being configured to run the computer program to perform the steps in any of the above method embodiments.
[0112] In one exemplary embodiment, the electronic device may further include a transmission device and an input / output device, wherein the transmission device is connected to the processor and the input / output device is connected to the processor.
[0113] Specific examples in this embodiment can be found in the examples described in the above embodiments and exemplary implementations, and will not be repeated here.
[0114] The detection result processing method provided by this invention allows for flexible and unrestricted installation of the light curtain infrared device. By dynamically adjusting the bypass status of the light curtain infrared device points, its applicability in outdoor turnstiles is improved. Furthermore, it further prevents insects, rainwater, dust, mud, and other contaminants from adhering to the light curtain infrared device and causing the turnstile to enter an abnormal alarm state.
[0115] It is obvious to those skilled in the art that the modules or steps of the present invention described above can be implemented using general-purpose computing devices. They can be centralized on a single computing device or distributed across a network of multiple computing devices. They can be implemented using computer-executable program code, and thus can be stored in a storage device for execution by a computing device. In some cases, the steps shown or described can be performed in a different order than those described herein, or they can be fabricated as separate integrated circuit modules, or multiple modules or steps can be fabricated as a single integrated circuit module. Thus, the present invention is not limited to any particular combination of hardware and software.
[0116] The above description is merely a preferred embodiment of the present invention and is not intended to limit the invention. Various modifications and variations can be made to the present invention by those skilled in the art. Any modifications, equivalent substitutions, or improvements made within the principles of the present invention should be included within the scope of protection of the present invention.
Claims
1. A method for processing detection results, characterized in that, include: Acquire the first detection result obtained by an independent infrared device detecting the target area; Based on the first detection result, the occlusion status of each of the multiple light curtain infrared devices is determined, wherein the light curtain infrared devices are used to detect the target area; If it is determined that there is a target light curtain infrared device that is abnormally blocked among the multiple light curtain infrared devices, the target detection result obtained by the target light curtain infrared device in detecting the target area shall be invalidated. Determining the occlusion status of each of the multiple light curtain infrared devices based on the first detection result includes: when it is determined based on the first detection result that there is no obstruction in the target area, acquiring the second detection results obtained by the multiple light curtain infrared devices respectively when detecting the target area, wherein the operation of the multiple light curtain infrared devices detecting the target area is performed synchronously with the operation of the independent infrared device detecting the target area; and determining the occlusion status of each of the multiple second detection results.
2. The method according to claim 1, characterized in that, The first detection results obtained from the detection of the target area by an independent infrared device include: If the obstruction is determined to exist within the target area, the detection results obtained by the independent infrared device in detecting the target area are continuously acquired until the first detection result is acquired.
3. The method according to claim 2, characterized in that, Invalidating the detection results obtained by the target light curtain infrared device in detecting the target area includes: invalidating the detection results obtained by the target light curtain infrared device in detecting the target area when it is determined that the duration of continuously acquiring the first detection result reaches a first predetermined duration.
4. The method according to claim 1, characterized in that, After invalidating the detection results obtained by the target light curtain infrared device from detecting the target area, the method further includes: Determine the duration during which none of the target light curtain infrared devices among the plurality of light curtain infrared devices are abnormally blocked; If the duration is determined to reach the second predetermined duration, the target detection result obtained by the target light curtain infrared device in detecting the target area again is set to valid, wherein the second predetermined duration is longer than the predetermined detection period, and the predetermined detection period is the acquisition period for obtaining the detection results obtained by multiple light curtain infrared devices in detecting the target area.
5. The method according to claim 1, characterized in that, The method further includes: If, based on the first detection result, it is determined that there is an obstruction in the target area, the time when the independent infrared device is obstructed is updated.
6. The method according to claim 1, characterized in that, The method further includes determining whether there are obstructions within the target area by means of: The effective detection results obtained by the effective light curtain infrared devices among the multiple light curtain infrared devices are obtained by detecting the target area, wherein the effective light curtain infrared devices are the light curtain infrared devices whose detection results obtained by detecting the target area are not set to invalid; Based on the first detection result and the effective detection result, it is determined whether the obstruction exists in the target area.
7. A device for processing detection results, characterized in that, include: The acquisition module is used to acquire the first detection result obtained by an independent infrared device detecting the target area; The first determining module is used to determine the occlusion state of each of the multiple light curtain infrared devices included in the first detection result, wherein the light curtain infrared devices are used to detect the target area; The first processing module is used to invalidate the target detection result obtained by the target light curtain infrared device from the target area when it is determined that there is a target light curtain infrared device that is abnormally blocked among the multiple light curtain infrared devices. The first determining module includes: a first acquiring submodule, configured to acquire second detection results obtained by multiple light curtain infrared devices from detecting the target area when it is determined based on the first detection result that there is no obstruction in the target area, wherein the operation of multiple light curtain infrared devices detecting the target area is performed synchronously with the operation of the independent infrared device detecting the target area; and a first determining submodule, configured to determine the occlusion state of each light curtain infrared device based on the multiple second detection results.
8. A computer-readable storage medium, characterized in that, The computer-readable storage medium stores a computer program, wherein the computer program, when executed by a processor, implements the steps of the method described in any one of claims 1 to 6.
9. An electronic device comprising a memory, a processor, and a computer program stored in the memory and executable on the processor, characterized in that, When the processor executes the computer program, it implements the steps of the method described in any one of claims 1 to 6.