Forest fire recognition method
Technical Field
The invention relates to the technical field of image recognition, in particular to a forest fire recognition method.
Background
Forest fire refers to the action of forest fire which loses artificial control, freely spreads and expands in forest lands and brings certain harm and loss to forests, forest ecosystems and human beings. Forest fires are natural disasters which are strong in burst, large in destructiveness and difficult to dispose and rescue.
The forest fire prevention work is an important component of the Chinese disaster prevention and reduction work, is important content of the construction of the national public emergency system, is an important guarantee of social stability and the people's living and entertainment industry, is an important guarantee for accelerating the development of the forest industry and strengthening the basis and the premise of the ecological construction, and relates to forest resources and ecological safety, and the life and property safety of people, while the timely discovery of forest fires can greatly reduce the property loss and can quickly control the fire behavior.
Disclosure of Invention
The purpose of the invention is: aiming at the problem that the forest fire cannot be found in time in the prior art, the forest fire identification method is provided.
The technical scheme adopted by the invention to solve the technical problems is as follows: a forest fire recognition method comprises the following steps:
the method comprises the following steps: acquiring a video image in a monitoring area;
step two: judging the type of the smoke image or the water mist image according to the image information, and then positioning the area where the tree is located in the image;
step three: preprocessing the acquired image;
step four: extracting the region of interest of the processed image;
step five: obtaining cut image information from the smog or water mist image information in the training set according to the steps, and training by utilizing an SVM classifier;
step six: and inputting the test set to obtain a recognition result.
Further, the detailed steps of the second step are as follows:
step two, firstly: obtaining an image containing smoke or water mist;
step two: carrying out gray level processing on the smoke image or the water mist image;
step two and step three: and judging the type of the image according to whether continuous ripples exist in the image, labeling the image, and taking the image as a training set, wherein the classification result is smoke or water mist.
Further, the detailed steps of the fourth step are as follows:
step four, firstly: multiplying and averaging values in the x direction and the y direction by using a Sobel edge enhancement method, and then carrying out binarization processing;
step four and step two: numbering the profile;
step four and step three: and carrying out linear approximation value taking on the coordinate values of the phase points by a least square method according to the serial number of the profile.
Further, the images in the training set and the test set are in an RGB format.
Further, the preprocessing in the third step comprises: filtering, binarization and morphological processing.
Further, the acquisition of the video image is completed through a monitoring camera installed in the monitored area.
The invention has the beneficial effects that: the invention can comprehensively monitor the forest fire prevention area, timely discover the fire condition in the monitoring area and timely give an alarm, can discover the abnormal state at the first time and send an alarm, reduces the workload of monitoring personnel, improves the working efficiency by more than one time, and realizes the effective monitoring of the hidden danger of forest fire within 24 hours.
Detailed Description
The first embodiment is as follows: the forest fire recognition method in the embodiment comprises the following steps:
the method comprises the following steps: acquiring a video image in a monitoring area;
step two: judging the type of the smoke image or the water mist image according to the image information, and then positioning the area where the tree is located in the image;
step three: preprocessing the acquired image;
step four: extracting the region of interest of the processed image;
step five: obtaining cut image information from the smog or water mist image information in the training set according to the steps, and training by utilizing an SVM classifier;
step six: and inputting the test set to obtain a recognition result.
The second embodiment is as follows: this embodiment mode is further described with reference to the first embodiment mode, and the difference between this embodiment mode and the first embodiment mode is that the detailed steps of the second step mode are:
step two, firstly: obtaining an image containing smoke or water mist;
step two: carrying out gray level processing on the smoke image or the water mist image;
step two and step three: and judging the type of the image according to whether continuous ripples exist in the image, labeling the image, and taking the image as a training set, wherein the classification result is smoke or water mist.
In the embodiment, when mist is judged to be smoke or water mist, whether continuous ripples exist in a finally obtained image is judged, if the continuous ripples exist, the image is the smoke, and if the continuous ripples do not exist, the image is the water mist.
In the specific implementation of the invention, when the smoke is judged, the alarm processing is carried out, and if the smoke is water mist, the alarm processing is not carried out.
The third concrete implementation mode: this embodiment mode is further described with reference to the first embodiment mode, and the difference between this embodiment mode and the first embodiment mode is that the detailed step of the fourth step is:
step four, firstly: multiplying and averaging values in the x direction and the y direction by using a Sobel edge enhancement method, and then carrying out binarization processing;
step four and step two: numbering the profile;
step four and step three: and carrying out linear approximation value taking on the coordinate values of the phase points by a least square method according to the serial number of the profile.
In the embodiment, a line appears in the image after the image is processed, one end of the line is a fire point, and the smoke image is formed around the fire point.
The fourth concrete implementation mode: the present embodiment is further described with respect to the first embodiment, and the difference between the present embodiment and the first embodiment is that the training set and the test set all use RGB formats.
The fifth concrete implementation mode: the present embodiment is further described with reference to the first embodiment, and the difference between the present embodiment and the first embodiment is that the pretreatment in the third step includes: filtering, binarization and morphological processing.
The sixth specific implementation mode: the present embodiment is described in further detail with reference to the first embodiment, and the difference between the present embodiment and the first embodiment is that the video image is acquired by a monitoring camera installed in a monitored area.
It should be noted that the detailed description is only for explaining and explaining the technical solution of the present invention, and the scope of protection of the claims is not limited thereby. It is intended that all such modifications and variations be included within the scope of the invention as defined in the following claims and the description.