An early fire smoke detection method based on motion history images
Through the early fire smoke detection method based on motion history images, smoke features are extracted and analyzed to achieve accurate identification and real-time early warning of fire smoke, solving the problems of poor adaptability to dynamic scenes and large amount of calculation in the existing technology, and improving fire safety Accuracy and reliability of early warning.
Patent Information
- Application Number
- CN202311720532.8
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2023-12-14
- Publication Date
- 2024-10-18
- Estimated Expiration
- 2043-12-14
AI Technical Summary
When existing fire smoke detection technology faces dynamic scenes, the deep learning method has a high number of training samples and poor adaptability. The traditional method has a large amount of calculation and high hardware requirements, making it difficult to achieve efficient early fire warning.
An early fire smoke detection method based on motion history images is adopted. Image sequences are collected through monitoring equipment, smoke features are extracted and multi-level classification is performed. Combined with motion history image analysis, fire smoke is recognized in real time and an alarm signal is issued.
It improves the accuracy of smoke prediction of fire and the real-time nature of early warning, reduces sensor false alarms and false alarms, is suitable for various scenarios, has a small amount of calculation, is easy to deploy at the edge, and has wide applicability.
Smart Images

Figure CN117789394B_ABST
Abstract
Description
Technical Field
[0001] The invention relates to the technical field of fire monitoring and alarm, and in particular to an early fire smoke detection method based on motion history images. Background Art
[0002] Fire is the most frequent disaster and a serious threat to public safety. In order to effectively prevent fires, it is very important to provide early fire warning. In general, the occurrence and development of a fire begins with visible smoke, followed by the combustion stage and the intense combustion stage. By detecting smoke, a rapid response can be made in the early stages of a fire, which is conducive to early warning and control of the fire and reduces the degree of fire damage. In recent years, with the large-scale application of image-based fire detection products, image-based smoke detection methods have become the main development direction of early fire smoke detection.
[0003] Currently, commonly used image smoke detection technologies are divided into two categories: one is image processing technology based on traditional algorithms, and the other is image processing technology based on deep learning that has emerged in recent years.
[0004] Traditional image processing technology requires algorithm designers to analyze the global information of the image to be processed and the characteristic information of the target. Design corresponding processing algorithms to complete the smoke recognition task. The performance of the detection algorithm designed under one background often fluctuates greatly when facing detection under a completely new background. In addition, for the dynamic characteristics of smoke, the optical flow method has a large amount of calculation and is not good at expressing continuous features.
[0005] Image processing technology based on deep learning uses deep convolutional networks to extract the color and texture features of smoke images. It does not require background modeling and can be applied to dynamic scenes. For the dynamic features of smoke, 3D convolution or long short-term memory networks can be used to assist smoke temporal modeling and promote the learning of smoke features by neural networks. However, deep learning methods require a large number of samples for training and have poor adaptability in untrained scenes. In addition, the amount of calculation is large during inference, and the hardware requirements are high when deployed on the edge. Summary of the invention
[0006] The purpose of the present invention is to provide an early fire smoke detection method based on motion history images to solve the problems raised in the above background technology.
[0007] To achieve the above object, the present invention provides the following technical solution: an early fire smoke detection method based on motion history images, comprising the following steps:
[0008] Monitoring equipment deployment: monitoring equipment is deployed in the monitoring area, and the monitoring equipment is a monitoring camera;
[0009] Collect image sequences, use multiple surveillance cameras to achieve all-round monitoring in the surveillance area, and continuously collect image sequences;
[0010] Image region analysis: perform image region analysis on image sequences to identify possible abnormal smoke movements;
[0011] Smoke feature extraction: extract smoke features for possible abnormal smoke movement, including smoke color, shape and movement pattern;
[0012] Smoke movement analysis: analyzing the movement trend of smoke based on smoke characteristics;
[0013] Fire smoke detection: Based on the extracted smoke features, multiple classifiers are used to perform multi-level classification to detect fire smoke in image sequences and determine the fire location area;
[0014] The fire smoke alarm will send out an alarm signal when fire smoke is detected, and use sound, light, text message and other methods to notify relevant personnel to take prevention and control measures.
[0015] Furthermore, the deployment of the monitoring equipment specifically includes the following steps:
[0016] According to the scene and purpose to be monitored, choose waterproof and dustproof outdoor monitoring cameras in the outdoor monitoring area and connect the outdoor monitoring cameras to the solar power supply system. Choose indoor cameras in the indoor monitoring area and connect the indoor cameras to the circuit.
[0017] Determine the number and location of surveillance cameras to be deployed based on the size and shape of the surveillance area. Adjacent surveillance cameras should be set up 10-20 meters apart to cover the entire surveillance area. Adjust the viewing angle of each surveillance camera so that the surveillance camera can clearly capture each important area in the surveillance area.
[0018] Connect the surveillance camera to the surveillance center via wired or wireless means.
[0019] Furthermore, the image acquisition sequence specifically includes the following steps:
[0020] The surveillance camera conducts all-round monitoring of the surveillance area and collects image sequences, and transmits the surveillance image sequences in real time;
[0021] Backing up the collected surveillance image sequence through a storage device;
[0022] Regular maintenance and management of backup data.
[0023] Furthermore, the image region analysis specifically includes the following steps:
[0024] A1: Difference the current image from the background image to obtain a differential image containing motion information;
[0025] A2: Divide the image difference into N×N image blocks, where the value of N is determined by the image resolution. Part of the image blocks are removed by calculating the number of pixels in the image blocks and then counting the number of pixels in each block that meet the motion characteristics. i , and update the results as follows:
[0026]
[0027] Where T1 is the ratio threshold of motion pixels, for B n The pixel blocks with the value of 0 in (x, y) are not calculated in the next step;
[0028] A3: Calculate B n The average pixel value P of each motion block marked as 1 in (x, y) is greater than the threshold T2, and the brightness of the motion history image in the area increases, otherwise it decreases, as shown in the formula:
[0029]
[0030] Where tMHI σ (x, y) is the pixel value of the motion block corresponding to the motion history image;
[0031] A4: Repeat steps A1 and A3 within the set time threshold σ to adjust tMHI σ (x, y) is accumulated to obtain the motion history image MHI σ ;
[0032] The edge contour of the smoke area has a high complexity, which is characterized by the contour curvature entropy;
[0033] The formula for calculating contour curvature entropy is:
[0034]
[0035] Among them, H c is the discrete curvature entropy of the smoke edge contour curve, P(C i ) is the curvature C i The probability of accounting for the total set, H c The larger it is, the more complex the edge curvature is;
[0036] Based on A1-A4, the specific steps of the smoke detection method are as follows:
[0037] S1: System initialization, reading the thresholds of each parameter, and setting the count of images that meet the smoke characteristics to 0;
[0038] S2: Collect a frame of image I. If it is the first frame of image, it is used as the background image I. b And return to step S2, otherwise go to step S3;
[0039] S3: I and background image I b Do the difference to get the difference image I diff , and accumulate the motion history image MHI according to the above algorithm σ , proceed to step S4;
[0040] S4: Traverse the motion history image MHI σ , when the corresponding pixel value tMHI in the motion block σ When (x, y) is greater than the threshold T3, the block is determined as a suspected smoke area and the process goes to step S5;
[0041] S5: Count the number of suspected smoke area blocks N s , if N s If it is greater than the threshold value T4, go to step S6, otherwise update the background image I b , proceed to step S2;
[0042] S6: Using the suspected smoke area block as the seed area, fill the search area using the area search algorithm n The non-zero area in (x, y) connected to the suspected smoke area block and calculate the area A s , if A s If it is greater than the threshold value T5, it proceeds to step S7; otherwise, it proceeds to step S2;
[0043] S7: Calculate the number of sharp corners S on the edge of the connected area c , curvature entropy H c , if S c is greater than the threshold T6 and H c If it is greater than the threshold value T7, it proceeds to step S8; otherwise, it proceeds to step S2;
[0044] S8: adding 1 to the count of images that meet the smoke feature. If the count of images that meet the smoke feature is greater than T8, proceed to step S9; otherwise, assign the count of the number of images that meet the smoke feature to 0, and return to step S2;
[0045] S9: Output fire alarm signal and mark the location of smoke area in the image.
[0046] Furthermore, the smoke feature extraction specifically includes the following steps:
[0047] Frames with abnormal smoke movement in the monitoring image sequence are extracted and set as abnormal key frames, and image regions are divided for the abnormal key frames;
[0048] The images in the abnormal key frames are preprocessed to remove noise and abnormal values to obtain processed images;
[0049] Extracting features from the processed image to extract color features, shape features and motion features, wherein the color features include the average color and color contrast of the smoke, the shape features include the edge and texture of the smoke, and the motion features include the flow pattern and speed of the smoke;
[0050] Among them, feature extraction is performed on the processed image, including:
[0051] Reading the processed image based on a computer, determining a red channel, a green channel, and a blue channel of the processed image in a preset color space;
[0052] Based on the distribution states of the red channel, the green channel and the blue channel of the processed image in the preset color space, the target color thresholds of the background image and the foreground image in the processed image are set;
[0053] Segment the processed image according to the target color threshold to obtain a background image and a foreground image;
[0054] Obtaining an extraction type for feature extraction of a processed image, and determining a feature extraction index corresponding to the extraction type;
[0055] Performing a first extraction on the background image based on the extraction type and the extraction index of the extraction type to obtain first feature information of the background image in the processed image;
[0056] Performing a second extraction on the foreground image based on the extraction type and the extraction index of the extraction type to obtain second feature information of the foreground image in the processed image;
[0057] The first feature information and the second feature information are combined to obtain third feature information, and feature extraction of the processed image is completed based on the third feature information.
[0058] Furthermore, the smoke movement analysis specifically includes the following steps:
[0059] Based on the color, shape and motion features of the smoke, the direction and speed of the smoke movement are calculated in combination with the abnormal key frames;
[0060] When the monitoring area where abnormal smoke movement occurs is indoors, obtain the building structure nodes of the monitoring area, and analyze the spread path of the smoke by combining the building structure nodes and the monitoring image sequence;
[0061] When the monitoring area where abnormal smoke movement occurs is outdoors, obtain the electronic map information of the monitoring area and the wind direction information of the day, and analyze the diffusion flow speed and flow direction of the smoke in combination with the electronic map information and wind direction information;
[0062] Based on the above process, the movement path of the smoke is judged.
[0063] Furthermore, the fire smoke detection specifically includes the following steps:
[0064] Determine the fire occurrence point based on the movement path of the smoke;
[0065] The fire spread path and fire situation are analyzed based on the fire occurrence point and the movement path of the smoke.
[0066] Furthermore, the fire occurrence point is determined based on the movement path of the smoke, including:
[0067] The obtained movement path of the smoke is obtained, and a structural analysis is performed on the movement path of the smoke to obtain a tree structure feature of the movement path of the smoke;
[0068] The motion path is discretized based on the tree structure feature to obtain the discrete motion trajectory of the motion path at different times, and the relative position offset of the smoke at different times is determined based on the discrete motion trajectory;
[0069] Construct a rectangular coordinate system, and map the discrete motion paths at different times to the rectangular coordinate system based on the relative position offset, and determine the gathering points of the motion paths of smoke in different directions based on the mapping results and tree structure characteristics;
[0070] The gathering points of the smoke movement path are determined as a set of candidate fire occurrence points, and the movement trends of each candidate fire occurrence point in the set of candidate fire occurrence points are determined based on the diffusion flow speed and flow direction of the smoke;
[0071] Tracing the gathering point of the movement path of the smoke based on the movement trend and the opposite direction of the flow direction of the smoke, and obtaining the gathering point source of the movement path of the smoke based on the tracing result;
[0072] Based on the extracted smoke characteristics and the preset fire occurrence point evaluation index, the clustered point source is analyzed to obtain the confidence of the clustered point source, and when the confidence is within the preset threshold range, the clustered point source is determined as the fire occurrence point;
[0073] Extract the frame image corresponding to the fire occurrence point, and pre-process the frame image to determine the edge contour of the open flame at the fire occurrence point, and extract the pixel feature value within the edge contour;
[0074] Determine the color saturation thresholds of the open flame and the smoke based on the pixel feature values, and match the color saturation thresholds of the open flame and the smoke with a preset reference list, respectively, to obtain a first fire assessment parameter and a second fire assessment parameter;
[0075] The first fire intensity assessment parameter and the second fire intensity assessment parameter are weighted averaged based on the weights of the influence of open flame and smoke on the fire intensity, and the current fire intensity of the fire occurrence point is obtained based on the weighted assessment processing result.
[0076] Furthermore, the fire smoke alarm specifically includes the following steps:
[0077] The fire area location determined by fire smoke detection and the path area of abnormal smoke movement are marked as fire danger areas;
[0078] Provide audible and visual fire evacuation alarms for fire-hazardous areas;
[0079] Fire alarms are issued based on the location of fire danger areas, and the detailed address of the fire and fire analysis are provided.
[0080] Furthermore, when fire smoke is detected, an alarm signal is issued, including:
[0081] Read the image sequence and determine the distribution area of smoke in the image sequence;
[0082] Read the pixel points corresponding to the distribution area of the smoke to determine the color distribution characteristics of the pixel points in the distribution area of the smoke;
[0083] The distribution area of the smoke is split according to the color distribution characteristics of the pixel points to obtain m sub-distribution areas, and at the same time, each sub-distribution area is split according to a preset unit to obtain n area blocks corresponding to the sub-distribution area;
[0084] Retrieving a color-density estimation table, and matching n area blocks corresponding to the sub-distribution area in the color-density estimation table, to determine the smoke density estimation value corresponding to the unit area in the n area blocks corresponding to the sub-distribution area;
[0085] The smoke density estimation value corresponding to the unit area in the n area blocks corresponding to the sub-distribution area is used to calculate the density value of the fire smoke;
[0086]
[0087] Where C represents the concentration of fire smoke; j represents the sequence number of the sub-distribution area; m represents the total number of sub-distribution areas; represents the regional volume of the j-th sub-distribution region; i represents the serial number value of the regional block after splitting the sub-distribution region according to a preset unit; n represents the total number of regional blocks; s represents the area of the regional block; h i represents the height value corresponding to the i-th regional block; c ij represents the estimated value of the smoke concentration of the i-th regional block in the j-th sub-distribution region; ρ represents the error factor, and its value range is (0.01, 0.02); π represents a constant, which is 3.14;
[0088] Obtain the preset fire smoke concentration alarm threshold interval [a, b], and compare the concentration value C of the fire smoke with the preset fire smoke concentration alarm threshold interval [a, b];
[0089] Determine the alarm duration for sending an alarm signal based on the comparison result;
[0090] Among them, when C ≤ a, the alarm duration for sending an alarm signal is 0, and a represents the lower threshold of the preset fire smoke concentration alarm threshold interval;
[0091] When a < C ≤ b, the alarm duration for sending an alarm signal is the first preset duration, and b represents the upper threshold of the preset fire smoke concentration alarm threshold interval;
[0092] When C > b, the alarm duration for sending an alarm signal is the second preset duration, and the first preset duration is less than the second preset duration.
[0093] Compared with the prior art, the beneficial effects of the present invention are:
[0094] 1. Through smoke feature extraction and smoke movement analysis, the present invention can improve the accuracy of smoke in predicting fires. By analyzing the movement pattern and smoke features, fire smoke can be accurately identified. By collecting image sequences, the real-time performance of early warning is improved. Continuously collecting image sequences and performing real-time analysis can timely detect fire smoke, with high reliability. By analyzing the historical images of smoke movement, the problems of false alarms and missed alarms of sensors can be avoided. At the same time, it has a wide range of applications. Through smoke movement analysis and fire smoke detection, different influencing factors can be combined according to different monitoring scenarios, making it applicable to various scenarios, such as inside buildings or some outdoor scenarios.
[0095] 2. By performing differential processing on adjacent two-frame images of the monitored image sequence, the dynamic features of smoke are reflected through the motion history image, which can effectively eliminate false alarms, especially for static background images and non-diffusive cloud-like interferences. The motion history image is calculated by using the method of single-frame accumulation, with a small amount of calculation and easy to implement at the edge. The recognition method does not involve the color features of smoke and is effective for various colors of smoke, with wide applicability.
[0096] 3. The present invention can more accurately determine whether there is a fire by extracting smoke features in the image. At the same time, a large amount of smoke will be generated in the early stage of a fire. By extracting and analyzing the smoke features in the image, signs of fire can be discovered in time, thereby providing early warning and providing people with more time to escape and extinguish the fire.
[0097] 4. The present invention combines different influencing factors with smoke in different areas, so as to more accurately determine the movement path of smoke, thereby improving the accuracy of predicting the occurrence of fire and taking preventive measures in advance, such as turning off electrical appliances, prohibiting smoking, etc., to avoid the occurrence of fire. At the same time, the location of the fire can be roughly determined, which is helpful to find the source of fire in time and take corresponding fire-fighting measures, provide direction for fire-fighting, and improve the efficiency of fire-fighting.
[0098] 5. Through discretization and structured analysis of the movement path of the smoke, the discrete movement trajectory of the smoke at different times can be visualized in the constructed rectangular coordinate system, so as to facilitate the analysis of the fire occurrence point according to the visualization results. Secondly, the focal point of the smoke movement path under different conditions is determined through the visualization results, so as to achieve accurate and effective judgment of the fire occurrence point according to the focal point. Finally, the frame image of the fire occurrence point is analyzed to effectively determine the fire situation at the fire occurrence point, so as to facilitate the corresponding alarm operation of the fire occurrence point and the fire situation at the fire occurrence point, thereby improving the accuracy, reliability and real-time performance of smoke monitoring.
[0099] 6. By reading the distribution area of smoke in the image sequence and segmenting and splitting the distribution area of smoke, the effective segmentation of the distribution area can be effectively achieved, so that the smoke concentration value of each sub-distribution area can be effectively evaluated through the color-concentration estimation table, thereby improving the effectiveness and convenience of calculating the fire smoke concentration value. By setting different alarm durations, the personnel's measurement of fire smoke concentration can be effectively improved, so that different smoke warning measures can be made, thereby improving the effectiveness of fire smoke detection. BRIEF DESCRIPTION OF THE DRAWINGS
[0100] Figure 1 It is a schematic diagram of the method flow of the present invention;
[0101] Figure 2 A flow chart of the method for early fire smoke detection;
[0102] Figure 3 It is a smoke movement history image smoke schematic diagram;
[0103] Figure 4 It is a schematic diagram of motion blocks corresponding to the smoke motion history image;
[0104] Figure 5It is a schematic diagram of the smoke movement history image movement history;
[0105] Figure 6 This is a schematic diagram of smoke detection results. DETAILED DESCRIPTION
[0106] The following will be combined with the drawings in the embodiments of the present invention to clearly and completely describe the technical solutions in the embodiments of the present invention. Obviously, the described embodiments are only part of the embodiments of the present invention, not all of the embodiments. Based on the embodiments of the present invention, all other embodiments obtained by ordinary technicians in this field without creative work are within the scope of protection of the present invention.
[0107] In order to solve the problem that traditional image processing technology requires algorithm designers to analyze the global information of the image to be processed and the characteristic information of the target, the performance of the detection algorithm often fluctuates greatly. In addition, for the dynamic characteristics of smoke, the optical flow method has a large amount of calculation and poor expression of continuous characteristics. At the same time, the deep learning method requires a large number of samples during training, has poor adaptability in untrained scenes, has a large amount of calculation during reasoning, and has high hardware requirements when deployed on the edge. Please refer to Figure 1-6 , the present invention provides the following technical solutions:
[0108] An early fire smoke detection method based on motion history images comprises the following steps:
[0109] Monitoring equipment deployment: monitoring equipment is deployed in the monitoring area, and the monitoring equipment is a monitoring camera;
[0110] Collect image sequences, use multiple surveillance cameras to achieve all-round monitoring in the surveillance area, and continuously collect image sequences;
[0111] Image region analysis: perform image region analysis on image sequences to identify possible abnormal smoke movements;
[0112] Smoke feature extraction: extract smoke features for possible abnormal smoke movement, including smoke color, shape and movement pattern;
[0113] Smoke movement analysis: analyzing the movement trend of smoke based on smoke characteristics;
[0114] Fire smoke detection: Based on the extracted smoke features, multiple classifiers are used to perform multi-level classification to detect fire smoke in image sequences and determine the fire location area;
[0115] The fire smoke alarm will send out an alarm signal when fire smoke is detected, and use sound, light, text message and other methods to notify relevant personnel to take prevention and control measures.
[0116] Specifically, the accuracy of smoke prediction for fire can be improved through smoke feature extraction and smoke motion analysis. Fire smoke can be accurately identified by analyzing movement patterns and smoke features. The real-time nature of early warning is improved by acquiring image sequences. Continuous acquisition of image sequences and real-time analysis can detect fire smoke in a timely manner with high reliability. By analyzing historical images of smoke movement, the problems of sensor false alarms and missed alarms can be avoided. At the same time, it has a wide range of applications. Smoke motion analysis and fire smoke detection can be combined with different influencing factors according to different monitoring scenarios, making it suitable for various scenarios, such as inside buildings or some outdoor scenarios.
[0117] The deployment of monitoring equipment also includes the following steps:
[0118] According to the scene and purpose to be monitored, choose waterproof and dustproof outdoor monitoring cameras in the outdoor monitoring area and connect the outdoor monitoring cameras to the solar power supply system. Choose indoor cameras in the indoor monitoring area and connect the indoor cameras to the circuit.
[0119] Determine the number and location of surveillance cameras to be deployed based on the size and shape of the surveillance area. Adjacent surveillance cameras should be set up 10-20 meters apart to cover the entire surveillance area. Adjust the viewing angle of each surveillance camera so that the surveillance camera can clearly capture each important area in the surveillance area.
[0120] Connect the surveillance camera to the surveillance center via wired or wireless means.
[0121] Specifically, by setting up surveillance cameras, the smoke in the monitoring area can be monitored 24 hours a day. Once an abnormal situation is found, an alarm can be issued in time to remind relevant personnel to deal with it, thereby improving the early warning capability. At the same time, the image sequence collected by the surveillance camera can be used to identify, analyze and warn of the smoke in the monitoring area, so as to achieve timely detection and alarm of fire and avoid greater disasters and losses.
[0122] The acquisition of image sequence specifically includes the following steps:
[0123] The surveillance camera conducts all-round monitoring of the surveillance area and collects image sequences, and transmits the surveillance image sequences in real time;
[0124] Backing up the collected surveillance image sequence through a storage device;
[0125] Regular maintenance and management of backup data.
[0126] Specifically, when an abnormal situation such as a fire occurs, the specific location and cause of the fire can be found by replaying the surveillance video, which helps with subsequent fire investigation and handling. At the same time, through the analysis of the surveillance video, the patterns and characteristics of the fire can be discovered, so as to formulate more effective fire prevention and control measures. Furthermore, the surveillance video can be stored for a long time. In the event of an unexpected situation, the backup data can be restored to the previous state to ensure the integrity and reliability of the data.
[0127] Image region analysis specifically includes the following steps:
[0128] A1: Difference the current image from the background image to obtain a differential image containing motion information;
[0129] A2: Divide the image difference into N×N image blocks. The value of N is determined by the image resolution. In order to improve the real-time performance of the algorithm and reduce the amount of system calculation, some image blocks are removed. Specifically, the number of pixels in the image block is calculated, and then the number of pixels in each block that meet the motion characteristics is counted. i , and update the results as follows:
[0130]
[0131] Where T1 is the ratio threshold of motion pixels, for B n The pixel blocks with the value of 0 in (x, y) are not calculated in the next step;
[0132] A3: Calculate B n The average pixel value P of each motion block marked as 1 in (x, y) is greater than the threshold T2, and the brightness of the motion history image in the area increases, otherwise it decreases, as shown in the formula:
[0133]
[0134] Where tMHI σ (x, y) is the pixel value of the motion block corresponding to the motion history image;
[0135] A4: Repeat steps A1 and A3 within the set time threshold σ to adjust tMHI σ (x, y) is accumulated to obtain the motion history image MHI σ ;
[0136] In a video sequence, the motion area corresponding to the current frame will be superimposed in the motion history image, and the influence of the old motion area in the current motion history image will become smaller and smaller, and the brightness will gradually dim. In the process of superimposing the motion history image, the diffused smoke will leave a track from light to dark in the motion history image, and its increased pixel value will be much greater than the reduced pixel value. On the contrary, other moving targets, such as pedestrians and vehicles, will not have such a phenomenon in the motion history image;
[0137] In addition to dynamic features, smoke also has some obvious static features. The edge contour of the smoke area has high complexity and can be characterized by contour curvature entropy.
[0138] The formula for calculating contour curvature entropy is:
[0139]
[0140] Among them, H c is the discrete curvature entropy of the smoke edge contour curve, P(C i ) is the curvature C i The probability of accounting for the total set, H c The larger it is, the more complex the edge curvature is;
[0141] Based on the above theory, the specific steps of the smoke detection method are as follows:
[0142] S1: System initialization, reading the thresholds of each parameter, and setting the count of images that meet the smoke characteristics to 0;
[0143] S2: Collect a frame of image I. If it is the first frame of image, it is used as the background image I. b And return to step S2, otherwise go to step S3;
[0144] S3: I and background image I b Do the difference to get the difference image I diff , and accumulate the motion history image MHI according to the above algorithm σ , proceed to step S4;
[0145] S4: Traverse the motion history image MHI σ , when the corresponding pixel value tMHI in the motion block σ When (x, y) is greater than the threshold T3, the block is determined as a suspected smoke area and the process goes to step S5;
[0146] S5: Count the number of suspected smoke area blocks N s , if N s If it is greater than the threshold value T4, go to step S6, otherwise update the background image I b , proceed to step S2;
[0147] S6: Using the suspected smoke area block as the seed area, fill the search area using the area search algorithm n The non-zero area in (x, y) connected to the suspected smoke area block and calculate the area A s , if A s If it is greater than the threshold value T5, it proceeds to step S7; otherwise, it proceeds to step S2;
[0148] S7: Calculate the number of sharp corners S on the edge of the connected area c , curvature entropy H c , if S c is greater than the threshold T6 and H c If it is greater than the threshold value T7, it proceeds to step S8; otherwise, it proceeds to step S2;
[0149] S8: adding 1 to the count of images that meet the smoke feature. If the count of images that meet the smoke feature is greater than T8, proceed to step S9; otherwise, assign the count of the number of images that meet the smoke feature to 0, and return to step S2;
[0150] S9: Output fire alarm signal and mark the location of smoke area in the image.
[0151] Specifically, by performing image difference processing on two adjacent frames of the surveillance image sequence, the dynamic characteristics of the smoke are reflected through the motion history image, which can effectively eliminate false alarms, especially static background images and non-diffusing cloud-like interference. The motion history image is calculated by the single-frame accumulation method, which has a small amount of calculation and is easy to implement on the edge. The recognition method does not involve the color characteristics of the smoke and is effective for smoke of various colors, with wide applicability.
[0152] See also Figure 3-6 , Figure 3 The monitoring area is an outdoor scene with a video resolution of 1920×1080. First, the image count that meets the smoke feature is set to 0, and the image under normal conditions is collected as the background image, and then the loop processing begins; according to the above method step S4, the motion history image is accumulated, where N=16, T1=0.1, T2=20; according to the above method step S5, the threshold T3=60 is taken to traverse the motion history image MHI σ ,like Figure 4-5 Mark all suspected smoke areas as shown; count the number of suspected smoke area blocks N s , take threshold T4 = 128, if N s >T4 satisfies the dynamic characteristics of smoke, and further determines the static characteristics of smoke; according to the above method step S7, search and calculate the area A of the connected area s ; Take threshold T5 = 2000, if A s >T5 Calculate the number of sharp corners S in the connected area according to the above method step S8 c and the curvature entropy H c; Take thresholds T6 = 20, T7 = 0.8, if S c is greater than the threshold T6 and H c If the count value of the image that meets the smoke feature is greater than the threshold value T7, the count of the image that meets the condition is increased by 1; if the count value of the image that meets the condition is greater than T8 (T8=15), it is determined that a fire has occurred, an alarm signal is given, and Figure 6 The smoke area is shown framed in the image.
[0153] Smoke feature extraction specifically includes the following steps:
[0154] Frames with abnormal smoke movement in the monitoring image sequence are extracted and set as abnormal key frames, and image regions are divided for the abnormal key frames;
[0155] The images in the abnormal key frames are preprocessed to remove noise and abnormal values to obtain processed images;
[0156] Feature extraction is performed on the processed image to extract color features, shape features and motion features. The color features include the average color and color contrast of the smoke, the shape features include the edge and texture of the smoke, and the motion features include the flow pattern and speed of the smoke.
[0157] Specifically, smoke is one of the important characteristics of fire. By extracting the smoke features in the image, we can more accurately determine whether there is a fire. At the same time, a large amount of smoke will be generated in the early stage of a fire. By extracting and analyzing the smoke features in the image, we can detect signs of fire in time, thereby providing early warning and providing people with more time to escape and extinguish the fire.
[0158] Smoke motion analysis also includes the following steps:
[0159] Based on the color, shape and motion features of the smoke, the direction and speed of the smoke movement are calculated in combination with the abnormal key frames;
[0160] When the monitoring area where abnormal smoke movement occurs is indoors, obtain the building structure nodes of the monitoring area, and analyze the spread path of the smoke by combining the building structure nodes and the monitoring image sequence;
[0161] When the monitoring area where abnormal smoke movement occurs is outdoors, obtain the electronic map information of the monitoring area and the wind direction information of the day, and analyze the diffusion flow speed and flow direction of the smoke in combination with the electronic map information and wind direction information;
[0162] Based on the above process, the movement path of the smoke is judged.
[0163] Specifically, by combining different influencing factors on the smoke in different areas, the movement path of the smoke can be judged more accurately, thereby improving the accuracy of predicting the occurrence of fires and taking preventive measures in advance, such as turning off electrical appliances and prohibiting smoking, to avoid the occurrence of fires. At the same time, the location of the fire can be roughly determined, which helps to find the source of the fire in time and take corresponding fire-fighting measures, provide direction for fire-fighting, and improve the efficiency of fire-fighting.
[0164] Fire smoke detection also includes the following steps:
[0165] Determine the fire occurrence point based on the movement path of the smoke;
[0166] The fire spread path and fire situation are analyzed based on the fire occurrence point and the movement path of the smoke.
[0167] The fire smoke alarm also includes the following steps:
[0168] The fire area location determined by fire smoke detection and the path area of abnormal smoke movement are marked as fire danger areas;
[0169] Provide audible and visual fire evacuation alarms for fire-hazardous areas;
[0170] Fire alarms are issued based on the location of fire danger areas, and the detailed address of the fire and fire analysis are provided
[0171] Specifically, by predicting and informing staff in advance of the fire spread path and fire analysis, it helps firefighters deal with fires more safely, reasonably and efficiently, helps firefighters quickly locate the source of fire, improves fire extinguishing efficiency, reduces fire losses, and prevents firefighters from entering dangerous areas, ensuring their personal safety.
[0172] This embodiment also provides an early fire smoke detection method based on motion history images, which extracts features from the processed images, including:
[0173] Reading the processed image based on a computer, determining a red channel, a green channel, and a blue channel of the processed image in a preset color space;
[0174] Based on the distribution states of the red channel, the green channel and the blue channel of the processed image in the preset color space, the target color thresholds of the background image and the foreground image in the processed image are set;
[0175] Segment the processed image according to the target color threshold to obtain a background image and a foreground image;
[0176] Obtaining an extraction type for feature extraction of a processed image, and determining a feature extraction index corresponding to the extraction type;
[0177] Performing a first extraction on the background image based on the extraction type and the extraction index of the extraction type to obtain first feature information of the background image in the processed image;
[0178] Performing a second extraction on the foreground image based on the extraction type and the extraction index of the extraction type to obtain second feature information of the foreground image in the processed image;
[0179] The first feature information and the second feature information are combined to obtain third feature information, and feature extraction of the processed image is completed based on the third feature information.
[0180] In this embodiment, the target color threshold may be determined based on the distribution of the red channel, the green channel, and the blue channel of the processed image in a preset color space, and is used as a criterion for segmenting the background image and the foreground image in the processed image.
[0181] In this embodiment, the preset color space may be an RGB color space.
[0182] In this embodiment, the extraction types may include: color features, shape features and motion features.
[0183] In this embodiment, the feature extraction indicators corresponding to the extraction type can be the extraction content corresponding to each extraction type, where when the extraction type is color feature, the corresponding extraction indicators are: the average color and color contrast of the smoke; when the extraction type is shape feature, the corresponding extraction indicators are: the edge and texture of the smoke; when the extraction type is shape feature, the corresponding extraction indicators are: the flow pattern and speed of the smoke.
[0184] In this embodiment, the first characteristic information is characteristic information of smoke in the background image of the processed image.
[0185] In this embodiment, the second characteristic information is characteristic information of smoke in the foreground image of the processed image.
[0186] In this embodiment, the third feature information is composed of the first feature information and the second feature information, and is used to represent the feature extraction result of the processed image.
[0187] The working principle and beneficial effects of the above technical solution are: by extracting the background image and the foreground image of the processed image, the extraction error rate during feature extraction can be avoided, and by extracting the first feature information of the foreground image and the second feature information of the background feature respectively, the feature extraction of the processed image can be made more detailed, thereby improving the accuracy of feature extraction of the processed image.
[0188] This embodiment also provides an early fire smoke detection method based on motion history images, which determines the fire occurrence point based on the motion path of the smoke, including:
[0189] The obtained movement path of the smoke is obtained, and a structural analysis is performed on the movement path of the smoke to obtain a tree structure feature of the movement path of the smoke;
[0190] The motion path is discretized based on the tree structure feature to obtain the discrete motion trajectory of the motion path at different times, and the relative position offset of the smoke at different times is determined based on the discrete motion trajectory;
[0191] Construct a rectangular coordinate system, and map the discrete motion paths at different times to the rectangular coordinate system based on the relative position offset, and determine the gathering points of the motion paths of smoke in different directions based on the mapping results and tree structure characteristics;
[0192] The gathering points of the smoke movement path are determined as a set of candidate fire occurrence points, and the movement trends of each candidate fire occurrence point in the set of candidate fire occurrence points are determined based on the diffusion flow speed and flow direction of the smoke;
[0193] Tracing the gathering point of the movement path of the smoke based on the movement trend and the opposite direction of the flow direction of the smoke, and obtaining the gathering point source of the movement path of the smoke based on the tracing result;
[0194] Based on the extracted smoke characteristics and the preset fire occurrence point evaluation index, the clustered point source is analyzed to obtain the confidence of the clustered point source, and when the confidence is within the preset threshold range, the clustered point source is determined as the fire occurrence point;
[0195] Extract the frame image corresponding to the fire occurrence point, and pre-process the frame image to determine the edge contour of the open flame at the fire occurrence point, and extract the pixel feature value within the edge contour;
[0196] Determine the color saturation thresholds of the open flame and the smoke based on the pixel feature values, and match the color saturation thresholds of the open flame and the smoke with a preset reference list, respectively, to obtain a first fire assessment parameter and a second fire assessment parameter;
[0197] The first fire intensity assessment parameter and the second fire intensity assessment parameter are weighted averaged based on the weights of the influence of open flame and smoke on the fire intensity, and the current fire intensity of the fire occurrence point is obtained based on the weighted assessment processing result.
[0198] In this embodiment, the structural analysis is to determine the relative position relationship between the movement paths of the smoke at different positions. For example, when there are external interference factors, the movement path of the smoke may suddenly change or the smoke may disperse.
[0199] In this embodiment, the tree structure feature may be a feature that represents the positional relationship between movement paths of smoke in different directions at different times and under different states, that is, it may be able to represent the National III situation of smoke at different times.
[0200] In this embodiment, the discrete running trajectory may be obtained by discretizing the moving path into a plurality of points, so as to facilitate displaying the moving path of the smoke in a rectangular coordinate system.
[0201] In this embodiment, the relative position offset may be the offset direction and offset distance of the position of the smoke at adjacent moments compared to the previous moment.
[0202] In this embodiment, the focus point may be the overlap point of the movement paths of smoke in different directions. When the movement paths of smoke overlap, there may be a fire occurrence point.
[0203] In this embodiment, the candidate fire occurrence point set may be the gathering points of all smoke movement paths determined as possible locations of fire occurrence points, and is not unique.
[0204] In this embodiment, the motion trend may be the direction in which the candidate will appear at different times at the occurrence point, for example, it may change with the flow direction of the smoke or become less with the flow direction of the smoke, etc. For example, when the motion trend of the candidate fire occurrence point is consistent with the flow direction of the smoke, it is determined that the focal point in the current motion direction is not the fire occurrence point, but a smoke path aggregation caused by external interference factors.
[0205] In this embodiment, tracing the gathering point of the smoke's movement path based on the movement trend and the opposite direction of the smoke's flow direction can be used to find the source focal point of the smoke path, because the more opposite the focal point is to the smoke's flow direction, the closer it is to the fire occurrence point.
[0206] In this embodiment, the gathering point source refers to the source of smoke generation, that is, the coincidence point of the movement paths of smoke in all different directions, that is, the starting diffusion position of smoke from the fire occurrence point.
[0207] In this embodiment, the preset fire occurrence point evaluation index is set in advance, for example, it may be the concentration of smoke and the overlap of smoke movement paths.
[0208] In this embodiment, the confidence level is a value used to characterize the credibility of the clustered point source in characterizing the fire occurrence point. The larger the value, the more likely it is the fire occurrence point.
[0209] In this embodiment, the preset threshold interval is set in advance and is used to measure the minimum standard for determining a fire occurrence point, and can be adjusted.
[0210] In this embodiment, the preprocessing may be performing denoising on the frame image.
[0211] In this embodiment, the edge contour may be the shape of the fire occurrence point in the frame image.
[0212] In this embodiment, the pixel characteristic value may be the clarity of the pixel point and the color threshold of the pixel point.
[0213] In this embodiment, the color saturation threshold is an image parameter used to characterize the intensity of the open flame and the smoke density at the fire occurrence point.
[0214] In this embodiment, the preset reference list is set in advance and is used to characterize the fire conditions corresponding to the color saturation thresholds of different open flames and smoke.
[0215] In this embodiment, the first fire assessment parameter may be the fire size determined when only the color saturation threshold of the open flame is considered.
[0216] In this embodiment, the second fire intensity assessment parameter may be the fire intensity determined when only the color saturation threshold of the smoke is considered.
[0217] In this embodiment, the influence weights may respectively represent the influence of open flames and smoke on the size of the fire.
[0218] The working principle and beneficial effects of the above technical solution are: by discretizing and structurally analyzing the movement path of the smoke, the discrete movement trajectories of the smoke at different times are visualized in the constructed rectangular coordinate system, so as to facilitate the analysis of the fire occurrence point according to the visualization results; secondly, the focal point of the smoke movement path under different circumstances is determined by the visualization results, so as to achieve accurate and effective judgment of the fire occurrence point according to the focal point; finally, the frame image of the fire occurrence point is analyzed to effectively determine the fire intensity at the fire occurrence point, so as to facilitate the corresponding alarm operation of the fire occurrence point and the fire intensity at the fire occurrence point, thereby improving the accuracy, reliability and real-time performance of smoke monitoring.
[0219] This embodiment also provides an early fire smoke detection method based on motion history images, which sends an alarm signal when fire smoke is detected, including:
[0220] Read the image sequence and determine the distribution area of smoke in the image sequence;
[0221] Read the pixel points corresponding to the distribution area of the smoke to determine the color distribution characteristics of the pixel points in the distribution area of the smoke;
[0222] Split the distribution area of the smoke according to the color distribution characteristics of the pixel points to obtain m sub-distribution areas. At the same time, split each sub-distribution area according to a preset unit to obtain n area blocks corresponding to the sub-distribution area;
[0223] Retrieve the color-concentration estimation table, and match the n area blocks corresponding to the sub-distribution area in the color concentration estimation table to determine the estimated value of the smoke concentration corresponding to the unit area in the n area blocks corresponding to the sub-distribution area;
[0224] Based on the estimated value of the smoke concentration corresponding to the unit area in the n area blocks corresponding to the sub-distribution area, calculate the concentration value of the fire smoke;
[0225]
[0226] Where, C represents the concentration value of the fire smoke; j represents the serial number value of the sub-distribution area; m represents the total number of sub-distribution areas; represents the regional volume of the j-th sub-distribution area; i represents the serial number value of the area block after splitting the sub-distribution area according to the preset unit; n represents the total number of area blocks; s represents the area of the area block; h i represents the height value corresponding to the i-th area block; c ij represents the estimated value of the smoke concentration of the i-th area block in the j-th sub-distribution area; ρ represents the error factor, and its value range is (0.01, 0.02); π represents a constant, which is 3.14;
[0227] Obtain the preset fire smoke concentration alarm threshold interval [a, b], and compare the concentration value C of the fire smoke with the preset fire smoke concentration alarm threshold interval [a, b];
[0228] Based on the comparison result, determine the alarm duration for sending the alarm signal;
[0229] Where, when C ≤ a, the alarm duration for sending the alarm signal is 0, and a represents the lower threshold of the preset fire smoke concentration alarm threshold interval;
[0230] When a < C ≤ b, the alarm duration for sending the alarm signal is the first preset duration, and b represents the upper threshold of the element and fire smoke concentration alarm threshold interval;
[0231] When C > b, the alarm duration for sending the alarm signal is the second preset duration, and the first preset duration is less than the second preset duration.
[0232] In this embodiment, the areas of each area block in the sub-distribution area are equal.
[0233] In this embodiment, the color distribution characteristics of the pixel points can distinguish the distribution area of the smoke according to different colors, so that the colors of the pixels in the obtained sub-distribution areas are consistent. When the colors of the pixels are consistent, the smoke concentration in the sub-distribution area is consistent.
[0234] In this embodiment, the preset unit may be set in advance, for example, may be 1.
[0235] In this embodiment, the area of each area block in the sub-distribution area is the same.
[0236] In this embodiment, the color-concentration estimation table may be pre-set and determined based on historical experimental data to effectively estimate the corresponding smoke concentration for each color.
[0237] In this embodiment, the preset fire concentration alarm threshold interval may be set in advance and is used as a standard for measuring the alarm duration.
[0238] In this embodiment, the first preset time length and the second preset time length are both set in advance, wherein the first preset time length is shorter than the second preset time length.
[0239] The working principle and beneficial effects of the above technical solution are: by reading the distribution area of smoke in the image sequence and segmenting and splitting the distribution area of smoke, the effective segmentation of the distribution area can be effectively achieved, so that the smoke concentration value of each sub-distribution area can be effectively evaluated through the color-concentration estimation table, thereby improving the effectiveness and convenience of calculating the fire smoke concentration value, and by setting different alarm durations (first preset duration, second preset duration), it can effectively improve personnel's measurement of fire smoke concentration, thereby making different smoke warning measures, thereby improving the effectiveness of fire smoke detection.
[0240] The above description is only a preferred specific implementation manner of the present invention, but the protection scope of the present invention is not limited thereto. Any technician familiar with the technical field can make equivalent replacements or changes according to the technical scheme and inventive concept of the present invention within the technical scope disclosed by the present invention, which should be covered by the protection scope of the present invention.
Claims
1. An early fire smoke detection method based on motion history images, It is characterized in that The steps include: Monitoring equipment deployment: monitoring equipment is deployed in the monitoring area, and the monitoring equipment is a monitoring camera; Collect image sequences, use multiple surveillance cameras to achieve all-round monitoring in the surveillance area, and continuously collect image sequences; Image region analysis: perform image region analysis on image sequences to identify possible abnormal smoke movements; Smoke feature extraction: extract smoke features for possible abnormal smoke movement, including smoke color, shape and movement pattern; Smoke movement analysis: analyzing the movement trend of smoke based on smoke characteristics; Fire smoke detection: Based on the extracted smoke features, multiple classifiers are used to perform multi-level classification to detect fire smoke in image sequences and determine the fire location area; Fire smoke alarm: when fire smoke is detected, it will send out an alarm signal and notify relevant personnel to take preventive measures by means of sound, light, and text message. Among them, fire smoke detection specifically includes the following steps: Determine the fire occurrence point based on the movement path of the smoke; Analyze the fire spread path and fire situation based on the fire occurrence point and smoke movement path; The fire occurrence point is determined based on the movement path of the smoke, including: The obtained movement path of the smoke is obtained, and a structural analysis is performed on the movement path of the smoke to obtain a tree structure feature of the movement path of the smoke; The motion path is discretized based on the tree structure feature to obtain the discrete motion trajectory of the motion path at different times, and the relative position offset of the smoke at different times is determined based on the discrete motion trajectory; Construct a rectangular coordinate system, and map the discrete motion paths at different times to the rectangular coordinate system based on the relative position offset, and determine the gathering points of the motion paths of smoke in different directions based on the mapping results and tree structure characteristics; The gathering points of the smoke movement path are determined as a set of candidate fire occurrence points, and the movement trends of each candidate fire occurrence point in the set of candidate fire occurrence points are determined based on the diffusion flow speed and flow direction of the smoke; Tracing the gathering point of the movement path of the smoke based on the movement trend and the opposite direction of the flow direction of the smoke, and obtaining the gathering point source of the movement path of the smoke based on the tracing result; Based on the extracted smoke characteristics and the preset fire occurrence point evaluation index, the clustered point source is analyzed to obtain the confidence of the clustered point source, and when the confidence is within the preset threshold range, the clustered point source is determined as the fire occurrence point; Extract the frame image corresponding to the fire occurrence point, and pre-process the frame image to determine the edge contour of the open flame at the fire occurrence point, and extract the pixel feature value within the edge contour; Determine the color saturation thresholds of the open flame and the smoke based on the pixel feature values, and match the color saturation thresholds of the open flame and the smoke with a preset reference list, respectively, to obtain a first fire assessment parameter and a second fire assessment parameter; Perform weighted average processing on the first fire evaluation parameter and the second fire evaluation parameter based on the influence weights of open flames and smoke on the fire situation, and obtain the current fire situation at the fire occurrence point based on the weighted evaluation result; Among them, when fire smoke is detected, an alarm signal is issued, including: Read the image sequence and determine the distribution area of the smoke in the image sequence; Read the pixel points corresponding to the distribution area of the smoke and determine the color distribution characteristics of the pixel points in the distribution area of the smoke; Split the distribution area of the smoke according to the color distribution characteristics of the pixel points to obtain m sub-distribution areas. At the same time, split each sub-distribution area according to a preset unit to obtain n area blocks corresponding to the sub-distribution area; Retrieve the color-concentration estimation table and match the n area blocks corresponding to the sub-distribution area in the color concentration estimation table to determine the estimated smoke concentration value per unit area in the n area blocks corresponding to the sub-distribution area; Based on the estimated smoke concentration value per unit area in the n area blocks corresponding to the sub-distribution area, calculate the concentration value of the fire smoke; Where C represents the concentration of fire smoke; j represents the sequence number of the sub-distribution area; m represents the total number of sub-distribution areas; represents the volume of the jth sub-distribution area; i represents the serial number of the area block after the sub-distribution area is split according to the preset unit; n represents the total number of area blocks; s represents the area of the area block; h i Indicates the height value corresponding to the i-th area block; c ij represents the estimated smoke density of the ith block in the jth sub-distribution area; ρ represents the error factor, and its value range is (0.01, 0.02); π represents a constant, which is 3.14; Obtain the preset fire smoke concentration alarm threshold interval [a, b], and compare the concentration value C of the fire smoke with the preset fire smoke concentration alarm threshold interval [a, b]; Determine the alarm duration of the alarm signal based on the comparison result; Among them, when C ≤ a, the alarm duration of the alarm signal is 0, and a represents the lower threshold of the preset fire smoke concentration alarm threshold interval; When a < C ≤ b, the alarm duration of the alarm signal is the first preset duration, and b represents the upper threshold of the element and the fire smoke concentration alarm threshold interval; When C > b, the alarm duration of the alarm signal is the second preset duration, and the first preset duration is less than the second preset duration.
2. An early fire smoke detection method based on motion history images as described in claim 1, characterized in that: The specific layout of the monitoring device further includes the following steps: According to the scene and purpose to be monitored, select waterproof and dustproof outdoor monitoring cameras in the outdoor monitoring area, connect the outdoor monitoring cameras to the solar power supply system, select indoor cameras in the indoor monitoring area, and connect the indoor cameras to the circuit; According to the size and shape of the monitoring area, determine the number and location of the monitoring cameras to be arranged. The adjacent monitoring cameras are set at intervals of 10-20 meters and cover the entire monitoring area. Adjust the viewing angle of each monitoring camera so that the monitoring camera can clearly capture each important area in the monitoring area; Connect the monitoring cameras to the monitoring center by wired or wireless means.
3. An early fire smoke detection method based on motion history images as described in claim 1, characterized in that: The specific acquisition of the image sequence further includes the following steps: The monitoring camera conducts all-round monitoring of the monitoring area and acquires the image sequence, and transmits the monitoring image sequence in real time; Back up the acquired monitoring image sequence through a storage device; Regular maintenance and management of the backup data.
4. An early fire smoke detection method based on motion history images as described in claim 1, Features: The image region analysis specifically includes the following steps: A1: Difference the current image from the background image to obtain a differential image containing motion information; A2: Divide the image difference into N×N image blocks, where the value of N is determined by the image resolution. Part of the image blocks are removed by calculating the number of pixels in the image blocks and then counting the number of pixels in each block that meet the motion characteristics. i , and update the results as follows: Where T1 is the ratio threshold of motion pixels, for B n The pixel blocks with the value of 0 in (x, y) are not calculated in the next step; A3: Calculate B n The average pixel value P of each motion block marked as 1 in (x, y) is greater than the threshold T2, and the brightness of the motion history image in the area increases, otherwise it decreases, as shown in the formula: Where tMHI σ (x, y) is the pixel value of the motion block corresponding to the motion history image; A4: Repeat steps A1 and A3 within the set time threshold σ to adjust tMHI σ (x, y) is accumulated to obtain the motion history image MHI σ ; The edge contour of the smoke area has high complexity, which is characterized by contour curvature entropy; The formula for calculating contour curvature entropy is: Among them, H c is the discrete curvature entropy of the smoke edge contour curve, P(C i ) is the curvature C i The probability of accounting for the total set, H c The larger it is, the more complex the edge curvature is; Based on A1-A4, the specific steps of the smoke detection method are as follows: S1: System initialization, reading the thresholds of each parameter, and setting the count of images that meet the smoke characteristics to 0; S2: Collect a frame of image I. If it is the first frame of image, it is used as the background image I. b And return to step S2, otherwise go to step S3; S3: I and background image I b Do the difference to get the difference image I diff , and accumulate the motion history image MHI according to the above algorithm σ , proceed to step S4; S4: Traverse the motion history image MHI σ , when the corresponding pixel value tMHI in the motion block σ When (x, y) is greater than the threshold T3, the block is determined as a suspected smoke area and the process goes to step S5; S5: Count the number of suspected smoke area blocks N s , if N s If it is greater than the threshold value T4, go to step S6, otherwise update the background image I b , proceed to step S2; S6: Using the suspected smoke area block as the seed area, fill the search area using the area search algorithm n The non-zero area in (x, y) connected to the suspected smoke area block and calculate the area A s , if A s If it is greater than the threshold value T5, it proceeds to step S7; otherwise, it proceeds to step S2; S7: Calculate the number of sharp corners S on the edge of the connected area c , curvature entropy H c , if S c is greater than the threshold T6 and H c If it is greater than the threshold value T7, it proceeds to step S8; otherwise, it proceeds to step S2; S8: adding 1 to the count of images that meet the smoke feature. If the count of images that meet the smoke feature is greater than T8, proceed to step S9; otherwise, assign the count of the number of images that meet the smoke feature to 0, and return to step S2; S9: Output fire alarm signal and mark the location of smoke area in the image.
5. The method for early fire smoke detection based on motion history images as claimed in claim 1, Features: The smoke feature extraction specifically includes the following steps: Frames with abnormal smoke movement in the monitoring image sequence are extracted and set as abnormal key frames, and image regions are divided for the abnormal key frames; The images in the abnormal key frames are preprocessed to remove noise and abnormal values to obtain processed images; Extracting features from the processed image to extract color features, shape features and motion features, wherein the color features include the average color and color contrast of the smoke, the shape features include the edge and texture of the smoke, and the motion features include the flow pattern and speed of the smoke; Among them, feature extraction is performed on the processed image, including: Reading the processed image based on a computer, determining a red channel, a green channel, and a blue channel of the processed image in a preset color space; Based on the distribution states of the red channel, the green channel and the blue channel of the processed image in the preset color space, the target color thresholds of the background image and the foreground image in the processed image are set; Segment the processed image according to the target color threshold to obtain a background image and a foreground image; Obtaining an extraction type for feature extraction of a processed image, and determining a feature extraction index corresponding to the extraction type; Performing a first extraction on the background image based on the extraction type and the extraction index of the extraction type to obtain first feature information of the background image in the processed image; Performing a second extraction on the foreground image based on the extraction type and the extraction index of the extraction type to obtain second feature information of the foreground image in the processed image; The first feature information and the second feature information are combined to obtain third feature information, and feature extraction of the processed image is completed based on the third feature information.
6. The method for early fire smoke detection based on motion history images as claimed in claim 1, Features: The smoke movement analysis specifically includes the following steps: Based on the color, shape and motion features of the smoke, the direction and speed of the smoke movement are calculated in combination with the abnormal key frames; When the monitoring area where abnormal smoke movement occurs is indoors, obtain the building structure nodes of the monitoring area, and analyze the spread path of the smoke by combining the building structure nodes and the monitoring image sequence; When the monitoring area where abnormal smoke movement occurs is outdoors, obtain the electronic map information of the monitoring area and the wind direction information of the day, and analyze the diffusion flow speed and flow direction of the smoke in combination with the electronic map information and wind direction information; Based on the above process, the movement path of the smoke is judged.
7. The method for early fire smoke detection based on motion history images as claimed in claim 1, Features: The fire smoke alarm specifically includes the following steps: The fire area location determined by fire smoke detection and the path area of abnormal smoke movement are marked as fire danger areas; Provide audible and visual fire evacuation alarms for fire-hazardous areas; Fire alarms are issued based on the location of fire danger areas, and the detailed address of the fire and fire analysis are provided.
Citation Information
Patent Citations
Image-type fire detection method based on cumulative prospect image
CN102163361A
Video smoke detecting method based on multi-feature fusion
CN104794486A
Image fire hazard detection method based on video monitoring platform
CN106408846A
Smog detection method and device based on video analysis
CN106897720A
Smoke identification method and identification system of image type fire detector
CN112257523A
