WO2014000427A1 - Method and device for detecting flame - Google Patents
Method and device for detecting flame Download PDFInfo
- Publication number
- WO2014000427A1 WO2014000427A1 PCT/CN2013/070026 CN2013070026W WO2014000427A1 WO 2014000427 A1 WO2014000427 A1 WO 2014000427A1 CN 2013070026 W CN2013070026 W CN 2013070026W WO 2014000427 A1 WO2014000427 A1 WO 2014000427A1
- Authority
- WO
- WIPO (PCT)
- Prior art keywords
- flame
- pixel
- candidate
- optical flow
- flame region
- Prior art date
Links
- 238000000034 method Methods 0.000 title claims abstract description 49
- 239000013598 vector Substances 0.000 claims abstract description 126
- 238000004422 calculation algorithm Methods 0.000 claims abstract description 33
- 238000004364 calculation method Methods 0.000 claims abstract description 23
- 230000003287 optical effect Effects 0.000 claims description 127
- 230000005484 gravity Effects 0.000 claims description 8
- 238000000926 separation method Methods 0.000 claims description 7
- 238000012545 processing Methods 0.000 claims description 6
- 230000009466 transformation Effects 0.000 claims description 5
- 108010001267 Protein Subunits Proteins 0.000 claims 1
- 230000004907 flux Effects 0.000 abstract 3
- 238000001514 detection method Methods 0.000 description 12
- 230000006870 function Effects 0.000 description 11
- 238000010586 diagram Methods 0.000 description 10
- 238000012544 monitoring process Methods 0.000 description 6
- 230000008569 process Effects 0.000 description 6
- 238000005516 engineering process Methods 0.000 description 5
- 238000006073 displacement reaction Methods 0.000 description 4
- 241001135931 Anolis Species 0.000 description 3
- 238000004458 analytical method Methods 0.000 description 3
- 230000008878 coupling Effects 0.000 description 3
- 238000010168 coupling process Methods 0.000 description 3
- 238000005859 coupling reaction Methods 0.000 description 3
- 238000012935 Averaging Methods 0.000 description 2
- 238000004891 communication Methods 0.000 description 2
- 238000012806 monitoring device Methods 0.000 description 2
- 230000001131 transforming effect Effects 0.000 description 2
- 230000008859 change Effects 0.000 description 1
- 238000001311 chemical methods and process Methods 0.000 description 1
- 238000006243 chemical reaction Methods 0.000 description 1
- 238000002485 combustion reaction Methods 0.000 description 1
- 238000013461 design Methods 0.000 description 1
- 238000011161 development Methods 0.000 description 1
- 239000000446 fuel Substances 0.000 description 1
- 238000009499 grossing Methods 0.000 description 1
- 238000012804 iterative process Methods 0.000 description 1
- 238000012986 modification Methods 0.000 description 1
- 230000004048 modification Effects 0.000 description 1
- 238000000638 solvent extraction Methods 0.000 description 1
- 230000003068 static effect Effects 0.000 description 1
- 238000007619 statistical method Methods 0.000 description 1
- 238000006467 substitution reaction Methods 0.000 description 1
- 238000000844 transformation Methods 0.000 description 1
Classifications
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06V—IMAGE OR VIDEO RECOGNITION OR UNDERSTANDING
- G06V10/00—Arrangements for image or video recognition or understanding
- G06V10/70—Arrangements for image or video recognition or understanding using pattern recognition or machine learning
- G06V10/74—Image or video pattern matching; Proximity measures in feature spaces
- G06V10/75—Organisation of the matching processes, e.g. simultaneous or sequential comparisons of image or video features; Coarse-fine approaches, e.g. multi-scale approaches; using context analysis; Selection of dictionaries
- G06V10/751—Comparing pixel values or logical combinations thereof, or feature values having positional relevance, e.g. template matching
Definitions
- the present invention relates to the field of information technology and, more particularly, to a method and apparatus for detecting a flame. Background technique
- a flame is a visible light or other physical manifestation that occurs during the chemical process in which a fuel and air are mixed and rapidly converted into a combustion product. Flames can bring many benefits, but they can be harmful if they are used carelessly. The most common is fire. Fires have always been a huge threat to the safety of people's lives and property. Being able to alert sudden fires in a timely manner is an effective way to reduce or avoid the damage caused by fire. In recent years, with the rapid development of computer vision technology, it has become possible to use this technology for early warning of fire, and some existing technologies have been applied. These technologies have shown good results in some indoor stable conditions, such as factories, hotels, houses, etc.
- the prior art mainly focuses on analyzing the color characteristics and the motion characteristics of the flame.
- the color feature analysis of the flame is to divide the color image collected by the monitoring device into red, green and blue RGB channels, and set some of these three channels for each pixel.
- the threshold condition is such that the pixel points satisfying these relationships are discriminated as flame pixel points, and constitute candidate regions, among which there are three primary color component difference methods, dynamic threshold methods, and the like.
- the target object is separated from the background by the motion characteristics of the target object, and the static object with flame color characteristics is excluded, and then geometric appearance, irregularity, flicker frequency and the like are calculated, one of which is Or a plurality of features for comprehensive judgment to achieve the purpose of flame detection in the video.
- Embodiments of the present invention provide a method and apparatus for detecting a flame, which are capable of accurately and stably detecting a flame.
- an embodiment of the present invention provides a method of detecting a flame, the method comprising: determining when a candidate flame region in the front frame image; performing real-time optical flow calculation on the candidate flame region based on a grid algorithm to obtain an optical flow vector of the pixel of the candidate flame region; and according to the optical flow vector of the pixel of the candidate flame region The distribution characteristics in all directions to determine if there is a flame.
- an embodiment of the present invention provides an apparatus for detecting a flame, the apparatus comprising: a determining module, configured to determine a candidate flame region in a current frame image; and a processing module, configured to perform the candidate flame region based on a grid algorithm Performing real-time optical flow calculation to obtain an optical flow vector of a pixel of the candidate flame region; and an identifying module configured to determine whether a flame exists according to a distribution characteristic of the optical flow vector of the pixel of the candidate flame region in each direction.
- the method and apparatus for detecting a flame calculates an optical flow vector of a pixel of a candidate flame region by real-time optical flow calculation based on a grid algorithm, and distributes the optical flow vector in each direction according to the optical flow vector.
- the characteristics determine the presence or absence of a flame and enable accurate and stable detection of the flame in a variety of complex or simple environments.
- FIG. 1 is a schematic flow chart of a method of detecting a flame according to an embodiment of the present invention.
- FIG. 2 is a schematic diagram of vector partitioning in accordance with an embodiment of the present invention.
- FIG 3 is a schematic illustration of a candidate flame region in accordance with an embodiment of the present invention.
- FIG. 4 is a schematic flow chart of a method for optical flow calculation according to an embodiment of the present invention.
- Figure 5 is a schematic block diagram of an apparatus for detecting a flame in accordance with an embodiment of the present invention.
- FIG. 6 is a schematic block diagram of an identification module in accordance with an embodiment of the present invention.
- Figure 7 is a schematic illustration of a scene of 20 flame detections in accordance with an embodiment of the present invention.
- FIG. 1 shows a schematic flow diagram of a method 100 of detecting a flame in accordance with an embodiment of the present invention. As shown in FIG. 1, the method 100 includes:
- the means for detecting the flame performs flame detection based on real-time optical flow calculations.
- the device for detecting the flame first determines the candidate flame region in the current frame image, and then performs real-time optical flow calculation based on the grid algorithm, obtains the optical flow vector of the pixel of the candidate flame region, and then distributes the characteristics according to the optical flow vector in each direction. To determine if there is a flame.
- the optical flow calculation based on the grid algorithm can obtain the optical flow vector of each pixel in real time, and the instability and expansion expansion of the flame determine that the distribution of the optical flow vector in the flame region is different from other objects.
- the characteristics of the optical flow vector are such that the flame can be accurately detected by statistically analyzing the direction distribution characteristics of the optical flow vector.
- an optical flow vector of a pixel of a candidate flame region is obtained by real-time optical flow calculation based on a grid algorithm, and whether a flame exists according to a distribution characteristic of the optical flow vector in each direction is determined. It is able to accurately and stably detect flames in a variety of complex or simple environments.
- the means for detecting the flame determines a candidate flame region in the current frame image.
- S110 includes:
- R is the red dot pixel value of the pixel
- G is the green channel pixel value of the pixel
- B is the blue channel pixel value of the pixel
- Rt is the red channel threshold
- S is the saturation of the pixel
- St is the saturation. value
- the device for detecting the flame performs RGB three-channel color separation on the current frame image of the monitoring video. If the pixel value of the RGB three-channel of a certain pixel in the current frame image satisfies the above condition, then determining The pixel is a pixel having a flame color characteristic, and then an area including all the pixels having the flame color feature is determined as the candidate flame region. For example, the smallest rectangular area containing all of the pixels having the flame color feature is determined as the candidate flame area for the next optical flow calculation.
- the device for detecting the flame performs real-time optical flow calculation on the candidate flame region based on a grid algorithm, and acquires an optical flow vector of the pixel of the candidate flame region.
- the optical flow vector ( 3,4 , u and V respectively represent the horizontal and vertical velocity components of the pixel point moving from the previous frame image to the next frame image.
- the image data of the candidate flame region of the image and the region at the same position in the previous frame image acquires the optical flow vector of the candidate flame region of the current frame image. The following describes in detail how to acquire the optical flow vector.
- an objective function is established based on two assumptions.
- the value of the optical flow vector reflects the real situation, the objective function should theoretically take the minimum value. Then, the optical flow vector can be transformed into a minimized objective function.
- the gray value consistency assumption is that the pixel gray value does not change much during the dt time.
- VI(x,y,t) VI(x,y,t + dt) ( 2 )
- the objective function can be:
- the embodiment of the present invention uses a Gauss-Seidel iterative algorithm based on a grid algorithm to solve an unknown quantity, the kth number of times
- the optical flow vector calculation based on the grid algorithm treats each point on the 2D image as a point on the grid. During the conversion from the fine grid to the coarse grid, the grid points are reduced by one and a half, and the grid size is increased. 1 times.
- the Gauss-Seidel iterative algorithm is used to solve the unknown quantity on the coarse grid, that is, after obtaining the exact solution, the solution is converted to the fine mesh.
- the limit operator uses the 4-point averaging method
- the continuation operator uses the interpolation method.
- the process of converting a coarse mesh to a fine mesh is a process in which the variable becomes large, using an interpolation method (ie, an continuation operator), for example, a vector of 1 point on the coarse mesh is known, and the corresponding fine mesh is placed on it. The four points are assigned to the point vector.
- the process of transforming a fine mesh to a coarse mesh is a process in which the variable becomes less, using a 4-point averaging method (ie, a limit operator), for example, a vector of 4 points on a fine mesh is known, and the four points are averaged. The value is assigned to a point on the corresponding coarse grid.
- V-type multigrid and the nonlinear multigrid algorithm are combined to obtain the fastest convergence speed without increasing the amount of calculation.
- Use h for the grid size and 2h for the coarse grid size are as follows:
- the device for detecting the flame uses each pixel point of the candidate flame region of the current frame image as a point on the grid, and obtains the candidate flame region by the iteration of the coarse mesh and the fine mesh.
- the optical flow vector for each pixel The Gauss-Seidel iterative algorithm based on the grid algorithm of the embodiment of the invention can quickly converge, so that the optical flow vector can be acquired in real time to detect the flame. Therefore, the method for detecting the flame of the embodiment of the invention has high real-time performance.
- the means for detecting the flame determines whether or not there is a flame based on a distribution characteristic of the optical flow vector of the pixel point of the candidate flame region in each direction.
- S130 includes:
- S132 Determine whether a flame exists according to whether the candidate flame region is a real flame region.
- the device for detecting the flame first determines whether the candidate region is a real flame region according to a distribution characteristic of the optical flow vector of the pixel point of the candidate flame region of the current frame image, that is, whether the real flame exists in the current frame image. The area is then determined whether a flame is present based on whether a real flame region exists in the current frame image.
- the means for detecting the flame determines whether the candidate flame region is a real flame region based on a distribution characteristic of the optical flow vector of the pixel point of the candidate flame region in each direction.
- the direction distribution of the optical flow vector can be divided into four regions, that is, the optical flow vector can be divided into four categories, for example, it can be divided as follows:
- the S131 includes: If the optical flow vector of ⁇ angle ⁇ is greater than the first predetermined threshold in the optical flow vector of the pixel of the candidate flame region, determining that the candidate flame region is a real flame region; or, if the candidate is in the candidate In the optical flow vector of the pixel of the flame region, the optical flow vector of ⁇ angle ⁇ occupies a specific gravity greater than the first predetermined threshold, and
- the ratio of the optical flow vector to the second predetermined threshold determines that the candidate flame region is the true flame region.
- the device for detecting the flame After acquiring the optical flow vector of the pixel of the candidate flame region, the device for detecting the flame counts the distribution characteristics of each optical flow vector in each direction, and determines the candidate according to whether the distribution characteristic meets the characteristics of the flame. Whether the flame area is a real flame area. Alternatively, if the specific gravity of the upward optical flow vector exceeds the first predetermined threshold, the candidate flame region may be determined to be a real flame region.
- the first predetermined threshold can be obtained from a large number of sample statistics in different environments.
- the true flame region may be further determined by combining the optical flow vector with the specific gravity to the left or the right, for example, if the proportion of the upward optical flow vector exceeds the first predetermined threshold, and the light to the left and right If the specific gravity of the flow vector exceeds a second predetermined threshold, then the candidate flame region can be determined to be a true flame region.
- the second predetermined threshold can also be obtained from a large number of sample statistics in different environments.
- the manner of determining the true flame region according to the distribution characteristics of the optical flow vector in various directions may have other transformation modes, for example, the ratio of the optical flow vector according to ⁇ ⁇ « ⁇ £? ⁇ ⁇
- optical flow vectors it may not be necessary to count all optical flow vectors. For example, if the size of an optical flow vector is less than a predetermined value, it is not necessary to count the optical flow vector, or to calculate the optical flow vector at some locations. These statistical methods are also intended to be within the scope of the present invention.
- the means for detecting the flame determines whether or not there is a flame based on whether or not the candidate flame region is a real flame region.
- the candidate flame region of the current frame image is the real flame region, that is, the current frame image has a real flame region.
- the means for detecting the flame may determine whether or not there is a flame based on whether the current frame image has a real flame region, or determine whether or not there is a flame according to the number of frames of the image of the real flame region in the predetermined frame number image.
- S132 includes: If the candidate flame zone is a true flame zone, then it is determined that a flame is present.
- S132 includes:
- the device for detecting the flame determines not only the flame according to whether the current frame image has a real flame region, but also the image of the image of the real flame region in the image within the predetermined number of frames L before the current frame image.
- Number 1 to determine if there is a flame.
- 1/L is greater than the third predetermined threshold, it is determined that there is a flame. That is, if the specific gravity of the number of frames of the real flame in the predetermined number of frames exceeds the third predetermined threshold, it is determined that there is a flame.
- the third predetermined threshold can also be obtained from a large number of sample statistics in different environments.
- the embodiment of the present invention determines the manner of the flame according to the first predetermined threshold, the second predetermined threshold, and the third predetermined threshold, that is, within the predetermined number of frames L, the statistics satisfy the first predetermined threshold and the second predetermined threshold.
- the ratio of the number of frames to the total number of frames L if the ratio is higher than the third predetermined threshold, determines that there is a real flame within the number L of frames, and the flame detection is completed.
- the device for detecting the flame performs color separation on the image obtained from the source video file, and determines a pixel point satisfying the following conditions as a pixel having a flame color characteristic (take 170, take 50),
- the source image is binarized and reconstructed by the above conditions, and the pixel that satisfies the condition is set to white, and vice versa.
- the minimum rectangular area containing all the white pixels is then framed, and the source image area corresponding to the rectangular area is determined as the candidate flame area (as shown in FIG. 3).
- the device for detecting the flame takes as input the image data of the determined candidate flame region and the region at the same position in the previous frame image, and performs real-time optical flow calculation based on the grid algorithm, each of the candidate flame regions.
- the pixel is used as a point on the grid, and the optical flow vector of each pixel of the candidate flame region is obtained by transforming the layer coarse grid and the fine mesh to obtain a light flow vector diagram.
- the optical flow vector map reflects the optical flow vector of each pixel, and stores the vector information with the image data of each pixel in the grayscale image.
- a vector diagram is drawn in units of a grid of 10*10 pixels, and each arrow in the vector diagram below FIG. 4 is a vector of the 10*10 pixel grid.
- the device for detecting the flame counts the distribution of the optical flow vectors of the respective pixels in the four directions as shown in FIG.
- the vector with the vector direction above accounts for nearly 60% of the global weight
- the vector with the vector direction to the left or the right accounts for nearly 30% of the global weight, which is consistent with the characteristics of the flame.
- the number of image frames existing in the real flame region according to the predetermined number of frames satisfies a predetermined threshold, and it is determined that there is a flame, and the flame detection is completed.
- an optical flow vector of a pixel of a candidate flame region is obtained by real-time optical flow calculation based on a grid algorithm, and whether a flame exists according to a distribution characteristic of the optical flow vector in each direction is determined. , able to accurately and stably detect the flame.
- FIGS. 1 through 4 A method of detecting a flame according to an embodiment of the present invention is described in detail above with reference to FIGS. 1 through 4, and an apparatus for detecting a flame according to an embodiment of the present invention will be described below with reference to FIGS. 5 and 6.
- Figure 5 shows a schematic block diagram of an apparatus 500 for detecting a flame in accordance with an embodiment of the present invention.
- the apparatus 500 includes:
- a determining module 510 configured to determine a candidate flame region in the current frame image
- the processing module 520 is configured to perform real-time optical flow calculation on the candidate flame region based on a grid algorithm, and acquire an optical flow vector of the pixel of the candidate flame region;
- the identifying module 530 is configured to determine whether a flame exists according to a distribution characteristic of the optical flow vector of the pixel point of the candidate flame region in each direction.
- the device for detecting a flame calculates an optical flow vector of a pixel of a candidate flame region by real-time optical flow calculation based on a grid algorithm, and distributes the light flow vector in each direction according to the optical flow vector. Determine if a flame is present and be able to accurately and stably detect the flame in a variety of complex or simple environments.
- the determining module 510 includes:
- a color separation unit configured to perform red, green, and blue RGB three-channel color separation on the current frame image, and obtain pixel values of three channels of each pixel of the current frame image
- a feature pixel determining unit configured to determine a pixel point that satisfies the following condition as a pixel point having a flame color characteristic
- R is the red dot pixel value of the pixel
- G is the green channel pixel value of the pixel
- B is the blue channel pixel value of the pixel
- Rt is the red channel threshold
- S is the saturation of the pixel
- St is the saturation.
- a candidate flame region determining unit is configured to determine an area including all pixel points having a flame color characteristic as the candidate flame region.
- the processing module 520 is specifically configured to: use each pixel point of the candidate flame region as a point on the mesh, and obtain the transformation iteration of the coarse mesh and the fine mesh to obtain The optical flow vector for each pixel of the candidate flame region.
- the Gauss-Seidel iterative algorithm based on the grid algorithm of the embodiment of the present invention can quickly converge, so that the optical flow vector can be acquired in real time to detect the flame. Therefore, the device for detecting the flame of the embodiment of the invention has high real-time performance.
- the identification module 530 includes: a determining unit 531, configured to determine, according to a distribution characteristic of optical flow vectors of pixel points of the candidate flame region in various directions, Whether the candidate flame region is a real flame region;
- the identifying unit 532 is configured to determine whether a flame exists according to whether the candidate flame region is a real flame region.
- the determining unit 531 includes:
- a first determining subunit configured to be in an optical flow vector of a pixel point of the candidate flame region
- the determining unit 531 includes:
- a second determining subunit configured to: in the optical flow vector of the pixel of the candidate flame region, the optical flow vector of ⁇ ⁇ angle occupies a specific gravity greater than a first predetermined threshold, and
- the proportion of the optical flow vector is greater than the second predetermined threshold, then the candidate flame region is determined to be the real flame region, and angle represents the optical flow vector The direction.
- the identifying unit 532 includes:
- the first identifying subunit is configured to determine whether there is a flame according to the number of frames 1 of the image in which the real flame region exists in the image within the predetermined number of frames L.
- the first identifying subunit is specifically configured to determine that a flame exists if 1/L is greater than a third predetermined threshold.
- the identifying unit 532 includes:
- the second identification subunit is configured to determine that there is a flame if the candidate flame region is a real flame region.
- the apparatus 500 for detecting a flame may correspond to an execution body of the method of detecting a flame in the embodiment of the present invention, and the above-described and other operations and/or functions of the respective modules in the apparatus 500 are respectively for implementing FIG. 1 to FIG. The corresponding flow of each method in 4, for brevity, will not be repeated here.
- the device for detecting a flame can improve the accuracy of detecting a flame by using a distribution characteristic of optical flow vectors of pixel points of candidate flame regions in various directions to improve the accuracy of detecting flames in various complicated or simple environments.
- the flame can be detected accurately and stably.
- Table 1 shows the results of flame detection of 20 scenes in the embodiment of the present invention and the flame detection technique in the prior art by establishing a hidden Markov model to characterize the flame flicker.
- Figure 7 is a schematic diagram of the 20 scenes.
- the 20 scene numbers are 1-20, where 1-14 contains the flame scene, as the positive sample, and 15-20 is the non-flame scene.
- the monitoring equipment of No. 1-4 is very stable without any displacement.
- Monitoring equipment No. 5-14 has slight displacement or large displacement.
- the prior art scheme In the case that the monitoring environment is relatively stable, the prior art scheme also has High detection rate. However, in the case where the monitoring environment is complicated or the monitoring device is slightly shaken, the detection accuracy of the prior art scheme is greatly reduced and there is a certain degree of false alarm (for example, in the scene 15, the monitoring equipment of the underground parking lot is slightly shaken, resulting in warning The light from the lamp is falsely reported as a flame). However, for the technical solution of the embodiment of the present invention, due to the particularity of the flame optical flow property, the detection accuracy and the extremely low false alarm rate are high in a simple or complicated scene.
- the method and apparatus for detecting a flame calculates an optical flow vector of a pixel point of a candidate flame region by real-time optical flow calculation based on a grid algorithm, and determines whether the optical flow vector has a distribution characteristic in each direction according to the optical flow vector.
- a flame that can accurately and stably detect the flame in a variety of complex or simple environments.
- the term "and/or” is merely an association describing the associated object, indicating that there may be three relationships.
- a and / or B can mean: A exists separately, there are A and B, and there are three cases of B alone.
- the character "/" in this article generally means that the contextual object is an "or" relationship.
- the disclosed systems, devices, and methods may be implemented in other ways.
- the device embodiments described above are merely illustrative.
- the division of the unit is only a logical function division.
- there may be another division manner for example, multiple units or components may be combined or Can be integrated into another system, or some features can be ignored, or not executed.
- the mutual coupling or direct coupling or communication connection shown or discussed may be an indirect coupling or communication connection through some interface, device or unit, also It can be electrical, mechanical or other form of connection.
- the components displayed by the unit may or may not be physical units, that is, may be located in one place, or may be distributed to multiple network units. Some or all of the units may be selected according to actual needs to achieve the objectives of the embodiments of the present invention.
- each functional unit in each embodiment of the present invention may be integrated into one processing unit, or each unit may exist physically separately, or two or more units may be integrated into one unit.
- the above integrated unit can be implemented in the form of hardware or in the form of a software functional unit.
- the integrated unit if implemented in the form of a software functional unit and sold or used as a standalone product, may be stored in a computer readable storage medium.
- the technical solution of the present invention contributes in essence or to the prior art, or all or part of the technical solution may be embodied in the form of a software product stored in a storage medium.
- a number of instructions are included to cause a computer device (which may be a personal computer, server, or network device, etc.) to perform all or part of the steps of the methods described in various embodiments of the present invention.
- the foregoing storage medium includes: a U disk, a mobile hard disk, a read-only memory (ROM), a random access memory (RAM), a magnetic disk or an optical disk, and the like, which can store program codes. .
Landscapes
- Engineering & Computer Science (AREA)
- Computer Vision & Pattern Recognition (AREA)
- Theoretical Computer Science (AREA)
- Medical Informatics (AREA)
- Computing Systems (AREA)
- Databases & Information Systems (AREA)
- Evolutionary Computation (AREA)
- General Health & Medical Sciences (AREA)
- Artificial Intelligence (AREA)
- Software Systems (AREA)
- Health & Medical Sciences (AREA)
- Physics & Mathematics (AREA)
- General Physics & Mathematics (AREA)
- Multimedia (AREA)
- Fire-Detection Mechanisms (AREA)
- Photometry And Measurement Of Optical Pulse Characteristics (AREA)
Abstract
Disclosed are a method and a device for detecting a flame. The method comprises: determining a candidate flame area in a current frame image; performing real-time luminous flux calculation on the candidate flame area based on a grid algorithm, to obtain a luminous flux vector of a pixel point of the candidate flame area; and determining whether a flame exists according to distribution characteristics of the luminous flux vector of the pixel point of the candidate flame area in each direction. The method and the device for detecting a flame of embodiments of the present invention are capable of accurately and stably detecting a flame in various complex or simple environments.
Description
检测火焰的方法和装置 Method and device for detecting flame
本申请要求于 2012 年 06 月 29 日提交中国专利局、 申请号为 201210219956.1、 发明名称为 "检测火焰的方法和装置" 的中国专利申请的优 先权, 其全部内容通过引用结合在本申请中。 The present application claims priority to Chinese Patent Application No. 201210219956.1, entitled "Method and Apparatus for Detecting Flames", filed on Jun. 29, 2012, the entire contents of which is incorporated herein by reference.
技术领域 Technical field
本发明涉及信息技术领域, 并且更具体地, 涉及检测火焰的方法和装置。 背景技术 The present invention relates to the field of information technology and, more particularly, to a method and apparatus for detecting a flame. Background technique
火焰是燃料和空气混合后迅速转变为燃烧产物的化学过程中出现的可见 光或其他的物理表现形式。 火焰可以给人带来许多益处,但使用不慎却亦可以 害人至深, 最常见的就是火灾。 火灾一直都是人民生命财产安全的巨大威胁之 一,能够及时地对突发性火灾进行报警是减小或避免火灾带来的损失的有效方 法。 近年来, 随着计算机视觉技术的快速发展, 利用该技术对火灾的预警成为 了可能, 并且已有一些现有技术得到了应用。这些技术在一些室内具有稳定条 件的场合展现出了良好的效果, 如工厂、 宾馆、 住宅等。 A flame is a visible light or other physical manifestation that occurs during the chemical process in which a fuel and air are mixed and rapidly converted into a combustion product. Flames can bring many benefits, but they can be harmful if they are used carelessly. The most common is fire. Fires have always been a huge threat to the safety of people's lives and property. Being able to alert sudden fires in a timely manner is an effective way to reduce or avoid the damage caused by fire. In recent years, with the rapid development of computer vision technology, it has become possible to use this technology for early warning of fire, and some existing technologies have been applied. These technologies have shown good results in some indoor stable conditions, such as factories, hotels, houses, etc.
现有技术主要集中在分析火焰颜色特征和运动特性上,火焰的颜色特征分 析是将监控设备釆集到的彩色图像划分为红绿蓝 RGB通道, 对每个像素点的 这三个通道设置一些阔值条件,使得满足这些关系的像素点被判别为火焰像素 点, 并组成候选区域, 其中有三基色分量差分法、 动态阔值法等。 而在分析火 焰运动特性上,通过目标物体运动特性使其与背景相分离,排除静止的具有火 焰颜色特性的物体, 并随后进行几何外型、 不规则性、 闪烁频率等计算, 对其 中一项或多项特征进行综合判断, 来达到视频中火焰检测的目的。但对于火焰 的几何外型、 不规则性, 由于在一些开放性的场景: 旷野、 森林、 街道等地方 存在着复杂的外在环境(例如, 露天场景中出现的大风), 使得火焰的生长特 性不能仅由二维图像上的几何外形、 不规则性等来判断。 因此, 现有的火焰检 测方法的准确性不能得到保证。 The prior art mainly focuses on analyzing the color characteristics and the motion characteristics of the flame. The color feature analysis of the flame is to divide the color image collected by the monitoring device into red, green and blue RGB channels, and set some of these three channels for each pixel. The threshold condition is such that the pixel points satisfying these relationships are discriminated as flame pixel points, and constitute candidate regions, among which there are three primary color component difference methods, dynamic threshold methods, and the like. In the analysis of the flame motion characteristics, the target object is separated from the background by the motion characteristics of the target object, and the static object with flame color characteristics is excluded, and then geometric appearance, irregularity, flicker frequency and the like are calculated, one of which is Or a plurality of features for comprehensive judgment to achieve the purpose of flame detection in the video. However, for the geometric appearance and irregularity of the flame, due to the open environment in some open scenes: wilderness, forests, streets, etc. (for example, strong winds appearing in open air scenes), the growth characteristics of the flame It cannot be judged only by the geometric shape, irregularity, etc. on the two-dimensional image. Therefore, the accuracy of existing flame detection methods cannot be guaranteed.
发明内容 Summary of the invention
本发明实施例提供了一种检测火焰的方法和装置,能够准确稳定地检测火 焰。 Embodiments of the present invention provide a method and apparatus for detecting a flame, which are capable of accurately and stably detecting a flame.
一方面, 本发明实施例提供了一种检测火焰的方法, 该方法包括: 确定当
前帧图像中的候选火焰区域;基于网格算法对该候选火焰区域进行实时光流计 算, 获取该候选火焰区域的像素点的光流矢量; 根据该候选火焰区域的像素点 的光流矢量在各个方向上的分布特性, 确定是否存在火焰。 In one aspect, an embodiment of the present invention provides a method of detecting a flame, the method comprising: determining when a candidate flame region in the front frame image; performing real-time optical flow calculation on the candidate flame region based on a grid algorithm to obtain an optical flow vector of the pixel of the candidate flame region; and according to the optical flow vector of the pixel of the candidate flame region The distribution characteristics in all directions to determine if there is a flame.
另一方面, 本发明实施例提供了一种检测火焰的装置, 该装置包括: 确定 模块, 用于确定当前帧图像中的候选火焰区域; 处理模块, 用于基于网格算法 对该候选火焰区域进行实时光流计算,获取该候选火焰区域的像素点的光流矢 量; 识别模块, 用于根据该候选火焰区域的像素点的光流矢量在各个方向上的 分布特性, 确定是否存在火焰。 In another aspect, an embodiment of the present invention provides an apparatus for detecting a flame, the apparatus comprising: a determining module, configured to determine a candidate flame region in a current frame image; and a processing module, configured to perform the candidate flame region based on a grid algorithm Performing real-time optical flow calculation to obtain an optical flow vector of a pixel of the candidate flame region; and an identifying module configured to determine whether a flame exists according to a distribution characteristic of the optical flow vector of the pixel of the candidate flame region in each direction.
基于上述技术方案, 本发明实施例的检测火焰的方法和装置,通过基于网 格算法的实时光流计算获取候选火焰区域的像素点的光流矢量,并根据光流矢 量在各个方向上的分布特性确定是否存在火焰,能够在各种复杂或简单的环境 中准确稳定地检测火焰。 Based on the above technical solution, the method and apparatus for detecting a flame according to an embodiment of the present invention calculates an optical flow vector of a pixel of a candidate flame region by real-time optical flow calculation based on a grid algorithm, and distributes the optical flow vector in each direction according to the optical flow vector. The characteristics determine the presence or absence of a flame and enable accurate and stable detection of the flame in a variety of complex or simple environments.
附图说明 DRAWINGS
为了更清楚地说明本发明实施例的技术方案,下面将对本发明实施例中所 需要使用的附图作简单地介绍, 显而易见地, 下面描述中的附图仅仅是本发明 的一些实施例,对于本领域普通技术人员来讲,在不付出创造性劳动的前提下, 还可以根据这些附图获得其他的附图。 In order to more clearly illustrate the technical solutions of the embodiments of the present invention, the drawings used in the embodiments of the present invention will be briefly described below. It is obvious that the drawings in the following description are only some embodiments of the present invention. Those skilled in the art can also obtain other drawings based on these drawings without paying any creative work.
图 1是根据本发明实施例的检测火焰的方法的示意性流程图。 1 is a schematic flow chart of a method of detecting a flame according to an embodiment of the present invention.
图 2是根据本发明实施例的矢量划分的示意图。 2 is a schematic diagram of vector partitioning in accordance with an embodiment of the present invention.
图 3是根据本发明实施例的候选火焰区域的示意图。 3 is a schematic illustration of a candidate flame region in accordance with an embodiment of the present invention.
图 4是才艮据本发明实施例的光流计算的方法的示意性流程图。 4 is a schematic flow chart of a method for optical flow calculation according to an embodiment of the present invention.
图 5是根据本发明实施例的检测火焰的装置的示意性框图。 Figure 5 is a schematic block diagram of an apparatus for detecting a flame in accordance with an embodiment of the present invention.
图 6是根据本发明实施例的识别模块的示意性框图。 6 is a schematic block diagram of an identification module in accordance with an embodiment of the present invention.
图 7是根据本发明实施例的 20个火焰检测的场景的示意图。 Figure 7 is a schematic illustration of a scene of 20 flame detections in accordance with an embodiment of the present invention.
具体实施方式 detailed description
下面将结合本发明实施例中的附图,对本发明实施例中的技术方案进行清 楚、 完整地描述, 显然, 所描述的实施例是本发明的一部分实施例, 而不是全 部实施例。基于本发明中的实施例, 本领域普通技术人员在没有作出创造性劳 动的前提下所获得的所有其他实施例, 都应属于本发明保护的范围。
图 1示出了根据本发明实施例的检测火焰的方法 100的示意性流程图。如 图 1所示, 该方法 100包括: The technical solutions in the embodiments of the present invention are clearly and completely described in the following with reference to the accompanying drawings in the embodiments of the present invention. It is obvious that the described embodiments are a part of the embodiments of the present invention, and not all embodiments. All other embodiments obtained by a person of ordinary skill in the art based on the embodiments of the present invention without creative efforts shall fall within the scope of the present invention. FIG. 1 shows a schematic flow diagram of a method 100 of detecting a flame in accordance with an embodiment of the present invention. As shown in FIG. 1, the method 100 includes:
5110, 确定当前帧图像中的候选火焰区域; 5110, determining a candidate flame region in the current frame image;
S120,基于网格算法对该候选火焰区域进行实时光流计算,获取该候选火 焰区域的像素点的光流矢量; S120, performing real-time optical flow calculation on the candidate flame region based on a grid algorithm, and acquiring an optical flow vector of the pixel of the candidate flame region;
S130,根据该候选火焰区域的像素点的光流矢量在各个方向上的分布特性, 确定是否存在火焰。 S130. Determine whether a flame exists according to a distribution characteristic of the optical flow vector of the pixel point of the candidate flame region in each direction.
在本发明实施例中, 检测火焰的装置基于实时的光流计算进行火焰检测。 检测火焰的装置首先确定当前帧图像中的候选火焰区域,然后基于网格算法进 行实时光流计算, 获取候选火焰区域的像素点的光流矢量, 然后根据光流矢量 在各个方向上的分布特性,确定是否存在火焰。基于网格算法的光流计算能够 实时地得到各像素点的光流矢量,而火焰的不稳定性及扩张膨胀性决定了火焰 区域的光流矢量在各方向上的分布具有不同于其他物体的光流矢量的特性,这 样, 通过统计光流矢量的方向分布特性, 能够准确地检测火焰。 In an embodiment of the invention, the means for detecting the flame performs flame detection based on real-time optical flow calculations. The device for detecting the flame first determines the candidate flame region in the current frame image, and then performs real-time optical flow calculation based on the grid algorithm, obtains the optical flow vector of the pixel of the candidate flame region, and then distributes the characteristics according to the optical flow vector in each direction. To determine if there is a flame. The optical flow calculation based on the grid algorithm can obtain the optical flow vector of each pixel in real time, and the instability and expansion expansion of the flame determine that the distribution of the optical flow vector in the flame region is different from other objects. The characteristics of the optical flow vector are such that the flame can be accurately detected by statistically analyzing the direction distribution characteristics of the optical flow vector.
因此, 本发明实施例的检测火焰的方法,通过基于网格算法的实时光流计 算获取候选火焰区域的像素点的光流矢量,并根据光流矢量在各个方向上的分 布特性确定是否存在火焰,能够在各种复杂或简单的环境中准确稳定地检测火 焰。 Therefore, in the method for detecting a flame according to an embodiment of the present invention, an optical flow vector of a pixel of a candidate flame region is obtained by real-time optical flow calculation based on a grid algorithm, and whether a flame exists according to a distribution characteristic of the optical flow vector in each direction is determined. It is able to accurately and stably detect flames in a variety of complex or simple environments.
在 S110中, 检测火焰的装置确定当前帧图像中的候选火焰区域。 In S110, the means for detecting the flame determines a candidate flame region in the current frame image.
由于火焰的特殊颜色是区别于其他物体的重要特征,本发明实施例通过对 图像进行颜色分析获取候选火焰区域。 可选地, S110包括: Since the special color of the flame is an important feature that distinguishes it from other objects, the embodiment of the present invention obtains a candidate flame region by performing color analysis on the image. Optionally, S110 includes:
5111 , 对该当前帧图像进行红绿蓝 RGB三通道颜色分离, 获取该当前帧 图像的每个像素点三个通道的像素值; 5111, performing red, green, and blue RGB three-channel color separation on the current frame image, and acquiring pixel values of three channels of each pixel of the current frame image;
5112, 将满足以下条件的像素点确定为具有火焰颜色特征的像素点, 5112, determining a pixel point that satisfies the following condition as a pixel point having a flame color characteristic,
R > Rt, R > R t ,
R > G > B, R > G > B,
S > (255 - R) ^ St / Rt , S > (255 - R) ^ S t / R t ,
其中, R表示像素点红色通道像素值, G表示像素点绿色通道像素值, B 表示像素点蓝色通道像素值, Rt表示红色通道阔值, S表示像素点的饱和度, St表示饱和度阔值;
S113 ,将包含所有具有火焰颜色特征的像素点的区域确定为该候选火焰区 域。 Where R is the red dot pixel value of the pixel, G is the green channel pixel value of the pixel, B is the blue channel pixel value of the pixel, Rt is the red channel threshold, S is the saturation of the pixel, and St is the saturation. value; S113. Determine an area including all pixel points having a flame color feature as the candidate flame area.
具体而言, 在本发明实施例中,检测火焰的装置对监控视频的当前帧图像 进行 RGB三通道颜色分离,若当前帧图像中某一像素点 RGB三通道的像素值 满足上述条件, 则确定该像素点为具有火焰颜色特性的像素点, 然后, 将包含 所有具有火焰颜色特征的像素点的区域确定为候选火焰区域。例如,将包含所 有具有火焰颜色特征的像素点的最小矩形区域确定为候选火焰区域,以便于进 行下一步的光流计算。 Specifically, in the embodiment of the present invention, the device for detecting the flame performs RGB three-channel color separation on the current frame image of the monitoring video. If the pixel value of the RGB three-channel of a certain pixel in the current frame image satisfies the above condition, then determining The pixel is a pixel having a flame color characteristic, and then an area including all the pixels having the flame color feature is determined as the candidate flame region. For example, the smallest rectangular area containing all of the pixels having the flame color feature is determined as the candidate flame area for the next optical flow calculation.
在 S120 , 检测火焰的装置基于网格算法对该候选火焰区域进行实时光流 计算, 获取该候选火焰区域的像素点的光流矢量。 At S120, the device for detecting the flame performs real-time optical flow calculation on the candidate flame region based on a grid algorithm, and acquires an optical flow vector of the pixel of the candidate flame region.
光流矢量(¾, 的 u和 V分别表示像素点从上一帧图像移动到下一帧图像 的过程中的水平和竖直速度分量。 在本发明实施例中, 可选地, 根据当前帧图 像的候选火焰区域和上一帧图像中同一位置的区域的图像数据,获取当前帧图 像的候选火焰区域的光流矢量 ^, 。 下面详细描述如何获取光流矢量 , 。 The optical flow vector ( 3,4 , u and V respectively represent the horizontal and vertical velocity components of the pixel point moving from the previous frame image to the next frame image. In the embodiment of the present invention, optionally, according to the current frame The image data of the candidate flame region of the image and the region at the same position in the previous frame image acquires the optical flow vector of the candidate flame region of the current frame image. The following describes in detail how to acquire the optical flow vector.
首先根据两个假设来建立一个目标函数,当光流矢量取值反映真实情况的 时候, 该目标函数理论上应该取最小值。 那么, 求光流矢量就可以转化为最小 化目标函数来实现。 First, an objective function is established based on two assumptions. When the value of the optical flow vector reflects the real situation, the objective function should theoretically take the minimum value. Then, the optical flow vector can be transformed into a minimized objective function.
灰度值一致性假设, 即在 dt时间内, 像素灰度值变化不大。 用数学公式 描述为: The gray value consistency assumption is that the pixel gray value does not change much during the dt time. Use the mathematical formula to describe as:
I(x, y, t) = I(x,y,t + dt) ( 1 ) 梯度一致性假设, 即在 dt时间内, 各点的梯度应平滑变化, 用数学公式 描述为: I(x, y, t) = I(x, y, t + dt) ( 1 ) The gradient consistency assumption, that is, the gradient of each point should be changed smoothly during dt time, which is described by mathematical formula as:
VI(x,y,t) = VI(x,y,t + dt) ( 2 ) 根据上述两个一致性假设, 构建目标函数。 例如, 该目标函数可以为: VI(x,y,t) = VI(x,y,t + dt) ( 2 ) Construct the objective function according to the above two consistency assumptions. For example, the objective function can be:
E( ,v) = f (wTJ (V )w + (\ V \2 + \ Vv \2))dxdy ( 3 ) 为以 p为标准差的平滑算子, J 为结构张量, V3 /表示时空梯度向量 ( y Y ^ w( _y) = (M( _y), v( _y),l)7是一个描述位移的向量场, "是一个可 调系数。
E( ,v) = f (w T J (V )w + (\ V \ 2 + \ Vv \ 2 ))dxdy ( 3 ) is the smoothing operator with p as the standard deviation, J is the structural tensor, V 3 / denotes the spatiotemporal gradient vector ( y Y ^ w( _y) = (M( _y), v( _y), l) 7 is a vector field describing the displacement, "is a tunable coefficient.
对等式(3)求最小值, 光流矢量为目标函数取最小值时对应的 C 对等式( 3 )使用拉格朗日法则得: Find the minimum value for equation (3), and the corresponding C equation for the optical flow vector to take the minimum value of the objective function (3) using Lagrangian law:
(5)为非线性方程组, 为了求解该方程组, 将其转换为线性方程组: ∑ (JUiui+Jl2ivi+Jni) = 0 (5) For a system of nonlinear equations, to solve the system of equations, convert it to a system of linear equations: ∑ (J Ui u i +J l2i v i +J ni ) = 0
a a
为了快速收敛, 本发明实施例釆用基于网格算法的 Gauss-Seidel迭代算法 求解未知量,第 k次迭 For fast convergence, the embodiment of the present invention uses a Gauss-Seidel iterative algorithm based on a grid algorithm to solve an unknown quantity, the kth number of times
基于网格算法的光流矢量计算将 2 维图像上每一个点当作网格上的一个 点, 从细网格向粗网格转换的过程中, 网格点减少 1半, 网格尺寸增加 1倍。 在粗网格上通过上述 Gauss-Seidel迭代算法求解出未知量, 即获得精确解后, 转换到细网格上的解。 在网格算法迭代过程中, 限制算子釆用 4点平均法, 延 拓算子釆用插值法。粗网格向细网格的转换过程是变量变多的过程,使用插值 法(即延拓算子), 例如, 已知粗网格上 1个点的矢量, 将其对应的细网格上
的 4个点均赋值为该点矢量。 细网格向粗网格的转换过程是变量变少的过程, 使用 4点平均法(即限制算子), 例如, 已知细网格上 4个点的矢量, 将该 4 个点求平均值赋值给对应的粗网格上的一个点。 The optical flow vector calculation based on the grid algorithm treats each point on the 2D image as a point on the grid. During the conversion from the fine grid to the coarse grid, the grid points are reduced by one and a half, and the grid size is increased. 1 times. The Gauss-Seidel iterative algorithm is used to solve the unknown quantity on the coarse grid, that is, after obtaining the exact solution, the solution is converted to the fine mesh. In the iterative process of the grid algorithm, the limit operator uses the 4-point averaging method, and the continuation operator uses the interpolation method. The process of converting a coarse mesh to a fine mesh is a process in which the variable becomes large, using an interpolation method (ie, an continuation operator), for example, a vector of 1 point on the coarse mesh is known, and the corresponding fine mesh is placed on it. The four points are assigned to the point vector. The process of transforming a fine mesh to a coarse mesh is a process in which the variable becomes less, using a 4-point averaging method (ie, a limit operator), for example, a vector of 4 points on a fine mesh is known, and the four points are averaged. The value is assigned to a point on the corresponding coarse grid.
具体地, 融合 V型多重网格和非线性多重网格算法, 以在不增加计算量 的情况下获取最快收敛速度。 用 h表示网格尺寸, 2h表示粗网格尺寸。 算法 步骤如下: Specifically, the V-type multigrid and the nonlinear multigrid algorithm are combined to obtain the fastest convergence speed without increasing the amount of calculation. Use h for the grid size and 2h for the coarse grid size. The algorithm steps are as follows:
1. 初始化数据。 1. Initialize the data.
2. 如果当前网格为最粗网格,则用 Gauss-Seidel算法获取本层网格的未知 向量的解; 2. If the current mesh is the coarsest mesh, use the Gauss-Seidel algorithm to obtain the solution of the unknown vector of the layer mesh;
否则, 执行: Otherwise, execute:
1) 在 h网格上, 使用 Gauss-Seidel算法迭代, 获取初始解; 1) On the h grid, iterate using the Gauss-Seidel algorithm to obtain the initial solution;
2) 计算 h层网格上的余量, ue, ve; 2) Calculate the margin on the h-layer grid, ue, ve;
3)执行限制算子, 获取余量限制; 3) Execute the limit operator to obtain the margin limit;
4)设置 2h层网格未知量为 0; 4) Set the 2h layer mesh unknown to 0;
5)执行 Gauss-Seidel迭代算法, 获得 网格上的解; 5) Execute the Gauss-Seidel iterative algorithm to obtain the solution on the grid;
6)执行延拓算子, 获取 h网格层的解; 6) Execute the continuation operator to obtain the solution of the h mesh layer;
7) 更新解; 7) update the solution;
8)执行平滑迭代, 以减少延拓算子引进的误差; 8) Perform a smooth iteration to reduce the error introduced by the continuation operator;
9) 计算 h层的余量; 9) Calculate the margin of the h layer;
10) 再次执行限制算子, 获取限制余量; 10) Execute the restriction operator again to obtain the limit margin;
11)设置 2h层网格未知量为 0; 11) Set the 2h layer mesh unknown to 0;
12) 获取残差, 通过求解 2h层网格层解; 12) Get the residual by solving the 2h layer mesh layer solution;
13)执行延拓算子, 获取 h网格层的解; 13) executing an continuation operator to obtain a solution of the h mesh layer;
14) 更新解; 14) update the solution;
15)执行平滑迭代, 以减少延拓算子引进的误差。 15) Perform a smooth iteration to reduce the error introduced by the continuation operator.
3. 若迭代次数完成, 退出; 否则, 返回步骤 2。 3. If the number of iterations is complete, exit; otherwise, return to step 2.
在本发明实施例中,检测火焰的装置将当前帧图像的候选火焰区域的每一 个像素点作为网格上的一个点, 通过粗网格与细网格的转换迭代, 获取该候选 火焰区域的每一个像素点的光流矢量。
本发明实施例的基于网格算法的 Gauss-Seidel迭代算法能够快速收敛, 从 而能够实时地获取光流矢量以便于检测火焰, 因此, 本发明实施例的检测火焰 的方法具有艮高的实时性。 In the embodiment of the present invention, the device for detecting the flame uses each pixel point of the candidate flame region of the current frame image as a point on the grid, and obtains the candidate flame region by the iteration of the coarse mesh and the fine mesh. The optical flow vector for each pixel. The Gauss-Seidel iterative algorithm based on the grid algorithm of the embodiment of the invention can quickly converge, so that the optical flow vector can be acquired in real time to detect the flame. Therefore, the method for detecting the flame of the embodiment of the invention has high real-time performance.
在 S130中, 检测火焰的装置根据该候选火焰区域的像素点的光流矢量在 各个方向上的分布特性, 确定是否存在火焰。 In S130, the means for detecting the flame determines whether or not there is a flame based on a distribution characteristic of the optical flow vector of the pixel point of the candidate flame region in each direction.
火焰的不稳定性及扩张膨胀性决定了火焰区域的光流矢量在各方向上的 分布具有不同于其他物体的光流矢量的特性。 因此,检测火焰的装置可以根据 候选火焰区域的像素点的光流矢量在各个方向上的分布特性,确定是否存在火 焰。 可选地, S130包括: The instability of the flame and the expansion expansion determine the distribution of the optical flow vector in the flame region in all directions with characteristics different from those of other objects. Therefore, the means for detecting the flame can determine whether or not there is a flame based on the distribution characteristics of the optical flow vectors of the pixel points of the candidate flame region in various directions. Optionally, S130 includes:
S131 ,根据该候选火焰区域的像素点的光流矢量在各个方向上的分布特性, 确定该候选火焰区域是否为真实火焰区域; S131. Determine, according to a distribution characteristic of the optical flow vector of the pixel point of the candidate flame region in each direction, whether the candidate flame region is a real flame region;
S132 , 根据该候选火焰区域是否为真实火焰区域, 确定是否存在火焰。 检测火焰的装置首先根据当前帧图像的候选火焰区域的像素点的光流矢 量在各个方向上的分布特性,确定该候选区域是否为真实火焰区域,也即确定 该当前帧图像中是否存在真实火焰区域,然后根据该当前帧图像中是否存在真 实火焰区域, 确定是否存在火焰。 S132. Determine whether a flame exists according to whether the candidate flame region is a real flame region. The device for detecting the flame first determines whether the candidate region is a real flame region according to a distribution characteristic of the optical flow vector of the pixel point of the candidate flame region of the current frame image, that is, whether the real flame exists in the current frame image. The area is then determined whether a flame is present based on whether a real flame region exists in the current frame image.
在 S131中, 检测火焰的装置根据该候选火焰区域的像素点的光流矢量在 各个方向上的分布特性, 确定该候选火焰区域是否为真实火焰区域。 In S131, the means for detecting the flame determines whether the candidate flame region is a real flame region based on a distribution characteristic of the optical flow vector of the pixel point of the candidate flame region in each direction.
如图 2所示, 光流矢量的方向分布可以分为四个区域,也即可以将光流矢 量划分为四大类, 例如, 可以按照下面的方式划分: As shown in Fig. 2, the direction distribution of the optical flow vector can be divided into four regions, that is, the optical flow vector can be divided into four categories, for example, it can be divided as follows:
1 )右方, -— < anole <— 1) Right, -— < anole <—
4 4 4 4
、 、 , ,
2 ) 上万, 2) Tens of thousands,
3 )左方, ― < anole≤ π ^ - π < anole≤ -— 3) Left, ― < anole≤ π ^ - π < anole≤ -—
4 4 4 4
3)71 j π 3) 71 j π
4 ) 下万, < angle <—— 4) tens of thousands, < angle < -
4 4 4 4
其中, angle表示光流矢量的方向。 Where angle represents the direction of the optical flow vector.
考虑到火焰的特性, 火焰区域的光流矢量向上的会最多, 其次是向左和向 右的。 因此, 可选地, S131包括:
若在该候选火焰区域的像素点的光流矢量中, ≤ angle < 的光流矢量 所占的比重大于第一预定阔值,则确定该候选火焰区域为真实火焰区域;或者, 若在该候选火焰区域的像素点的光流矢量中, ≤ angle < 的光流矢量 所占的比重大于第一预定阔值, 并且, Considering the characteristics of the flame, the optical flow vector in the flame region will be the most upward, followed by the left and right. Therefore, optionally, the S131 includes: If the optical flow vector of ≤ angle < is greater than the first predetermined threshold in the optical flow vector of the pixel of the candidate flame region, determining that the candidate flame region is a real flame region; or, if the candidate is in the candidate In the optical flow vector of the pixel of the flame region, the optical flow vector of ≤ angle < occupies a specific gravity greater than the first predetermined threshold, and
-— < angle <— < angle < r或 - π < angle <―"―的光流矢量所占的比 重大于第二预定阔值, 则确定该候选火焰区域为真实火焰区域。 - - < angle < - < angle < r or - π < angle <―" - The ratio of the optical flow vector to the second predetermined threshold determines that the candidate flame region is the true flame region.
具体而言, 在获取了候选火焰区域的像素点的光流矢量后,检测火焰的装 置统计各光流矢量在各个方向上的分布特性,再根据该分布特性是否符合火焰 的特性, 确定该候选火焰区域是否为真实火焰区域。 可选地, 若向上的光流矢 量的比重超过第一预定阔值, 则可以确定该候选火焰区域为真实火焰区域。 第 一预定阔值可以通过大量的不同环境下的样本统计获得。 可选地,还可以再结 合光流矢量向左方或右方的比重确定真实火焰区域, 例如, 若向上的光流矢量 的比重超过第一预定阔值, 并且, 向左和向右的光流矢量的比重超过第二预定 阔值, 则可以确定该候选火焰区域为真实火焰区域。 同样地, 第二预定阔值也 可以通过大量的不同环境下的样本统计获得。 Specifically, after acquiring the optical flow vector of the pixel of the candidate flame region, the device for detecting the flame counts the distribution characteristics of each optical flow vector in each direction, and determines the candidate according to whether the distribution characteristic meets the characteristics of the flame. Whether the flame area is a real flame area. Alternatively, if the specific gravity of the upward optical flow vector exceeds the first predetermined threshold, the candidate flame region may be determined to be a real flame region. The first predetermined threshold can be obtained from a large number of sample statistics in different environments. Optionally, the true flame region may be further determined by combining the optical flow vector with the specific gravity to the left or the right, for example, if the proportion of the upward optical flow vector exceeds the first predetermined threshold, and the light to the left and right If the specific gravity of the flow vector exceeds a second predetermined threshold, then the candidate flame region can be determined to be a true flame region. Similarly, the second predetermined threshold can also be obtained from a large number of sample statistics in different environments.
应理解,根据光流矢量在各个方向上的分布特性确定真实火焰区域的方式 还可以有其他变换方式, 例如, 可以根据^≤ «^£?≤ ^的光流矢量所占的比 It should be understood that the manner of determining the true flame region according to the distribution characteristics of the optical flow vector in various directions may have other transformation modes, for example, the ratio of the optical flow vector according to ^ ≤ «^£? ≤ ^
3 3 3 3
重确定 , 所有其他的变换方式都应涵盖在本发明的保护范围之内。 It is to be determined that all other transformations are intended to be covered by the scope of the present invention.
还应理解, 在对光流矢量进行统计时, 可以不必统计所有的光流矢量。 例 如, 若某一个光流矢量的大小小于预定值, 则不必统计该光流矢量, 或者不统 计某些位置的光流矢量。 这些统计方式也应在本发明的保护范围之内。 It should also be understood that when counting optical flow vectors, it may not be necessary to count all optical flow vectors. For example, if the size of an optical flow vector is less than a predetermined value, it is not necessary to count the optical flow vector, or to calculate the optical flow vector at some locations. These statistical methods are also intended to be within the scope of the present invention.
在 S132中, 检测火焰的装置根据该候选火焰区域是否为真实火焰区域, 确定是否存在火焰。 In S132, the means for detecting the flame determines whether or not there is a flame based on whether or not the candidate flame region is a real flame region.
当前帧图像的候选火焰区域为真实火焰区域,也即当前帧图像存在真实火 焰区域。检测火焰的装置可以根据当前帧图像是否存在真实火焰区域确定是否 存在火焰,也可以根据预定帧数图像内存在真实火焰区域的图像的帧数确定是 否存在火焰。 The candidate flame region of the current frame image is the real flame region, that is, the current frame image has a real flame region. The means for detecting the flame may determine whether or not there is a flame based on whether the current frame image has a real flame region, or determine whether or not there is a flame according to the number of frames of the image of the real flame region in the predetermined frame number image.
因此, 可选地, S132包括:
若该候选火焰区域为真实火焰区域, 则确定存在火焰。 Therefore, optionally, S132 includes: If the candidate flame zone is a true flame zone, then it is determined that a flame is present.
即, 只根据当前帧图像是否存在真实火焰区域, 确定是否存在火焰。 That is, it is determined whether or not there is a flame based only on whether or not the current frame image has a real flame region.
可选地, S132包括: Optionally, S132 includes:
根据预定帧数 L内的图像中, 存在真实火焰区域的图像的帧数 1, 确定是 否存在火焰。 According to the number of frames of the image of the real flame region in the image within the predetermined number of frames L, it is determined whether or not there is a flame.
为了提高检测火焰的准确性,检测火焰的装置不只根据当前帧图像是否存 在真实火焰区域确定火焰,而是根据当前帧图像以前,预定帧数 L内的图像中, 存在真实火焰区域的图像的帧数 1, 确定是否存在火焰。 可选地, 若 1/L大于 第三预定阔值, 则确定存在火焰。 即, 预定帧数内存在真实火焰的帧数的比重 超过第三预定阔值, 则确定存在火焰。 同样地, 第三预定阔值也可以通过大量 的不同环境下的样本统计获得。 本发明实施例优选同时根据第一预定阔值、第 二预定阔值和第三预定阔值确定火焰的方式, 即在预定帧数 L内, 统计满足第 一预定阔值和第二预定阔值的帧数与总帧数 L的比值,若比值高于第三预定阔 值, 则确定在该段帧数 L内, 存在真实火焰, 完成火焰检测。 In order to improve the accuracy of detecting the flame, the device for detecting the flame determines not only the flame according to whether the current frame image has a real flame region, but also the image of the image of the real flame region in the image within the predetermined number of frames L before the current frame image. Number 1, to determine if there is a flame. Alternatively, if 1/L is greater than the third predetermined threshold, it is determined that there is a flame. That is, if the specific gravity of the number of frames of the real flame in the predetermined number of frames exceeds the third predetermined threshold, it is determined that there is a flame. Similarly, the third predetermined threshold can also be obtained from a large number of sample statistics in different environments. Preferably, the embodiment of the present invention determines the manner of the flame according to the first predetermined threshold, the second predetermined threshold, and the third predetermined threshold, that is, within the predetermined number of frames L, the statistics satisfy the first predetermined threshold and the second predetermined threshold. The ratio of the number of frames to the total number of frames L, if the ratio is higher than the third predetermined threshold, determines that there is a real flame within the number L of frames, and the flame detection is completed.
因此, 本发明实施例的检测火焰的方法,通过根据候选火焰区域的像素点 的光流矢量在各个方向上的分布特性确定是否存在火焰,能够提高检测火焰的 准确性, 在各种复杂或简单的环境中都能准确稳定地检测火焰。 Therefore, in the method for detecting a flame according to the embodiment of the present invention, whether the flame is present according to the distribution characteristics of the optical flow vectors of the pixel points of the candidate flame region in various directions can improve the accuracy of detecting the flame, and is complicated or simple. The flame can be detected accurately and steadily in the environment.
下面以一个火焰样本为例 ,更加详细地描述本发明实施例的检测火焰的方 法。应注意, 这些例子仅仅是为了帮助本领域技术人员理解本发明的一些可能 的实施方式, 而非穷尽地列举的所有实施方式, 因而不能理解为对本发明范围 的限制。 The method of detecting a flame of an embodiment of the present invention will now be described in more detail by taking a flame sample as an example. It is to be understood that the examples are only intended to assist those skilled in the art to understand some of the possible embodiments of the present invention, and are not to be construed as limiting the scope of the invention.
1、 确定候选火焰区域。 1. Determine the candidate flame area.
检测火焰的装置将从源视频文件获取的图像进行颜色分离,将满足以下条 件的像素点确定为具有火焰颜色特征的像素点 ( 取 170, 取 50 ), The device for detecting the flame performs color separation on the image obtained from the source video file, and determines a pixel point satisfying the following conditions as a pixel having a flame color characteristic (take 170, take 50),
i? > 170, i? > 170,
R > G > B, R > G > B,
S > (255— ?) * 50 / 170。 S > (255- ?) * 50 / 170.
通过上述条件对源图像进行二值化重构, 满足条件的像素点置为白色,反 之置为黑色。 然后框定包含所有白色像素点的最小矩形区域,将该矩形区域对 应的源图像区域确定为候选火焰区域(如图 3所示)。
2、 基于网格算法的实时光流计算。 The source image is binarized and reconstructed by the above conditions, and the pixel that satisfies the condition is set to white, and vice versa. The minimum rectangular area containing all the white pixels is then framed, and the source image area corresponding to the rectangular area is determined as the candidate flame area (as shown in FIG. 3). 2. Real-time optical flow calculation based on grid algorithm.
如图 4所示,检测火焰的装置将确定的候选火焰区域和上一帧图像中同一 位置的区域的图像数据作为输入, 进行基于网格算法的实时光流计算, 将候选 火焰区域的每一个像素点作为网格上的一个点,通过层层粗网格与细网格的转 换迭代, 获取该候选火焰区域的每一个像素点的光流矢量, 得到光流矢量图。 As shown in FIG. 4, the device for detecting the flame takes as input the image data of the determined candidate flame region and the region at the same position in the previous frame image, and performs real-time optical flow calculation based on the grid algorithm, each of the candidate flame regions. The pixel is used as a point on the grid, and the optical flow vector of each pixel of the candidate flame region is obtained by transforming the layer coarse grid and the fine mesh to obtain a light flow vector diagram.
光流矢量图反映每一个像素点的光流矢量,以灰度图中每一个像素点的图 像数据来保存矢量信息。 为了直观显示出候选火焰区域的光流矢量, 以 10*10 像素的网格为单位画出矢量图, 图 4下方的矢量图中每一个箭头即为该 10*10 像素网格的矢量。 The optical flow vector map reflects the optical flow vector of each pixel, and stores the vector information with the image data of each pixel in the grayscale image. In order to visually display the optical flow vector of the candidate flame region, a vector diagram is drawn in units of a grid of 10*10 pixels, and each arrow in the vector diagram below FIG. 4 is a vector of the 10*10 pixel grid.
3、 统计光流矢量特性。 3. Statistical optical flow vector characteristics.
检测火焰的装置统计各像素点的光流矢量在如图 2 所示的四个方向上的 分布情况。 在图 4 所示的矢量图中, 矢量方向为上方的矢量占全局的比重近 60%, 矢量方向为左方或右方的矢量占全局的比重也近 30%, 这符合火焰的特 性, 因此可以确定为真实火焰区域。 最后, 根据预定帧数内存在真实火焰区域 的图像帧数满足预定阔值, 确定存在火焰, 完成火焰检测。 The device for detecting the flame counts the distribution of the optical flow vectors of the respective pixels in the four directions as shown in FIG. In the vector diagram shown in Figure 4, the vector with the vector direction above accounts for nearly 60% of the global weight, and the vector with the vector direction to the left or the right accounts for nearly 30% of the global weight, which is consistent with the characteristics of the flame. Can be determined as a real flame area. Finally, the number of image frames existing in the real flame region according to the predetermined number of frames satisfies a predetermined threshold, and it is determined that there is a flame, and the flame detection is completed.
因此, 本发明实施例的检测火焰的方法,通过基于网格算法的实时光流计 算获取候选火焰区域的像素点的光流矢量,并根据光流矢量在各个方向上的分 布特性确定是否存在火焰, 能够准确稳定地检测火焰。 Therefore, in the method for detecting a flame according to an embodiment of the present invention, an optical flow vector of a pixel of a candidate flame region is obtained by real-time optical flow calculation based on a grid algorithm, and whether a flame exists according to a distribution characteristic of the optical flow vector in each direction is determined. , able to accurately and stably detect the flame.
上文结合图 1至图 4, 详细描述了根据本发明实施例的检测火焰的方法, 下面结合图 5和图 6 , 对根据本发明实施例的检测火焰的装置进行描述。 A method of detecting a flame according to an embodiment of the present invention is described in detail above with reference to FIGS. 1 through 4, and an apparatus for detecting a flame according to an embodiment of the present invention will be described below with reference to FIGS. 5 and 6.
图 5示出了根据本发明实施例的检测火焰的装置 500的示意性框图。如图 5所示, 该装置 500包括: Figure 5 shows a schematic block diagram of an apparatus 500 for detecting a flame in accordance with an embodiment of the present invention. As shown in Figure 5, the apparatus 500 includes:
确定模块 510 , 用于确定当前帧图像中的候选火焰区域; a determining module 510, configured to determine a candidate flame region in the current frame image;
处理模块 520 , 用于基于网格算法对该候选火焰区域进行实时光流计算, 获取该候选火焰区域的像素点的光流矢量; The processing module 520 is configured to perform real-time optical flow calculation on the candidate flame region based on a grid algorithm, and acquire an optical flow vector of the pixel of the candidate flame region;
识别模块 530 , 用于根据该候选火焰区域的像素点的光流矢量在各个方向 上的分布特性, 确定是否存在火焰。 The identifying module 530 is configured to determine whether a flame exists according to a distribution characteristic of the optical flow vector of the pixel point of the candidate flame region in each direction.
本发明实施例的检测火焰的装置,通过基于网格算法的实时光流计算获取 候选火焰区域的像素点的光流矢量,并根据光流矢量在各个方向上的分布特性
确定是否存在火焰, 能够在各种复杂或简单的环境中准确稳定地检测火焰。 在本发明实施例中, 可选地, 该确定模块 510包括: The device for detecting a flame according to an embodiment of the present invention calculates an optical flow vector of a pixel of a candidate flame region by real-time optical flow calculation based on a grid algorithm, and distributes the light flow vector in each direction according to the optical flow vector. Determine if a flame is present and be able to accurately and stably detect the flame in a variety of complex or simple environments. In the embodiment of the present invention, the determining module 510 includes:
颜色分离单元, 用于对该当前帧图像进行红绿蓝 RGB三通道颜色分离, 获取该当前帧图像的每个像素点三个通道的像素值; a color separation unit, configured to perform red, green, and blue RGB three-channel color separation on the current frame image, and obtain pixel values of three channels of each pixel of the current frame image;
特征像素点确定单元,用于将满足以下条件的像素点确定为具有火焰颜色 特征的像素点, a feature pixel determining unit configured to determine a pixel point that satisfies the following condition as a pixel point having a flame color characteristic,
R > Rt, R > R t ,
R > G > B, R > G > B,
S > (255 - R) ^ St / R S > (255 - R) ^ S t / R
其中, R表示像素点红色通道像素值, G表示像素点绿色通道像素值, B 表示像素点蓝色通道像素值, Rt表示红色通道阔值, S表示像素点的饱和度, St表示饱和度阔值; Where R is the red dot pixel value of the pixel, G is the green channel pixel value of the pixel, B is the blue channel pixel value of the pixel, Rt is the red channel threshold, S is the saturation of the pixel, and St is the saturation. Value
候选火焰区域确定单元,用于将包含所有具有火焰颜色特征的像素点的区 域确定为该候选火焰区域。 A candidate flame region determining unit is configured to determine an area including all pixel points having a flame color characteristic as the candidate flame region.
在本发明实施例中, 可选地, 该处理模块 520具体用于, 将该候选火焰区 域的每一个像素点作为网格上的一个点,通过粗网格与细网格的转换迭代, 获 取该候选火焰区域的每一个像素点的光流矢量。 In the embodiment of the present invention, the processing module 520 is specifically configured to: use each pixel point of the candidate flame region as a point on the mesh, and obtain the transformation iteration of the coarse mesh and the fine mesh to obtain The optical flow vector for each pixel of the candidate flame region.
本发明实施例的基于网格算法的 Gauss-Seidel迭代算法能够快速收敛, 从 而能够实时地获取光流矢量以便于检测火焰, 因此, 本发明实施例的检测火焰 的装置具有艮高的实时性。 The Gauss-Seidel iterative algorithm based on the grid algorithm of the embodiment of the present invention can quickly converge, so that the optical flow vector can be acquired in real time to detect the flame. Therefore, the device for detecting the flame of the embodiment of the invention has high real-time performance.
在本发明实施例中, 如图 6所示, 可选地, 该识别模块 530包括: 确定单元 531 , 用于根据该候选火焰区域的像素点的光流矢量在各个方向 上的分布特性, 确定该候选火焰区域是否为真实火焰区域; In the embodiment of the present invention, as shown in FIG. 6, the identification module 530 includes: a determining unit 531, configured to determine, according to a distribution characteristic of optical flow vectors of pixel points of the candidate flame region in various directions, Whether the candidate flame region is a real flame region;
识别单元 532, 用于根据该候选火焰区域是否为真实火焰区域, 确定是否 存在火焰。 The identifying unit 532 is configured to determine whether a flame exists according to whether the candidate flame region is a real flame region.
可选地, 该确定单元 531包括: Optionally, the determining unit 531 includes:
第一确定子单元, 用于若在该候选火焰区域的像素点的光流矢量中, a first determining subunit, configured to be in an optical flow vector of a pixel point of the candidate flame region,
^≤ angle≤ ^的光流矢量所占的比重大于第一预定阔值, 则确定该候选火焰 区域为真实火焰区域, angle表示光流矢量的方向。
可选地, 该确定单元 531包括: If the proportion of the optical flow vector of ^ ≤ angle ≤ ^ is greater than the first predetermined threshold, then the candidate flame region is determined to be the real flame region, and angle represents the direction of the optical flow vector. Optionally, the determining unit 531 includes:
第二确定子单元, 用于若在该候选火焰区域的像素点的光流矢量中, ^ < angle 的光流矢量所占的比重大于第一预定阔值, 并且, a second determining subunit, configured to: in the optical flow vector of the pixel of the candidate flame region, the optical flow vector of ^ < angle occupies a specific gravity greater than a first predetermined threshold, and
-— < angle <— < angle < r或 - π < angle <―"―的光流矢量所占的比 重大于第二预定阔值, 则确定该候选火焰区域为真实火焰区域, angle表示光 流矢量的方向。 - - < angle < - < angle < r or - π < angle <―" - the proportion of the optical flow vector is greater than the second predetermined threshold, then the candidate flame region is determined to be the real flame region, and angle represents the optical flow vector The direction.
在本发明实施例中 , 可选地, 该识别单元 532包括: In the embodiment of the present invention, optionally, the identifying unit 532 includes:
第一识别子单元,用于根据预定帧数 L内的图像中,存在真实火焰区域的 图像的帧数 1, 确定是否存在火焰。 The first identifying subunit is configured to determine whether there is a flame according to the number of frames 1 of the image in which the real flame region exists in the image within the predetermined number of frames L.
可选地, 该第一识别子单元具体用于, 若 1/L大于第三预定阔值, 则确定 存在火焰。 Optionally, the first identifying subunit is specifically configured to determine that a flame exists if 1/L is greater than a third predetermined threshold.
可选地, 该识别单元 532包括: Optionally, the identifying unit 532 includes:
第二识别子单元, 用于若该候选火焰区域为真实火焰区域, 则确定存在火 焰。 The second identification subunit is configured to determine that there is a flame if the candidate flame region is a real flame region.
根据本发明实施例的检测火焰的装置 500 可对应于本发明实施例中检测 火焰的方法的执行主体, 并且装置 500 中的各个模块的上述和其它操作和 /或 功能分别为了实现图 1至图 4中的各个方法的相应流程, 为了简洁,在此不再 赘述。 The apparatus 500 for detecting a flame according to an embodiment of the present invention may correspond to an execution body of the method of detecting a flame in the embodiment of the present invention, and the above-described and other operations and/or functions of the respective modules in the apparatus 500 are respectively for implementing FIG. 1 to FIG. The corresponding flow of each method in 4, for brevity, will not be repeated here.
本发明实施例的检测火焰的装置,通过根据候选火焰区域的像素点的光流 矢量在各个方向上的分布特性确定是否存在火焰,能够提高检测火焰的准确性, 在各种复杂或简单的环境中都能准确稳定地检测火焰。 The device for detecting a flame according to an embodiment of the present invention can improve the accuracy of detecting a flame by using a distribution characteristic of optical flow vectors of pixel points of candidate flame regions in various directions to improve the accuracy of detecting flames in various complicated or simple environments. The flame can be detected accurately and stably.
表 1 示出了本发明实施例和现有技术中通过建立隐马尔科夫模型刻画火 焰闪烁特性的火焰检测技术对 20个场景进行火焰检测的结果。 图 7为该 20 个场景的示意图。 该 20个场景编号 1-20, 其中, 1-14号包含火焰场景, 作为 正样本, 15-20 号为非火焰场景, 作为负样本, 1-4 号的监控设备十分稳定, 无任何位移, 5-14号的监控设备有轻微位移或较大位移。
表 1 Table 1 shows the results of flame detection of 20 scenes in the embodiment of the present invention and the flame detection technique in the prior art by establishing a hidden Markov model to characterize the flame flicker. Figure 7 is a schematic diagram of the 20 scenes. The 20 scene numbers are 1-20, where 1-14 contains the flame scene, as the positive sample, and 15-20 is the non-flame scene. As the negative sample, the monitoring equipment of No. 1-4 is very stable without any displacement. Monitoring equipment No. 5-14 has slight displacement or large displacement. Table 1
通过表 1可以看出: 在监控环境较稳定情况下,现有技术的方案也具有较
高的检测率。但在监控环境复杂或监控设备存在轻微抖动情况下,现有技术的 方案检测准确率大幅度降低且存在一定程度的误报(如在场景 15中, 地下停 车场的监控设备轻微晃动, 导致警示灯发出的灯光误报为火焰)。 但对于本发 明实施例的技术方案, 由于火焰光流性质的特殊性,在简单或复杂的场景中均 具有较高的检测准确率与极低的误报率。 It can be seen from Table 1: In the case that the monitoring environment is relatively stable, the prior art scheme also has High detection rate. However, in the case where the monitoring environment is complicated or the monitoring device is slightly shaken, the detection accuracy of the prior art scheme is greatly reduced and there is a certain degree of false alarm (for example, in the scene 15, the monitoring equipment of the underground parking lot is slightly shaken, resulting in warning The light from the lamp is falsely reported as a flame). However, for the technical solution of the embodiment of the present invention, due to the particularity of the flame optical flow property, the detection accuracy and the extremely low false alarm rate are high in a simple or complicated scene.
因此, 本发明实施例的检测火焰的方法和装置,通过基于网格算法的实时 光流计算获取候选火焰区域的像素点的光流矢量,并根据光流矢量在各个方向 上的分布特性确定是否存在火焰,能够在各种复杂或简单的环境中准确稳定地 检测火焰。 Therefore, the method and apparatus for detecting a flame according to an embodiment of the present invention calculates an optical flow vector of a pixel point of a candidate flame region by real-time optical flow calculation based on a grid algorithm, and determines whether the optical flow vector has a distribution characteristic in each direction according to the optical flow vector. There is a flame that can accurately and stably detect the flame in a variety of complex or simple environments.
应理解, 在本发明实施例中, 术语 "和 /或" 仅仅是一种描述关联对象的 关联关系,表示可以存在三种关系。例如, A和 /或 B,可以表示:单独存在 A, 同时存在 A和 B, 单独存在 B这三种情况。 另外, 本文中字符 "/" , 一般表示 前后关联对象是一种 "或" 的关系。 It should be understood that in the embodiment of the present invention, the term "and/or" is merely an association describing the associated object, indicating that there may be three relationships. For example, A and / or B, can mean: A exists separately, there are A and B, and there are three cases of B alone. In addition, the character "/" in this article generally means that the contextual object is an "or" relationship.
本领域普通技术人员可以意识到,结合本文中所公开的实施例描述的各示 例的单元及算法步骤, 能够以电子硬件、 计算机软件或者二者的结合来实现, 为了清楚地说明硬件和软件的可互换性,在上述说明中已经按照功能一般性地 描述了各示例的组成及步骤。这些功能究竟以硬件还是软件方式来执行,取决 于技术方案的特定应用和设计约束条件。专业技术人员可以对每个特定的应用 来使用不同方法来实现所描述的功能,但是这种实现不应认为超出本发明的范 围。 Those of ordinary skill in the art will appreciate that the elements and algorithm steps of the various examples described in connection with the embodiments disclosed herein can be implemented in electronic hardware, computer software, or a combination of both, for clarity of hardware and software. Interchangeability, the composition and steps of the various examples have been generally described in terms of function in the above description. Whether these functions are implemented in hardware or software depends on the specific application and design constraints of the solution. A person skilled in the art can use different methods for implementing the described functions for each particular application, but such implementation should not be considered to be beyond the scope of the present invention.
所属领域的技术人员可以清楚地了解到, 为了描述的方便和简洁, 上述描 述的系统、装置和单元的具体工作过程, 可以参考前述方法实施例中的对应过 程, 在此不再赘述。 A person skilled in the art can clearly understand that, for the convenience and brevity of the description, the specific working process of the system, the device and the unit described above can refer to the corresponding processes in the foregoing method embodiments, and details are not described herein again.
在本申请所提供的几个实施例中, 应该理解到, 所揭露的系统、 装置和方 法, 可以通过其它的方式实现。 例如, 以上所描述的装置实施例仅仅是示意性 的, 例如, 所述单元的划分, 仅仅为一种逻辑功能划分, 实际实现时可以有另 外的划分方式, 例如多个单元或组件可以结合或者可以集成到另一个系统, 或 一些特征可以忽略, 或不执行。 另夕卜, 所显示或讨论的相互之间的耦合或直接 耦合或通信连接可以是通过一些接口、装置或单元的间接耦合或通信连接,也
可以是电的, 机械的或其它的形式连接。 单元显示的部件可以是或者也可以不是物理单元, 即可以位于一个地方, 或者 也可以分布到多个网络单元上。可以根据实际的需要选择其中的部分或者全部 单元来实现本发明实施例方案的目的。 In the several embodiments provided herein, it should be understood that the disclosed systems, devices, and methods may be implemented in other ways. For example, the device embodiments described above are merely illustrative. For example, the division of the unit is only a logical function division. In actual implementation, there may be another division manner, for example, multiple units or components may be combined or Can be integrated into another system, or some features can be ignored, or not executed. In addition, the mutual coupling or direct coupling or communication connection shown or discussed may be an indirect coupling or communication connection through some interface, device or unit, also It can be electrical, mechanical or other form of connection. The components displayed by the unit may or may not be physical units, that is, may be located in one place, or may be distributed to multiple network units. Some or all of the units may be selected according to actual needs to achieve the objectives of the embodiments of the present invention.
另外, 在本发明各个实施例中的各功能单元可以集成在一个处理单元中, 也可以是各个单元单独物理存在,也可以是两个或两个以上单元集成在一个单 元中。上述集成的单元既可以釆用硬件的形式实现,也可以釆用软件功能单元 的形式实现。 In addition, each functional unit in each embodiment of the present invention may be integrated into one processing unit, or each unit may exist physically separately, or two or more units may be integrated into one unit. The above integrated unit can be implemented in the form of hardware or in the form of a software functional unit.
所述集成的单元如果以软件功能单元的形式实现并作为独立的产品销售 或使用时, 可以存储在一个计算机可读取存储介质中。 基于这样的理解, 本发 明的技术方案本质上或者说对现有技术做出贡献的部分,或者该技术方案的全 部或部分可以以软件产品的形式体现出来,该计算机软件产品存储在一个存储 介质中,包括若干指令用以使得一台计算机设备(可以是个人计算机,服务器, 或者网络设备等)执行本发明各个实施例所述方法的全部或部分步骤。 而前述 的存储介质包括: U盘、移动硬盘、只读存储器(ROM, Read-Only Memory )、 随机存取存储器(RAM, Random Access Memory ), 磁碟或者光盘等各种可以 存储程序代码的介质。 The integrated unit, if implemented in the form of a software functional unit and sold or used as a standalone product, may be stored in a computer readable storage medium. Based on such understanding, the technical solution of the present invention contributes in essence or to the prior art, or all or part of the technical solution may be embodied in the form of a software product stored in a storage medium. A number of instructions are included to cause a computer device (which may be a personal computer, server, or network device, etc.) to perform all or part of the steps of the methods described in various embodiments of the present invention. The foregoing storage medium includes: a U disk, a mobile hard disk, a read-only memory (ROM), a random access memory (RAM), a magnetic disk or an optical disk, and the like, which can store program codes. .
以上所述,仅为本发明的具体实施方式,但本发明的保护范围并不局限于 此,任何熟悉本技术领域的技术人员在本发明揭露的技术范围内, 可轻易想到 各种等效的修改或替换, 这些修改或替换都应涵盖在本发明的保护范围之内。 因此, 本发明的保护范围应以权利要求的保护范围为准。
The above is only the specific embodiment of the present invention, but the scope of the present invention is not limited thereto, and any equivalent person can be easily conceived within the technical scope of the present invention. Modifications or substitutions are intended to be included within the scope of the invention. Therefore, the scope of the invention should be determined by the scope of the claims.
Claims
1、 一种检测火焰的方法, 其特征在于, 包括: A method for detecting a flame, comprising:
确定当前帧图像中的候选火焰区域; Determining candidate flame regions in the current frame image;
基于网格算法对所述候选火焰区域进行实时光流计算,获取所述候选火焰 区域的像素点的光流矢量; Performing real-time optical flow calculation on the candidate flame region based on a grid algorithm, and acquiring an optical flow vector of a pixel of the candidate flame region;
根据所述候选火焰区域的像素点的光流矢量在各个方向上的分布特性,确 定是否存在火焰。 The presence or absence of a flame is determined based on the distribution characteristics of the optical flow vectors of the pixel points of the candidate flame regions in respective directions.
2、 根据权利要求 1所述的方法, 其特征在于, 所述根据所述候选火焰区 域的像素点的光流矢量在各个方向上的分布特性, 确定是否存在火焰, 包括: 根据所述候选火焰区域的像素点的光流矢量在各个方向上的分布特性,确 定所述候选火焰区域是否为真实火焰区域; The method according to claim 1, wherein the determining, according to a distribution characteristic of the optical flow vector of the pixel points of the candidate flame region in each direction, whether a flame is present, comprises: according to the candidate flame a distribution characteristic of the optical flow vector of the pixel of the region in each direction, determining whether the candidate flame region is a real flame region;
根据所述候选火焰区域是否为真实火焰区域, 确定是否存在火焰。 Whether or not there is a flame is determined according to whether the candidate flame region is a real flame region.
3、 根据权利要求 2所述的方法, 其特征在于, 所述根据所述候选火焰区 域的像素点的光流矢量在各个方向上的分布特性,确定所述候选火焰区域是否 为真实火焰区域, 包括: The method according to claim 2, wherein the determining, according to a distribution characteristic of the optical flow vector of the pixel point of the candidate flame region in each direction, whether the candidate flame region is a real flame region, Includes:
若在所述候选火焰区域的像素点的光流矢量中, ≤ angle 的光流矢 量所占的比重大于第一预定阔值, 则确定所述候选火焰区域为真实火焰区域, angle表示光流矢量的方向; 或者, If in the optical flow vector of the pixel of the candidate flame region, the optical flow vector of ≤ angle occupies a specific gravity greater than the first predetermined threshold, determining that the candidate flame region is a real flame region, and angle represents an optical flow vector Orientation; or,
若在所述候选火焰区域的像素点的光流矢量中, ≤ angle 的光流矢 量所占的比重大于第一预定阔值, 并且, If the optical flow vector of the pixel of the candidate flame region occupies a specific gravity greater than the first predetermined threshold,
-— < angle <— < angle≤ r或 - π < angle≤―"―的光流矢量所占的比 重大于第二预定阔值, 则确定所述候选火焰区域为真实火焰区域, angle表示 光流矢量的方向。 - - < angle < - < angle ≤ r or - π < angle ≤ "" - the proportion of the optical flow vector is greater than the second predetermined threshold, then the candidate flame region is determined to be the real flame region, and angle represents the optical flow Vector direction.
4、 根据权利要求 2或 3所述的方法, 其特征在于, 所述根据所述候选火 焰区域是否为真实火焰区域, 确定是否存在火焰, 包括: The method according to claim 2 or 3, wherein the determining whether the flame is present according to whether the candidate flame region is a real flame region comprises:
根据预定帧数 内的图像中, 存在真实火焰区域的图像的帧数 /, 确定是 否存在火焰。 According to the number of frames of the image of the real flame region in the image within the predetermined number of frames, it is determined whether or not there is a flame.
5、 根据权利要求 4所述的方法, 其特征在于, 所述根据预定帧数 内的 图像中, 存在真实火焰区域的图像的帧数 /, 确定是否存在火焰, 包括:
若 IIL大于第三预定阔值, 则确定存在火焰。 The method according to claim 4, wherein the determining, according to the number of frames of the image of the real flame region, in the image within the predetermined number of frames, determining whether a flame is present comprises: If the IIL is greater than the third predetermined threshold, then it is determined that there is a flame.
6、 根据权利要求 2或 3所述的方法, 其特征在于, 所述根据所述候选火 焰区域是否为真实火焰区域, 确定是否存在火焰, 包括: The method according to claim 2 or 3, wherein the determining whether the flame is present according to whether the candidate flame region is a real flame region comprises:
若所述候选火焰区域为真实火焰区域, 则确定存在火焰。 If the candidate flame zone is a true flame zone, then it is determined that a flame is present.
7、 根据权利要求 1或 2所述的方法, 其特征在于, 所述确定当前帧图像 中的候选火焰区域, 包括: The method according to claim 1 or 2, wherein the determining the candidate flame region in the current frame image comprises:
对所述当前帧图像进行红绿蓝 RGB三通道颜色分离, 获取所述当前帧图 像的每个像素点三个通道的像素值; Performing red, green, and blue RGB three-channel color separation on the current frame image, and acquiring pixel values of three channels of each pixel of the current frame image;
将满足以下条件的像素点确定为具有火焰颜色特征的像素点, A pixel point that satisfies the following condition is determined as a pixel point having a flame color characteristic,
R > Rt, R > R t ,
R > G > B, R > G > B,
S > (255 - R) ^ St / R S > (255 - R) ^ S t / R
其中, 表示像素点红色通道像素值, G表示像素点绿色通道像素值, B 表示像素点蓝色通道像素值, 表示红色通道阔值, S表示像素点的饱和度, &表示饱和度阔值; Wherein, represents a red dot pixel value of a pixel point, G represents a green channel pixel value of a pixel point, B represents a pixel value of a pixel blue channel, represents a red channel threshold, S represents a saturation of a pixel, and represents a saturation threshold;
将包含所有具有火焰颜色特征的像素点的区域确定为所述候选火焰区域。 An area including all pixel points having a flame color characteristic is determined as the candidate flame area.
8、 根据权利要求 1或 2所述的方法, 其特征在于, 所述基于网格算法对 所述候选火焰区域进行实时光流计算,获取所述候选火焰区域的像素点的光流 矢量, 包括: The method according to claim 1 or 2, wherein the grid-based algorithm performs real-time optical flow calculation on the candidate flame region, and acquires an optical flow vector of a pixel of the candidate flame region, including :
将所述候选火焰区域的每一个像素点作为网格上的一个点; Each pixel of the candidate flame region is taken as a point on the grid;
通过粗网格与细网格的转换迭代,获取所述候选火焰区域的每一个像素点 的光流矢量。 The optical flow vector of each pixel of the candidate flame region is obtained by a transformation iteration of the coarse mesh and the fine mesh.
9、 一种检测火焰的装置, 其特征在于, 包括: 9. A device for detecting a flame, comprising:
确定模块, 用于确定当前帧图像中的候选火焰区域; a determining module, configured to determine a candidate flame region in the current frame image;
处理模块, 用于基于网格算法对所述候选火焰区域进行实时光流计算, 获 取所述候选火焰区域的像素点的光流矢量; a processing module, configured to perform real-time optical flow calculation on the candidate flame region based on a grid algorithm, and obtain an optical flow vector of a pixel of the candidate flame region;
识别模块,用于根据所述候选火焰区域的像素点的光流矢量在各个方向上 的分布特性, 确定是否存在火焰。 And an identification module, configured to determine whether a flame exists according to a distribution characteristic of the optical flow vector of the pixel point of the candidate flame region in each direction.
10、 根据权利要求 9所述的装置, 其特征在于, 所述识别模块包括: 确定单元,用于根据所述候选火焰区域的像素点的光流矢量在各个方向上
的分布特性, 确定所述候选火焰区域是否为真实火焰区域; The device according to claim 9, wherein the identification module comprises: a determining unit, configured to use optical flow vectors of pixel points of the candidate flame region in various directions a distribution characteristic, determining whether the candidate flame region is a real flame region;
识别单元, 用于根据所述候选火焰区域是否为真实火焰区域,确定是否存 在火焰。 And an identifying unit, configured to determine whether a flame exists according to whether the candidate flame region is a real flame region.
11、 根据权利要求 10所述的装置, 其特征在于, 所述确定单元包括: 第一确定子单元, 用于若在所述候选火焰区域的像素点的光流矢量中, ≤ g/e≤ ^的光流矢量所占的比重大于第一预定阔值, 则确定所述候选火 焰区域为真实火焰区域, 表示光流矢量的方向; 或者, The device according to claim 10, wherein the determining unit comprises: a first determining subunit, configured to: ≤ g/e ≤ in an optical flow vector of a pixel point of the candidate flame region If the proportion of the optical flow vector is greater than the first predetermined threshold, determining that the candidate flame region is a real flame region, indicating a direction of the optical flow vector; or
第二确定子单元, 用于若在所述候选火焰区域的像素点的光流矢量中, a second determining subunit, configured to be in an optical flow vector of a pixel point of the candidate flame region,
^ < angle 的光流矢量所占的比重大于第一预定阔值, 并且, -— < angle <― < angle < τ或 - π < angle <―" ^"的光流矢量所占的比 重大于第二预定阔值, 则确定所述候选火焰区域为真实火焰区域, angle表示 光流矢量的方向。 ^ < angle of the optical flow vector occupies a larger proportion than the first predetermined threshold, and - - < angle < ― < angle < τ or - π < angle < ― " ^ " the proportion of the optical flow vector is greater than the Two predetermined thresholds determine that the candidate flame region is a true flame region and angle represents a direction of the optical flow vector.
12、根据权利要求 10或 11所述的装置,其特征在于,所述识别单元包括: 第一识别子单元,用于根据预定帧数 内的图像中,存在真实火焰区域的 图像的帧数 /, 确定是否存在火焰。 The apparatus according to claim 10 or 11, wherein the identification unit comprises: a first identification sub-unit, configured to: according to the number of frames of the image of the real flame region in the image within the predetermined number of frames/ , to determine if there is a flame.
13、 根据权利要求 12所述的装置, 其特征在于, 所述第一识别子单元具 体用于, 若 // 大于第三预定阔值, 则确定存在火焰。 13. Apparatus according to claim 12 wherein said first identifying subunit is operative to determine that a flame is present if // is greater than a third predetermined threshold.
14、根据权利要求 10或 11所述的装置,其特征在于,所述识别单元包括: 第二识别子单元, 用于若所述候选火焰区域为真实火焰区域, 则确定存在 火焰。 14. Apparatus according to claim 10 or claim 11 wherein the identification unit comprises: a second identification subunit for determining the presence of a flame if the candidate flame zone is a true flame zone.
15、根据权利要求 9或 10所述的装置,其特征在于,所述确定模块包括: 颜色分离单元,用于对所述当前帧图像进行红绿蓝 RGB三通道颜色分离, 获取所述当前帧图像的每个像素点三个通道的像素值; The device according to claim 9 or 10, wherein the determining module comprises: a color separating unit, configured to perform red, green, blue, and RGB three-channel color separation on the current frame image to obtain the current frame. The pixel value of three channels per pixel of the image;
特征像素点确定单元,用于将满足以下条件的像素点确定为具有火焰颜色 特征的像素点, a feature pixel determining unit configured to determine a pixel point that satisfies the following condition as a pixel point having a flame color characteristic,
R > Rt, R > R t ,
R > G > B, R > G > B,
S > (255 - R) ^ St / R S > (255 - R) ^ S t / R
其中, 表示像素点红色通道像素值, G表示像素点绿色通道像素值, B 表示像素点蓝色通道像素值, 表示红色通道阔值, S表示像素点的饱和度,
&表示饱和度阔值; Wherein, the pixel value of the red channel of the pixel is represented, G represents the pixel value of the green channel of the pixel, B represents the pixel value of the blue channel of the pixel, represents the red channel threshold, and S represents the saturation of the pixel. & indicates the saturation threshold;
候选火焰区域确定单元,用于将包含所有具有火焰颜色特征的像素点的区 域确定为所述候选火焰区域。 A candidate flame area determining unit is configured to determine an area including all pixel points having a flame color characteristic as the candidate flame area.
16、 根据权利要求 9或 10所述的装置, 其特征在于, 所述处理模块具体 用于,将所述候选火焰区域的每一个像素点作为网格上的一个点,通过粗网格 与细网格的转换迭代, 获取所述候选火焰区域的每一个像素点的光流矢量。
The device according to claim 9 or 10, wherein the processing module is configured to use each pixel of the candidate flame region as a point on the grid, through a coarse mesh and a thin The transformation iteration of the mesh acquires an optical flow vector for each pixel of the candidate flame region.
Applications Claiming Priority (2)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201210219956.1A CN103514430B (en) | 2012-06-29 | 2012-06-29 | The method and apparatus of detection flame |
CN201210219956.1 | 2012-06-29 |
Publications (1)
Publication Number | Publication Date |
---|---|
WO2014000427A1 true WO2014000427A1 (en) | 2014-01-03 |
Family
ID=49782163
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
PCT/CN2013/070026 WO2014000427A1 (en) | 2012-06-29 | 2013-01-04 | Method and device for detecting flame |
Country Status (2)
Country | Link |
---|---|
CN (1) | CN103514430B (en) |
WO (1) | WO2014000427A1 (en) |
Cited By (4)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN112507866A (en) * | 2020-12-03 | 2021-03-16 | 润联软件系统(深圳)有限公司 | Chinese character vector generation method and device, computer equipment and storage medium |
CN113128439A (en) * | 2021-04-27 | 2021-07-16 | 云南电网有限责任公司电力科学研究院 | Flame real-time detection algorithm and system based on video image sequence |
CN116092261A (en) * | 2023-01-13 | 2023-05-09 | 安徽辉联信息科技有限公司 | Regional intelligent security monitoring rapid identification analysis system |
CN116467974A (en) * | 2023-06-19 | 2023-07-21 | 北京凌云智擎软件有限公司 | Automatic solving method, device and medium for steady-state laminar flame surface database |
Families Citing this family (5)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN105574468B (en) * | 2014-10-08 | 2020-07-17 | 深圳力维智联技术有限公司 | Video flame detection method, device and system |
CN104463869B (en) * | 2014-12-05 | 2018-07-17 | 西安交通大学 | A kind of video flame image composite identification method |
CN106250859B (en) * | 2016-08-04 | 2019-09-17 | 杭州电子科技大学 | The video flame detecting method spent in a jumble is moved based on characteristic vector |
CN110075465A (en) * | 2018-01-26 | 2019-08-02 | 上海金盾消防安全科技有限公司 | Fire detection device, fire-fighting equipment and its operating method |
CN110298297B (en) * | 2019-06-26 | 2023-07-18 | 湖北九感科技有限公司 | Flame identification method and device |
Citations (5)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US20030025794A1 (en) * | 2001-07-31 | 2003-02-06 | Hirofumi Fujii | Moving object detecting method, apparatus and computer program product |
CN101339602A (en) * | 2008-07-15 | 2009-01-07 | 中国科学技术大学 | Video frequency fire hazard aerosol fog image recognition method based on light stream method |
CN101794450A (en) * | 2009-11-13 | 2010-08-04 | 北京智安邦科技有限公司 | Method and device for detecting smoke in video image sequence |
CN101826153A (en) * | 2010-02-11 | 2010-09-08 | 上海交通大学 | Fire detection method |
CN102013009A (en) * | 2010-11-15 | 2011-04-13 | 无锡中星微电子有限公司 | Smoke image recognition method and device |
-
2012
- 2012-06-29 CN CN201210219956.1A patent/CN103514430B/en active Active
-
2013
- 2013-01-04 WO PCT/CN2013/070026 patent/WO2014000427A1/en active Application Filing
Patent Citations (5)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US20030025794A1 (en) * | 2001-07-31 | 2003-02-06 | Hirofumi Fujii | Moving object detecting method, apparatus and computer program product |
CN101339602A (en) * | 2008-07-15 | 2009-01-07 | 中国科学技术大学 | Video frequency fire hazard aerosol fog image recognition method based on light stream method |
CN101794450A (en) * | 2009-11-13 | 2010-08-04 | 北京智安邦科技有限公司 | Method and device for detecting smoke in video image sequence |
CN101826153A (en) * | 2010-02-11 | 2010-09-08 | 上海交通大学 | Fire detection method |
CN102013009A (en) * | 2010-11-15 | 2011-04-13 | 无锡中星微电子有限公司 | Smoke image recognition method and device |
Cited By (5)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN112507866A (en) * | 2020-12-03 | 2021-03-16 | 润联软件系统(深圳)有限公司 | Chinese character vector generation method and device, computer equipment and storage medium |
CN113128439A (en) * | 2021-04-27 | 2021-07-16 | 云南电网有限责任公司电力科学研究院 | Flame real-time detection algorithm and system based on video image sequence |
CN116092261A (en) * | 2023-01-13 | 2023-05-09 | 安徽辉联信息科技有限公司 | Regional intelligent security monitoring rapid identification analysis system |
CN116467974A (en) * | 2023-06-19 | 2023-07-21 | 北京凌云智擎软件有限公司 | Automatic solving method, device and medium for steady-state laminar flame surface database |
CN116467974B (en) * | 2023-06-19 | 2023-08-22 | 北京凌云智擎软件有限公司 | Automatic solving method, device and medium for steady-state laminar flame surface database |
Also Published As
Publication number | Publication date |
---|---|
CN103514430A (en) | 2014-01-15 |
CN103514430B (en) | 2016-12-21 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
WO2014000427A1 (en) | Method and device for detecting flame | |
CN104106260B (en) | Control based on geographical map | |
US8611664B2 (en) | Method for detecting fire-flame using fuzzy finite automata | |
JP6182607B2 (en) | Video surveillance system, surveillance device | |
WO2023093217A1 (en) | Data labeling method and apparatus, and computer device, storage medium and program | |
JP2018507476A (en) | Screening for computer vision | |
WO2014136623A1 (en) | Method for detecting and tracking objects in sequence of images of scene acquired by stationary camera | |
CN104484814B (en) | A kind of advertising method and system based on video map | |
KR101204259B1 (en) | A method for detecting fire or smoke | |
JP2008519371A5 (en) | ||
WO2014036813A1 (en) | Method and device for extracting image features | |
EP3537311A1 (en) | On-demand visual analysis focalized on salient events | |
US10438405B2 (en) | Detection of planar surfaces for use in scene modeling of a captured scene | |
CN113469025B (en) | Target detection method and device applied to vehicle-road cooperation, road side equipment and vehicle | |
CN109791695A (en) | Motion vector image block based determines described piece of variance | |
US9280209B2 (en) | Method for generating 3D coordinates and mobile terminal for generating 3D coordinates | |
CN106612385B (en) | Video detecting method and video detecting device | |
KR20220101683A (en) | world-space segmentation | |
WO2022237026A1 (en) | Plane information detection method and system | |
CN109961472A (en) | Method, system, storage medium and the electronic equipment that 3D thermodynamic chart generates | |
JP2017045438A (en) | Image analyzer, image analysis method, image analysis program and image analysis system | |
CN106970709A (en) | A kind of 3D exchange methods and device based on holographic imaging | |
CN116129328A (en) | Method, device, equipment and storage medium for detecting carryover | |
KR101270718B1 (en) | Video processing apparatus and method for detecting fire from video | |
CN114037087B (en) | Model training method and device, depth prediction method and device, equipment and medium |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
121 | Ep: the epo has been informed by wipo that ep was designated in this application |
Ref document number: 13809340 Country of ref document: EP Kind code of ref document: A1 |
|
NENP | Non-entry into the national phase |
Ref country code: DE |
|
122 | Ep: pct application non-entry in european phase |
Ref document number: 13809340 Country of ref document: EP Kind code of ref document: A1 |