A monitoring area protection method and device, electronic equipment and storage medium
By establishing a correspondence table between measurement distance and repeatability accuracy, setting up protected areas, alarm zones, and safe zones, and introducing the concept of distance hysteresis, the problem of unstable intrusion target judgment caused by camera repeatability accuracy was solved, and stable and accurate protection of the monitored area was achieved.
Patent Information
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- SHENZHEN BAYTEST TECH CO LTD
- Filing Date
- 2023-12-02
- Publication Date
- 2026-06-30
AI Technical Summary
Due to the camera's repeatability issues, the detection of intrusion targets at the boundary of the monitored area is unstable, leading to frequent switching of protection or alarm actions and causing misjudgments.
By establishing a correspondence table between measurement distance and repeatability accuracy, a continuous relationship is fitted, protection zones, alarm zones, and safe zones are set, and the concept of distance hysteresis is introduced. Status flags are used to determine the status of intrusion targets in order to take corresponding actions.
This effectively avoids inaccurate identification of intrusion target areas due to repeated camera precision, ensuring the stability and accuracy of the monitoring system and reducing misjudgments and frequent action switching.
Smart Images

Figure CN117690242B_ABST
Abstract
Description
Technical Field
[0001] This invention relates to the technical field of monitoring area protection, and in particular to a monitoring area protection method, device, electronic device, and storage medium. Background Technology
[0002] In the field of monitoring area protection, a typical approach is to divide an area into multiple zones and use ranging devices such as single-point ranging, 2D plane ranging, and 3D spatial ranging to scan and measure distances from the origin of the FOV in all directions. Alternatively, identification devices can be installed at specific points in each zone to identify whether there is a target intrusion in the protected area and which zone the intrusion target is located in, thereby taking corresponding protection or alarm actions.
[0003] However, the problem is that the camera has a repeatability accuracy performance parameter. Repeatability accuracy refers to the consistency of distance measurement for the same point of the intrusion target. If the repeatability accuracy is lower, it means that the distance value measured each time will fluctuate more. At the same time, if the distance measurement value of the intrusion target switches back and forth between two adjacent areas, the camera cannot stably identify which area the intrusion target is currently in, and will frequently switch the corresponding actions, thus making incorrect protection actions. Summary of the Invention
[0004] In order to address the technical deficiencies mentioned in the background art, the present invention aims to provide a monitoring area protection method, which addresses the problem that when an intrusion target enters the monitoring area, the camera itself has a problem with repeatability accuracy, which leads to unstable judgment when the intrusion target enters the boundary of the monitoring area, resulting in misjudgment.
[0005] The present invention adopts the following technical solution:
[0006] In a first aspect, the present invention provides a method for protecting a monitored area, the method comprising:
[0007] Establish a correspondence table σ between measurement distance and repeatability. i →F(d i ), d i For the i-th measured distance, σ i For the i-th measurement d i The measurement repeatability accuracy; and according to the corresponding table σ i →F(d i The fitting yields a continuous correspondence between the measurement distance and the repeatability accuracy, σ. d =F(d);
[0008] Based on the required measurement distance of the target monitoring area, set the protection zone distance and alarm zone distance, and divide the target monitoring area into protection zone, alarm zone and safe zone according to the protection zone distance and alarm zone distance;
[0009] Substitute the alarm zone distance and the protection zone distance into the correspondence between measurement distance and repeatability accuracy to obtain the corresponding measurement repeatability accuracy. Then, calculate the corresponding distance hysteresis based on the value of this measurement repeatability accuracy. The calculation formula is Δd. hys (d)=ρ d ×σ d , where ρ d σ is the hysteresis adjustment coefficient. d To measure repeatability accuracy;
[0010] The distances to the alarm zone, the protection zone, and the corresponding distance hysteresis are calculated to obtain the distances to the first transition zone and the second transition zone, and the first and second transition zones are set according to the distances to the first and second transition zones.
[0011] When an intrusion target is detected, the intrusion distance of the intrusion target is obtained, and the status flag bit of the intrusion target is determined according to the distance relationship between the intrusion distance and the distance of the protected area, the distance of the first transition zone, the distance of the alarm zone, and the distance of the second transition zone. The status flag bit is one of the safe state, the protected state, and the alarm state.
[0012] The current state of the status flag is used to determine whether to trigger an alarm or protection action. Optionally, the status flag for determining the intrusion target includes: during initialization, if the intrusion distance is less than or equal to the distance to the protected area, the intrusion target is determined to be in the protected area, and the current state of the status flag is preset to the protected state; if the intrusion distance is greater than the distance to the protected area but less than or equal to the distance to the alarm zone, the intrusion target is determined to be in the alarm zone, and the current state of the status flag is preset to the alarm state; if the intrusion distance is greater than the distance to the alarm zone, the intrusion target is determined to be in the safe zone, and the current state of the status flag is preset to the safe state.
[0013] Optionally, the status flag for determining the intrusion target further includes:
[0014] When the intrusion target approaches or moves away, if the intrusion distance d min Less than or equal to the distance d of the protected area r If the target is found to be in the protected area, the current state of the status flag is protected. This can be expressed by the formula d. min ≤d r ;
[0015] If the invasion distance d min Greater than the distance d of the protected area r And less than or equal to the distance d of the protected area r Add the distance Δd of the second transition zone hys(d r If the previous state of the status flag was a safe state or an alarm state, then the current state of the status flag is an alarm state; if the previous state of the status flag was a protected state, then the current state of the status flag is a protected state. The formula is expressed as d. r <d min ≤d r +Δd hys (d r );
[0016] If the invasion distance d min Greater than the distance d of the protected area r Add the distance Δd in the second transition zone hys (d r And less than or equal to the alarm zone distance d a If the target intrusion is located in the alarm zone, the current state of the status flag is the alarm state, expressed by the formula d. r +Δd hys (d r )<d min ≤d a ;
[0017] If the invasion distance d min Greater than the distance d of the protected area a And less than or equal to the alarm zone distance d a Add the distance Δd from the first transition zone hys (d a If the target is in the first transition zone or alarm zone, and if the previous state is a safe state, then the current state is determined to be a safe state; if the previous state is an alarm state or a protection state, then the current state of the status flag is an alarm state. The formula is expressed as d. a <d min ≤d a +Δd hys (d a );
[0018] If the invasion distance d min Greater than the alarm zone distance d a Add the distance Δd from the first transition zone hys (d a If the target is in the safe zone, then the current state of the status flag is determined to be safe, as expressed by the formula d. min >d a +Δd hys (d a ).
[0019] Optionally, the status flag for determining the intrusion target further includes:
[0020] When the intrusion target is relatively stationary, if the previous state of the status flag is the safe state, then the current state of the status flag is the safe state.
[0021] If the previous state of the status flag is alarm state, the current state of the status flag is alarm state.
[0022] If the previous state of the status flag is the protection state, then the current state of the status flag is the protection state.
[0023] Optionally, the step of determining the alarm or protection action based on the current state of the status flag bit includes:
[0024] If the current status of the status flag is a safe state, no alarm or protection action will be taken.
[0025] If the current status of the status flag is alarm status, then an alarm action will be taken;
[0026] If the current status of the status flag is in a protected state, then a protective action will be taken.
[0027] In a second aspect, the present invention provides a monitoring area protection device, comprising:
[0028] The module is used to establish a correspondence table σ between measurement distance and repeatability accuracy. i →F(d i And fit the continuous correspondence between the measurement distance and the repeatability accuracy σ d =F(d);
[0029] The preset module is used to set the protection zone distance and alarm zone distance according to the needs of the target monitoring area;
[0030] The first calculation module is used to calculate the corresponding distance hysteresis based on the alarm zone distance, the protection zone distance and the corresponding measurement repeatability accuracy value.
[0031] The second calculation module is used to calculate the distance to the first transition zone and the distance to the second transition zone based on the distance to the alarm zone, the distance to the protection zone, and the corresponding distance hysteresis.
[0032] The acquisition module is used to obtain the intrusion distance of the intrusion target when an intrusion target is detected;
[0033] The comparison module is used to compare the intrusion distance with the distances to the protected area, the first transition zone, the alarm zone, and the second transition zone.
[0034] The determination module is used to determine whether the status flag bit is one of the safety status, protection status, and alarm status.
[0035] The response module is used to determine the status based on the current status of the status flag bits in order to take alarm or protection actions.
[0036] Thirdly, the present invention also provides an electronic device, comprising: a memory, a processor, and a computer program stored in the memory and executable on the processor, wherein the processor executes the computer program to implement the steps in the monitoring area protection method of the embodiments of the present invention.
[0037] Fourthly, the present invention also provides a computer-readable storage medium storing a computer program, which, when executed by a processor, implements the steps in the monitoring area protection method of the embodiments of the present invention.
[0038] In summary, the beneficial effects of the present invention are as follows:
[0039] By setting a first transition zone between the alarm zone distance and the safe zone distance, and a second transition zone between the alarm zone distance and the safe zone distance, and by introducing the concept of distance hysteresis, it is possible to avoid inaccurate identification of the current location of the intrusion target due to the camera's repetitive accuracy problem. At the same time, by setting the status flag bit to one of the safe state, alarm state, and protection state, the camera can issue corresponding alarm or protection actions according to the current status of the status flag bit.
[0040] The above description is merely an overview of the technical solution of the present invention. In order to better understand the technical means of the present invention and to implement it in accordance with the contents of the specification, and to make the above and other objects, features and advantages of the present invention more apparent and understandable, preferred embodiments are described in detail below with reference to the accompanying drawings. Attached Figure Description
[0041] Figure 1 This is a flowchart of the monitoring area protection method according to an embodiment of the present invention;
[0042] Figure 2 This is a schematic diagram of a monitoring area protection device according to an embodiment of the present invention;
[0043] Figure 3 This is a schematic diagram of an electronic device according to an embodiment of the present invention. Detailed Implementation
[0044] To make the content of this invention easier to understand, the invention will be further described below with reference to specific embodiments and accompanying drawings.
[0045] like Figure 1 As shown, Figure 1This is a flowchart of a monitoring area protection method provided in this embodiment. The monitoring area protection method includes the following steps:
[0046] S101. Establish a correspondence table σ between measurement distance and repeatability. i →F(d i ), d i For the i-th measured distance, σ i For the i-th measurement d i The measurement repeatability accuracy; and according to the corresponding table σ i →F(d i The fitting yields a continuous correspondence between the measurement distance and the repeatability accuracy, σ. d =F(d).
[0047] In this embodiment of the invention, since cameras inherently have varying repeatability, which is determined by their performance, distance deviations will occur during measurement. Therefore, it is necessary to establish a discrete correspondence table between measurement distances and repeatability. This table can be obtained by taking multiple measurements of the same distance using the camera, thus yielding the camera's repeatability at that distance. By obtaining the corresponding repeatability for multiple distance measurements, d can be obtained. i and σ i Discrete correspondence table σ i →F(d i Based on the measured distance, the method selected is piecewise linear fitting, or segmented setting of fixed repeatability, or global linear fitting, or curve fitting, to fit the measured distance d and the measurement repeatability σ at that distance. d The continuous relationship σ d =F(d), since σ i →F(d i ) just d i and σ i To establish discrete correspondences, it is necessary to establish continuous distance d and repetition precision σ. d The continuous correspondence σ d =F(d), meaning that for any distance, there is a corresponding repeatability precision, so that different measurement distances can find the corresponding repeatability precision.
[0048] S102. Based on the required measurement distance of the target monitoring area, set the protection zone distance and alarm zone distance, and divide the target monitoring area into protection zone, alarm zone and safe zone according to the protection zone distance and alarm zone distance.
[0049] In this embodiment of the invention, specifically, the distance to the protected area and the distance to the alarm zone can be set according to the required distance range of each area. For example, when the ranging device is turned on and set, the distance to the protected area can be set to 2 meters or 1 meter. The distance to the safe zone does not need to be set. The protection level of each area is different, with the protected area having the highest level, the alarm zone having the next highest level, and the safe zone having no protection. It should be noted that these three areas are divided according to the different protection levels required for each area. By dividing the area into three zones, it is possible to determine which area the intrusion target is currently in, so as to take corresponding alarm or protection actions.
[0050] Specifically, intrusion targets in the monitored area can be measured using one-dimensional, two-dimensional, and three-dimensional measurements. One-dimensional measurement is a single-point measurement, which can be performed using Time-of-Flight (TOF) ranging technology. TOF ranging technology measures the distance to an object by emitting a pulsed laser to its surface and calculating the round-trip time. Two-dimensional measurement can be performed using a single-line lidar. More specifically, a single-line lidar consists of a single-point laser measurement module that rotates one revolution to measure a target in a 2D plane (i.e., with x, y coordinates, Z=0). Three-dimensional measurement typically involves area array measurement (multi-point direct measurement or 3D reconstruction measurement). 3D measurement can be achieved by combining single or multiple single-point ranging modules with moving scanning components such as MEMS, rotating mirrors, or prisms, or by combining multiple single-point ranging modules with motor rotation scanning (understood as the superposition of multiple single-line measurements at different vertical angles). This can be understood as the collection of multiple single-point protection areas forming a 2D plane or 3D space protection area, the collection of multiple single-point alarm areas forming a 2D plane or 3D space alarm area, and the collection of multiple single-point safety areas forming a 2D plane or 3D space safety area. Thus, the protection area, alarm area, and safety area of a single point or a 2D plane or 3D space can be obtained respectively.
[0051] S103. Substitute the alarm zone distance and the protection zone distance into the correspondence between measurement distance and repeatability accuracy to obtain the corresponding measurement repeatability accuracy, and calculate the corresponding distance hysteresis based on the value of the measurement repeatability accuracy. The calculation formula is Δd. hys (d)=ρ d ×σ d , where ρ d σ is the hysteresis adjustment coefficient. d To measure repeatability accuracy;
[0052] In this embodiment of the invention, the correspondence of the above-mentioned repeatability includes the measurement repeatability of the protected area distance and the measurement repeatability of the alarm area distance. There can be multiple repeatability measurements, and the hysteresis adjustment coefficient σ is one of them. d The adjustment range is 1≤ρd ≤10, the measurement repeatability at the corresponding distance is calculated with the preset hysteresis adjustment coefficient to obtain the distance hysteresis at the corresponding distance. Due to the difference in repeatability of the camera, there may be deviations in calculating the intrusion distance and measuring the distance between the alarm zone and the protection zone. The measured distance value of the intrusion target may jump. When the distance value jumps back and forth between the protection zone and the alarm zone, or between the alarm zone and the safe zone, the protection action is prone to switching back and forth, affecting normal operation. By setting the distance hysteresis, it can play the role of a transition zone when detecting whether the intrusion target belongs to the protection zone or the alarm zone, thereby effectively solving the above problems.
[0053] S104. Calculate the distance to the alarm zone, the distance to the protection zone, and the corresponding distance hysteresis to obtain the distance to the first transition zone and the distance to the second transition zone, and set the first transition zone and the second transition zone according to the distance to the first transition zone and the distance to the second transition zone.
[0054] In this embodiment of the invention, the distances to the alarm zone and the protection zone are first calculated by sequentially calculating the distance hysteresis of the alarm zone and the protection zone, respectively, to obtain the distances to the first transition zone and the second transition zone. Then, the area is divided according to the distances to the first transition zone and the second transition zone to obtain the first transition zone and the second transition zone. This division method can be based on specific distance values, which are then randomly set as the first transition zone and the second transition zone. By setting the first transition zone and the second transition zone as described above, misjudgment can be effectively avoided due to the camera's repeatability accuracy problem when determining which area the intrusion target is currently in. If the intrusion target jumps back and forth between the alarm zone boundary and the protection zone boundary, it may cause deviations in the camera's measurement results, which may lead to frequent alarms or protection actions by the camera, or even misjudgment. Therefore, by introducing the first transition zone and the second transition zone, the problem of frequent switching of protection actions due to the difference in camera repeatability accuracy can be effectively solved.
[0055] S105. When an intrusion target is detected, the intrusion distance of the intrusion target is obtained, and the status flag bit of the intrusion target is determined according to the distance relationship between the intrusion distance and the distance of the protected area, the distance of the first transition zone, the distance of the alarm zone and the distance of the second transition zone, wherein the status flag bit is one of the safe state, the protected state and the alarm state.
[0056] In this embodiment of the invention, by identifying the closest point of the intrusion target to the boundary of the monitoring area, the distance between the closest point of the intrusion target and the camera can be calculated, thereby obtaining the intrusion distance. This intrusion distance can be compared with the distances to the first transition zone, the alarm zone, the second transition zone, and the protected zone to determine which zone the intrusion target is currently in, thus enabling the camera to issue an alarm or protection decision accordingly. Furthermore, by setting a status flag to one of three states—safe, protected, or alarm—it should be noted that when the intrusion target moves from the safe zone to the protected zone and from the initial state... As the protected area transitions into the safe zone, the distance at which the camera initiates an alarm or protective action varies. By setting three states to control the camera's alarm or protective actions accordingly, the system can effectively adapt to environmental changes. For example, when an intruder moves from the safe zone to the first transition zone, the camera's current state is safe, and it does not trigger any alarm or protective action. When the intruder moves from the alarm zone to the first transition zone, the camera's current state is alarm, and it will still trigger an alarm until the intruder moves into the safe zone, at which point the camera will stop triggering the alarm. This setting effectively alerts staff to conduct investigations, thereby improving security.
[0057] Specifically, by calculating the intrusion distance and the distance to the protected area, it can be determined whether the intrusion target is inside or outside the protected area, thus enabling the camera to issue a protection action. By comparing the intrusion distance and the alarm zone distance, it can be determined whether the intrusion target is inside or outside the alarm zone, thus enabling the camera to issue an alarm action. If the intrusion distance is greater than the alarm zone distance, it means that the intrusion target is in the safe zone. Therefore, based on the current area of the intrusion target, the camera can set the current status flag to a protected state, an alarm state, or a safe state. Furthermore, by incorporating the first transition zone distance and the second transition zone distance when comparing the intrusion distance with the alarm zone distance and the protected area distance, and by comparing the intrusion distance with different combinations of the first transition zone distance, alarm zone distance, second transition zone distance, and protected area distance, through continuous combination and comparison, it is possible to accurately determine the current area of the intrusion target, thereby determining whether the current status flag is in a safe state, an alarm state, or a protected state. Based on the above three states, it can then immediately issue an alarm or protection action, or take no action.
[0058] S106. Determine the current status of the status flag bit to take alarm or protection actions.
[0059] In this embodiment, the camera takes corresponding actions by determining whether the current state of the status flag is a safe state, an alarm state, or a protection state. By setting the current state of the status flag, the camera can determine which area the intrusion target is located in, and effectively take corresponding actions based on the intrusion situation of the intrusion target.
[0060] Optionally, determining the status flag of the intrusion target includes: during initialization, if the intrusion distance is less than or equal to the distance to the protected area, the intrusion target is determined to be in the protected area, and the current status of the status flag is preset to the protected state; if the intrusion distance is greater than the distance to the protected area and less than or equal to the distance to the alarm zone, the intrusion target is determined to be in the alarm zone, and the current status of the status flag is preset to the alarm state; if the intrusion distance is greater than the distance to the alarm zone, the intrusion target is determined to be in the safe zone, and the current status of the status flag is preset to the safe state.
[0061] In this embodiment, during camera initialization, such as when the camera is powered on, if there is an intrusion target within the protected area or alarm area, the current state of the status flag is directly preset to the protected state or alarm state. Specifically, the intrusion distance is compared with the protected area distance. If the intrusion distance of the intrusion target is within the protected area distance, it means that the intrusion target was within the protected area before the camera was powered on, and the status flag is directly set to the protected state. If the intrusion distance of the intrusion target is within the alarm area, the status flag is directly set to the alarm state. If the intrusion distance of the intrusion target is outside the protected area distance and the alarm area distance, it means that no intrusion target invaded when the camera was powered on, and the camera's status flag is in the safe state.
[0062] Optionally, based on the status flags used to determine the intrusion target, the following may also be included:
[0063] When the intrusion target approaches or moves away, if the intrusion distance d min Less than or equal to the distance d of the protected area r If the target is found to be in the protected area, the current state of the status flag is protected. This can be expressed by the formula d. min ≤d r If the intrusion distance d min Greater than the distance d of the protected area r And less than or equal to the distance d of the protected area r Add the distance Δd of the second transition zone hys (d r If the previous state of the status flag was a safe state or an alarm state, then the current state of the status flag is an alarm state; if the previous state of the status flag was a protected state, then the current state of the status flag is a protected state. The formula is expressed as d.r <d min ≤d r +Δd hys (d r If the intrusion distance d min Greater than the distance d of the protected area r Add the distance Δd in the second transition zone hys (d r And less than or equal to the alarm zone distance d a If the target intrusion is located in the alarm zone, the current state of the status flag is the alarm state, expressed by the formula d. r +Δd hys (d r )<d min ≤d a If the intrusion distance d min Greater than the distance d of the protected area a And less than or equal to the alarm zone distance d a Add the distance Δd from the first transition zone hys (d a If the target is in the first transition zone or alarm zone, and if the previous state is a safe state, then the current state is determined to be a safe state; if the previous state is an alarm state or a protection state, then the current state of the status flag is an alarm state. The formula is expressed as d. a <d min ≤d a +Δd hys (d a If the intrusion distance d min Greater than the alarm zone distance d a Add the distance Δd from the first transition zone hys (d a If the target is in the safe zone, then the current state of the status flag is determined to be safe, as expressed by the formula d. min >d a +Δd hys (d a ).
[0064] In this embodiment of the invention, when an intrusion target approaches or moves away from the camera, the target monitoring area is divided into an alarm zone distance, a protection zone distance, and a safe zone distance based on the required measurement distance of the target monitoring area, and an alarm zone distance d is set. a The protected area is far from d r The nearest point of the target is d min Therefore, based on the above determination, if the intrusion distance d min Less than or equal to the distance d of the protected area r If the target of the intrusion is located in the protected area, the current state is considered protected. This can be expressed by the formula d.min ≤d r If the intrusion distance d min Greater than the distance d of the protected area r And less than or equal to the distance d of the protected area r Add the distance Δd in the second transition zone hys (d r If the camera's current state is either "safe" or "alarm," it indicates that the intrusion target has entered the second transition zone from the safe or alarm zone. In this case, the camera's current state remains "alarm." Conversely, if the current state is "protected," it indicates that the intrusion target has exited the protected zone and entered the second transition zone. In this case, the camera's current state remains "protected." The formula is expressed as d. r <d min ≤d r +Δd hys (d r It should be noted that the previous state of the status flag is the state before the camera's status flag, and the current state is the current state of the camera's status flag. If the intrusion distance d... min Greater than the distance d of the protected area r Add the distance Δd in the second transition zone hys (d r And less than or equal to the alarm zone distance d a If the intrusion target is in the alarm zone, the current status is updated to the alarm state, expressed by the formula d. r +Δd hys (d r )<d min ≤d a If the intrusion distance is greater than the alarm zone distance but less than or equal to the alarm zone distance plus the first transition zone distance, the intrusion target is determined to be in the first transition zone. If the camera's forward-facing state is in protected or alarm state, it indicates that the intrusion target is exiting from the protected or alarm zone into the first transition zone. Therefore, the camera will still issue an alarm. However, if the camera's forward-facing state is in safe state, it indicates that the intrusion target is entering the first transition zone from the safe zone. In this case, the camera will not take any alarm or protective action. The formula is expressed as d. a <d min ≤d a +Δd hys (d a If the intrusion distance is greater than the alarm zone distance plus the first transition zone distance, the intrusion target is determined to be in the safe zone. In this case, the current state is updated to safe, and the camera does not perform any alarm or protection actions. The formula is expressed as d. min >d a +Δd hys (d a ).
[0065] Optionally, determining the status flags of the intrusion target also includes:
[0066] When the intrusion target is relatively stationary, if the previous state of the status flag bit is the safe state, the current state of the status flag bit is the safe state; if the previous state of the status flag bit is the alarm state, the current state of the status flag bit is the alarm state; if the previous state of the status flag bit is the protection state, the current state of the status flag bit is the protection state.
[0067] In this embodiment, the existing technology, when switching areas, suffers from unstable judgment results due to fluctuations in detection distance in critical areas, leading to frequent switching between alarm and protection actions, or even erroneous actions. The lower the camera's repeatability, the greater the ranging jitter, the wider the range of unstable judgments, and the greater the probability of making incorrect decisions. This embodiment introduces the concept of distance hysteresis, where the judgment conditions for entering the alarm zone / protection zone from the safe zone are different from those for retreating from the protection zone to the alarm zone / safe zone. This avoids the back-and-forth switching of judgment results caused by measurement changes, preventing false alarms or failure to trigger alarms, and consequently preventing the corresponding alarm or protection actions from being activated.
[0068] Optionally, a determination can be made based on the current state of the status flag bits to trigger an alarm or protection action, including:
[0069] If the current status flag is in a safe state, no alarm or protection action will be taken; if the current status flag is in an alarm state, an alarm action will be taken; if the current status flag is in a protection state, a protection action will be taken.
[0070] In this embodiment, it should be noted that when the camera takes a corresponding action, it must determine the action based on the current state of the status flag (safe state, alarm state, and protection state). By setting the camera's status flag to safe state, protection state, and alarm state, it should be noted that the determination conditions for an intrusion target moving from the safe zone to the alarm zone / protection zone and from the protection zone to the alarm zone / safe zone are different. By setting three states to control the camera to take corresponding alarm or protection actions, it can effectively adapt to environmental changes. For example, when an intrusion target moves from the safe zone to the first transition zone, the camera's current state is safe, and the camera does not take any alarm or protection actions. When the intrusion target moves from the alarm zone to the first transition zone, the camera's current state is alarm, and the camera will still take an alarm action until the intrusion target moves to the safe zone, at which point the camera will stop alarming. This setting method can effectively remind staff to conduct investigations, thereby improving stability.
[0071] like Figure 2 As shown, Figure 2 This invention provides a schematic diagram of a monitoring area protection device, comprising:
[0072] Module 201 is used to establish a correspondence table σ between measurement distance and repeatability accuracy. i →F(d i And fit the continuous correspondence between the measurement distance and the repeatability accuracy σ d =F(d).
[0073] Preset module 202 is used to set the protection zone distance and alarm zone distance according to the needs of the target monitoring area;
[0074] The first calculation module 203 is used to calculate the corresponding distance hysteresis based on the alarm zone distance, the protection zone distance and the corresponding measurement repeatability accuracy value.
[0075] The second calculation module 204 is used to calculate the distance of the first transition zone and the distance of the second transition zone based on the alarm zone distance, the protection zone distance and the corresponding distance hysteresis.
[0076] The acquisition module 205 is used to acquire the intrusion distance of the intrusion target when an intrusion target is detected;
[0077] The comparison module 206 is used to compare the intrusion distance with the distance to the protected area, the distance to the first transition zone, the distance to the alarm zone, and the distance to the second transition zone.
[0078] The determination module 207 is used to determine whether the status flag bit is one of the safety status, protection status, and alarm status.
[0079] The response module 208 is used to determine the status based on the current status of the status flag bit in order to take alarm or protection actions.
[0080] Optionally, the comparison module 206 further includes:
[0081] The first comparison submodule is used to compare the distance relationship between the intrusion distance and the distance to the protected area, the alarm zone, and the safe zone during initialization;
[0082] The second comparison submodule is used to compare the distance relationship between the intrusion distance and the distance to the protected area, the distance to the protected area plus the distance to the second transition zone, the distance to the alarm zone, and the distance to the alarm zone plus the first transition zone when the intrusion target is approaching or moving away.
[0083] Optionally, the determining module 207 includes:
[0084] The first determination submodule is used to set the current state of the status flag bit during initialization based on the distance relationship between the intrusion distance, the protected area distance, and the alarm zone distance;
[0085] The second determination submodule is used to determine the current status of the intrusion target based on the previous status of the status flag bit and the current location of the intrusion target when the intrusion target is approaching or moving away.
[0086] The third determination submodule is used to determine the current state of the status flag bit based on the previous state of the status flag bit when the intrusion target is relatively stationary.
[0087] Optional, response module 208 includes:
[0088] The first response submodule is used to refrain from alarming or protective actions based on the safety status of the status flag bit.
[0089] The second response submodule is used to take alarm actions based on the alarm status of the status flag bit;
[0090] The third response submodule is used to perform protection actions based on the protection status of the status flag bits.
[0091] The monitoring area protection device provided in this embodiment of the invention can realize all the processes implemented by the monitoring area protection method in the above method embodiment, and can achieve the same beneficial effects. To avoid repetition, it will not be described again here.
[0092] like Figure 3 As shown, Figure 3 This is a schematic diagram of an electronic device structure provided by the present invention, including: a processor 301, a memory 302, and a computer program stored in the memory 302 and executable on the processor. When the processor 301 executes the computer program, it implements the steps in the monitoring area protection method of the present invention.
[0093] The electronic device provided in this embodiment of the invention can implement all the processes of the monitoring area protection method in the above-described method embodiments, and can achieve the same beneficial effects. To avoid repetition, further details are omitted here.
[0094] This invention also provides a computer-readable storage medium storing a computer program. When the computer program is executed by a processor, it implements the various processes of the monitoring area protection method or the application-side monitoring area protection method provided in this invention, and achieves the same technical effect. To avoid repetition, it will not be described again here.
[0095] The embodiments described in this specific implementation are preferred embodiments of this application and are not intended to limit the scope of protection of this application. Identical components are represented by the same reference numerals. Therefore, all equivalent changes made to the structure, shape, and principle of this application should be covered within the scope of protection of this application.
Claims
1. A method for protecting a monitored area, characterized in that, include: Establish a correspondence table between measurement distance and repeatability accuracy. , For the i-th measured distance, For the i-th measurement The measurement repeatability accuracy; and according to the corresponding table A continuous correspondence between the measured distance and the repeatability was obtained through fitting. ; Based on the required measurement distance of the target monitoring area, set the protection zone distance and alarm zone distance, and divide the target monitoring area into protection zone, alarm zone and safe zone according to the protection zone distance and alarm zone distance; Substitute the alarm zone distance and protection zone distance into the continuous correspondence between measurement distance and repeatability to obtain the corresponding measurement repeatability. Then, calculate the corresponding distance hysteresis based on the value of this measurement repeatability. The calculation formula is as follows: ,in, The hysteresis adjustment coefficient is... To measure repeatability accuracy; The distances to the alarm zone, the protection zone, and the corresponding distance hysteresis are calculated to obtain the distances to the first transition zone and the second transition zone, and the first and second transition zones are set according to the distances to the first and second transition zones. When an intrusion target is detected, the intrusion distance of the intrusion target is obtained, and the status flag bit of the intrusion target is determined according to the distance relationship between the intrusion distance and the distance of the protected area, the distance of the first transition zone, the distance of the alarm zone, and the distance of the second transition zone. The status flag bit is one of the safe state, the protected state, and the alarm state. The current status of the status flag is used to determine whether to trigger an alarm or take protective action.
2. The monitoring area protection method according to claim 1, characterized in that, The status flags for determining the intrusion target include: During initialization, if the intrusion distance is less than or equal to the distance to the protected area, the intrusion target is determined to be in the protected area, and the current state of the preset status flag is set to the protected state. If the intrusion distance is greater than the protected area distance and less than or equal to the alarm zone distance, then the intrusion target is determined to be in the alarm zone, and the current state of the preset status flag is set to alarm state. If the intrusion distance is greater than the alarm zone distance, the intrusion target is determined to be in the safe zone, and the current state of the preset status flag is set to safe.
3. The monitoring area protection method according to claim 1, characterized in that, The status flag for determining the intrusion target also includes: When the intrusion target approaches or moves away, if the intrusion distance Less than or equal to the distance of the protected area If the target is found to be in a protected area, the current state of the status flag is determined to be protected, as expressed by the formula: ; If the intrusion distance Greater than the distance of the protected area And less than or equal to the distance of the protected area Adding the second transition zone distance, the second transition zone distance is expressed as If the previous state of the status flag was a safe state or an alarm state, then the current state of the status flag is an alarm state; if the previous state of the status flag was a protected state, then the current state of the status flag is a protected state. The formula is as follows: ; If the intrusion distance Greater than the distance of the protected area Plus the distance of the second transition zone And less than or equal to the distance to the alarm zone If the target is in the alarm zone, the current state of the status flag is determined to be alarm state, as expressed by the formula: ; If the intrusion distance Greater than the distance of the protected area And less than or equal to the distance to the alarm zone Plus the distance of the first transition zone If the target is currently in the first transition zone or alarm zone, and if the previous state is a safe state, then the current state is determined to be a safe state; if the previous state is an alarm state or a protection state, then the current state of the status flag is an alarm state. The formula is expressed as follows: ; If the intrusion distance Greater than the alarm zone distance Plus the distance of the first transition zone If the target is in the safe zone, the current state of the status flag is determined to be safe, as expressed by the formula: .
4. The monitoring area protection method according to claim 1, characterized in that, The status flag for determining the intrusion target also includes: When the intrusion target is relatively stationary, if the previous state of the status flag is the safe state, then the current state of the status flag is the safe state. If the previous state of the status flag is alarm state, the current state of the status flag is alarm state. If the previous state of the status flag is the protection state, then the current state of the status flag is the protection state.
5. A monitoring area protection method according to any one of claims 1-4, characterized in that, The step of determining the current state of the status flag to trigger an alarm or protection action includes: If the current status of the status flag is a safe state, no alarm or protection action will be taken. If the current status of the status flag is alarm status, then an alarm action will be taken; If the current status of the status flag is in a protected state, then a protective action will be taken.
6. A monitoring area protection device, characterized in that, include: The module is used to establish a correspondence table between measurement distance and repeatability accuracy. And fit a continuous correspondence between the measurement distance and the repeatability accuracy. ; The preset module is used to set the protection zone distance and alarm zone distance according to the needs of the target monitoring area; The first calculation module is used to calculate the corresponding distance hysteresis based on the alarm zone distance, the protection zone distance and the corresponding measurement repeatability accuracy value. The second calculation module is used to calculate the distance to the first transition zone and the distance to the second transition zone based on the distance to the alarm zone, the distance to the protection zone, and the corresponding distance hysteresis. The acquisition module is used to obtain the intrusion distance of the intrusion target when an intrusion target is detected; The comparison module is used to compare the intrusion distance with the distances to the protected area, the first transition zone, the alarm zone, and the second transition zone. The determination module is used to determine whether the status flag bit is one of the safety status, protection status, and alarm status. The response module is used to determine the status based on the current status of the status flag bits in order to take alarm or protection actions.
7. An electronic device, characterized in that, include: A memory, a processor, and a computer program stored in the memory and executable on the processor, wherein the processor, when executing the computer program, implements the steps of the monitoring area protection method as described in any one of claims 1 to 5.
8. A computer-readable storage medium, characterized in that, The computer-readable storage medium stores a computer program that, when executed by a processor, implements the steps of the monitoring area protection method as described in any one of claims 1 to 5.