A method and system for early warning of misentry based on night vision thermal imaging
By identifying and analyzing infrared thermal image features in night vision thermal imaging technology, the relative position and approach behavior of objects are determined, which solves the problem of false alarms in the existing technology and improves the monitoring effect of night vision thermal imaging technology.
Patent Information
- Application Number
- CN202410920707.8
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2024-07-10
- Publication Date
- 2024-09-24
- Estimated Expiration
- 2044-07-10
AI Technical Summary
When existing night vision thermal imaging technology detects people at the boundary of the monitoring area, it may mistakenly output alarm signals because the people just pass by the area without approaching, resulting in poor monitoring effects.
By obtaining the infrared thermal image of the infrared device, feature recognition and analysis are performed to determine the relative position and approach behavior of the object, and only output an alarm signal when the object has clear approach behavior to reduce false alarms.
It improves the overall monitoring effect of night vision thermal imaging technology on accidental entry into the area, reduces false alarms caused by non-approaching behavior, and enhances the ability to analyze changes in the specific location of objects.
Smart Images

Figure CN118486120B
Abstract
Description
Technical Field
[0001] The present application relates to the field of security protection technology, and in particular to a method and system for early warning of misentry based on night vision thermal imaging. Background Art
[0002] Night vision thermal imaging technology is a technology that uses infrared radiation emitted by objects to form images. This technology does not rely on visible light and can therefore work in a completely dark environment. Night vision thermal imaging equipment usually contains an infrared detector that can detect the infrared radiation emitted by objects and convert these radiations into electrical signals, which are then processed by electronic circuits and ultimately displayed as a thermal image on the screen.
[0003] In the field of security, night vision thermal imaging technology is often used to prevent illegal intrusions. For example, areas along railways, reservoirs, oil fields, oil pipelines, and protected areas need to be prevented from vehicles or people at all times, so night vision thermal imaging technology can be used for advance monitoring. In related technologies, in order to ensure a better intrusion prevention effect, infrared detectors are generally installed at the boundaries of the area to be monitored. When a person is detected, it can be determined that a person is approaching the area, and an alarm signal is output at this time so that the management personnel can take timely response measures.
[0004] In the above-mentioned related technologies, when the infrared device installed at the boundary of the monitoring area detects a person, the person may just be passing by the area and has no intention of approaching the area. At this time, if an alarm signal is output, the management personnel need to repeatedly check this type of situation. The overall monitoring effect is poor and there is still room for improvement. Summary of the invention
[0005] In order to improve the overall monitoring effect of night vision thermal imaging technology on misentry into an area, the present application provides a misentry warning method and system based on night vision thermal imaging.
[0006] In the first aspect, the present application provides a method for early warning of misentry based on night vision thermal imaging, which adopts the following technical solution:
[0007] A mis-entry warning method based on night vision thermal imaging, comprising:
[0008] Acquire infrared thermal images of each infrared device;
[0009] Perform feature recognition in infrared thermal images to determine infrared object pixels, and determine the single point distance of the object based on the infrared object pixels;
[0010] Determine the infrared object features according to the infrared object pixel points, and determine the shooting relative orientation according to the infrared object features;
[0011] The shooting distance is determined by calculating the single-point distance of all objects according to the infrared object characteristics, and the relative position of the object is determined according to the shooting distance, the shooting relative orientation and the preset shooting original position;
[0012] Determine the point spacing distance according to the relative position of the object and the boundary points on the boundary line of the preset monitoring area, and define the point spacing distance with the smallest value as the relative spacing distance according to the preset sorting rule;
[0013] Establishing a detection interval with the current time point as the rear end point and a width of the preset detection duration on the preset time axis, and dividing the detection interval according to the preset unit duration to determine a preset fixed number of unit intervals;
[0014] The unit moving distance is determined by performing a difference calculation based on the relative spacing distance between the front and rear end points of the unit interval, and a unit approach signal is output when the unit moving distance is greater than zero;
[0015] Counting all unit approach signals to determine the approach quantity, and calculating the approach quantity and the fixed quantity to determine the approach ratio;
[0016] When the proximity ratio is greater than a preset allowable ratio, an object proximity signal is input.
[0017] Optionally, the step of determining the infrared object feature according to the infrared object pixel points includes:
[0018] Obtain the pixel position of the infrared object pixel on the infrared thermal image;
[0019] Determine the object's close distance corresponding to the object's single point distance according to a preset close matching relationship;
[0020] Determine the distance between pixels according to the pixel positions of any two infrared object pixels, and group the two infrared object pixels when the pixel distance is less than the object proximity distance into the same preset first pixel set which is initially empty;
[0021] Determine the actual difference distance according to the object single point distance of any two infrared object pixel points in the same first pixel set, and group the two corresponding infrared object pixel points when the actual difference distance is less than the preset actual allowable distance into the same preset second pixel set which is initially empty;
[0022] Counting the infrared object pixels in the second pixel set to determine the number of pixels in the set, and eliminating the second pixel set whose number of pixels in the set is less than a preset reference required number;
[0023] After the second pixel set is eliminated, the infrared object feature is determined according to the remaining second pixel set.
[0024] Optionally, the method further includes a step of determining a baseline demand quantity, the step comprising:
[0025] The object single point distance of the infrared object pixel point in the second pixel set is defined as the set single point distance;
[0026] A set single point distance is randomly selected from all the set single point distances and defined as the standard single point distance, and the remaining set single point distances are defined as the comparison single point distances;
[0027] Calculate the single point deviation value based on the standard single point distance and all the comparison single point distances;
[0028] Determine the single point deviation value with the smallest value according to the sorting rule, and define the standard single point distance corresponding to the single point deviation value as the reference single point distance;
[0029] The benchmark required quantity corresponding to the reference single point distance is determined according to the preset quantity matching relationship.
[0030] Optionally, after the single-point deviation value is determined, the step of determining the benchmark demand quantity further includes:
[0031] Determine whether there are at least two infrared object pixels with the same and minimum single-point deviation values;
[0032] If there are not at least two infrared object pixels with the same and smallest single-point deviation values, the smallest single-point deviation value determines the reference single-point distance;
[0033] If there are at least two infrared object pixels with the same and smallest single-point deviation values, the corresponding infrared object pixels are defined as candidate pixels;
[0034] A candidate area is defined with the candidate pixel point as the center and the preset unit distance as the radius, and the number of candidate points is determined by counting the infrared object pixels in the second pixel set in the candidate area;
[0035] The number of candidate points with the largest value is determined according to the sorting rules, and the reference single point distance is determined according to the candidate pixels corresponding to the number of candidate points.
[0036] Optionally, after the number of candidate points is determined, the step of determining the benchmark required number further includes:
[0037] Determine whether there are at least two candidate pixel points with the same number of candidate points and the largest number;
[0038] If there are not at least two candidate pixel points with the same number of candidate points and the largest number of candidate points, the reference single point distance is determined according to the candidate pixel point corresponding to the largest number of candidate points;
[0039] If there are at least two candidate pixel points with the same number and the largest number of candidate points, the preset corrected distance is calculated with the unit distance to update the unit distance, and the candidate area is redefined according to the updated unit distance, and the candidate area is continuously updated until there is only one largest number of candidate points.
[0040] Optionally, when the approach ratio is not greater than the permitted ratio, the mis-entry warning method based on night vision thermal imaging also includes:
[0041] In the detection interval, the difference between the relative distance with the largest value and the relative distance with the smallest value is calculated to determine the overall approach distance;
[0042] Determine whether the overall approach distance is greater than a preset approach permission distance;
[0043] If the overall approach distance is not greater than the permitted approach distance, a normal monitoring signal is output;
[0044] If the overall approach distance is greater than the approach permission distance, an object approach signal is output.
[0045] Optionally, after the normal monitoring signal is output, the mis-entry warning method based on night vision thermal imaging also includes:
[0046] Counting the continuous and uninterrupted normal monitoring signals before the current normal monitoring signal to determine the number of continuous normal monitoring signals;
[0047] Determine whether the continuous normal quantity is greater than the preset continuous permitted quantity;
[0048] If the continuous normal number is not greater than the continuous permitted number, the determined monitoring normal signal is maintained;
[0049] If the number of consecutive normal events is greater than the number of consecutive permitted events, the monitoring normal signal is switched to an object approaching signal.
[0050] In the second aspect, the present application provides a misentry warning system based on night vision thermal imaging, which adopts the following technical solution:
[0051] A false entry warning system based on night vision thermal imaging, comprising:
[0052] An acquisition module, used to acquire infrared thermal images of each infrared device;
[0053] A processing module, connected to the acquisition module and the judgment module, for storing and processing information;
[0054] A judgment module, connected with the acquisition module and the processing module, for judging the information;
[0055] The processing module performs feature recognition in the infrared thermal image to determine the infrared object pixel points, and determines the single point distance of the object based on the infrared object pixel points;
[0056] The processing module determines the infrared object features according to the infrared object pixel points, and determines the shooting relative orientation according to the infrared object features;
[0057] The processing module calculates the single-point distances of all objects according to the infrared object features to determine the shooting distance, and determines the relative position of the object according to the shooting distance, the shooting relative orientation and the preset shooting original position;
[0058] The processing module determines the point spacing distance according to the relative position of the object and the boundary points on the boundary line of the preset monitoring area, and defines the point spacing distance with the smallest value as the relative spacing distance according to the preset sorting rule;
[0059] The processing module establishes a detection interval with the current time point as the rear end point and a width of the preset detection duration on the preset time axis, and divides the detection interval according to the preset unit duration to determine a preset fixed number of unit intervals;
[0060] The processing module calculates the difference according to the relative interval distance between the front and rear end points of the unit interval to determine the unit moving distance, and when the judging module judges that the unit moving distance is greater than zero, the processing module outputs a unit approach signal;
[0061] The processing module counts all the unit approach signals to determine the approach quantity, and calculates the approach ratio based on the approach quantity and the fixed quantity;
[0062] When the judging module judges that the approaching ratio is greater than the preset permitted ratio, the processing module inputs an object approaching signal.
[0063] In summary, the present application includes at least one of the following beneficial technical effects:
[0064] When there is an external object in the monitoring range of night vision thermal imaging technology, the specific position change of the object can be analyzed, so that the corresponding alarm signal is output only when the object approaches, thereby improving the overall monitoring effect of night vision thermal imaging technology on the situation of stray entry into the area;
[0065] The situation where multiple objects are on the same thermal image can be distinguished, which facilitates the subsequent effective monitoring of mis-entry into the area. BRIEF DESCRIPTION OF THE DRAWINGS
[0066] Figure 1 It is a flow chart of the mis-entry warning method based on night vision thermal imaging.
[0067] Figure 2It is a flow chart of the method for determining the characteristics of infrared objects.
[0068] Figure 3 It is a flowchart of the method for determining the baseline demand quantity.
[0069] Figure 4 It is a flow chart of the infrared object pixel screening method.
[0070] Figure 5 It is a flowchart of the candidate pixel screening method.
[0071] Figure 6 It is a flowchart of the analysis method for a smaller situation.
[0072] Figure 7 It is a flow chart of the monitoring situation analysis method.
[0073] Figure 8 It is a module flow chart of the mis-entry warning method based on night vision thermal imaging. DETAILED DESCRIPTION
[0074] In order to make the purpose, technical solutions and advantages of this application more clear, the following Figure 1-Figure 8 It should be understood that the specific embodiments described herein are only used to explain the present application and are not used to limit the present application.
[0075] The embodiments of the present application are further described in detail below in conjunction with the drawings in the specification.
[0076] The embodiment of the present application discloses a method for early warning of mis-entry based on night vision thermal imaging. When an object capable of emitting infrared rays is detected in a monitoring area, the overall movement of the object can be analyzed so that a corresponding alarm signal can be output when the object moves close to a designated area, thereby reducing the occurrence of an object passing by the surrounding area and erroneously outputting an alarm signal, thereby improving the overall monitoring effect of night vision thermal imaging technology on mis-entry into the area.
[0077] Reference Figure 1 The method flow of the misentry warning method based on night vision thermal imaging includes the following steps:
[0078] Step S100: Acquire infrared thermal images of each infrared device.
[0079] The infrared thermal image is a thermal image acquired by an infrared device, wherein the infrared device is arranged at a boundary line of an area to be protected and is arranged toward the outside of the area to acquire each thermal image.
[0080] Step S101: performing feature recognition in the infrared thermal image to determine infrared object pixels, and determining the single point distance of the object according to the infrared object pixels.
[0081] Infrared object pixels are pixels in the infrared thermal image that may record external personnel. They can be determined by performing feature recognition on the pixel color of each pixel in the infrared thermal image. For example, the color corresponding to the pixel that can detect infrared rays is more inclined to red. The specific feature recognition method is that the staff can learn the various situations of the pixels of personnel in the thermal image in advance through neural network learning and establish an identification database. The infrared thermal image is then input into the identification database to determine the infrared object pixels. The object single point distance is the distance value between the actual point corresponding to the acquired infrared object pixel and the shooting point of the infrared device, which can be calculated and obtained through the infrared emission and reception time.
[0082] Step S102: determining infrared object features according to infrared object pixel points, and determining shooting relative orientation according to the infrared object features.
[0083] The infrared object feature is the feature corresponding to an object that can emit infrared rays. It can be determined by enclosing all the infrared object pixel points, or by the method of steps S200-S205, which will not be described here; the shooting relative orientation is the orientation of the infrared object feature compared to the shooting point of the infrared device, for example 30° east of north.
[0084] Step S103: Calculate the single-point distances of all objects according to the infrared object features to determine the shooting distance, and determine the relative position of the object according to the shooting distance, the shooting relative orientation and the preset shooting original position.
[0085] The shooting distance is the distance value obtained by calculating the average of the single-point distances of all infrared object pixels that determine the infrared object characteristics. The shooting original position is the position of the infrared device shooting point, and the object relative position is the actual position point corresponding to the infrared object characteristics.
[0086] Step S104: determining the point spacing distance according to the relative position of the object and the boundary points on the boundary line of the preset monitoring area, and defining the point spacing distance with the smallest value as the relative spacing distance according to the preset sorting rule.
[0087] The monitoring area is the area that needs to be protected. The point interval distance is the straight-line distance between the relative position point of the object and the boundary point on the monitoring area. The sorting rule is a method set by the staff to sort the values, such as the bubble method. The point interval distance with the smallest value can be determined through the sorting rule, so as to know the distance between the object and the monitoring area. Therefore, it is defined as a relative interval distance for identification, which is convenient for subsequent analysis.
[0088] Step S105: establishing a detection interval with the current time point as the end point and a width of a preset detection duration on a preset time axis, and dividing the detection interval according to a preset unit duration to determine a preset fixed number of unit intervals.
[0089] The time axis is a coordinate axis formed by the combination of various time points, which points from the time points that have been reached to the time points that have not been reached. The detection duration is the duration set by the staff to obtain the movement of the object in the previous period of time, such as 10s. The detection interval is established to facilitate the acquisition of various data; the unit duration is the duration set by the staff to divide the detection interval into units, and the unit duration can be divided by the detection duration, such as 1s. The fixed number is the value obtained by dividing the detection duration by the unit duration. Therefore, the detection interval can be divided into multiple equal unit intervals, so as to facilitate the acquisition and analysis of the movement data of the object within the unit duration.
[0090] Step S106: performing a difference calculation based on the relative spacing distances between the front and rear endpoints of the unit interval to determine the unit moving distance, and outputting a unit approach signal when the unit moving distance is greater than zero.
[0091] The unit moving distance is the moving distance of the object in the unit interval compared to the monitoring area. It is determined by subtracting the relative spacing distance of the front end point of the unit interval from the relative spacing distance of the back end point of the unit interval. When the value is positive, it means that the object is approaching the monitoring area, otherwise it is moving away from the monitoring area. When the unit moving distance is greater than zero, it means that the object is approaching the monitoring area. At this time, the unit proximity signal is output to identify the movement of the object within the unit time length, which is convenient for subsequent analysis.
[0092] Step S107: Count all unit approach signals to determine the approach quantity, and calculate based on the approach quantity and the fixed quantity to determine the approach ratio.
[0093] The approach quantity is the total number of unit approach signals output in the detection interval, and the approach ratio is the ratio of the unit interval in which the unit approach signal appears to all unit intervals, which is determined by dividing the approach quantity by the fixed quantity.
[0094] Step S108: inputting an object approaching signal when the approaching ratio is greater than a preset allowed ratio.
[0095] The permitted ratio is the minimum approach ratio set by the staff to determine that the object is not passing through the monitoring area but is approaching the monitoring area. When the approach ratio is greater than the permitted ratio, it means that the object is approaching the monitoring area. At this time, the object approach signal is output to realize the early warning function, so that the management personnel can be informed of the situation in time and deal with it manually.
[0096] Reference Figure 2 The step of determining the infrared object features according to the infrared object pixels includes:
[0097] Step S200: Obtain the pixel position of the infrared object pixel on the infrared thermal image.
[0098] The pixel position is the pixel position of the infrared object pixel on the infrared thermal image.
[0099] Step S201: determining the object proximity distance corresponding to the object single point distance according to a preset proximity matching relationship.
[0100] The object close distance is the maximum distance allowed when two pixels are considered to be on the same object. Different object single-point distances indicate that the acquired object is at different distances from the shooting point, and the corresponding object close distances are also different. For example, when the object single-point distance is large, it means that the object is far away from the infrared device. At this time, the area corresponding to the object on the thermal image must be smaller, otherwise it is larger. The close matching relationship between the two is determined by the staff through multiple tests in advance, which will not be elaborated here.
[0101] Step S202: determining the pixel distance according to the pixel positions of any two infrared object pixels, and grouping the two infrared object pixels when the pixel distance is smaller than the object proximity distance into the same preset first pixel set which is initially empty.
[0102] The pixel spacing distance is the straight-line distance value between the infrared object pixel points in the image. When the pixel spacing distance is less than the object proximity distance, it means that the two infrared object pixel points may be pixel points on the same object. At this time, they are summarized in the same first pixel set for subsequent analysis; the first pixel set is initially an empty set and is continuously filled with infrared object pixel points. The specific summarization method is as follows: for example, there are infrared object pixel points A, B, and C, where the pixel spacing distance between A and B is less than the object proximity distance, and the pixel spacing distance between C and B is less than the object proximity distance, but the pixel spacing distance between A and C is not less than the object proximity distance. Points A, B, and C can still be summarized in the same first pixel set.
[0103] Step S203: determining the actual difference distance according to the object single point distance between any two infrared object pixels in the same first pixel set, and grouping the corresponding two infrared object pixels when the actual difference distance is less than the preset actual allowable distance into the same preset initially empty second pixel set.
[0104] The actual phase difference distance is the distance difference between the single point distances of the infrared object pixel points, and the actual permitted distance is the maximum actual phase difference distance set by the staff to determine that two infrared object pixel points are on the same object. When the actual phase difference distance is less than the actual permitted distance, it means that the two infrared object pixel points have a greater probability of being pixel points on the same object. At this time, they can be summarized into the same second pixel set. The summarization method of the second pixel set is the same as that of the first pixel set, which will not be repeated here.
[0105] Step S204: Count the infrared object pixels in the second pixel set to determine the number of pixels in the set, and remove the second pixel set whose number of pixels in the set is less than a preset reference required number.
[0106] The number of pixels in the set is the total number of infrared object pixels in the second pixel set. The benchmark requirement number is the minimum number of pixels in the set required by the staff to determine that the pixels in the set can constitute the pixels of an object. When the number of pixels in the set is less than the benchmark requirement number, it means that the pixels in the second pixel set are not pixels on a certain object, and they can be eliminated.
[0107] Step S205: determining infrared object features according to the remaining second pixel sets after the second pixel sets are eliminated.
[0108] Determining the infrared object features through the remaining second pixel set can not only distinguish different objects on the same thermal image, but also improve the accuracy of infrared object feature determination by effectively excluding a number of infrared pixel points in the environment.
[0109] Reference Figure 3 , and also includes a step of determining a baseline demand quantity, which includes:
[0110] Step S300: defining the object single point distance of the infrared object pixel points in the second pixel set as the set single point distance.
[0111] Define the set single point distance to distinguish the single point distances of different objects for subsequent analysis.
[0112] Step S301: randomly selecting a set single point distance from all the set single point distances and defining it as a standard single point distance, and defining the remaining set single point distances as comparison single point distances.
[0113] Define standard single-point distances and compare single-point distances to distinguish single-point distances of different sets, which is convenient for subsequent analysis.
[0114] Step S302: Calculate the single point deviation value based on the standard single point distance and all the comparison single point distances.
[0115] The single point deviation value is a value that reflects the deviation between the standard single point distance and the other comparison single point distances. The larger the value, the greater the deviation between the standard single point distance and the other comparison single point distances, which means that the standard single point distance is far from most of the data and cannot represent all the current set single point distances. The calculation formula of the single point deviation value is: , where p is the single point deviation value, L 0 is the standard single point distance, L i is the i-th comparison point distance, and n is the total number of all comparison point distances.
[0116] Step S303: determining the single-point deviation value with the smallest value according to the sorting rule, and defining the standard single-point distance corresponding to the single-point deviation value as the reference single-point distance.
[0117] The sorting rules can be used to determine the single-point deviation value with the smallest value, that is, the standard single-point distance can best represent the single-point distances of most of the current sets. At this time, it is defined as the reference single-point distance for identification to facilitate subsequent analysis.
[0118] Step S304: Determine a reference required quantity corresponding to the reference single point distance according to a preset quantity matching relationship.
[0119] Different reference point distances indicate that the object is at different distances from the infrared device. At this time, the corresponding benchmark requirement quantity is also different. The quantity matching relationship between the two is determined by the staff through multiple tests in advance, which will not be elaborated here.
[0120] Reference Figure 4 After the single point deviation value is determined, the steps for determining the benchmark demand quantity also include:
[0121] Step S400: Determine whether there are at least two infrared object pixels with the same and minimum single-point deviation values.
[0122] The purpose of the judgment is to find out whether there are multiple infrared object pixel points that meet the requirements, so as to judge whether there are multiple standard single-point distances that can be used as reference single-point distances.
[0123] Step S4001: If there are not at least two infrared object pixels with the same and smallest single-point deviation values, the smallest single-point deviation value is used to determine the reference single-point distance.
[0124] When there are not at least two infrared object pixels with the same and smallest single-point deviation values, it means that there is only one infrared object pixel that meets the requirements. In this case, the reference single-point distance can be determined normally.
[0125] Step S4002: If there are at least two infrared object pixel points with the same and smallest single-point deviation values, the corresponding infrared object pixel points are defined as candidate pixel points.
[0126] When there are at least two infrared object pixels with the same and smallest single-point deviation values, it means that there are multiple infrared object pixels that meet the requirements. At this time, it is necessary to determine the unique reference single-point distance; define alternative pixel points to distinguish each infrared object pixel that meets the requirements, so as to facilitate subsequent analysis.
[0127] Step S401: defining a candidate area with the candidate pixel point as the center and the preset unit distance as the radius, and counting the infrared object pixel points in the second pixel set in the candidate area to determine the number of candidate points.
[0128] The unit distance is a fixed distance set by the staff. The infrared object pixels at different positions can be distinguished by demarcating the candidate area. The number of candidate points is the total number of infrared object pixels in the second pixel set within the candidate area.
[0129] Step S402: determining the number of candidate points with the largest values according to the sorting rule, and determining the reference single point distance according to the candidate pixels corresponding to the number of candidate points.
[0130] The sorting rules can be used to determine the number of candidate points with the largest value, that is, the candidate area corresponding to the number of candidate points can include more infrared object pixels. At this time, it is determined that the candidate pixels in the candidate area can better represent most of the infrared object pixels. At this time, the reference single point distance can be determined based on the candidate pixels.
[0131] Reference Figure 5 After the number of candidate points is determined, the steps for determining the benchmark demand quantity also include:
[0132] Step S500: Determine whether there are at least two candidate pixel points with the same number and the largest number of candidate points.
[0133] The purpose of the judgment is to find out whether there are multiple candidate pixels that meet the requirements, so as to facilitate subsequent analysis.
[0134] Step S5001: If there are not at least two candidate pixel points with the same number of candidate points and the largest number of candidate points, the reference single point distance is determined according to the candidate pixel points corresponding to the largest number of candidate points.
[0135] When there are not at least two candidate pixel points with the same number of candidate points and the largest number, it means that there is only one candidate pixel point that meets the requirements. In this case, the reference single point distance can be directly determined.
[0136] Step S5002: If there are at least two candidate pixel points with the same number and the largest number of candidate points, the preset correction distance and the unit distance are calculated to update the unit distance, and the candidate area is redefined according to the updated unit distance, and the candidate area is continuously updated until there is only one largest number of candidate points.
[0137] When there are at least two candidate points with the same number and the largest candidate pixel point, it means that the number of infrared object pixel points in each candidate area is consistent. At this time, it is impossible to effectively distinguish them. The unit distance is updated by adding the corrected distance to the unit distance, so that the candidate area can be expanded until the only candidate pixel point that meets the requirements can be determined; among them, the corrected distance is a fixed distance set by the staff. Generally, the corrected distance is not greater than one tenth of the unit distance.
[0138] Reference Figure 6 When the approach ratio is not greater than the permitted ratio, the misentry warning method based on night vision thermal imaging also includes:
[0139] Step S600: performing difference calculation according to the relative interval distance with the largest value and the relative interval distance with the smallest value in the detection interval to determine the overall approach distance.
[0140] The overall approach distance is the difference between the relative interval distance with the largest value and the relative interval distance with the smallest value in the detection interval, and the difference is an absolute value.
[0141] Step S601: Determine whether the overall approach distance is greater than a preset approach permission distance.
[0142] The permitted approach distance is the minimum permitted approach distance set by the staff to determine whether the object is in an approaching situation based on an overall analysis within the detection time. The purpose of the judgment is to know whether the object is in an approaching situation.
[0143] Step S6011: If the overall approach distance is not greater than the permitted approach distance, a normal monitoring signal is output.
[0144] When the overall approach distance is not greater than the permitted approach distance, it indicates that the object is not approaching. In this case, a normal monitoring signal can be output to identify the situation.
[0145] Step S6012: If the overall approach distance is greater than the permitted approach distance, an object approach signal is output.
[0146] When the overall approach distance is greater than the permitted approach distance, it means that the object is still approaching. For example, among multiple unit intervals, one unit interval approaches the monitoring area by a large distance, and then does not approach the monitoring area in the remaining unit intervals. At this time, the situation is abnormal, so the object approach signal is output to identify the situation, thereby achieving effective monitoring.
[0147] Reference Figure 7 After the normal signal output is monitored, the mis-entry warning method based on night vision thermal imaging also includes:
[0148] Step S700: Counting the continuous and uninterrupted normal monitoring signals before the current normal monitoring signal to determine the number of continuous normal monitoring signals.
[0149] The continuous normal number is the total number of continuous and uninterrupted monitoring normal signals output when monitoring and analyzing the same infrared object feature.
[0150] Step S701: Determine whether the continuous normal number is greater than the preset continuous permitted number.
[0151] The continuous permitted number is the minimum continuous normal number set by the staff to determine that the object has stayed for too long. The purpose of the judgment is to know whether the object has stayed for too long, that is, to determine whether the object is not an object passing by the surrounding area.
[0152] Step S7011: If the continuous normal number is not greater than the continuous permitted number, the determined monitoring normal signal is maintained.
[0153] When the number of consecutive normal times is not greater than the number of consecutive permitted times, it indicates that the retention time meets the requirements, and the normal monitoring signal can be output.
[0154] Step S7012: If the number of consecutive normal events is greater than the number of consecutive permitted events, the monitoring normal signal is switched to an object approaching signal.
[0155] When the continuous normal number is greater than the continuous permitted number, it means that the object has been staying for too long. At this time, the object may move forward and backward continuously to avoid the above steps S100-S6012. At this time, the object approaching signal is output so that the management personnel can intervene in time.
[0156] Reference Figure 8 Based on the same inventive concept, an embodiment of the present invention provides a mis-entry warning system based on night vision thermal imaging, comprising:
[0157] An acquisition module, used to acquire infrared thermal images of each infrared device;
[0158] A processing module, connected to the acquisition module and the judgment module, for storing and processing information;
[0159] A judgment module, connected with the acquisition module and the processing module, for judging the information;
[0160] The processing module performs feature recognition in the infrared thermal image to determine the infrared object pixel points, and determines the single point distance of the object based on the infrared object pixel points;
[0161] The processing module determines the infrared object features according to the infrared object pixel points, and determines the shooting relative orientation according to the infrared object features;
[0162] The processing module calculates the single-point distances of all objects according to the infrared object features to determine the shooting distance, and determines the relative position of the object according to the shooting distance, the shooting relative orientation and the preset shooting original position;
[0163] The processing module determines the point spacing distance according to the relative position of the object and the boundary points on the boundary line of the preset monitoring area, and defines the point spacing distance with the smallest value as the relative spacing distance according to the preset sorting rule;
[0164] The processing module establishes a detection interval with the current time point as the rear end point and a width of the preset detection duration on the preset time axis, and divides the detection interval according to the preset unit duration to determine a preset fixed number of unit intervals;
[0165] The processing module calculates the difference according to the relative interval distance between the front and rear end points of the unit interval to determine the unit moving distance, and when the judging module judges that the unit moving distance is greater than zero, the processing module outputs a unit approach signal;
[0166] The processing module counts all the unit approach signals to determine the approach quantity, and calculates the approach ratio based on the approach quantity and the fixed quantity;
[0167] When the judging module judges that the approaching ratio is greater than the preset permitted ratio, the processing module inputs an object approaching signal;
[0168] The infrared object feature determination module is used to determine and process relatively accurate infrared object features;
[0169] The module for determining the number of benchmark requirements determines a more reasonable number of benchmark requirements based on the distance between each pixel point.
[0170] An infrared object pixel point screening module is used to screen and process a plurality of infrared object pixel points that meet the requirements;
[0171] A candidate pixel point screening module is used to screen multiple candidate pixel points that meet the requirements;
[0172] The small proportion analysis module analyzes and processes the situation where the proximity proportion is not greater than the permitted proportion;
[0173] The monitoring situation analysis module analyzes and processes the situation where normal monitoring signals are output repeatedly and continuously.
[0174] Those skilled in the art can clearly understand that for the convenience and simplicity of description, only the division of the above-mentioned functional modules is used as an example. In actual applications, the above-mentioned functions can be assigned to different functional modules as needed, that is, the internal structure of the device is divided into different functional modules to complete all or part of the functions described above. The specific working process of the system, device and unit described above can refer to the corresponding process in the aforementioned method embodiment, and will not be repeated here.
Claims
1. A method for early warning of misentry based on night vision thermal imaging, characterized in that: include: Acquire infrared thermal images of each infrared device; Perform feature recognition in the infrared thermal image to determine the infrared object pixel points, and determine the object single point distance based on the infrared object pixel points, where the object single point distance is the distance value between the actual point corresponding to the acquired infrared object pixel point and the shooting point of the infrared device; Determine the infrared object feature according to the infrared object pixel points, and determine the shooting relative orientation according to the infrared object feature, wherein the shooting relative orientation is the orientation of the infrared object feature compared to the shooting point of the infrared device; The shooting distance is determined by calculating the single-point distances of all objects with infrared object features, and the relative position of the object is determined according to the shooting distance, the shooting relative orientation and the preset original shooting position, wherein the shooting distance is the distance value obtained by calculating the average of the single-point distances of all infrared object pixel points for determining the infrared object features, and the relative position of the object is the actual position point corresponding to the infrared object features; Determine the point spacing distance according to the relative position of the object and the boundary point on the boundary line of the preset monitoring area, and define the point spacing distance with the smallest value as the relative spacing distance according to the preset sorting rule, wherein the point spacing distance is the straight-line distance value between the position point of the relative position of the object and the boundary point on the monitoring area; Establishing a detection interval with the current time point as the rear end point and a width of the preset detection duration on the preset time axis, and dividing the detection interval according to the preset unit duration to determine a preset fixed number of unit intervals; The unit moving distance is determined by performing a difference calculation based on the relative spacing distance between the front and rear end points of the unit interval, and a unit approach signal is output when the unit moving distance is greater than zero; Counting all unit approach signals to determine the approach quantity, and calculating the approach quantity and the fixed quantity to determine the approach ratio; When the proximity ratio is greater than a preset allowable ratio, an object proximity signal is input; The steps of determining the features of an infrared object based on the infrared object pixels include: Obtain the pixel position of the infrared object pixel on the infrared thermal image; Determine the object proximity distance corresponding to the object single point distance according to the preset proximity matching relationship, wherein the object proximity distance is the maximum distance allowed when two pixel points are identified as being in the same object; Determine the distance between pixels according to the pixel positions of any two infrared object pixels, and group the two infrared object pixels when the pixel distance is less than the object proximity distance into the same preset first pixel set which is initially empty; Determine the actual difference distance according to the object single point distance of any two infrared object pixel points in the same first pixel set, and group the two corresponding infrared object pixel points when the actual difference distance is less than the preset actual allowable distance into the same preset second pixel set which is initially empty; Counting the infrared object pixels in the second pixel set to determine the number of pixels in the set, and eliminating the second pixel set whose number of pixels in the set is less than a preset reference required number; determining infrared object features according to the remaining second pixel sets after the second pixel sets are eliminated; The method also includes a step of determining a baseline demand quantity, which includes: The object single point distance of the infrared object pixel point in the second pixel set is defined as the set single point distance; A set single point distance is randomly selected from all the set single point distances and defined as the standard single point distance, and the remaining set single point distances are defined as the comparison single point distances; Calculate the single point deviation value based on the standard single point distance and all the comparison single point distances; Determine the single point deviation value with the smallest value according to the sorting rule, and define the standard single point distance corresponding to the single point deviation value as the reference single point distance; The benchmark required quantity corresponding to the reference single point distance is determined according to the preset quantity matching relationship.
2. The method for early warning of misentry based on night vision thermal imaging according to claim 1, characterized in that: After the single-point deviation value is determined, the steps for determining the baseline demand quantity also include: Determine whether there are at least two infrared object pixels with the same and minimum single-point deviation values; If there are not at least two infrared object pixels with the same and smallest single-point deviation values, the smallest single-point deviation value determines the reference single-point distance; If there are at least two infrared object pixels with the same and smallest single-point deviation values, the corresponding infrared object pixels are defined as candidate pixels; A candidate area is defined with the candidate pixel point as the center and the preset unit distance as the radius, and the number of candidate points is determined by counting the infrared object pixels in the second pixel set in the candidate area; The number of candidate points with the largest value is determined according to the sorting rules, and the reference single point distance is determined according to the candidate pixels corresponding to the number of candidate points.
3. The method for early warning of misentry based on night vision thermal imaging according to claim 2, characterized in that: After the number of candidate locations is determined, the steps for determining the baseline required quantity also include: Determine whether there are at least two candidate pixel points with the same number of candidate points and the largest number; If there are not at least two candidate pixel points with the same number of candidate points and the largest number of candidate points, the reference single point distance is determined according to the candidate pixel point corresponding to the largest number of candidate points; If there are at least two candidate pixel points with the same number and the largest number of candidate points, the preset corrected distance is calculated with the unit distance to update the unit distance, and the candidate area is redefined according to the updated unit distance, and the candidate area is continuously updated until there is only one largest number of candidate points.
4. The method for early warning of misentry based on night vision thermal imaging according to claim 1, characterized in that: When the approach ratio is not greater than the permitted ratio, the mis-entry warning method based on night vision thermal imaging also includes: In the detection interval, the difference between the relative distance with the largest value and the relative distance with the smallest value is calculated to determine the overall approach distance; Determine whether the overall approach distance is greater than a preset approach permission distance; If the overall approach distance is not greater than the permitted approach distance, a normal monitoring signal is output; If the overall approach distance is greater than the approach permission distance, an object approach signal is output.
5. The method for early warning of misentry based on night vision thermal imaging according to claim 4, characterized in that: After monitoring the normal signal output, the mis-entry warning method based on night vision thermal imaging also includes: Counting the continuous and uninterrupted normal monitoring signals before the current normal monitoring signal to determine the number of continuous normal monitoring signals; Determine whether the continuous normal quantity is greater than the preset continuous permitted quantity; If the continuous normal number is not greater than the continuous permitted number, the determined monitoring normal signal is maintained; If the number of consecutive normal events is greater than the number of consecutive permitted events, the monitoring normal signal is switched to an object approaching signal.
6. A false entry warning system based on night vision thermal imaging, characterized in that: include: An acquisition module, used to acquire infrared thermal images of each infrared device; A processing module, connected to the acquisition module and the judgment module, for storing and processing information; A judgment module, connected with the acquisition module and the processing module, for judging the information; The processing module performs feature recognition in the infrared thermal image to determine the infrared object pixel points, and determines the object single point distance based on the infrared object pixel points, wherein the object single point distance is the distance value between the actual point corresponding to the acquired infrared object pixel point and the shooting point of the infrared device; The processing module determines the infrared object features according to the infrared object pixel points, and determines the shooting relative orientation according to the infrared object features, wherein the shooting relative orientation is the orientation of the infrared object features compared to the shooting point of the infrared device; The processing module calculates the shooting distance according to all the single-point distances of the object with the infrared object feature, and determines the relative position of the object according to the shooting distance, the shooting relative orientation and the preset original shooting position, wherein the shooting distance is a distance value obtained by calculating the average of the single-point distances of all the infrared object pixel points that determine the infrared object feature, and the relative position of the object is the actual position point corresponding to the infrared object feature; The processing module determines the point spacing distance according to the relative position of the object and the boundary points on the boundary line of the preset monitoring area, and defines the point spacing distance with the smallest value as the relative spacing distance according to the preset sorting rule, wherein the point spacing distance is the straight-line distance value between the position point of the relative position of the object and the boundary point on the monitoring area; The processing module establishes a detection interval with the current time point as the rear end point and a width of the preset detection duration on the preset time axis, and divides the detection interval according to the preset unit duration to determine a preset fixed number of unit intervals; The processing module calculates the difference according to the relative interval distance between the front and rear end points of the unit interval to determine the unit moving distance, and when the judging module judges that the unit moving distance is greater than zero, the processing module outputs a unit approach signal; The processing module counts all the unit approach signals to determine the approach quantity, and calculates the approach ratio based on the approach quantity and the fixed quantity; When the judging module judges that the approaching ratio is greater than the preset permitted ratio, the processing module inputs an object approaching signal; The steps of determining the features of an infrared object based on the infrared object pixels include: The acquisition module acquires the pixel position of the infrared object pixel on the infrared thermal image; The processing module determines the object close distance corresponding to the object single point distance according to the preset close matching relationship, wherein the object close distance is the maximum distance allowed when two pixel points are identified as being in the same object; The processing module determines the pixel separation distance according to the pixel positions of any two infrared object pixels, and classifies the two infrared object pixels when the pixel separation distance is less than the object proximity distance into the same preset first pixel set which is initially empty; The processing module determines the actual difference distance according to the object single point distance of any two infrared object pixel points in the same first pixel set, and summarizes the two corresponding infrared object pixel points when the actual difference distance is less than the preset actual allowable distance into the same preset second pixel set which is initially empty; The processing module counts the infrared object pixels in the second pixel set to determine the number of pixels in the set, and removes the second pixel set whose number of pixels in the set is less than a preset reference required number; The processing module determines the infrared object feature according to the remaining second pixel set after the second pixel set is eliminated; The method also includes a step of determining a baseline demand quantity, which includes: The processing module defines the object single point distance of the infrared object pixel point in the second pixel set as the set single point distance; The processing module randomly selects a set single point distance from all the set single point distances and defines it as a standard single point distance, and defines the remaining set single point distances as comparison single point distances; The processing module calculates the single point deviation value based on the standard single point distance and all the comparison single point distances; The processing module determines the single point deviation value with the smallest value according to the sorting rule, and defines the standard single point distance corresponding to the single point deviation value as the reference single point distance; The processing module determines a reference required quantity corresponding to the reference single point distance according to a preset quantity matching relationship.
