An accurate statistical method for regional fast-growing forest density based on UAV images
UAVs are equipped with RGB cameras and deep learning technology to build plant tracking counting and semantic segmentation models, which solves the problems of long-term and poor accuracy in large-area fast-growing forest density statistics in traditional methods, and achieves efficient and accurate fast-growing forest density statistics. , which improves the economic benefits of forestry planning.
Patent Information
- Application Number
- CN202210027227.X
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2022-01-11
- Publication Date
- 2024-09-27
- Estimated Expiration
- 2042-01-11
AI Technical Summary
The traditional manual sampling and counting method used to count the density of fast-growing forests in large areas is time-consuming, has poor accuracy and slow data update, and cannot meet the needs of modern forestry.
UAVs equipped with RGB cameras are used, combined with deep learning and image processing technology, to detect and segment aerial images accurately by building a plant tracking and counting model based on YoloV5 and Deepsort algorithms and a U-net neural network semantic segmentation model for non-plantable areas. Statistics of fast-growing forest density.
It achieves accurate statistics on fast-growing forest density, improves data update speed and accuracy, facilitates forestry planning, and improves economic benefits.
Smart Images

Figure CN114494862B
Abstract
Description
Technical Field
[0001] The present invention belongs to the field of computer vision, and in particular relates to an accurate statistical method for regional fast-growing forest density based on unmanned aerial vehicle images. Technical Background
[0002] Fast-growing forests are artificial forests with a short rotation cycle and are in great demand in the fields of wood processing and industrial papermaking. Considering their economic benefits, in order to obtain higher yields per unit area, their planting density needs to be reasonably planned. For large-scale regional fast-growing forest density statistics, traditional manual sampling and counting methods, such as visual inventory, are time-consuming, have poor accuracy, and slow data updates. In recent years, drones have been widely used in regional surface data collection scenarios due to their flexible operation, high efficiency, little terrain constraints, and clear images. By segmenting the non-plantable areas in drone aerial images, the area of the plantable area in the inspected area is calculated to conduct more accurate fast-growing forest density statistics, which is of great significance for timely identifying problems such as lack of plants and excessive concentration in fast-growing forests and generating remedial plans. Summary of the invention
[0003] Purpose of the invention: The purpose of the present invention is to solve the deficiencies in the prior art. A method for accurately counting the density of fast-growing forests in a region based on drone images is provided. The method is based on drone aerial RGB images and uses deep learning and image processing to accurately count the density of fast-growing forests such as eucalyptus, locust trees, and poplars. The steps include: using a drone equipped with an RGB camera to take aerial photos of fast-growing forest-covered areas including lakes, sandy land, stone piles, and buildings that are not suitable for planting; constructing a fast-growing forest plant tracking and counting model based on YoloV5 and Deepsort algorithms and a semantic segmentation model for non-planting areas based on a U-net neural network; According to the growth status of fast-growing trees and the terrain and area of the forest farm distribution, the UAV aerial photography flight plan including flight altitude, speed and trajectory is determined, and the aerial images are input into the fast-growing forest plant tracking and counting model for detection to obtain the number of plants; according to the actual needs of the UAV's flight altitude, speed, trajectory and image splicing, the UAV aerial images are screened, key frames are extracted, and an aerial map of the entire forest farm is constructed. The unplantable area in the image is segmented using the trained U-net semantic segmentation model, and the actual area of fast-growing forests that can be planted can be obtained by combining the camera parameters and the flight altitude of the UAV, and the density of the fast-growing forest can be obtained by calculation. The present invention can accurately obtain the density information of fast-growing forests, facilitate planting planning, and improve economic benefits.
[0004] Technical solution: A method for accurately counting the density of regional fast-growing forests based on drone images, including the following steps:
[0005] Step 1: Use a drone equipped with an RGB camera to take aerial photos of the fast-growing forest-covered area in the non-plantable area and perform pre-processing;
[0006] Step 2: Build a fast-growing forest plant tracking and counting model based on YoloV5 and Deepsort algorithms and a non-plantable area semantic segmentation model based on U-net neural network;
[0007] Step 3: According to the growth status of the fast-growing forest and the area to be detected, determine the flight altitude of the drone, plan the flight trajectory and flight speed of the drone, take aerial photos of the area to be detected, input the aerial images into the fast-growing forest tracking and counting model based on YoloV5 and Deepsort algorithms for detection, and assign IDs to the detected fast-growing forest plants for counting;
[0008] Step 4: Filter the unmanned aerial RGB images for image stitching to obtain a complete aerial area image. Use the U-net semantic segmentation model to segment the non-plantable area in the image. Combined with the camera parameters and the flight altitude of the drone, the actual area where fast-growing forests can be planted can be obtained. The precise density of fast-growing forests can be calculated.
[0009] Furthermore, in the preprocessing step 1, the shadows in the overhead image are subjected to denoising, and the sample image is rotated, flipped, cropped, and blocked, and the training set of the fast-growing forest image is expanded to improve the performance of the trained model.
[0010] Furthermore, in step 2, the processed fast-growing forest image is used to extract features using Darknet-53 as the backbone network, and a target detection model based on YoloV5 is trained. After combining the Deepsort algorithm, a tracking and counting model for fast-growing forest plants is generated.
[0011] Furthermore, in step 2, the unplantable areas are segmented and removed, and a dataset is created using aerial images of fast-growing forest-covered areas for annotation, and a semantic segmentation model for unplantable areas based on a U-net neural network is trained.
[0012] Furthermore, in step 3, the specific operation of assigning IDs to the detected fast-growing forest plants for counting includes:
[0013] a. Use Kalman filtering to predict the motion trajectory of the plants currently detected in the aerial video;
[0014] b. Using the weighted Hungarian algorithm, the rectangular frame of the plant detected in the current frame is matched one by one with the rectangular frame predicted by the trajectory in the previous frame. Based on the matching results, it is determined whether it is a new plant. If there is a new plant, it is given a new number, otherwise its original number remains unchanged until the last frame is detected;
[0015] c. The largest number in the last frame is the total number of plants in the area to be detected.
[0016] Furthermore, in step 5, the operation of accurately obtaining the density of the fast-growing forest includes:
[0017] 1) According to the flight altitude of the drone, the focal length of the camera carried and the parameters of the film area, the actual surface area corresponding to a single frame of the drone aerial image can be obtained;
[0018] 2) When stitching images, since the displacement between two adjacent frames in the video is small and the overlap is large, it is not necessary to stitch all the video frames in the actual image stitching operation. According to the flight trajectory and flight speed of the drone, a frame is extracted from the aerial video of the area to be detected at intervals, and finally a set of video frames participating in image stitching can be obtained;
[0019] 3) Use the SIFT algorithm to extract the feature points of the video frames involved in image stitching, match the feature points of the overlapping area of the two video frames, and then calculate the homography matrix based on the matched feature points to obtain the position of one video frame relative to another video frame, thereby realizing image stitching and obtaining a complete aerial photography area image;
[0020] 4) When performing semantic segmentation, considering that the complete image obtained by stitching has high pixels and large size, if the image is compressed, the image details will be seriously lost; therefore, the image is segmented into a collection of sub-images with the same resolution, and the sub-images are input into the established U-net semantic segmentation model to segment the non-plantable area in the image, and finally the actual plantable area of the drone aerial photography area is obtained;
[0021] 5) Divide the total number of fast-growing forest plants counted in Step 4 by the actual plantable area of the drone aerial photography area to accurately obtain the density of the fast-growing forest.
[0022] Compared with the existing technology, an accurate statistical method for regional fast-growing forest density based on UAV images using the above technical solution can be used to obtain the actual area where fast-growing forests can be planted, and the density of fast-growing forests can be calculated. The density information of fast-growing forests can be accurately obtained, which is convenient for planting planning, and it is convenient for staff to plan planting and improve economic benefits. BRIEF DESCRIPTION OF THE DRAWINGS
[0023] Figure 1 It is a schematic diagram of the process of the present invention. DETAILED DESCRIPTION
[0024] The present invention is further described below in conjunction with the accompanying drawings.
[0025] like Figure 1 As shown in the figure, a method for accurately counting the density of regional fast-growing forests based on drone images includes the following steps:
[0026] Step 1: Use a drone equipped with an RGB camera to take aerial photos of the fast-growing forest-covered area, including lakes, sandy land, stone piles, buildings and other areas that cannot be planted;
[0027] Step 2: Build a fast-growing forest plant tracking and counting model based on YoloV5 and Deepsort algorithms and a non-plantable area semantic segmentation model based on U-net neural network;
[0028] Step 3: According to the growth status of the fast-growing forest and the area to be detected, determine the flight altitude of the drone, plan the flight trajectory and flight speed of the drone, take aerial photos of the area to be detected, input the aerial images into the fast-growing forest tracking and counting model based on YoloV5 and Deepsort algorithms for detection, and assign IDs to the detected fast-growing forest plants for counting;
[0029] Step 4: Filter the unmanned aerial RGB images for image stitching to obtain a complete aerial area image. Use the U-net semantic segmentation model to segment the non-plantable area in the image. Combined with the camera parameters and the flight altitude of the drone, the actual area where fast-growing forests can be planted can be obtained. The precise density of fast-growing forests can be calculated.
[0030] In step 1, the RGB camera is used to take aerial photos of the fast-growing forest-covered areas including lakes, sandy land, stone piles, buildings and other non-plantable areas. The shadows in the aerial images are denoised, and the sample images are rotated, flipped, cropped, and blocked to expand the training set of fast-growing forest images to improve the performance of the trained model;
[0031] In step 2, the processed fast-growing forest image is used to extract features using Darknet-53 as the backbone network, and the target detection model based on YoloV5 is trained. After combining the Deepsort algorithm, a tracking and counting model for fast-growing forest plants is generated;
[0032] In step 2, considering that not all surface environments are suitable for planting fast-growing forests, in order to more accurately calculate the density of fast-growing forests, it is necessary to segment and remove the unplantable areas. Therefore, a dataset is created using aerial images of fast-growing forest-covered areas for annotation, and a semantic segmentation model for unplantable areas based on a U-net neural network is trained.
[0033] In step 3, the specific operations of assigning IDs to the detected fast-growing forest plants for counting include:
[0034] Kalman filtering is used to predict the motion trajectory of the plants currently detected in the aerial video.
[0035] Using the weighted Hungarian algorithm, the rectangular box of the plant detected in the current frame is matched one by one with the rectangular box predicted by the trajectory in the previous frame. Based on the matching results, it is determined whether it is a new plant. If there is a new plant, it is given a new number, otherwise its original number remains unchanged until the last frame is detected. The largest number in the last frame is the total number of plants in the area to be detected;
[0036] In step 5, the operations for accurately obtaining the density of fast-growing forests include:
[0037] According to the parameters of the UAV's flight altitude, the focal length of the camera it carries, and the film area, the actual surface area corresponding to a single frame of the UAV aerial image can be obtained;
[0038] When performing image stitching, since the displacement between two adjacent frames in the video is very small and the overlap is large, in the actual image stitching operation, it is not necessary to stitch all the video frames together; according to the flight trajectory and flight speed of the drone, a frame is extracted from the aerial video of the area to be detected at intervals, and finally a set of video frames participating in image stitching can be obtained;
[0039] The SIFT algorithm is used to extract the feature points of the video frames involved in image stitching, and the feature points of the overlapping area of the two video frames are matched. Then the homography matrix is calculated based on the matched feature points to obtain the position of one video frame relative to another video frame, thereby realizing image stitching and obtaining a complete aerial photography area image;
[0040] When performing semantic segmentation, considering that the complete image obtained by stitching has high pixels and large size, if the image is compressed, the image details will be seriously lost; therefore, the image is segmented into a collection of sub-images with the same resolution, and the established U-net semantic segmentation model is input to segment the non-plantable area in the image, and finally the actual plantable area of the drone aerial photography area is obtained;
[0041] The density of the fast-growing forest can be accurately obtained by dividing the total number of fast-growing forest plants counted in step 4 by the actual plantable area of the drone aerial photography area.
[0042] The above are preferred embodiments of the present invention. A person skilled in the art may make several modifications and improvements without departing from the principles of the present invention, and these modifications and improvements shall also be considered as the protection scope of the present invention.
Claims
1. An accurate statistical method for regional fast-growing forest density based on drone images, It is characterized in that The steps include: Step 1: Use a drone equipped with an RGB camera to take aerial photos of the fast-growing forest-covered area in the non-plantable area and perform pre-processing; Step 2: Build a fast-growing forest plant tracking and counting model based on YoloV5 and Deepsort algorithms and a semantic segmentation model for unplantable areas based on U-net neural network; Step 3: According to the growth status of the fast-growing forest and the area to be detected, determine the flight altitude of the drone, plan the flight trajectory and flight speed of the drone, take aerial photos of the area to be detected, input the aerial images into the fast-growing forest tracking and counting model based on YoloV5 and Deepsort algorithms for detection, and assign IDs to the detected fast-growing forest plants for counting; Step 4: Filter the unmanned aerial RGB images for image stitching to obtain a complete aerial area image. Use the U-net semantic segmentation model to segment the non-plantable area in the image. Combined with the camera parameters and the flight altitude of the drone, the actual area where fast-growing forests can be planted can be obtained. The precise density of fast-growing forests can be calculated. In step 4, the operations for accurately obtaining the density of fast-growing forests include: 1) According to the flight altitude of the UAV, the focal length of the camera carried and the parameters of the film area, the actual surface area corresponding to a single frame of the UAV aerial image can be obtained; 2) When performing image stitching, since the displacement between two adjacent frames in the video is very small and the overlap is large, in the actual image stitching operation, it is not necessary to stitch all the video frames. According to the flight trajectory and flight speed of the drone, a frame is extracted from the aerial video of the area to be detected at intervals, and finally a set of video frames participating in image stitching can be obtained; 3) Use the SIFT algorithm to extract the feature points of the video frames involved in image stitching, match the feature points of the overlapping area of the two video frames, and then calculate the homography matrix based on the matched feature points to obtain the position of one video frame relative to another video frame, thereby realizing image stitching and obtaining a complete aerial photography area image; 4) When performing semantic segmentation, considering that the complete image obtained by splicing has high pixels and large size, if the image is compressed, the image details will be seriously lost; therefore, the image is segmented into a collection of sub-images with the same resolution, and the established U-net semantic segmentation model is input to segment the non-plantable area in the image, and finally the actual plantable area of the drone aerial photography area is obtained; 5) Divide the total number of fast-growing forest plants counted in Step 4 by the actual plantable area of the drone aerial photography area to accurately obtain the density of the fast-growing forest.
2. According to the method of claim 1, a method for accurately counting the density of regional fast-growing forests based on drone images, It is characterized in that Preprocessing in step 1: denoise the shadows in the overhead image, rotate, flip, crop, and block the sample image, and expand the training set of fast-growing forest images to improve the performance of the trained model.
3. According to the method of claim 1, a method for accurately counting the density of regional fast-growing forests based on drone images, It is characterized in that In step 2, the processed fast-growing forest image is used to extract features using Darknet-53 as the backbone network, and a target detection model based on YoloV5 is trained. After combining the Deepsort algorithm, a tracking and counting model for fast-growing forest plants is generated.
4. According to claim 3, a method for accurately counting the density of regional fast-growing forests based on drone images, It is characterized in that In step 2, the unplantable areas are segmented and removed, and a dataset is created using aerial images of fast-growing forest-covered areas for annotation, and a semantic segmentation model for unplantable areas based on a U-net neural network is trained.
5. According to the method of claim 1, a method for accurately counting the density of regional fast-growing forests based on drone images, It is characterized in that In step 3, the specific operations of assigning IDs to the detected fast-growing forest plants for counting include: a. Use Kalman filtering to predict the motion trajectory of the plants currently detected in the aerial video; b. Using the weighted Hungarian algorithm, the rectangular frame of the plant detected in the current frame is matched one by one with the rectangular frame predicted by the trajectory in the previous frame. Based on the matching results, it is determined whether it is a new plant. If there is a new plant, it is given a new number, otherwise its original number remains unchanged until the last frame is detected; c. The largest number in the last frame is the total number of plants in the area to be detected.
