Movatterモバイル変換


[0]ホーム

URL:


CN116295134B - Land area measurement method based on image segmentation network, UAV, medium - Google Patents

Land area measurement method based on image segmentation network, UAV, medium

Info

Publication number
CN116295134B
CN116295134BCN202211097125.1ACN202211097125ACN116295134BCN 116295134 BCN116295134 BCN 116295134BCN 202211097125 ACN202211097125 ACN 202211097125ACN 116295134 BCN116295134 BCN 116295134B
Authority
CN
China
Prior art keywords
image
target
land
land area
eigenvector
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Active
Application number
CN202211097125.1A
Other languages
Chinese (zh)
Other versions
CN116295134A (en
Inventor
徐颖
李文霸
廖锦锐
翟懿奎
江子义
王文琪
李泽亮
梁长钊
谭梓峻
周建宏
李青
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Future Aviation Technology Jiangmen Co ltd
Wuyi University Fujian
Original Assignee
Future Aviation Technology Jiangmen Co ltd
Wuyi University Fujian
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Future Aviation Technology Jiangmen Co ltd, Wuyi University FujianfiledCriticalFuture Aviation Technology Jiangmen Co ltd
Priority to CN202211097125.1ApriorityCriticalpatent/CN116295134B/en
Publication of CN116295134ApublicationCriticalpatent/CN116295134A/en
Application grantedgrantedCritical
Publication of CN116295134BpublicationCriticalpatent/CN116295134B/en
Activelegal-statusCriticalCurrent
Anticipated expirationlegal-statusCritical

Links

Classifications

Landscapes

Abstract

Translated fromChinese

本申请公开了一种基于图像分割网络的土地面积测量方法、无人机、介质,方法包括:确定包括多个监测节点的目标土地区域;根据多个监测节点确定目标巡检路径,根据目标巡检路径在各个监测节点拍摄土地图像;根据目标距离信息和目标像素数量确定目标GSD,目标距离信息为参照对象与监测节点之间的实地距离,目标像素数量为参照点距离土地图像的图像中心点的像素数量;将土地图像输入至图像分割网络模型进行图像分割处理,得到目标分割图像;根据目标分割图像和目标GSD得到目标土地区域的土地面积。根据本申请实施例提供的方案,能够结合无人机以及图像分割网络模型对目标土地区域进行土地面积测量,从而有效提高测量土地面积的效率。

The present application discloses a land area measurement method, drone, and medium based on an image segmentation network. The method includes: determining a target land area including multiple monitoring nodes; determining a target inspection path based on the multiple monitoring nodes, and capturing a land image at each monitoring node based on the target inspection path; determining a target GSD based on target distance information and target pixel number, wherein the target distance information is the actual distance between the reference object and the monitoring node, and the target pixel number is the number of pixels from the reference point to the image center point of the land image; inputting the land image into an image segmentation network model for image segmentation processing to obtain a target segmented image; and obtaining the land area of the target land area based on the target segmented image and the target GSD. According to the solution provided in the embodiment of the present application, the land area of the target land area can be measured by combining the drone and the image segmentation network model, thereby effectively improving the efficiency of measuring the land area.

Description

Land area measurement method, unmanned aerial vehicle and medium based on image segmentation network
Technical Field
The application relates to the technical field of image processing, in particular to a land area measurement method, an unmanned aerial vehicle and a medium based on an image segmentation network.
Background
In order to better realize scientific and reasonable planning of land resources and obtain land area data, at present, an actual measurement method is mainly adopted for a land area measurement method, for example, a tape is pulled manually to measure the area of a target land area, and the actual measurement method has the problems of low informatization degree, low measurement speed and high cost of manpower and material resources input although the data acquisition precision is high, so that the land area measurement efficiency is low.
Disclosure of Invention
The embodiment of the application provides a land area measurement method, an unmanned aerial vehicle and a medium based on an image segmentation network, which can effectively improve the efficiency of measuring the land area.
In a first aspect, an embodiment of the present application provides a land area measurement method based on an image segmentation network, which is applied to an unmanned aerial vehicle, and the method includes:
determining a target land area, the target land area comprising a plurality of monitoring nodes;
determining a target inspection path according to a plurality of monitoring nodes, and shooting a land image at each monitoring node according to the target inspection path, wherein the monitoring nodes are position nodes corresponding to image center points of the land image;
Acquiring target distance information, wherein the target distance information is the field distance between a preset reference object and the monitoring node;
Acquiring the number of target pixels, wherein the number of target pixels is the number of pixels of the reference object from the image center point of the land image to the reference point corresponding to the land image;
determining a target GSD according to the target distance information and the target pixel number;
Inputting the land image into a pre-trained image segmentation network model for image segmentation processing to obtain a target segmentation image;
And obtaining the land area of the target land area according to the target segmentation image and the target GSD.
In some embodiments, the image segmentation network model is trained according to the following steps:
determining the position information of the land image, and acquiring a map remote sensing image corresponding to the position information, wherein the image size of the land image is the same as that of the map remote sensing image;
acquiring a first annotation image corresponding to the land image and acquiring a second annotation image corresponding to the map remote sensing image;
inputting the land image, the map remote sensing image, the first annotation image and the second annotation image into a preset cross-modal alignment network model for image alignment processing to obtain a target training image;
And acquiring an initial image segmentation network model, and training the initial image segmentation network model according to the target training image to obtain the image segmentation network model.
In some embodiments, the cross-modal alignment network model includes a first encoder, a second encoder, a third encoder, a fourth encoder, and a first decoder, and the inputting the land image, the map remote sensing image, the first labeling image, and the second labeling image to a preset cross-modal alignment network model performs image alignment processing to obtain a target training image includes:
inputting the first marked image and the second marked image to the first encoder for encoding processing to obtain a first feature vector;
Inputting the map remote sensing image to the second encoder for encoding processing to obtain a second feature vector;
inputting the land image to the third encoder for encoding processing to obtain a third feature vector;
Inputting the first feature vector, the second feature vector and the third feature vector into the fourth encoder respectively for encoding processing to obtain a new first feature vector, a new second feature vector and a new third feature vector;
Performing feature alignment processing on the new first feature vector and the new second feature vector to obtain first intermediate data;
Performing feature alignment processing on the new second feature vector and the new third feature vector to obtain second intermediate data;
Respectively inputting the first intermediate data and the second intermediate data to the first decoder for decoding processing to obtain an aligned target labeling image and a target land image;
and carrying out image merging processing on the target annotation image and the target soil image to obtain the target training image.
In some embodiments, the image segmentation network model includes a fifth encoder and a second decoder, the fifth encoder includes a feature extraction network and a first convolution layer, the second decoder includes a second convolution layer, a third convolution layer, a first upsampling layer, and a second upsampling layer, the inputting the land image into a pre-trained image segmentation network model for image segmentation processing, to obtain a target segmented image, including:
inputting the land image into the feature extraction network to perform feature extraction to obtain a fourth feature vector;
Inputting the fourth feature vector into the first convolution layer to perform convolution operation to obtain a fifth feature vector, and inputting the fifth feature vector into the first upsampling layer to perform upsampling to obtain a sixth feature vector;
Inputting the fourth feature vector into the second convolution layer to perform convolution operation to obtain a seventh feature vector;
Performing feature stitching on the sixth feature vector and the seventh feature vector to obtain an eighth feature vector;
and sequentially inputting the eighth feature vector to the third convolution layer and the second upsampling layer to obtain the target segmentation image.
In some embodiments, the target segmented image includes a plurality of map patches of a land type, the deriving a land area of the target land area from the target segmented image and the target GSD includes:
determining the number of pixels of each map patch;
And determining the product of the pixel number of each map patch and the target GSD as the land area of the land type corresponding to the map patch.
In some embodiments, the image segmentation network-based land area measurement method further comprises:
calculating longitude and latitude information of each graph plaque according to a preset longitude and latitude conversion rule;
calculating the graph size information of each graph plaque according to a preset edge detection algorithm;
and storing the longitude and latitude information and the graphic size information into a preset database.
In some embodiments, the image segmentation network model is trained from a cross entropy loss function.
In a second aspect, an embodiment of the present application provides a unmanned aerial vehicle, including:
The system comprises a target land area determining module, a monitoring module and a control module, wherein the target land area determining module is used for determining a target land area, and the target land area comprises a plurality of monitoring nodes;
The land image acquisition module is used for determining a target inspection path according to a plurality of monitoring nodes and shooting land images at each monitoring node according to the target inspection path, wherein the monitoring nodes are position nodes corresponding to image center points of the land images;
The target distance information acquisition module is used for acquiring target distance information, wherein the target distance information is the field distance between a preset reference object and the monitoring node;
The target pixel number acquisition module is used for acquiring the target pixel number, wherein the target pixel number is the number of pixels of the reference object at the position, corresponding to the land image, of the reference point, which is far from the image center point of the land image;
the target GSD acquisition module is used for determining a target ground sampling distance value GSD according to the target distance information and the target pixel number;
The target segmentation image acquisition module is used for inputting the land image into a pre-trained image segmentation network model to perform image segmentation processing to obtain a target segmentation image;
and the land area acquisition module is used for acquiring the land area of the target land area according to the target segmentation image and the target GSD.
In a third aspect, an embodiment of the present application provides a drone, including a memory, a processor, and a computer program stored on the memory and executable on the processor, the processor implementing the image segmentation network-based land area measurement method according to the first aspect when the computer program is executed.
In a third aspect, embodiments of the present application also provide a computer-readable storage medium storing computer-executable instructions for performing the land area measurement method based on the image segmentation network according to the first aspect.
The embodiment of the application provides a land area measurement method, an unmanned aerial vehicle and a medium based on an image segmentation network, wherein the method comprises the steps of determining a target land area, determining a target routing path according to the plurality of monitoring nodes, shooting a land image at each monitoring node according to the target routing path, wherein the monitoring nodes are position nodes corresponding to image center points of the land image, acquiring target distance information, wherein the target distance information is a preset land distance between a reference object and the monitoring nodes, acquiring target pixel number, wherein the target pixel number is the pixel number of the reference object, corresponding to the land image, of the reference object from the image center point of the land image, determining a target ground sampling distance value D according to the target distance information and the target pixel number, inputting the land image into a pre-trained image segmentation network model for image segmentation processing, and obtaining a target segmentation image, and obtaining the land area of the target land area according to the target segmentation image and the target GSD. According to the scheme provided by the embodiment of the application, the land area of the target land area can be measured by combining the unmanned aerial vehicle and the image segmentation network model, so that the land area measuring efficiency is effectively improved.
Drawings
FIG. 1 is a flow chart of steps of a land area measurement method based on an image segmentation network, according to one embodiment of the present application;
FIG. 2 is a flowchart illustrating steps for training an image segmentation network model according to another embodiment of the present application;
FIG. 3 is a flowchart illustrating steps for obtaining a target training image according to another embodiment of the present application;
FIG. 4 is a flowchart illustrating steps for obtaining a segmented image of a target according to another embodiment of the present application;
FIG. 5 is a flowchart of the steps for obtaining a land area of a target land area according to another embodiment of the present application;
FIG. 6 is a flowchart illustrating steps for storing data in a database according to another embodiment of the present application;
FIG. 7 is a schematic block diagram of a drone according to another embodiment of the present application;
FIG. 8 is a network block diagram of a cross-modality aligned network model provided by another embodiment of the present application;
FIG. 9 is a network architecture diagram of an image segmentation network model provided in another embodiment of the present application;
Fig. 10 is a schematic diagram of a drone according to another embodiment of the present application.
Detailed Description
The present application will be described in further detail with reference to the drawings and examples, in order to make the objects, technical solutions and advantages of the present application more apparent. It should be understood that the specific embodiments described herein are for purposes of illustration only and are not intended to limit the scope of the application.
It will be appreciated that although functional block diagrams are depicted in the device diagrams, logical sequences are shown in the flowchart, in some cases, the steps shown or described may be performed in a different order than the block diagrams in the device. The terms first, second and the like in the description, in the claims and in the above-described figures, are used for distinguishing between similar objects and not necessarily for describing a particular sequential or chronological order.
The application provides a land area measurement method, an unmanned aerial vehicle and a medium based on an image segmentation network, wherein the method comprises the steps of determining a target land area, determining a target routing path according to the plurality of monitoring nodes, shooting a land image at each monitoring node according to the target routing path, acquiring target distance information, wherein the target distance information is a position node corresponding to an image center point of the land image, acquiring target distance information, the target distance information is a field distance between a preset reference object and the monitoring nodes, acquiring target pixel number, the target pixel number is a pixel number of the reference object, corresponding to the ground image, of the reference object, from the image center point of the land image, determining a target ground sampling distance value GSD according to the target distance information and the target pixel number, inputting the ground image into a pre-trained image segmentation network model for image segmentation processing, and acquiring a target segmentation image according to the target segmentation image and the target GSD, and acquiring the land area of the target land area. According to the scheme provided by the embodiment of the application, the land area of the target land area can be measured by combining the unmanned aerial vehicle and the image segmentation network model, so that the land area measuring efficiency is effectively improved.
Embodiments of the present application will be further described below with reference to the accompanying drawings.
As shown in fig. 1, fig. 1 is a flowchart illustrating steps of a land area measurement method based on an image segmentation network according to an embodiment of the present application, and the embodiment of the present application provides a land area measurement method based on an image segmentation network, which is applied to an unmanned aerial vehicle, and includes, but is not limited to, the following steps:
Step S110, determining a target land area, wherein the target land area comprises a plurality of monitoring nodes;
Step S120, determining a target inspection path according to a plurality of monitoring nodes, and shooting land images at each monitoring node according to the target inspection path, wherein the monitoring nodes are position nodes corresponding to image center points of the land images;
step S130, obtaining target distance information, wherein the target distance information is the field distance between a preset reference object and a monitoring node;
Step S140, obtaining the number of target pixels, wherein the number of target pixels is the number of pixels of a reference point corresponding to a reference object in a land image, which is far from the image center point of the land image;
Step S150, determining a target GSD according to the target distance information and the target pixel number;
Step S160, inputting the land image into a pre-trained image segmentation network model for image segmentation processing to obtain a target segmentation image;
step S170, obtaining the land area of the target land area according to the target segmentation image and the target GSD.
It should be noted that, unmanned aerial vehicle of this embodiment can adopt unmanned aerial vehicle of arbitrary model, can ensure that duration is enough accomplished patrol and examine can to in order to obtain the land image, can carry on remote sensing equipment in unmanned aerial vehicle, this embodiment does not improve specific hardware structure, can realize the function can.
It should be noted that, the embodiment of the present application does not limit a specific method for determining the target routing inspection path, and may be obtained by performing path planning on a plurality of monitoring nodes in the target land area through a genetic algorithm.
The specific image type of the land image is not limited in this embodiment, and the land image in this embodiment may be an orthographic image or an oblique image, and may be selected by those skilled in the art according to actual needs.
It should be noted that, the embodiments of the present application are not limited to the specific number of the reference objects, and those skilled in the art may determine the reference objects according to actual requirements.
It should be noted that, the specific implementation manner of determining the target GSD according to the target distance information and the target pixel number in the embodiment of the present application may be obtained according to the following formula:
GSD=γ4×σ143×σ332×σ221×σ10;
Where i is the number of reference objects, i e (1, 2,., N), σi is a coefficient factor, σi=hi/mi,hi is target distance information, mi is the number of target pixels, and γ is a preset coefficient, it can be understood that acquiring the target GSD can provide an effective data basis for acquiring the land area of the target land area.
It can be understood that the target land area can be set according to actual requirements, after the unmanned aerial vehicle determines a target inspection path and receives an inspection instruction, the target land area can be measured according to the target inspection path and each monitoring node with a preset height in the target land area, the land image is input into an image segmentation network model trained in advance of the unmanned aerial vehicle to be subjected to image segmentation processing, a target segmentation image is obtained, and the land area of the target land area is obtained according to the target GSD and the target segmentation image.
In addition, referring to fig. 2, in an embodiment, the image segmentation network model in the embodiment shown in fig. 1 is trained according to the following steps:
Step S210, determining the position information of a land image, and acquiring a map remote sensing image corresponding to the position information, wherein the image size of the land image is the same as that of the map remote sensing image;
Step S220, a first annotation image corresponding to the land image is obtained, and a second annotation image corresponding to the map remote sensing image is obtained;
Step S230, inputting a land image, a map remote sensing image, a first annotation image and a second annotation image into a preset cross-modal alignment network model for image alignment processing to obtain a target training image;
Step S240, an initial image segmentation network model is obtained, and training is carried out on the initial image segmentation network model according to the target training image, so that the image segmentation network model is obtained.
It should be noted that, the embodiment of the application is not limited to a specific way of determining the position information of the land image and acquiring the map remote sensing image corresponding to the position information, and may be that the unmanned aerial vehicle acquires the position information of the current unmanned aerial vehicle by calling the API interface of the map navigation software while shooting the land image, and acquires the map remote sensing image corresponding to the position information and consistent with the size of the land image.
It should be noted that, the embodiment of the present application is not limited to the land type labeling information contained in the first labeling image and the second labeling image, and the land type labeling information may include labeling information of a home, a cultivated land, a forest land, a fish pond, or the like.
It can be understood that the image segmentation network model obtained by training the initial image segmentation network model according to the land image, the map remote sensing image, the first annotation image and the second annotation image can effectively improve the accuracy of image segmentation, so that the data availability of the land area is improved.
In addition, referring to fig. 3, in an embodiment, the cross-modal alignment network model includes a first encoder, a second encoder, a third encoder, a fourth encoder, and a first decoder, and step S230 in the embodiment shown in fig. 2 further includes, but is not limited to, the following steps:
step S310, inputting the first marked image and the second marked image into a first encoder for encoding processing to obtain a first feature vector;
Step S320, inputting the map remote sensing image to a second encoder for encoding processing to obtain a second feature vector;
Step S330, inputting the land image to a third encoder for encoding processing to obtain a third feature vector;
Step S340, the first feature vector, the second feature vector and the third feature vector are respectively input to a fourth encoder for encoding processing, so as to obtain a new first feature vector, a new second feature vector and a new third feature vector;
Step S350, performing feature alignment processing on the new first feature vector and the new second feature vector to obtain first intermediate data;
step S360, performing feature alignment processing on the new second feature vector and the new third feature vector to obtain second intermediate data;
Step S370, the first intermediate data and the second intermediate data are respectively input to a first decoder for decoding processing, and an aligned target labeling image and a target land image are obtained;
And step S380, carrying out image merging processing on the target annotation image and the target soil image to obtain a target training image.
It should be noted that, referring to fig. 7, a specific structure of a cross-modal alignment network model in an embodiment of the present application may be described below as a specific example, where the specific steps for acquiring a target training image in this embodiment are as follows: the cross-modal alignment network model shown in FIG. 7 includes a first encoder, a second encoder, a third encoder, The fourth encoder and the first decoder input the first labeling image and the second labeling image to the first encoder for encoding processing to obtain a first feature vector Ai, input the map remote sensing image to the second encoder for encoding processing to obtain a second feature vector Bi, input the land image to the third encoder for encoding processing to obtain a third feature vector Ci, i E (1, 2, the..once, S) which is the total number of Ai、Bi、Ci, and encode the first feature vector Ai, the second characteristic vector Bi and the third characteristic vector Ci are respectively input into a fourth encoder for encoding processing to obtain a new first characteristic vector ai, The method comprises the steps of obtaining a new second feature vector bi and a new third feature vector ci, carrying out feature alignment processing on the new first feature vector and the new second feature vector to obtain first intermediate data, carrying out feature alignment processing on the new second feature vector and the new third feature vector to obtain second intermediate data, respectively inputting the first intermediate data and the second intermediate data into a first decoder to carry out decoding processing to obtain an aligned target labeling image and a target land image, carrying out image merging processing on the target labeling image and the target land image to obtain a target training image, and carrying out feature alignment processing between the new first feature vector and the new second feature vector and between the new second feature vector and the new third feature vector by combining a preset alignment loss function to improve the accuracy of the first intermediate data and the second intermediate data, wherein the expression of the alignment loss function is as follows:
Lmatch=Lalign+Lreson;
Wherein, the expression of Lalign is:
Lalign=α×Lalign1+β×Lalign2;
wherein, the expression of Lalign1,Lalign2 is respectively:
Lalign1=max(1+Dis(ai,bi)-Dis(ai,bj),0);
Lalign2=max(1+Dis(ai,bi)-Dis(ai,bj),0);
Wherein, the expression of Lreson is:
Lreson=α×Lreson1+β×Lreson2;
Wherein, the expression of Lreson1,Lreson2 is respectively:
Wherein, theTo annotate the image for the aligned object,For the aligned target earth image, alpha and beta are coefficient factors, so that two alignment weights can be balanced, and a specific numerical value can be determined according to actual conditions, and the value of the embodiment of the application is 0.5.
It will be appreciated that acquiring the target training image can provide an effective data basis for training the initial image segmentation network model.
In addition, in an embodiment, the image segmentation network model includes a fifth encoder and a second decoder, the fifth encoder includes a feature extraction network and a first convolution layer, the second decoder includes a second convolution layer, a third convolution layer, a first upsampling layer and a second upsampling layer, referring to fig. 4, step S160 in the embodiment shown in fig. 1 further includes, but is not limited to, the following steps:
Step S410, inputting the land image into a feature extraction network to perform feature extraction to obtain a fourth feature vector;
Step S420, inputting the fourth feature vector into the first convolution layer for convolution operation to obtain a fifth feature vector, and inputting the fifth feature vector into the first upsampling layer for upsampling to obtain a sixth feature vector;
step S430, inputting the fourth feature vector into the second convolution layer for convolution operation to obtain a seventh feature vector;
Step S440, performing feature stitching processing on the sixth feature vector and the seventh feature vector to obtain an eighth feature vector;
and S450, sequentially inputting the eighth feature vector to the third convolution layer and the second upsampling layer to obtain the target segmentation image.
It should be noted that, referring to fig. 8, the specific structure of the image segmentation network model in the embodiment of the present application may refer to fig. 8, where the image segmentation network model includes a fifth encoder and a second decoder, the fifth encoder includes a feature extraction network and a first convolution layer, the second decoder includes a second convolution layer, a third convolution layer, a first upsampling layer and a second upsampling layer, and the embodiment of the present application is not limited to the specific structure of each network layer in the image segmentation network model, for example, the feature extraction network may include a convolution layer with a convolution kernel of 1×1, a convolution layer with a three-layer convolution kernel of 3×3 and a hole rate of 6, and a pooling layer. For example, the convolution kernels of the first convolution layer and the second convolution layer are 1×1, the convolution kernel of the third convolution layer is 3×3, and the up-sampling times of the first up-sampling layer and the second up-sampling layer are 4.
In order to improve the accuracy of obtaining the target segmented image by the image segmentation network model, the embodiment of the application trains the image segmentation network model through a cross entropy loss function, and the cross entropy loss function has the following formula:
Wherein C is an identification of a land type, p epsilon (p0,…,pC-1) is a probability distribution, and each element pi represents a probability that each graph patch in the target segmented image belongs to an i-th land type. y e (y0,…,yC-1) is onehot that the target labeling image belongs to, when the graph patch in the target segmented image belongs to the ith class, yi =1, otherwise yi =0.
It will be appreciated that acquiring the target segmented image can provide an effective data basis for acquiring the land area of the target land area.
In addition, referring to fig. 5, in an embodiment, the target segmentation image includes a plurality of land-type map patches, and step S170 in the embodiment shown in fig. 1 further includes, but is not limited to, the following steps:
Step S510, determining the pixel quantity of each map patch;
In step S520, the product between the number of pixels of each map patch and the target GSD is determined as the land area of the land type corresponding to the map patch.
It can be understood that by determining the number of pixels of each of the map tiles of different land types in the target segmented image, determining the product between the number of pixels of each map tile and the target GSD as the land area of the land type corresponding to the map tile, the intelligent calculation of the land area can be realized, and compared with the technical scheme of manual actual measurement, the efficiency of measuring the land area is improved.
In addition, in an embodiment, referring to fig. 6, the land area measurement method based on the image segmentation network according to the embodiment of the present application further includes, but is not limited to, the following steps:
Step S610, calculating longitude and latitude information of each graph plaque according to a preset longitude and latitude conversion rule;
step S620, calculating the graph size information of each graph plaque according to a preset edge detection algorithm;
Step S630, storing the longitude and latitude information and the graphic size information into a preset database.
It should be noted that, the embodiment of the present application is not limited to the file storage format when storing the latitude and longitude information and the graphic size information into the preset database, and may be a vector file format, a raster file format, or a compressed raster file format corresponding to the geographic information system GIS, which can be adjusted by those skilled in the art according to actual needs.
It can be understood that longitude and latitude information of each graph patch is calculated according to a preset longitude and latitude conversion rule, graph size information of each graph patch is calculated according to a preset edge detection algorithm, and the longitude and latitude information and the graph size information are stored in a preset database, so that a land planning related worker can conveniently read the information, and an effective data base is provided for subsequent land planning work.
In addition, referring to fig. 9, fig. 9 is a schematic block diagram of a drone according to another embodiment of the present application, in an embodiment, a drone 900 is provided, where the drone 900 includes:
a target land area determination module 910, the target land area determination module 910 configured to determine a target land area, the target land area including a plurality of monitoring nodes;
the land image acquisition module 920 is configured to determine a target inspection path according to a plurality of monitoring nodes, and shoot a land image at each monitoring node according to the target inspection path, where the monitoring node is a position node corresponding to an image center point of the land image;
The target distance information acquisition module 930, the target distance information acquisition module 930 is configured to acquire target distance information, where the target distance information is a field distance between a preset reference object and a monitoring node;
The target pixel number acquisition module 940 is configured to acquire a target pixel number, where the target pixel number is a number of pixels of the reference object at a reference point corresponding to the land image from an image center point of the land image;
The target GSD acquisition module 950, where the target GSD acquisition module 950 is configured to determine a target ground sampling distance value GSD according to the target distance information and the target pixel number;
the target segmentation image acquisition module 960 is used for inputting the land image into a pre-trained image segmentation network model for image segmentation processing to obtain a target segmentation image;
the land area acquisition module 970, the land area acquisition module 970 is configured to obtain the land area of the target land area according to the target segmentation image and the target GSD.
The specific implementation manner of the unmanned aerial vehicle for obtaining the land area of the target land area is basically the same as the specific embodiment of the land area measurement method based on the image segmentation network, and is not repeated here.
Referring additionally to fig. 10, fig. 10 is a block diagram of a drone according to another embodiment of the present application, and one embodiment of the present application further provides a drone 1000, where the drone 1000 includes a memory 1010, a processor 1020, and a computer program stored on the memory 1010 and executable on the processor 1020.
The processor 1020 and the memory 1010 may be connected by a bus or other means.
The non-transitory software programs and instructions required to implement the image segmentation network-based land area measurement method of the above-described embodiments are stored in the memory 1010, and when executed by the processor 1020, the image segmentation network-based land area measurement method applied to the unmanned aerial vehicle 1000 in the above-described embodiments is performed, for example, the method steps S110 to S170 in fig. 1, the method steps S210 to S240 in fig. 2, the method steps S310 to S380 in fig. 3, the method steps S410 to S450 in fig. 4, the method steps S510 to S520 in fig. 5, and the method steps S610 to S630 in fig. 6 described above are performed.
The above described apparatus embodiments are merely illustrative, wherein the units illustrated as separate components may or may not be physically separate, i.e. may be located in one place, or may be distributed over a plurality of network elements. Some or all of the modules may be selected according to actual needs to achieve the purpose of the solution of this embodiment.
Furthermore, an embodiment of the present application provides a computer-readable storage medium storing computer-executable instructions that are executed by a processor or controller, for example, by one of the processors in the embodiment of the unmanned aerial vehicle 1000, and that may cause the processor to perform the land area measurement method based on the image segmentation network applied to the unmanned aerial vehicle in the embodiment described above, for example, to perform the method steps S110 to S170 in fig. 1, the method steps S210 to S240 in fig. 2, the method steps S310 to S380 in fig. 3, the method steps S410 to S450 in fig. 4, the method steps S510 to S520 in fig. 5, and the method steps S610 to S630 in fig. 6 described above. Those of ordinary skill in the art will appreciate that all or some of the steps, systems, and methods disclosed above may be implemented as software, firmware, hardware, and suitable combinations thereof. Some or all of the physical components may be implemented as software executed by a processor, such as a central processing unit, digital signal processor, or microprocessor, or as hardware, or as an integrated circuit, such as an application specific integrated circuit. Such software may be distributed on computer readable media, which may include computer storage media (or non-transitory media) and communication media (or transitory media). The term computer storage media includes both volatile and nonvolatile, removable and non-removable media implemented in any method or technology for storage of information such as computer readable instructions, data structures, program modules or other data, as known to those skilled in the art. Computer storage media includes, but is not limited to, RAM, ROM, EEPROM, flash memory or other memory technology, CD-ROM, digital Versatile Disks (DVD) or other optical disk storage, magnetic cassettes, magnetic tape, magnetic disk storage or other magnetic storage devices, or any other medium which can be used to store the desired information and which can be accessed by a computer. Furthermore, as is well known to those of ordinary skill in the art, communication media typically embodies computer readable instructions, data structures, program modules or other data in a modulated data signal such as a carrier wave or other transport mechanism and includes any information delivery media.

Claims (10)

Translated fromChinese
1.一种基于图像分割网络的土地面积测量方法,应用于无人机,其特征在于,所述方法包括:1. A land area measurement method based on an image segmentation network, applied to an unmanned aerial vehicle, characterized in that the method comprises:确定目标土地区域,所述目标土地区域包括多个监测节点;determining a target land area, wherein the target land area includes a plurality of monitoring nodes;根据多个所述监测节点确定目标巡检路径,根据所述目标巡检路径在各个所述监测节点拍摄土地图像,其中,所述监测节点为所述土地图像的图像中心点对应的位置节点;Determining a target inspection path according to the plurality of monitoring nodes, and photographing a land image at each of the monitoring nodes according to the target inspection path, wherein the monitoring node is a location node corresponding to an image center point of the land image;获取目标距离信息,所述目标距离信息为预设的参照对象与所述监测节点之间的实地距离;Acquiring target distance information, where the target distance information is the actual distance between a preset reference object and the monitoring node;获取目标像素数量,所述目标像素数量为所述参照对象在所述土地图像对应的参照点距离所述土地图像的图像中心点的像素数量;Obtaining a target pixel number, where the target pixel number is the number of pixels between a reference point corresponding to the reference object in the land image and an image center point of the land image;根据所述目标距离信息和所述目标像素数量确定目标地面采样距离值GSD;Determine a target ground sampling distance value GSD according to the target distance information and the target pixel number;将所述土地图像输入至预先训练好的图像分割网络模型进行图像分割处理,得到目标分割图像;Inputting the land image into a pre-trained image segmentation network model for image segmentation processing to obtain a target segmented image;根据所述目标分割图像和所述目标GSD得到所述目标土地区域的土地面积。The land area of the target land region is obtained according to the target segmentation image and the target GSD.2.根据权利要求1所述的基于图像分割网络的土地面积测量方法,其特征在于,所述图像分割网络模型根据以下步骤训练得到:2. The land area measurement method based on image segmentation network according to claim 1, wherein the image segmentation network model is trained according to the following steps:确定所述土地图像的位置信息,获取所述位置信息对应的地图遥感图像,其中,所述土地图像与所述地图遥感图像的图像尺寸相同;Determining location information of the land image, and acquiring a map remote sensing image corresponding to the location information, wherein the land image and the map remote sensing image have the same image size;获取与所述土地图像对应的第一标注图像,并获取与所述地图遥感图像对应的第二标注图像;Acquire a first annotated image corresponding to the land image, and acquire a second annotated image corresponding to the map remote sensing image;将所述土地图像、所述地图遥感图像、所述第一标注图像和所述第二标注图像输入至预设的跨模态对齐网络模型进行图像对齐处理,得到目标训练图像;Inputting the land image, the map remote sensing image, the first annotated image, and the second annotated image into a preset cross-modal alignment network model for image alignment to obtain a target training image;获取初始图像分割网络模型,根据所述目标训练图像对所述初始图像分割网络模型进行训练,得到所述图像分割网络模型。An initial image segmentation network model is obtained, and the initial image segmentation network model is trained according to the target training image to obtain the image segmentation network model.3.根据权利要求2所述的基于图像分割网络的土地面积测量方法,其特征在于,所述跨模态对齐网络模型包括第一编码器、第二编码器、第三编码器、第四编码器和第一解码器,所述将所述土地图像、所述地图遥感图像、所述第一标注图像和所述第二标注图像输入至预设的跨模态对齐网络模型进行图像对齐处理,得到目标训练图像,包括:3. The land area measurement method based on an image segmentation network according to claim 2, wherein the cross-modal alignment network model comprises a first encoder, a second encoder, a third encoder, a fourth encoder, and a first decoder, and inputting the land image, the map remote sensing image, the first annotated image, and the second annotated image into a preset cross-modal alignment network model for image alignment to obtain a target training image comprises:将所述第一标注图像和所述第二标注图像输入至所述第一编码器进行编码处理,得到第一特征向量;Inputting the first annotated image and the second annotated image into the first encoder for encoding to obtain a first feature vector;将所述地图遥感图像输入至所述第二编码器进行编码处理,得到第二特征向量;Inputting the map remote sensing image into the second encoder for encoding processing to obtain a second feature vector;将所述土地图像输入至所述第三编码器进行编码处理,得到第三特征向量;Inputting the land image into the third encoder for encoding to obtain a third feature vector;将所述第一特征向量、所述第二特征向量和所述第三特征向量分别输入至所述第四编码器进行编码处理,得到新的第一特征向量、新的第二特征向量和新的第三特征向量;Inputting the first eigenvector, the second eigenvector, and the third eigenvector into the fourth encoder for encoding respectively to obtain a new first eigenvector, a new second eigenvector, and a new third eigenvector;对所述新的第一特征向量和所述新的第二特征向量进行特征对齐处理,得到第一中间数据;Performing feature alignment processing on the new first eigenvector and the new second eigenvector to obtain first intermediate data;对所述新的第二特征向量和所述新的第三特征向量进行特征对齐处理,得到第二中间数据;Performing feature alignment processing on the new second eigenvector and the new third eigenvector to obtain second intermediate data;将所述第一中间数据和所述第二中间数据分别输入至所述第一解码器进行解码处理,得到对齐处理后的目标标注图像和目标土地图像;Inputting the first intermediate data and the second intermediate data into the first decoder for decoding respectively to obtain an aligned target annotation image and a target land image;对所述目标标注图像和所述目标土地图像进行图像合并处理,得到所述目标训练图像。An image merging process is performed on the target annotated image and the target land image to obtain the target training image.4.根据权利要求1所述的基于图像分割网络的土地面积测量方法,其特征在于,所述图像分割网络模型包括第五编码器和第二解码器,所述第五编码器包括特征提取网络和第一卷积层,所述第二解码器包括第二卷积层、第三卷积层、第一上采样层和第二上采样层,所述将所述土地图像输入至预先训练好的图像分割网络模型进行图像分割处理,得到目标分割图像,包括:4. The land area measurement method based on an image segmentation network according to claim 1, wherein the image segmentation network model includes a fifth encoder and a second decoder, the fifth encoder includes a feature extraction network and a first convolutional layer, the second decoder includes a second convolutional layer, a third convolutional layer, a first upsampling layer, and a second upsampling layer, and the inputting the land image into a pre-trained image segmentation network model for image segmentation processing to obtain a target segmented image comprises:将所述土地图像输入至所述特征提取网络进行特征提取,得到第四特征向量;Inputting the land image into the feature extraction network to perform feature extraction to obtain a fourth feature vector;将所述第四特征向量输入至所述第一卷积层进行卷积运算,得到第五特征向量,并将所述第五特征向量输入至所述第一上采样层进行上采样处理得到第六特征向量;Inputting the fourth eigenvector into the first convolutional layer for convolution operation to obtain a fifth eigenvector, and inputting the fifth eigenvector into the first upsampling layer for upsampling to obtain a sixth eigenvector;将所述第四特征向量输入至所述第二卷积层进行卷积运算,得到第七特征向量;Inputting the fourth eigenvector into the second convolutional layer for convolution operation to obtain a seventh eigenvector;对所述第六特征向量和所述第七特征向量进行特征拼接处理,得到第八特征向量;Performing feature splicing processing on the sixth eigenvector and the seventh eigenvector to obtain an eighth eigenvector;将所述第八特征向量依次输入至所述第三卷积层和所述第二上采样层,得到所述目标分割图像。The eighth eigenvector is sequentially input into the third convolutional layer and the second upsampling layer to obtain the target segmented image.5.根据权利要求1所述的基于图像分割网络的土地面积测量方法,其特征在于,所述目标分割图像包括多个土地类型的图斑块,所述根据所述目标分割图像和所述目标GSD得到所述目标土地区域的土地面积,包括:5. The land area measurement method based on an image segmentation network according to claim 1, wherein the target segmented image includes patches of multiple land types, and the method of obtaining the land area of the target land region based on the target segmented image and the target GSD comprises:确定各个所述图斑块的像素数量;Determining the number of pixels of each of the image patches;将各个所述图斑块的像素数量与所述目标GSD之间的乘积确定为所述图斑块对应的所述土地类型的土地面积。The product of the number of pixels of each of the map patches and the target GSD is determined as the land area of the land type corresponding to the map patch.6.根据权利要求5所述的基于图像分割网络的土地面积测量方法,其特征在于,所述方法还包括:6. The land area measurement method based on image segmentation network according to claim 5, characterized in that the method further comprises:根据预设的经纬度换算规则计算各个所述图斑块的经纬度信息;Calculating the longitude and latitude information of each of the map patches according to a preset longitude and latitude conversion rule;根据预设的边缘检测算法计算各个所述图斑块的图形尺寸信息;Calculating the graphic size information of each of the image patches according to a preset edge detection algorithm;将所述经纬度信息和所述图形尺寸信息保存至预设的数据库。The latitude and longitude information and the graphic size information are saved in a preset database.7.根据权利要求1所述的基于图像分割网络的土地面积测量方法,其特征在于,所述图像分割网络模型根据交叉熵损失函数进行训练得到。7. The land area measurement method based on image segmentation network according to claim 1, characterized in that the image segmentation network model is trained according to a cross entropy loss function.8.一种无人机,其特征在于,包括:8. A drone, comprising:目标土地区域确定模块,所述目标土地区域确定模块用于确定目标土地区域,所述目标土地区域包括多个监测节点;a target land area determination module, the target land area determination module being used to determine a target land area, the target land area including a plurality of monitoring nodes;土地图像获取模块,所述土地图像获取模块用于根据多个所述监测节点确定目标巡检路径,根据所述目标巡检路径在各个所述监测节点拍摄土地图像,其中,所述监测节点为所述土地图像的图像中心点对应的位置节点;a land image acquisition module, the land image acquisition module being configured to determine a target inspection path based on the plurality of monitoring nodes, and capture a land image at each monitoring node according to the target inspection path, wherein the monitoring node is a location node corresponding to an image center point of the land image;目标距离信息获取模块,所述目标距离信息获取模块用于获取目标距离信息,所述目标距离信息为预设的参照对象与所述监测节点之间的实地距离;A target distance information acquisition module, wherein the target distance information acquisition module is used to acquire target distance information, wherein the target distance information is the actual distance between a preset reference object and the monitoring node;目标像素数量获取模块,所述目标像素数量获取模块用于获取目标像素数量,所述目标像素数量为所述参照对象在所述土地图像对应的参照点距离所述土地图像的图像中心点的像素数量;a target pixel number acquisition module, the target pixel number acquisition module being used to acquire the target pixel number, the target pixel number being the number of pixels from the reference point corresponding to the reference object in the land image to the image center point of the land image;目标GSD获取模块,所述目标GSD获取模块用于根据所述目标距离信息和所述目标像素数量确定目标地面采样距离值GSD;A target GSD acquisition module is used to determine a target ground sampling distance value GSD according to the target distance information and the number of target pixels;目标分割图像获取模块,所述目标分割图像获取模块用于将所述土地图像输入至预先训练好的图像分割网络模型进行图像分割处理,得到目标分割图像;A target segmentation image acquisition module is used to input the land image into a pre-trained image segmentation network model for image segmentation processing to obtain a target segmentation image;土地面积获取模块,所述土地面积获取模块用于根据所述目标分割图像和所述目标GSD得到所述目标土地区域的土地面积。A land area acquisition module is used to obtain the land area of the target land region according to the target segmented image and the target GSD.9.一种无人机,包括:存储器、处理器及存储在存储器上并可在处理器上运行的计算机程序,其特征在于,所述处理器执行所述计算机程序时实现如权利要求1至7中任意一项所述的基于图像分割网络的土地面积测量方法。9. An unmanned aerial vehicle (UAV) comprising: a memory, a processor, and a computer program stored in the memory and executable on the processor, wherein when the processor executes the computer program, the method for land area measurement based on an image segmentation network as claimed in any one of claims 1 to 7 is implemented.10.一种计算机可读存储介质,存储有计算机可执行指令,所述计算机可执行指令用于执行如权利要求1至7中任意一项所述的基于图像分割网络的土地面积测量方法。10. A computer-readable storage medium storing computer-executable instructions, wherein the computer-executable instructions are used to execute the land area measurement method based on image segmentation network according to any one of claims 1 to 7.
CN202211097125.1A2022-09-082022-09-08 Land area measurement method based on image segmentation network, UAV, mediumActiveCN116295134B (en)

Priority Applications (1)

Application NumberPriority DateFiling DateTitle
CN202211097125.1ACN116295134B (en)2022-09-082022-09-08 Land area measurement method based on image segmentation network, UAV, medium

Applications Claiming Priority (1)

Application NumberPriority DateFiling DateTitle
CN202211097125.1ACN116295134B (en)2022-09-082022-09-08 Land area measurement method based on image segmentation network, UAV, medium

Publications (2)

Publication NumberPublication Date
CN116295134A CN116295134A (en)2023-06-23
CN116295134Btrue CN116295134B (en)2025-08-12

Family

ID=86834658

Family Applications (1)

Application NumberTitlePriority DateFiling Date
CN202211097125.1AActiveCN116295134B (en)2022-09-082022-09-08 Land area measurement method based on image segmentation network, UAV, medium

Country Status (1)

CountryLink
CN (1)CN116295134B (en)

Citations (1)

* Cited by examiner, † Cited by third party
Publication numberPriority datePublication dateAssigneeTitle
CN114419458A (en)*2021-12-292022-04-29中国科学院空天信息创新研究院Bare soil monitoring method, device and equipment based on high-resolution satellite remote sensing

Family Cites Families (4)

* Cited by examiner, † Cited by third party
Publication numberPriority datePublication dateAssigneeTitle
EP3345129A4 (en)*2015-08-312019-07-24Cape Analytics, Inc. SYSTEMS AND METHODS FOR ANALYZING REMOTE DETECTION IMAGING
CN108537182A (en)*2018-04-132018-09-14中国中医科学院中药研究所Chinese medicine cultivated area method for automatically counting based on unmanned aerial vehicle remote sensing data
US11157737B2 (en)*2019-12-262021-10-26Ping An Technology (Shenzhen) Co., Ltd.Cultivated land recognition method in satellite image and computing device
CN113112510B (en)*2021-04-292023-07-25五邑大学 A semantically segmented forest fire detection method, controller and storage medium

Patent Citations (1)

* Cited by examiner, † Cited by third party
Publication numberPriority datePublication dateAssigneeTitle
CN114419458A (en)*2021-12-292022-04-29中国科学院空天信息创新研究院Bare soil monitoring method, device and equipment based on high-resolution satellite remote sensing

Also Published As

Publication numberPublication date
CN116295134A (en)2023-06-23

Similar Documents

PublicationPublication DateTitle
CN109816769A (en)Scene map generation method, device and equipment based on depth camera
CN114241464A (en) Cross-view image real-time matching geolocation method and system based on deep learning
CN115690708A (en) Method and device for training 3D object detection model based on cross-modal knowledge distillation
CN115240168A (en)Perception result obtaining method and device, computer equipment and storage medium
CN113012215A (en)Method, system and equipment for space positioning
CN111598937A (en)Farmland land area measurement method and system based on calibration block target correction
CN109829421B (en)Method and device for vehicle detection and computer readable storage medium
CN117409312A (en) UAV-based building change detection method, electronic equipment, storage media
CN115962757A (en)Unmanned aerial vehicle surveying and mapping method, system and readable storage medium
CN112085778B (en) Illegal building detection method and system based on superpixel and morphology using oblique photography
CN117390210A (en) Building indoor positioning methods, positioning systems, storage media and electronic equipment
CN116307170A (en) Crop yield prediction method and device, electronic equipment and storage medium
CN118506186A (en)Abnormal building monitoring method and device based on panoramic virtual reality, computer equipment, medium and product
CN115376023A (en)Cultivation area detection method based on deformation convolutional network, unmanned aerial vehicle and medium
CN114238541A (en)Sensitive target information acquisition method and device and computer equipment
CN116295134B (en) Land area measurement method based on image segmentation network, UAV, medium
CN119169445A (en) Remote sensing image target detection method, device and equipment
CN112927270A (en)Track generation method and device, electronic equipment and storage medium
CN116228782B (en)Wheat Tian Sui number counting method and device based on unmanned aerial vehicle acquisition
CN117409067A (en) Agricultural land area prediction method and device, electronic equipment and storage medium
CN117765058A (en)Method and device for detecting body length of target object
CN114419466B (en)System, method, electronic device and storage medium for oblique image position quality
CN115797809A (en)Image positioning method, device, equipment and storage medium
CN115147549A (en) A method of generating and updating urban 3D model based on multi-source data fusion
CN114119389A (en)Image restoration method, system and storage module

Legal Events

DateCodeTitleDescription
PB01Publication
PB01Publication
SE01Entry into force of request for substantive examination
SE01Entry into force of request for substantive examination
GR01Patent grant
GR01Patent grant

[8]ページ先頭

©2009-2025 Movatter.jp