A method, device and equipment for analyzing explosion flame characteristics
By image processing of the explosion flame, the boundary and front end surface of the flame are extracted, and the flame propagation parameters are calculated, the problem of inaccurate flame analysis in the existing technology is solved, and the accurate analysis of the dynamic propagation law of flame is achieved.
Patent Information
- Application Number
- CN202211063144.2
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2022-08-31
- Publication Date
- 2024-11-29
- Estimated Expiration
- 2042-08-31
AI Technical Summary
The prior art cannot quantitatively analyze the flames generated by the explosion, resulting in the inaccurate laws of flame propagation and evolution.
By obtaining image information of the explosion flame, greyscale and binarization are performed, the boundary and front end of the flame are extracted, and the change trends of flame propagation speed, acceleration and area are calculated.
Accurate quantitative analysis of the dynamic propagation and evolution laws of dust explosion flames is achieved, and detailed data on the flame propagation laws are provided.
Smart Images

Figure CN115436426B_ABST
Abstract
Description
Technical Field
[0001] The invention relates to the technical field of flame analysis, and in particular to an analysis method, device and equipment for explosion flame characteristics. Background Art
[0002] With the acceleration of modern industrialization and the rise of intelligent manufacturing and new materials applications, dust technology has become increasingly mature, and the number of industries producing, processing and using dust has gradually increased. In addition, powders, as raw materials, intermediate products and by-products of industrial products, are increasingly involved in the large-scale and mechanized production of various industries, and the probability of dust explosion accidents has continued to increase. For example, on August 2, 2014, a particularly serious aluminum dust explosion occurred in the Polishing Workshop 2 of Kunshan Zhongrong Metal Products Co., Ltd. in Kunshan Economic and Technological Development Zone, Kunshan City, Suzhou City, Jiangsu Province, causing a total of 146 deaths, 163 injuries and direct economic losses of 351 million yuan. Similarly, combustible gas explosion accidents also occur frequently; for example, on October 21, 2021, a gas explosion occurred in Northeast China, killing 5 people and injuring 52 people.
[0003] How to effectively prevent explosion accidents on site is a difficult problem that needs to be solved urgently. However, large-scale experiments not only consume huge manpower and material costs, but may also cause casualties. Therefore, it is of great significance to use laboratory experimental devices to study the dynamic propagation evolution of dust explosion flames.
[0004] At present, most of the laboratory explosion experiment systems that study the dynamic changes of explosion flames are still based on qualitative analysis of flame images, and there is no quantitative analysis system, which leads to the flame description being too subjective and not accurate enough. Therefore, designing an accurate and convenient method to study the dynamic propagation evolution law of dust explosion flames has become a problem to be solved by the present invention. Summary of the invention
[0005] In view of this, the purpose of the present invention is to provide a method, device and equipment for analyzing explosion flame characteristics to solve the problems in the prior art that the flame generated by the explosion cannot be quantitatively analyzed and the propagation evolution law of the flame is not accurate enough.
[0006] According to a first aspect of an embodiment of the present invention, there is provided a method for analyzing explosion flame characteristics, comprising:
[0007] Obtain image information of the explosion flame and determine the corresponding relationship between the image size and the actual size;
[0008] Grayscale processing is performed on the image information of the explosion flame;
[0009] Binarization is performed on the grayscale processed image information to extract the target flame image information from the explosion flame image information and the boundary of the target flame image;
[0010] Traverse each pixel point in the binary target flame image information to obtain the position of the front edge of the target flame in the image;
[0011] The actual position of the front face of the target flame is calculated by determining the correspondence between the image size and the actual size;
[0012] The changing trend of flame front propagation speed, the changing trend of flame propagation acceleration and the average speed are calculated through the position of the flame front between multiple frames of images and the time interval between different frames of images;
[0013] By calculating the ratio of flame pixels to total pixels, we can get the proportion of flame in the whole image. The flame area can be calculated by using the relationship between image size and actual size. By calculating the flame area of each frame image, we can get the change trend of the flame area.
[0014] The gray value of the pixel with the largest gray value in the image is extracted, and the gray value is used as the brightness of the flame in the image. The change trend of the flame brightness is obtained according to the maximum gray value of multiple image frames.
[0015] Preferably,
[0016] The step of obtaining the image information of the explosion flame comprises:
[0017] The experimental object is operated according to the preset experimental process, and the experimental conditions required for the experiment are set, and the experimental conditions include concentration, ignition delay time, dust spray pressure and ignition energy;
[0018] While ignition is in progress, a high-speed camera placed in front of the window of the experimental device takes pictures at a certain frequency to obtain image information of the explosion flame.
[0019] Preferably,
[0020] Determining the correspondence between the image size and the actual size includes:
[0021] According to the size of the experimental device window and the resolution of the image, the actual height represented by each pixel in the image information of the explosion flame is calculated.
[0022] Preferably,
[0023] The grayscale processing of the image information of the explosion flame comprises:
[0024] The gamma correction algorithm is used to process the image information of the colored explosion flame to obtain the grayscale value, the grayscale values in different channels are weighted, and the weighted grayscale values are converted and stored in the corresponding two-dimensional array.
[0025] Preferably,
[0026] The binarization process is performed on the grayscale processed image information to extract the target flame image information from the explosion flame image information, including:
[0027] Generate a grayscale histogram based on the grayscale values in the two-dimensional array and perform normalization to obtain a proportional histogram;
[0028] Calculate the average grayscale of the image information of the explosion flame according to the ratio histogram;
[0029] Iterate the grayscale value from 0 to X, and calculate the inter-class variance of the target flame and the background by the average grayscale;
[0030] The gray value corresponding to the maximum inter-class variance is set as the threshold, and the image is binarized based on the threshold.
[0031] Preferably,
[0032] The boundary of the target flame image is extracted including:
[0033] Use Gaussian filtering to smooth the binarized image and remove noise;
[0034] Get the intensity gradient of the image;
[0035] Eliminate false edge detection of images through non-maximum suppression method;
[0036] The possible boundaries are determined by a double threshold method;
[0037] Use the hysteresis method to track possible boundaries and then extract them;
[0038] The extraction of the boundary comprises:
[0039] Traverse each pixel of the binary image, set the pixel with gray value X as the reference point, search the pixels in the neighborhood direction around the reference point, and determine whether there is at least one point with pixel value 0 around the reference point. If so, the reference point is a boundary point, otherwise it is a non-boundary point.
[0040] According to a second aspect of an embodiment of the present invention, there is provided an analysis device for explosion flame characteristics, comprising:
[0041] Image acquisition module: used to obtain image information of explosion flames and determine the corresponding relationship between image size and actual size;
[0042] Grayscale processing module: used to perform grayscale processing on the image information of explosion flame;
[0043] Binarization processing module: used for binarization processing of the image information after grayscale processing, extracting the target flame image information from the image information of the explosion flame and extracting the boundary of the target flame image;
[0044] Front-end determination module: used to traverse each pixel point in the binary target flame image information to obtain the position of the front-end of the target flame in the image;
[0045] Actual position acquisition module: used to calculate the actual position of the flame front through the corresponding relationship between the determined image size and the actual size;
[0046] Speed analysis module: used to calculate the change trend of flame front propagation speed, the change trend of flame propagation acceleration and the average speed through the position of the flame front between multiple frames and the time interval between different frames;
[0047] Area analysis module: It is used to calculate the ratio of flame pixels to total pixels to obtain the proportion of flame in the entire image, and calculate the flame area based on the relationship between image size and actual size. By calculating the flame area of each frame of image, the change trend of flame area can be obtained.
[0048] Brightness analysis module: used to extract the gray value of the pixel with the largest gray value in the image, use the gray value as the brightness of the flame in the image, and obtain the change trend of the flame brightness based on the maximum gray value of multiple image frames.
[0049] According to a third aspect of an embodiment of the present invention, there is provided an analysis device for explosion flame characteristics, comprising:
[0050] A memory, wherein program instructions are stored in the memory;
[0051] The controller is used to execute the program instructions stored in the memory to perform the method as described above.
[0052] The technical solution provided by the embodiments of the present invention may have the following beneficial effects:
[0053] The present application obtains the image information of the explosion flame, performs grayscale processing and binarization processing on the image information, obtains the target flame information and extracts the boundary of the flame, and then traverses each pixel point in the binarized target flame image information to obtain the position of the front end of the target flame in the image, obtains the actual position of the front end according to the corresponding relationship between the image size and the actual size, and calculates the change trend of the flame front propagation speed, the change trend of the flame propagation acceleration and the average speed according to the position change of the actual front end in each frame image and the time interval between each frame image; the ratio of the flame pixel to the total pixel can be obtained, the flame area is calculated by using the relationship between the image size and the actual size, and the change trend of the flame area is obtained by calculating the flame area of each frame image; the change law of the flame brightness is obtained according to the change of the maximum gray value in each frame image, and the dynamic propagation evolution law of the dust explosion flame is truly reflected by quantitative analysis of the flame speed, area and brightness, which is very suitable for promotion and use in the study of the explosion flame propagation law. It should be understood that the above general description and the detailed description below are only exemplary and explanatory, and cannot limit the present invention. BRIEF DESCRIPTION OF THE DRAWINGS
[0054] The accompanying drawings, which are incorporated in and constitute a part of this specification, illustrate embodiments consistent with the invention and, together with the description, serve to explain the principles of the invention.
[0055] Figure 1 is a flow chart of a method for analyzing explosion flame characteristics according to an exemplary embodiment;
[0056] Figure 2 is a general flow chart of a method for analyzing explosion flame characteristics according to another exemplary embodiment;
[0057] Figure 3 is a flowchart of image binarization processing according to another exemplary embodiment;
[0058] Figure 4 is a system schematic diagram of an analysis device for explosion flame characteristics according to another exemplary embodiment;
[0059] In the attached figure: 1-image acquisition module, 2-grayscale processing module, 3-binarization processing module, 4-front face determination module, 5-actual position acquisition module, 6-speed analysis module, 7-area analysis module, 8-brightness analysis module. DETAILED DESCRIPTION
[0060] Exemplary embodiments will be described in detail herein, examples of which are shown in the accompanying drawings. When the following description refers to the drawings, the same numbers in different drawings represent the same or similar elements unless otherwise indicated. The embodiments described in the following exemplary embodiments do not represent all embodiments consistent with the present invention. Instead, they are merely examples of devices and methods consistent with some aspects of the present invention as detailed in the appended claims.
[0061] Embodiment 1
[0062] Figure 1 is a flow chart of a method for analyzing explosion flame characteristics according to an exemplary embodiment. Figure 1 As shown, including:
[0063] S1, obtaining image information of the explosion flame and determining the corresponding relationship between the image size and the actual size;
[0064] S2, grayscale processing of the image information of the explosion flame;
[0065] S3, performing binarization processing on the grayscale processed image information, extracting target flame image information from the explosion flame image information and extracting the boundary of the target flame image;
[0066] S4, traversing each pixel point in the binary target flame image information to obtain the position of the front edge of the target flame in the image;
[0067] S5, calculating the actual position of the front face of the target flame by determining the correspondence between the image size and the actual size;
[0068] S6, calculating the change trend of the flame front propagation speed, the change trend of the flame propagation acceleration and the average speed through the position of the flame front between multiple frame images and the time interval between different frame images;
[0069] S7, by calculating the ratio of the flame pixel to the total pixel, the proportion of the flame in the entire image can be obtained, and the flame area is calculated using the relationship between the image size and the actual size. By calculating the flame area of each frame of the image, the change trend of the flame area is obtained;
[0070] S8, extracting the gray value of the pixel with the largest gray value in the image, using the gray value as the brightness of the flame in the image, and obtaining the variation trend of the flame brightness according to the maximum gray value of multiple image frames.
[0071] It is understandable that if Figure 2As shown, the present application obtains the image information of the explosion flame, performs grayscale processing and binarization processing on the image information, obtains the target flame information and extracts the boundary of the flame, then traverses each pixel point in the binarized target flame image information to obtain the position of the front end of the target flame in the image, obtains the actual position of the front end according to the corresponding relationship between the image size and the actual size, calculates the change trend of the flame front propagation speed, the change trend of the flame propagation acceleration and the average speed according to the position change of the actual front end in each frame image and the time interval between each frame image; the proportion of the flame in the entire image can be obtained by the ratio of the flame pixel to the total pixel, the flame area is calculated by using the relationship between the image size and the actual size, and the change trend of the flame area is obtained by calculating the flame area of each frame image; the change law of the flame brightness is obtained according to the change of the maximum gray value in each frame image, and the dynamic propagation evolution law of the dust explosion flame is truly reflected through the quantitative analysis of the flame speed, area and brightness, which is very suitable for promotion and use in the study of the explosion flame propagation law.
[0072] It is worth emphasizing that in order to extract the flame area and determine the position of the flame front in the original explosion flame image, the original flame image must first be simply processed to remove the useless black edges outside the window in the image to reduce the amount of calculation.
[0073] It is worth emphasizing that:
[0074] (1) The changing trend of flame front propagation velocity, the changing trend of flame propagation acceleration and the average velocity:
[0075] Speed analysis: Since the pixel value of white pixels is 255 and the pixel value of black pixels is 0 in the binary image, the position of the flame front in the image can be obtained by traversing each pixel in the binary image, that is, the position coordinates of the point on the flame boundary farthest from the ignition position in the flame propagation direction. When the pixel point where the flame front is located in the image is determined, the actual position of the flame front can be calculated using the relationship between the image size and the actual size. The ratio of the position difference of the flame front between two frames to the time interval is the average speed of the flame front in this time interval. When the time interval approaches 0 infinitely, this average speed is equivalent to the instantaneous speed at that moment. The ratio of the average speed between two frames to the time interval is the average acceleration of the flame front in this time interval. Similarly, when the time interval approaches 0 infinitely, this average acceleration is equivalent to the instantaneous acceleration at that moment. The flame boundary is processed to obtain the position of the flame front in each frame of the image, and a graph is drawn with time as the horizontal axis and the flame propagation distance as the vertical axis to obtain a trend graph of the flame front change, so as to analyze the flame propagation distance. The flame movement distance in the time interval is obtained by subtracting the flame front distance of the previous frame from the flame front distance of the next frame. Therefore, the calculation formula for the average flame speed between two frames is:
[0076]
[0077] Where, Δl is the distance the flame moves within the two-frame time interval, Δt is the time interval, l i —flame propagation distance in the ith second, f—sampling frequency;
[0078] The average flame speed of each frame is calculated using the formula, and a flame propagation speed variation trend diagram is obtained with time as the horizontal axis and speed as the vertical axis, so as to analyze the variation trend of flame propagation speed;
[0079] The flame propagation velocity difference within the time interval is obtained by subtracting the flame propagation velocity of the previous frame from the flame propagation velocity of the next frame. Therefore, the calculation formula for the average flame acceleration between two frames is:
[0080]
[0081] Where Δv is the flame propagation speed within the two-frame time interval, v i —flame propagation speed at the ith second;
[0082] The formula is used to calculate the average acceleration of the flame in each frame, and a graph is drawn with time as the horizontal axis and acceleration as the vertical axis to obtain a trend graph of the flame propagation acceleration change, so as to analyze the change trend of the flame propagation acceleration.
[0083] In addition, the flame front distance of the last frame is subtracted from the flame front propagation distance of the first frame to obtain the total flame propagation distance. The ratio of the total propagation distance to the time spent is the average speed of flame propagation in this time interval.
[0084] (2) Trend of flame area
[0085] In the binary image obtained, white pixels represent flames and black pixels represent backgrounds, so the flame area can be calculated by counting the number of white pixels in the image. The specific method is: traverse each pixel in the image and count the number of all white pixels to get the number of pixels occupied by the flame. By calculating the ratio of white pixels to total pixels, the proportion of the flame in the entire image can be obtained. After obtaining the proportion of flame pixels to image pixels, the relationship between image size and actual size can be used to calculate the flame area. The specific calculation formula is:
[0086]
[0087] Among them, area w —Total number of white pixels, area sum —Total number of pixels in the image;
[0088] The flame area of each frame is calculated using the formula, and a flame area change trend graph is obtained with time as the horizontal axis and area as the vertical axis to analyze the change trend of the flame area;
[0089] (3) Trend of flame brightness
[0090] Grayscale images are images with only one sampled color per pixel. Such images are usually displayed as grayscale from the darkest black to the brightest white. Grayscale uses black tones to represent objects, that is, black is used as the base color, and different saturation blacks are used to display images, ranging generally from 0 to 255, with white being 255 and black being 0. Therefore, grayscale can be used to represent the brightness of an image, and the larger the grayscale value, the brighter the pixel.
[0091] Extract the gray value of each pixel in the gray image, and draw a flame gray change trend chart with the image width as the x-axis, height as the y-axis, and gray value as the z-axis, so as to analyze the change trend of flame brightness in each frame;
[0092] The gray value of the pixel with the largest gray value in each frame of the image is extracted, and a flame brightness change trend graph is drawn with time as the horizontal axis and gray value as the vertical axis to analyze the change pattern of flame brightness over time.
[0093] Preferably,
[0094] The step of obtaining the image information of the explosion flame comprises:
[0095] The experimental object is operated according to the preset experimental process, and the experimental conditions required for the experiment are set, and the experimental conditions include concentration, ignition delay time, dust spray pressure and ignition energy;
[0096] While igniting, a high-speed camera placed in front of the window of the experimental device takes pictures at a certain frequency to obtain image information of the explosion flame;
[0097] It is understandable that the explosion test was carried out in the laboratory, and the devices used included but were not limited to the Hartmann tube, a 20L spherical container, and other homemade devices. For the convenience of explanation, this embodiment takes the Hartmann tube as an example. The Hartmann tube has an inner diameter of 69mm, a height of 296.5mm, a wall thickness of 9.5mm, and a volume of 1.2L. There is an open space above the tube, and there is a mushroom-shaped nozzle at the bottom of the tube for diffusing dust. The ignition electrode is located 100mm away from the bottom of the tube, and the experiment adopts the direct discharge method of the high-voltage transformer. The Hartmann device is mainly composed of an ignition system, a dust spraying system, a control system, and a data acquisition system. A high-speed camera device is installed directly in front of the Hartmann tube for high-speed photography. In order to ensure that the digital signal after sampling completely retains the information in the original signal, the sampling frequency must be at least twice the highest frequency in the signal, that is,
[0098] f n >2f max
[0099] In the formula, f n is the sampling frequency, f max is the signal frequency;
[0100] but
[0101]
[0102] Among them, T n is the sampling interval;
[0103] The sampling frequency selected by the present invention is 2000 Hz, that is, the shooting speed of high-speed video is 2000 fps, and other shooting speeds that meet the sampling theorem can also be selected as needed. The image size is set to 64×256 pixels.
[0104] Preferably,
[0105] Determining the correspondence between the image size and the actual size includes:
[0106] According to the size of the experimental device window and the resolution of the image, the actual height represented by each pixel in the image information of the explosion flame is calculated;
[0107] It is understandable that the correspondence between the image size and the actual size must be established in order to correctly analyze the flame characteristics. Because in the process of high-speed photography of the explosion flame propagation, the high-speed camera needs to adjust the distance and focus each time, so the image taken each time is different from the actual size, and the subsequent flame propagation analysis process is based on the captured image, so it is necessary to establish a correspondence between the image and the actual size for each shooting environment to ensure that the image and the correspondence can reflect the actual size changes and truly describe the flame characteristics. For example, the inner diameter of the Hartmann tube in the experiment is 69mm, the height is 296.5mm, and the resolution of the cropped image is 60×206. The resolution of the picture combined with the size of the Hartmann tube can be used to deduce the actual height represented by each pixel in the explosion flame image:
[0108]
[0109] Based on this correspondence, the actual distance reflected by the distance in the image can be calculated at any time.
[0110] Preferably,
[0111] The grayscale processing of the image information of the explosion flame comprises:
[0112] The gamma correction algorithm is used to process the image information of the colored explosion flame to obtain the gray value, the gray values in different channels are weighted, and the weighted gray values are converted and stored in the corresponding two-dimensional array;
[0113] It can be understood that grayscale uses black tones to represent objects, that is, black is used as the base color, and different saturation black is used to display images. Each grayscale object has a brightness value from 0% (white) to 100% (black). Use grayscale to convert the cropped color image into a high-quality black and white image. The gray level (shade) of the converted object represents the brightness of the original object. Any color is composed of three primary colors: red, green, and blue. If the original color of a certain point is RGB (R, G, B), the color image is processed using the Gamma correction algorithm. The formula is as follows. The specific operation is: weight the grayscale values in different channels. The grayscale value obtained after weighting is the grayscale value of the grayscale image we converted. After conversion, it is stored in the corresponding two-dimensional array. This array is a two-dimensional array in the abstract sense of the converted grayscale image. It is displayed as a grayscale image, which is represented as follows:
[0114]
[0115] Finally, traverse and read the image grayscale values and store them in a new array.
[0116] Preferably,
[0117] The binarization process is performed on the grayscale processed image information to extract the target flame image information from the explosion flame image information, including:
[0118] Generate a grayscale histogram based on the grayscale values in the two-dimensional array and perform normalization to obtain a proportional histogram;
[0119] Calculate the average grayscale of the image information of the explosion flame according to the ratio histogram;
[0120] Iterate the grayscale value from 0 to X, and calculate the inter-class variance of the target flame and the background by the average grayscale;
[0121] The gray value corresponding to the maximum inter-class variance is set as the threshold, and the image is binarized based on the threshold;
[0122] It is understandable that if Figure 3 As shown in the figure, an image includes the target object, background and noise. In order to directly extract the flame (i.e. the target object) from the image, the threshold method is used to binarize the image, specifically:
[0123] Using the difference between the flame and the background in the image, the image is set to two different levels, and a suitable threshold is selected to determine whether the pixel is a flame or a background. The grayscale of pixels greater than the threshold is set to the grayscale maximum value, and the grayscale of pixels less than the threshold is set to the grayscale minimum value, thereby obtaining a binary image. The threshold is determined using the Otsu method (OTSU). The Otsu method was proposed by Japanese scholar Otsu in 1979. It is also known as the maximum inter-class variance method. The core of the OTSU algorithm is the inter-class variance. It mainly uses the threshold of the image to divide it into two regions and calculate the variance between the two regions. The larger the inter-class variance, the greater the difference in the grayscale values of the two parts, that is, the largest difference between the two parts. The threshold corresponding to the maximum variance class is the required threshold, and this threshold is used to distinguish the target object from the background. The formula is derived as follows:
[0124]
[0125] The ratio of background grayscale to total image grayscale can be expressed by the following formula:
[0126]
[0127] Where: k is the assumed threshold TH, ωi is the ratio of gray value i to the total gray value of the image;
[0128] The average grayscale is:
[0129]
[0130] The ratio of the target object's grayscale to the total image grayscale is:
[0131]
[0132] Where: l represents the pixel level of the image, which is usually 255;
[0133] The average grayscale is:
[0134]
[0135] And there are:
[0136] ω 1 +ω 2 =1
[0137] The average grayscale of the image is:
[0138] μ 0 =μ 1 ω 1 +μ 2 ω 2
[0139] According to the concept of inter-class variance, the inter-class variance at the threshold can be calculated:
[0140] σ 2 =ω 1 (μ 1 -μ 0 ) 2 +ω 2 (μ 2 -μ 0 ) 2
[0141] Simplifying it gives:
[0142]
[0143] The specific steps of using Otsu's method to binarize an image are as follows:
[0144] (1) Generate a grayscale histogram and perform normalization to obtain a proportional histogram:
[0145] (2) Calculate the average grayscale μ0 of the entire image based on the ratio histogram;
[0146] (3) The grayscale value iterates from 0 to 255, and the inter-class variance of the target object and the background is calculated;
[0147] (4) The grayscale value corresponding to the maximum inter-class variance is set as the threshold, and the image is binarized.
[0148] Preferably,
[0149] The boundary of the target flame image is extracted including:
[0150] Use Gaussian filtering to smooth the binarized image and remove noise;
[0151] Get the intensity gradient of the image;
[0152] Eliminate false edge detection of images through non-maximum suppression method;
[0153] The possible boundaries are determined by a double threshold method;
[0154] Use the hysteresis method to track possible boundaries and then extract them;
[0155] The extraction of the boundary comprises:
[0156] Traverse each pixel of the binary image, set the pixel with gray value X as the reference point, search the pixels in the neighborhood direction around the reference point, and determine whether there is at least one point with pixel value 0 around the reference point. If so, the reference point is a boundary point, otherwise it is a non-boundary point.
[0157] It can be understood that this embodiment detects the flame boundary by using the Canny edge detection algorithm, including the following steps:
[0158] (1) Apply Gaussian filtering to smooth the image in order to remove noise;
[0159] (2) Find the intensity gradient of the image;
[0160] (3) Apply non-maximum suppression techniques to eliminate edge false detections;
[0161] (4) Apply a double threshold method to determine the possible (potential) boundary;
[0162] (5) Use hysteresis technology to track boundaries.
[0163] After the boundary is detected, it needs to be extracted. The specific method is as follows:
[0164] Traverse each pixel of the binary image, take the 255-value pixel as the reference point, search the pixels in the neighborhood direction around the reference point, and determine whether there is at least one point with a pixel value of 0 (background point) around the reference point. If so, the reference point is a boundary point, otherwise it is a non-boundary point.
[0165] Embodiment 2
[0166] Figure 4 is a system schematic diagram of an analysis device for explosion flame characteristics according to an exemplary embodiment, such as Figure 4 As shown, including:
[0167] Image acquisition module 1: used to acquire image information of explosion flames and determine the corresponding relationship between image size and actual size;
[0168] Grayscale processing module 2: used for grayscale processing of image information of explosion flame;
[0169] Binarization processing module 3: used for binarization processing of the image information after grayscale processing, extracting the target flame image information from the image information of the explosion flame and extracting the boundary of the target flame image;
[0170] Front-end determination module 4: used to traverse each pixel point in the binary target flame image information to obtain the position of the front-end of the target flame in the image;
[0171] Actual position acquisition module 5: used to calculate the actual position of the flame front through the correspondence between the determined image size and the actual size;
[0172] Speed analysis module 6: used to calculate the change trend of flame front propagation speed, the change trend of flame propagation acceleration and the average speed through the position of the flame front between multiple frame images and the time interval between different frame images;
[0173] Area analysis module 7: used to obtain the proportion of the flame to the entire image by calculating the ratio of the flame pixel to the total pixel, calculate the flame area by using the relationship between the image size and the actual size, and obtain the change trend of the flame area by calculating the flame area of each frame of the image;
[0174] Brightness analysis module 8: used to extract the gray value of the pixel with the largest gray value in the image, use the gray value as the brightness of the flame in the image, and obtain the change trend of the flame brightness according to the maximum gray value of multiple image frames;
[0175] It can be understood that the present application also provides an analysis device for the characteristics of explosion flames, which obtains image information of the explosion flame through an image acquisition module 1, grays the image information through a grayscaling processing module 2, and binarizes the image information after grayscaling through a binarization processing module 3, extracts target flame image information from the image information of the explosion flame and extracts the boundary of the target flame image, obtains the position of the front end of the target flame in the image by traversing each pixel point in the binary target flame image information through a front end determination module 4, obtains the actual position of the front end in the image according to the corresponding relationship between the image size and the actual size through an actual position acquisition module 5, and obtains the actual position of the front end according to the actual front end in each frame through a speed analysis module 6. The position change in the image and the time interval between each frame image are used to calculate the changing trend of the flame front propagation speed, the changing trend of the flame propagation acceleration and the average speed; the area analysis module 7 can obtain the proportion of the flame in the entire image through the ratio of flame pixels to total pixels, and the flame area is calculated using the relationship between the image size and the actual size. The changing trend of the flame area is obtained by calculating the flame area of each frame image; the brightness analysis module 8 obtains the changing law of the flame brightness according to the change of the maximum grayscale value in each frame image. Through the quantitative analysis of the flame speed, area and brightness, the dynamic propagation evolution law of the dust explosion flame is truly reflected, which is very suitable for promotion and use in the research on the explosion flame propagation law.
[0176] Embodiment 3
[0177] The present application also provides an analysis device for explosion flame characteristics, comprising:
[0178] A memory, wherein program instructions are stored in the memory;
[0179] The controller is used to execute the program instructions stored in the memory to perform the method as described above.
[0180] It can be understood that the above-mentioned memory can be a read-only memory, a magnetic disk or an optical disk, etc.
[0181] It can be understood that the same or similar parts of the above embodiments can be referenced to each other, and the contents not described in detail in some embodiments can refer to the same or similar contents in other embodiments.
[0182] It should be noted that, in the description of the present invention, the terms "first", "second", etc. are only used for descriptive purposes and cannot be understood as indicating or implying relative importance. In addition, in the description of the present invention, unless otherwise specified, the meaning of "plurality" refers to at least two.
[0183] Any process or method description in a flowchart or otherwise described herein may be understood to represent a module, segment or portion of code that includes one or more executable instructions for implementing the steps of a specific logical function or process, and the scope of the preferred embodiments of the present invention includes alternative implementations in which functions may not be performed in the order shown or discussed, including performing functions in a substantially simultaneous manner or in the reverse order depending on the functions involved, which should be understood by those skilled in the art to which the embodiments of the present invention belong.
[0184] It should be understood that the various parts of the present invention can be implemented by hardware, software, firmware or a combination thereof. In the above-mentioned embodiments, a plurality of steps or methods can be implemented by software or firmware stored in a memory and executed by a suitable instruction execution system. For example, if implemented by hardware, as in another embodiment, it can be implemented by any one of the following technologies known in the art or their combination: a discrete logic circuit having a logic gate circuit for implementing a logic function for a data signal, a dedicated integrated circuit having a suitable combination of logic gate circuits, a programmable gate array (PGA), a field programmable gate array (FPGA), etc.
[0185] A person skilled in the art may understand that all or part of the steps in the method for implementing the above-mentioned embodiment may be completed by instructing related hardware through a program, and the program may be stored in a computer-readable storage medium, which, when executed, includes one or a combination of the steps of the method embodiment.
[0186] In addition, each functional unit in each embodiment of the present invention may be integrated into a processing module, or each unit may exist physically separately, or two or more units may be integrated into one module. The above-mentioned integrated module may be implemented in the form of hardware or in the form of a software functional module. If the integrated module is implemented in the form of a software functional module and sold or used as an independent product, it may also be stored in a computer-readable storage medium.
[0187] The storage medium mentioned above can be a read-only memory, a magnetic disk or an optical disk, etc.
[0188] In the description of this specification, the description with reference to the terms "one embodiment", "some embodiments", "examples", "specific examples", or "some examples" means that the specific features, structures, materials or characteristics described in conjunction with the embodiment or example are included in at least one embodiment or example of the present invention. In this specification, the schematic representation of the above terms does not necessarily refer to the same embodiment or example. Moreover, the specific features, structures, materials or characteristics described may be combined in any one or more embodiments or examples in a suitable manner.
[0189] Although the embodiments of the present invention have been shown and described above, it is to be understood that the above embodiments are exemplary and are not to be construed as limitations of the present invention. A person skilled in the art may change, modify, replace and vary the above embodiments within the scope of the present invention.
Claims
1. A method for analyzing explosion flame characteristics, characterized in that: include: Obtain image information of the explosion flame and determine the corresponding relationship between the image size and the actual size; Grayscale processing is performed on the image information of the explosion flame; Binarization is performed on the grayscale processed image information to extract the target flame image information from the explosion flame image information and the boundary of the target flame image; Traverse each pixel point in the binary target flame image information to obtain the position of the front edge of the target flame in the image; The actual position of the front face of the target flame is calculated by determining the correspondence between the image size and the actual size; The changing trend of flame front propagation speed, the changing trend of flame propagation acceleration and the average speed are calculated through the position of the flame front between multiple frames of images and the time interval between different frames of images; By calculating the ratio of flame pixels to total pixels, we can get the proportion of flame in the whole image. The flame area can be calculated by using the relationship between image size and actual size. By calculating the flame area of each frame image, we can get the change trend of the flame area. The gray value of the pixel with the largest gray value in the image is extracted, and the gray value is used as the brightness of the flame in the image. The change trend of the flame brightness is obtained according to the maximum gray value of multiple image frames.
2. The method according to claim 1, characterized in that The step of obtaining the image information of the explosion flame comprises: The experimental object is operated according to the preset experimental process, and the experimental conditions required for the experiment are set, and the experimental conditions include concentration, ignition delay time, dust spray pressure and ignition energy; While ignition is in progress, a high-speed camera placed in front of the window of the experimental device takes pictures at a certain frequency to obtain image information of the explosion flame.
3. The method according to claim 2, characterized in that Determining the correspondence between the image size and the actual size includes: According to the size of the experimental device window and the resolution of the image, the actual height represented by each pixel in the image information of the explosion flame is calculated.
4. The method according to claim 3, characterized in that The grayscale processing of the image information of the explosion flame comprises: The gamma correction algorithm is used to process the image information of the colored explosion flame to obtain the grayscale value, the grayscale values in different channels are weighted, and the weighted grayscale values are converted and stored in the corresponding two-dimensional array.
5. The method according to claim 4, characterized in that The binarization process is performed on the grayscale processed image information to extract the target flame image information from the explosion flame image information, including: Generate a grayscale histogram based on the grayscale values in the two-dimensional array and perform normalization to obtain a proportional histogram; Calculate the average grayscale of the image information of the explosion flame according to the ratio histogram; Iterate the grayscale value from 0 to X, and calculate the inter-class variance of the target flame and the background by the average grayscale; The gray value corresponding to the maximum inter-class variance is set as the threshold, and the image is binarized based on the threshold.
6. The method according to claim 5, characterized in that The boundary of the target flame image is extracted including: Use Gaussian filtering to smooth the binarized image and remove noise; Get the intensity gradient of the image; Eliminate false edge detection of images through non-maximum suppression method; The possible boundaries are determined by a double threshold method; Use the hysteresis method to track possible boundaries and then extract them; The extraction of the boundary comprises: Traverse each pixel of the binary image, set the pixel with gray value X as the reference point, search the pixels in the neighborhood direction around the reference point, and determine whether there is at least one point with pixel value 0 around the reference point. If so, the reference point is a boundary point, otherwise it is a non-boundary point.
7. An analysis device for explosion flame characteristics, characterized in that: The device comprises: Image acquisition module: used to obtain image information of explosion flames and determine the corresponding relationship between image size and actual size; Grayscale processing module: used to perform grayscale processing on the image information of explosion flame; Binarization processing module: used for binarization processing of the image information after grayscale processing, extracting the target flame image information from the image information of the explosion flame and extracting the boundary of the target flame image; Front-end determination module: used to traverse each pixel point in the binary target flame image information to obtain the position of the front-end of the target flame in the image; Actual position acquisition module: used to calculate the actual position of the front face of the target flame by determining the corresponding relationship between the image size and the actual size; Speed analysis module: used to calculate the change trend of flame front propagation speed, the change trend of flame propagation acceleration and the average speed through the position of the flame front between multiple frames and the time interval between different frames; Area analysis module: It is used to calculate the ratio of flame pixels to total pixels to obtain the proportion of flame in the entire image, and calculate the flame area based on the relationship between image size and actual size. By calculating the flame area of each frame of image, the change trend of the flame area can be obtained. Brightness analysis module: used to extract the gray value of the pixel with the largest gray value in the image, use the gray value as the brightness of the flame in the image, and obtain the change trend of the flame brightness based on the maximum gray value of multiple image frames.
8. An analysis device for explosion flame characteristics, characterized in that: include: A memory, wherein program instructions are stored in the memory; A controller, configured to execute program instructions stored in a memory to execute the method according to any one of claims 1 to 6.
Citation Information
Patent Citations
Method for counting propagation velocity of pipeline gas explosion flame
CN101661049A
Flame combustion state detection system and method
CN109614908A
