CN114022761A - A kind of satellite remote sensing image transmission line tower detection and positioning method and device - Google Patents

A kind of satellite remote sensing image transmission line tower detection and positioning method and device Download PDF

Info

Publication number
CN114022761A
CN114022761A CN202111249174.8A CN202111249174A CN114022761A CN 114022761 A CN114022761 A CN 114022761A CN 202111249174 A CN202111249174 A CN 202111249174A CN 114022761 A CN114022761 A CN 114022761A
Authority
CN
China
Prior art keywords
transmission line
remote sensing
picture
satellite remote
image data
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.)
Pending
Application number
CN202111249174.8A
Other languages
Chinese (zh)
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.)
Shenyang Feisite Technology Co ltd
STATE GRID LIAONING ECONOMIC TECHNIQUE INSTITUTE
State Grid Corp of China SGCC
Original Assignee
Shenyang Feisite Technology Co ltd
STATE GRID LIAONING ECONOMIC TECHNIQUE INSTITUTE
State Grid Corp of China SGCC
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 Shenyang Feisite Technology Co ltd, STATE GRID LIAONING ECONOMIC TECHNIQUE INSTITUTE, State Grid Corp of China SGCC filed Critical Shenyang Feisite Technology Co ltd
Priority to CN202111249174.8A priority Critical patent/CN114022761A/en
Publication of CN114022761A publication Critical patent/CN114022761A/en
Pending legal-status Critical Current

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F18/00Pattern recognition
    • G06F18/20Analysing
    • G06F18/21Design or setup of recognition systems or techniques; Extraction of features in feature space; Blind source separation
    • G06F18/214Generating training patterns; Bootstrap methods, e.g. bagging or boosting
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06NCOMPUTING ARRANGEMENTS BASED ON SPECIFIC COMPUTATIONAL MODELS
    • G06N3/00Computing arrangements based on biological models
    • G06N3/02Neural networks
    • G06N3/04Architecture, e.g. interconnection topology
    • G06N3/045Combinations of networks
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06NCOMPUTING ARRANGEMENTS BASED ON SPECIFIC COMPUTATIONAL MODELS
    • G06N3/00Computing arrangements based on biological models
    • G06N3/02Neural networks
    • G06N3/08Learning methods
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06QINFORMATION AND COMMUNICATION TECHNOLOGY [ICT] SPECIALLY ADAPTED FOR ADMINISTRATIVE, COMMERCIAL, FINANCIAL, MANAGERIAL OR SUPERVISORY PURPOSES; SYSTEMS OR METHODS SPECIALLY ADAPTED FOR ADMINISTRATIVE, COMMERCIAL, FINANCIAL, MANAGERIAL OR SUPERVISORY PURPOSES, NOT OTHERWISE PROVIDED FOR
    • G06Q10/00Administration; Management
    • G06Q10/04Forecasting or optimisation specially adapted for administrative or management purposes, e.g. linear programming or "cutting stock problem"
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06QINFORMATION AND COMMUNICATION TECHNOLOGY [ICT] SPECIALLY ADAPTED FOR ADMINISTRATIVE, COMMERCIAL, FINANCIAL, MANAGERIAL OR SUPERVISORY PURPOSES; SYSTEMS OR METHODS SPECIALLY ADAPTED FOR ADMINISTRATIVE, COMMERCIAL, FINANCIAL, MANAGERIAL OR SUPERVISORY PURPOSES, NOT OTHERWISE PROVIDED FOR
    • G06Q50/00Information and communication technology [ICT] specially adapted for implementation of business processes of specific business sectors, e.g. utilities or tourism
    • G06Q50/06Energy or water supply

Landscapes

  • Engineering & Computer Science (AREA)
  • Theoretical Computer Science (AREA)
  • Physics & Mathematics (AREA)
  • Business, Economics & Management (AREA)
  • General Physics & Mathematics (AREA)
  • Economics (AREA)
  • Health & Medical Sciences (AREA)
  • Data Mining & Analysis (AREA)
  • General Health & Medical Sciences (AREA)
  • Human Resources & Organizations (AREA)
  • Evolutionary Computation (AREA)
  • Strategic Management (AREA)
  • General Engineering & Computer Science (AREA)
  • Artificial Intelligence (AREA)
  • Life Sciences & Earth Sciences (AREA)
  • Molecular Biology (AREA)
  • General Business, Economics & Management (AREA)
  • Biophysics (AREA)
  • Biomedical Technology (AREA)
  • Computing Systems (AREA)
  • Mathematical Physics (AREA)
  • Software Systems (AREA)
  • Computational Linguistics (AREA)
  • Tourism & Hospitality (AREA)
  • Marketing (AREA)
  • Evolutionary Biology (AREA)
  • Bioinformatics & Computational Biology (AREA)
  • Public Health (AREA)
  • Primary Health Care (AREA)
  • Bioinformatics & Cheminformatics (AREA)
  • Computer Vision & Pattern Recognition (AREA)
  • Water Supply & Treatment (AREA)
  • Development Economics (AREA)
  • Game Theory and Decision Science (AREA)
  • Entrepreneurship & Innovation (AREA)
  • Operations Research (AREA)
  • Quality & Reliability (AREA)
  • Image Processing (AREA)

Abstract

The invention relates to a method and a device for detecting and positioning a power transmission line tower by using a satellite remote sensing image, wherein the method comprises the following steps: cutting the satellite remote sensing images of the research area to be predicted according to a preset overlapping degree, numbering and recording the position information of each cut image in the satellite remote sensing images of the research area to be predicted, and acquiring image data cut according to the preset overlapping degree; inputting the image data cut according to the preset overlapping degree into a pre-trained target detection model, and acquiring the prediction information of each picture in the image data cut according to the preset overlapping degree; the prediction information of each picture comprises normalized coordinates and confidence degrees of the center point of the power transmission line tower; the trained target detection model is a model obtained by training and testing a yolov5 target detection model in advance by adopting a training set and a testing set of satellite remote sensing images.

Description

一种卫星遥感影像输电线路杆塔检测定位方法及装置A kind of satellite remote sensing image transmission line tower detection and positioning method and device

技术领域technical field

本发明涉及输电线路运行与维护技术领域,尤其涉及一种卫星遥感影像输电线路杆塔检测定位方法及装置。The invention relates to the technical field of operation and maintenance of power transmission lines, in particular to a method and a device for detecting and positioning towers of power transmission lines with satellite remote sensing images.

背景技术Background technique

电力能源是我国能源结构的主要组成部分,是经济发展的重要支撑。输电线路杆塔是电网中承载和引导高压架空线的设施,随着电力的普及和电网的日益复杂,输电线路杆塔数目在逐年增多,具有分布广跨度大,周边地形复杂的特点。若依靠传统的人工实地测量获取输电线路杆塔位置,虽然具有较高的精度,但需要投入大量的时间和人力,成本高、效率低。遥感影像含有丰富的空间信息,在资源调查,环境监测,地质灾害调查,区域分析和建设规划等方面具有重要意义。若使用遥感影像目视解译的方法获取输电线路杆塔位置,仍需较高的人力和时间成本,且准确性取决于解译人员的专业技术水平和细致程度,由于视觉疲劳的影响,连续的人工目视解译工作会显著降低人工检测的效率和准确性。Electric power is the main component of my country's energy structure and an important support for economic development. Transmission line towers are facilities for carrying and guiding high-voltage overhead lines in the power grid. With the popularization of electricity and the increasing complexity of the power grid, the number of transmission line towers is increasing year by year, and has the characteristics of wide distribution, large span and complex surrounding terrain. If relying on the traditional manual field measurement to obtain the position of the transmission line tower, although it has high accuracy, it needs to invest a lot of time and manpower, and the cost is high and the efficiency is low. Remote sensing images contain rich spatial information and are of great significance in resource surveys, environmental monitoring, geological disaster surveys, regional analysis and construction planning. If the remote sensing image visual interpretation method is used to obtain the position of the transmission line tower, it still requires high labor and time costs, and the accuracy depends on the professional technical level and meticulous degree of the interpreter. Due to the influence of visual fatigue, continuous Human visual interpretation work can significantly reduce the efficiency and accuracy of manual detection.

发明内容SUMMARY OF THE INVENTION

(一)要解决的技术问题(1) Technical problems to be solved

鉴于现有技术的上述缺点、不足,本发明提供一种卫星遥感影像输电线路杆塔检测定位方法及装置,其解决了传统的人工实地测量获取输电线路杆塔位置,虽然具有较高的精度,但需要投入大量的时间和人力,成本高、效率低技术问题。In view of the above shortcomings and deficiencies of the prior art, the present invention provides a satellite remote sensing image transmission line tower detection and positioning method and device, which solves the problem of obtaining the position of the transmission line tower by manual field measurement. Although it has high accuracy, it needs to Invest a lot of time and manpower, high cost, low efficiency and technical problems.

(二)技术方案(2) Technical solutions

为了达到上述目的,本发明采用的主要技术方案包括:In order to achieve the above-mentioned purpose, the main technical scheme adopted in the present invention includes:

第一方面,本发明实施例提供一种卫星遥感影像输电线路杆塔检测定位方法,包括:In a first aspect, an embodiment of the present invention provides a satellite remote sensing image transmission line tower detection and positioning method, including:

对待预测的研究区卫星遥感影像按照预先设定的重叠度进行裁剪,并编号记录裁剪后每一图像在所述待预测的研究区卫星遥感影像中的位置信息,获取按照预先设定重叠度裁剪后的影像数据;The satellite remote sensing images of the study area to be predicted are cropped according to a preset degree of overlap, and the position information of each image in the satellite remote sensing image of the study area to be predicted after the cropping is numbered and recorded, and the obtained images are cropped according to the preset degree of overlap. post image data;

将所述按照预先设定重叠度裁剪后的影像数据输入到预先训练的目标检测模型中,并获取所述按照预先设定重叠度裁剪后的影像数据中每张图片的预测信息;Inputting the image data trimmed according to the preset overlap degree into a pre-trained target detection model, and acquiring the prediction information of each picture in the image data trimmed according to the preset overlap degree;

所述每张图片的预测信息包括输电线路杆塔中心点归一化坐标、置信度;The prediction information of each picture includes the normalized coordinates and confidence of the center point of the transmission line tower;

训练后的目标检测模型为预先采用卫星遥感影像的训练集和测试集对yolov5目标检测模型进行训练并测试后的模型。The trained target detection model is a model that uses the training set and test set of satellite remote sensing images to train and test the yolov5 target detection model in advance.

优选的,所述方法还包括:Preferably, the method further includes:

针对所述按照预先设定重叠度裁剪后的影像数据中每张图片的预测信息进行分析处理,确定所述按照一定重叠度裁剪后的影像数据中的独立完整输电线路杆塔、输电线路杆塔个数、输电线路杆塔的坐标。Analyze and process the prediction information of each picture in the image data cropped according to the preset overlap degree, and determine the number of independent and complete transmission line towers and transmission line towers in the image data cropped according to a certain degree of overlap , the coordinates of the transmission line tower.

优选的,针对所述按照预先设定重叠度裁剪后的影像数据中每张图片的预测信息进行分析处理,确定所述按照一定重叠度裁剪后的影像数据中的独立完整输电线路杆塔、输电线路杆塔个数、输电线路杆塔的坐标,具体包括:Preferably, the prediction information of each picture in the image data trimmed according to the preset overlap degree is analyzed and processed, and the independent and complete transmission line towers and transmission lines in the image data trimmed according to the certain overlap degree are determined. The number of towers and the coordinates of the towers of the transmission line, including:

所述每张图片的预测信息包括输电线路杆塔中心点归一化坐标、置信度;The prediction information of each picture includes the normalized coordinates and confidence of the center point of the transmission line tower;

将所述每张图片中的输电线路杆塔中心点归一化坐标进行第一坐标转换处理获取相应的图片中的坐标;Perform the first coordinate transformation process on the normalized coordinates of the center point of the transmission line tower in each picture to obtain the coordinates in the corresponding picture;

基于每一图像在所述待预测的研究区卫星遥感影像中的位置信息、所述每张图片中的坐标进行第二坐标转换处理获取在待预测的研究区卫星遥感影像中的坐标;Based on the position information of each image in the satellite remote sensing image of the study area to be predicted, and the coordinates in each picture, a second coordinate conversion process is performed to obtain the coordinates in the satellite remote sensing image of the study area to be predicted;

分别判断每张图片的预测信息中输电线路杆塔中心点置信度是否低于预先设定的阈值,获取第一判断结果,并将第一判断结果为低于所设定阈值的作为yolov5目标检测模型检测目标的输电线路杆塔删除,保留第一判断结果为大于等于所设定阈值的作为yolov5目标检测模型检测目标的输电线路杆塔;Respectively judge whether the confidence of the center point of the transmission line tower in the prediction information of each picture is lower than the preset threshold, obtain the first judgment result, and use the first judgment result as lower than the set threshold as the yolov5 target detection model The transmission line towers of the detection target are deleted, and the transmission line towers whose first judgment result is greater than or equal to the set threshold are reserved as the detection target of the yolov5 target detection model;

判断yolov5目标检测模型中预测框中是否存在重叠,获取第二判断结果,并根据第二判断结果,确定作为yolov5目标检测模型的最终检测目标的输电线路杆塔;Determine whether there is overlap in the prediction frame in the yolov5 target detection model, obtain the second judgment result, and determine the transmission line tower as the final detection target of the yolov5 target detection model according to the second judgment result;

采用gdal六参数转换模型将所述yolov5目标检测模型的最终检测目标的输电线路杆塔所对应的待预测的研究区卫星遥感影像中的坐标转换为相应的地理坐标,并输出影像区域内输电线路杆塔个数、输电线路杆塔的地理坐标。The six-parameter transformation model of gdal is used to convert the coordinates in the satellite remote sensing image of the study area corresponding to the transmission line tower of the final detection target of the yolov5 target detection model to the corresponding geographic coordinates, and output the transmission line tower in the image area. The number and geographic coordinates of the transmission line towers.

优选的,根据第二判断结果,确定作为yolov5目标检测模型的最终检测目标的输电线路杆塔,具体包括:Preferably, according to the second judgment result, determine the transmission line tower as the final detection target of the yolov5 target detection model, which specifically includes:

若所述第二判断结果为yolov5目标检测模型中预测框中没有存在重叠,则将所述yolov5目标检测模型中预测框中的输电线路杆塔作为yolov5目标检测模型的最终检测目标的输电线路杆塔;If the second judgment result is that there is no overlap in the prediction frame in the yolov5 target detection model, the transmission line tower in the prediction frame in the yolov5 target detection model is used as the transmission line tower of the final detection target of the yolov5 target detection model;

若所述第二判断结果为yolov5目标检测模型中预测框中存在重叠,则判断具有重叠区域的预测框是否位于同一张图片;If the second judgment result is that there is overlap in the prediction frame in the yolov5 target detection model, then judge whether the prediction frame with the overlapping area is located in the same picture;

若含有重叠区域的预测框在同一张图片中,则预测框中的所有输电线路杆塔均作为yolov5目标检测模型的最终检测目标的输电线路杆塔;If the prediction frame containing the overlapping area is in the same picture, all the transmission line towers in the prediction frame are used as the transmission line towers of the final detection target of the yolov5 target detection model;

含有重叠区域的预测框在不在同一张图片中,则将预测框中的置信度最大的输电线路杆塔均作为yolov5目标检测模型的最终检测目标的输电线路杆塔。If the prediction frame containing the overlapping area is not in the same picture, the transmission line tower with the highest confidence in the prediction frame is used as the transmission line tower of the final detection target of the yolov5 target detection model.

优选的,preferably,

其中,采用公式(1)进行所述第一坐标转换处理;Wherein, formula (1) is used to perform the first coordinate conversion processing;

所述公式(1)为:The formula (1) is:

Figure BDA0003322102480000041
Figure BDA0003322102480000041

Figure BDA0003322102480000042
Figure BDA0003322102480000042

其中,Xmin为按照预先设定重叠度裁剪后的影像数据中图片的左上角点的横坐标;Wherein, X min is the abscissa of the upper left corner of the picture in the image data cropped according to the preset overlap degree;

Ymin为按照预先设定重叠度裁剪后的影像数据中图片的左上角点的纵坐标;Y min is the ordinate of the upper left corner of the picture in the image data cropped according to the preset overlap degree;

Xmax为按照预先设定重叠度裁剪后的影像数据中图片的右下角点的横坐标;X max is the abscissa of the lower right corner of the picture in the image data cropped according to the preset overlap degree;

Ymax为按照预先设定重叠度裁剪后的影像数据中图片的右下角点的纵坐标;Y max is the ordinate of the lower right corner of the picture in the image data cropped according to the preset overlap degree;

W为按照预先设定重叠度裁剪后的影像数据中每张图片的宽度;W is the width of each picture in the image data cropped according to the preset overlapping degree;

H为按照预先设定重叠度裁剪后的影像数据中每张图片的高度;H is the height of each picture in the cropped image data according to the preset overlap degree;

x为预测框的归一化中心横坐标;x is the abscissa of the normalized center of the prediction frame;

y为预测框的归一化中心纵坐标;y is the normalized center ordinate of the prediction frame;

w为预测框的归一化宽度;w is the normalized width of the prediction frame;

h为预测框的归一化高度;h is the normalized height of the prediction frame;

采用公式(2)进行第二坐标转换处理获取待预测的研究区卫星遥感影像中的坐标;Adopt formula (2) to carry out the second coordinate conversion processing to obtain the coordinates in the satellite remote sensing image of the study area to be predicted;

其中,公式(2)为:Among them, formula (2) is:

Figure BDA0003322102480000051
Figure BDA0003322102480000051

Figure BDA0003322102480000052
Figure BDA0003322102480000052

其中,x1为在待预测的研究区卫星遥感影像中的左上角点横坐标;Among them, x 1 is the abscissa of the upper left corner in the satellite remote sensing image of the study area to be predicted;

y1为在待预测的研究区卫星遥感影像中的左上角点纵坐标;y 1 is the ordinate of the upper left corner point in the satellite remote sensing image of the study area to be predicted;

x2为在待预测的研究区卫星遥感影像中的右下角点横坐标;x 2 is the abscissa of the lower right corner point in the satellite remote sensing image of the study area to be predicted;

y2为在待预测的研究区卫星遥感影像中的右下角点纵坐标;y 2 is the ordinate of the lower right corner point in the satellite remote sensing image of the study area to be predicted;

i为图片在待预测的研究区卫星遥感影像中的位置的行号;i is the line number of the position of the picture in the satellite remote sensing image of the study area to be predicted;

j为图片在待预测的研究区卫星遥感影像中的位置的列号;j is the column number of the position of the picture in the satellite remote sensing image of the study area to be predicted;

q为预先设定的重叠度。q is a preset overlap degree.

优选的,在获取按照预先设定重叠度裁剪后的影像数据之前,所述方法还包括:Preferably, before acquiring the image data cropped according to the preset overlap degree, the method further includes:

针对研究区域卫星遥感影像数据进行预处理,获取预处理后的研究区域卫星遥感影像数据;Preprocess the satellite remote sensing image data of the study area, and obtain the preprocessed satellite remote sensing image data of the study area;

所述预处理为将所述研究区域卫星遥感影像数据中整个研究区内含有输电线路杆塔的区域进行初次裁剪,舍弃不含有输电线路杆塔的区域;The preprocessing is to perform initial trimming of the area containing the transmission line towers in the entire study area in the satellite remote sensing image data of the study area, and discard the area that does not contain the transmission line towers;

针对预处理后的研究区域卫星遥感影像数据,按照预先设定的格式进行裁剪,获取第一图片集合;According to the pre-processed satellite remote sensing image data of the research area, crop it according to the preset format, and obtain the first set of pictures;

所述第一图片集合包括多张满足预先设定的格式的研究区域卫星遥感影像图片;The first picture set includes a plurality of satellite remote sensing image pictures of the research area that meet a preset format;

针对所述第一图片集合中的每一张满足预先设定的格式的研究区域卫星遥感影像图片进行图像处理获取第二图片集合;Perform image processing on each of the first set of pictures that satisfies the preset format of the satellite remote sensing image picture of the study area to obtain a second set of pictures;

所述图像处理为采用灰度世界方式或采用自动白平衡方式或采用直方图均衡化方式处理第一图片集合中的每一张满足预先设定的格式的研究区域卫星遥感影像图片;The image processing is to use a grayscale world method, an automatic white balance method, or a histogram equalization method to process each of the first image sets in the study area satellite remote sensing image picture that meets the preset format;

将所述第二图片集合的60%的图片作为训练集、20%的图片作为验证集、20%的图片为测试集;Taking 60% of the pictures in the second picture set as the training set, 20% of the pictures as the validation set, and 20% of the pictures as the test set;

采用所述训练集、测试集以及验证集对yolov5目标检测模型进行训练和测试和验证获取训练后的yolov5目标检测模型;Use the training set, the test set and the verification set to train and test and verify the yolov5 target detection model to obtain the trained yolov5 target detection model;

所述训练后的yolov5目标检测模型为所述yolov5目标检测模型在借助于所述训练集训练后yolov5目标检测模型的损失函数收敛时的模型。The trained yolov5 target detection model is the model of the yolov5 target detection model when the loss function of the yolov5 target detection model converges after training with the aid of the training set.

优选的,preferably,

所述灰度世界方式实现方法具体包括:The implementation method of the gray-scale world mode specifically includes:

采用公式(A)调整遥感影像通道Bn波段分量C(Bn′);Use formula (A) to adjust the B n -band component C(B n ′) of the remote sensing image channel;

公式(A)为:Formula (A) is:

Figure BDA0003322102480000061
Figure BDA0003322102480000061

其中,

Figure BDA0003322102480000062
in,
Figure BDA0003322102480000062

其中,

Figure BDA0003322102480000063
in,
Figure BDA0003322102480000063

Figure BDA0003322102480000064
为波段n所有像元灰度值的平均值;
Figure BDA0003322102480000064
is the average value of the gray value of all pixels in band n;

C(Bn)为波段n的每个像元的灰度值。C(B n ) is the gray value of each pixel of band n.

优选的,preferably,

所述自动白平衡算法的实现方法具体包括:The implementation method of the automatic white balance algorithm specifically includes:

将遥感影像转到Lab色彩空间,对影像进行偏色检测,计算偏色值,进行颜色校正后转到RGB色彩空间。The remote sensing image is transferred to the Lab color space, the color cast is detected on the image, the color cast value is calculated, and the color is corrected and then transferred to the RGB color space.

优选的,preferably,

所述yolov5目标检测模型的损失函数中的边框损失函数为CIoU;The frame loss function in the loss function of the yolov5 target detection model is CIoU;

所述CIoU为:The CIoU is:

Figure BDA0003322102480000071
Figure BDA0003322102480000071

Figure BDA0003322102480000072
Figure BDA0003322102480000072

其中IoU为真实框和预测框的交并比;where IoU is the intersection ratio of the real frame and the predicted frame;

c为预测框对角线长度;c is the diagonal length of the prediction frame;

ρ2(b,bgt)为用来衡量预测框与真实框中心点之间的欧式距离;ρ 2 (b, b gt ) is used to measure the Euclidean distance between the predicted frame and the center point of the real frame;

α为权重系数;α is the weight coefficient;

v为用来衡量长宽比的相似性。v is the similarity used to measure the aspect ratio.

另一方面,本实施例还提供一种卫星遥感影像输电线路杆塔检测定位方法装置,所述装置包括:On the other hand, this embodiment also provides a satellite remote sensing image transmission line tower detection and positioning method device, the device includes:

至少一个处理器;以及at least one processor; and

与所述处理器通信连接的至少一个存储器,其中,所述存储器存储有可被所述处理器执行的程序指令,所述处理器调用所述程序指令能够执行如上述任一所述的卫星遥感影像输电线路杆塔检测定位方法。At least one memory connected in communication with the processor, wherein the memory stores program instructions executable by the processor, and the processor invokes the program instructions to execute the satellite remote sensing as described above Video transmission line tower detection and positioning method.

(三)有益效果(3) Beneficial effects

本发明的有益效果是:本发明的一种卫星遥感影像输电线路杆塔检测定位方法及装置,由于采用预先训练的目标检测模型,并获取所述按照预先设定重叠度裁剪后的影像数据中每张图片的预测信息,进一步,基于所述按照预先设定重叠度裁剪后的影像数据中每张图片的预测信息进行分析处理,确定按照一定重叠度裁剪后的影像数据中的独立完整输电线路杆塔、输电线路杆塔个数、输电线路杆塔的坐标相对于现有技术而言,实现输电线路杆塔的检测和定位,与人工实地测量和目视解译传统方法相比,使得大范围同时检测成为可能,提高了效率,降低了成本。The beneficial effects of the present invention are as follows: in the present invention, a method and device for detecting and locating a power transmission line tower in a satellite remote sensing image, because a pre-trained target detection model is used, and each of the image data clipped according to the pre-set overlap degree is obtained. The prediction information of each picture, and further, based on the prediction information of each picture in the image data that has been cropped according to the preset overlap degree, analyze and process to determine the independent and complete transmission line tower in the image data that has been cropped according to a certain degree of overlap. , The number of transmission line towers, and the coordinates of transmission line towers. Compared with the existing technology, the detection and positioning of transmission line towers can be realized. Compared with the traditional methods of manual field measurement and visual interpretation, large-scale simultaneous detection is possible. , improve efficiency and reduce costs.

另一方面,本发明的一种卫星遥感影像输电线路杆塔检测定位方法及装置将灰度世界算法或自动白平衡算法或直方图均衡化算法用于研究区卫星遥感影像的处理。与传统的深度学习目标检测算法相比,显著提高了精确率和召回率,增强了模型的泛化能力,具有更高的鲁棒性。On the other hand, a method and device for detecting and positioning transmission line towers in satellite remote sensing images of the present invention use grayscale world algorithm, automatic white balance algorithm or histogram equalization algorithm for processing satellite remote sensing images in the study area. Compared with the traditional deep learning target detection algorithm, it significantly improves the precision and recall rate, enhances the generalization ability of the model, and has higher robustness.

附图说明Description of drawings

图1为本发明的一种卫星遥感影像输电线路杆塔检测定位方法流程图;Fig. 1 is a flow chart of a method for detecting and positioning a transmission line tower in a satellite remote sensing image according to the present invention;

图2为本发明实施例中的卫星遥感影像输电线路杆塔检测定位方法示意图;FIG. 2 is a schematic diagram of a method for detecting and positioning a transmission line tower in a satellite remote sensing image according to an embodiment of the present invention;

图3为本发明实施例中的分析处理的流程示意图;3 is a schematic flowchart of analysis processing in an embodiment of the present invention;

图4为采用本发明的一种卫星遥感影像输电线路杆塔检测定位方法进行检测的检测结果示意图;FIG. 4 is a schematic diagram of the detection result of the detection and positioning method of a kind of satellite remote sensing image transmission line tower detection and positioning method of the present invention;

图5为采用本发明的一种卫星遥感影像输电线路杆塔检测定位方法进行检测的检测结果中检测细节的示意图。FIG. 5 is a schematic diagram of detection details in the detection result of the detection and positioning method of a transmission line tower in a satellite remote sensing image of the present invention.

具体实施方式Detailed ways

为了更好的解释本发明,以便于理解,下面结合附图,通过具体实施方式,对本发明作详细描述。In order to better explain the present invention and facilitate understanding, the present invention will be described in detail below with reference to the accompanying drawings and through specific embodiments.

为了更好的理解上述技术方案,下面将参照附图更详细地描述本发明的示例性实施例。虽然附图中显示了本发明的示例性实施例,然而应当理解,可以以各种形式实现本发明而不应被这里阐述的实施例所限制。相反,提供这些实施例是为了能够更清楚、透彻地理解本发明,并且能够将本发明的范围完整的传达给本领域的技术人员。For better understanding of the above technical solutions, exemplary embodiments of the present invention will be described in more detail below with reference to the accompanying drawings. While exemplary embodiments of the present invention are shown in the drawings, it should be understood that the present invention may be embodied in various forms and should not be limited by the embodiments set forth herein. Rather, these embodiments are provided so that the present invention will be more clearly and thoroughly understood, and will fully convey the scope of the present invention to those skilled in the art.

本发明的一种基于深度学习的卫星遥感影像输电线路杆塔检测和定位方法。The present invention is a deep learning-based satellite remote sensing image transmission line tower detection and positioning method.

本发明创新性的对遥感影像使用灰度世界算法,自动白平衡算法和直方图均衡化算法,以消除遥感影像中环境光影响,获得原始场景的图像,减弱光源对卫星相机传感器的影响,模拟人类视觉系统的恒常性,为保留遥感影像的空间细节信息和空间坐标信息,设计CPAS检测和定位方法,完成遥感影像中输电线路杆塔的的检测,并输出输电线路杆塔的位置信息。与人工实地测量和目视解译传统方法相比,使得大范围同时检测成为可能,提高了效率,降低了成本。与传统的深度学习目标检测算法相比,提高了精确率和召回率,增强了模型的泛化能力,具有更高的鲁棒性。The invention innovatively uses the grayscale world algorithm, the automatic white balance algorithm and the histogram equalization algorithm for the remote sensing image, so as to eliminate the influence of ambient light in the remote sensing image, obtain the image of the original scene, reduce the influence of the light source on the satellite camera sensor, and simulate the Due to the constancy of the human visual system, in order to retain the spatial detail information and spatial coordinate information of the remote sensing image, a CPAS detection and positioning method is designed to complete the detection of the transmission line tower in the remote sensing image, and output the position information of the transmission line tower. Compared with the traditional methods of manual field measurement and visual interpretation, it enables large-scale simultaneous detection, improves efficiency and reduces costs. Compared with the traditional deep learning target detection algorithm, it improves the precision rate and recall rate, enhances the generalization ability of the model, and has higher robustness.

参见图1,本实施例提供一种卫星遥感影像输电线路杆塔检测定位方法,包括:Referring to FIG. 1 , the present embodiment provides a method for detecting and positioning a transmission line tower in a satellite remote sensing image, including:

对待预测的研究区卫星遥感影像按照预先设定的重叠度进行裁剪,并编号记录裁剪后每一图像在所述待预测的研究区卫星遥感影像中的位置信息,获取按照预先设定重叠度裁剪后的影像数据。The satellite remote sensing images of the study area to be predicted are cropped according to a preset degree of overlap, and the position information of each image in the satellite remote sensing image of the study area to be predicted after the cropping is numbered and recorded, and the obtained images are cropped according to the preset degree of overlap. post image data.

将所述按照预先设定重叠度裁剪后的影像数据输入到预先训练的目标检测模型中,并获取所述按照预先设定重叠度裁剪后的影像数据中每张图片的预测信息。The image data trimmed according to the preset overlap degree is input into a pre-trained target detection model, and the prediction information of each picture in the image data trimmed according to the preset overlap degree is acquired.

所述每张图片的预测信息包括输电线路杆塔中心点归一化坐标、置信度。The prediction information of each picture includes the normalized coordinates and confidence level of the center point of the transmission line tower.

训练后的目标检测模型为预先采用卫星遥感影像的训练集和测试集对yolov5目标检测模型进行训练并测试后的模型。The trained target detection model is a model that uses the training set and test set of satellite remote sensing images to train and test the yolov5 target detection model in advance.

在本实施例的实际应用中,所述方法还包括:In the practical application of this embodiment, the method further includes:

针对所述按照预先设定重叠度裁剪后的影像数据中每张图片的预测信息进行分析处理,确定所述按照一定重叠度裁剪后的影像数据中的独立完整输电线路杆塔、输电线路杆塔个数、输电线路杆塔的坐标。Analyze and process the prediction information of each picture in the image data cropped according to the preset overlap degree, and determine the number of independent and complete transmission line towers and transmission line towers in the image data cropped according to a certain degree of overlap , the coordinates of the transmission line tower.

参见图3,在本实施例的实际应用中,针对所述按照预先设定重叠度裁剪后的影像数据中每张图片的预测信息进行分析处理,确定所述按照一定重叠度裁剪后的影像数据中的独立完整输电线路杆塔、输电线路杆塔个数、输电线路杆塔的坐标,具体包括:Referring to FIG. 3 , in the practical application of this embodiment, the prediction information of each picture in the image data trimmed according to the preset overlap degree is analyzed and processed, and the image data trimmed according to a certain overlap degree is determined. The independent complete transmission line towers, the number of transmission line towers, and the coordinates of the transmission line towers in the list include:

所述每张图片的预测信息包括输电线路杆塔中心点归一化坐标、置信度。The prediction information of each picture includes the normalized coordinates and confidence level of the center point of the transmission line tower.

将所述每张图片中的输电线路杆塔中心点归一化坐标进行第一坐标转换处理获取相应的图片中的坐标。Perform a first coordinate transformation process on the normalized coordinates of the center point of the transmission line tower in each picture to obtain the coordinates in the corresponding picture.

基于每一图像在所述待预测的研究区卫星遥感影像中的位置信息、所述每张图片中的坐标进行第二坐标转换处理获取在待预测的研究区卫星遥感影像中的坐标。Based on the position information of each image in the satellite remote sensing image of the study area to be predicted, and the coordinates in each picture, a second coordinate conversion process is performed to obtain the coordinates in the satellite remote sensing image of the study area to be predicted.

分别判断每张图片的预测信息中输电线路杆塔中心点置信度是否低于预先设定的阈值,获取第一判断结果,并将第一判断结果为低于所设定阈值的作为yolov5目标检测模型检测目标的输电线路杆塔删除,保留第一判断结果为大于等于所设定阈值的作为yolov5目标检测模型检测目标的输电线路杆塔。Respectively judge whether the confidence of the center point of the transmission line tower in the prediction information of each picture is lower than the preset threshold, obtain the first judgment result, and use the first judgment result as lower than the set threshold as the yolov5 target detection model The transmission line towers of the detection target are deleted, and the transmission line towers whose first judgment result is greater than or equal to the set threshold are reserved as the detection target of the yolov5 target detection model.

判断yolov5目标检测模型中预测框中是否存在重叠,获取第二判断结果,并根据第二判断结果,确定作为yolov5目标检测模型的最终检测目标的输电线路杆塔。Determine whether there is overlap in the prediction frame of the yolov5 target detection model, obtain the second judgment result, and determine the transmission line tower as the final detection target of the yolov5 target detection model according to the second judgment result.

采用gdal六参数转换模型将所述yolov5目标检测模型的最终检测目标的输电线路杆塔所对应的待预测的研究区卫星遥感影像中的坐标转换为相应的地理坐标,并输出影像区域内输电线路杆塔个数、输电线路杆塔的地理坐标。The six-parameter transformation model of gdal is used to convert the coordinates in the satellite remote sensing image of the study area corresponding to the transmission line tower of the final detection target of the yolov5 target detection model to the corresponding geographic coordinates, and output the transmission line tower in the image area. The number and geographic coordinates of the transmission line towers.

在本实施例具体应用中将yolov5目标检测模型的最终检测目标的输电线路杆塔在输入的待预测的研究区卫星遥感影像显示,如图4、图5所示,并输出影像区域内输电线路杆塔个数和输电线路杆塔的坐标如表一。In the specific application of this embodiment, the transmission line tower of the final detection target of the yolov5 target detection model is displayed in the input satellite remote sensing image of the study area to be predicted, as shown in Figure 4 and Figure 5, and the transmission line tower in the image area is output. The number and coordinates of transmission line towers are shown in Table 1.

表一影像区域内输电线路杆塔个数和输电线路杆塔的坐标信息Table 1 The number of transmission line towers in the image area and the coordinate information of transmission line towers

Figure BDA0003322102480000111
Figure BDA0003322102480000111

在本实施例的实际应用中,根据第二判断结果,确定作为yolov5目标检测模型的最终检测目标的输电线路杆塔,具体包括:In the practical application of this embodiment, according to the second judgment result, the transmission line tower as the final detection target of the yolov5 target detection model is determined, which specifically includes:

若所述第二判断结果为yolov5目标检测模型中预测框中没有存在重叠,则将所述yolov5目标检测模型中预测框中的输电线路杆塔作为yolov5目标检测模型的最终检测目标的输电线路杆塔。If the second judgment result is that there is no overlap in the prediction frame in the yolov5 target detection model, the transmission line tower in the prediction frame in the yolov5 target detection model is used as the transmission line tower of the final detection target of the yolov5 target detection model.

若所述第二判断结果为yolov5目标检测模型中预测框中存在重叠,则判断具有重叠区域的预测框是否位于同一张图片。If the second judgment result is that the prediction frames in the yolov5 target detection model overlap, it is determined whether the prediction frames with the overlapping area are located in the same picture.

若含有重叠区域的预测框在同一张图片中,则预测框中的所有输电线路杆塔均作为yolov5目标检测模型的最终检测目标的输电线路杆塔。If the prediction frame containing the overlapping area is in the same picture, all the transmission line towers in the prediction frame are used as the transmission line towers of the final detection target of the yolov5 target detection model.

含有重叠区域的预测框在不在同一张图片中,则将预测框中的置信度最大的输电线路杆塔均作为yolov5目标检测模型的最终检测目标的输电线路杆塔。If the prediction frame containing the overlapping area is not in the same picture, the transmission line tower with the highest confidence in the prediction frame is used as the transmission line tower of the final detection target of the yolov5 target detection model.

在本实施例的实际应用中,其中,采用公式(1)进行所述第一坐标转换处理。In the practical application of this embodiment, the formula (1) is used to perform the first coordinate conversion processing.

所述公式(1)为:The formula (1) is:

Figure BDA0003322102480000121
Figure BDA0003322102480000121

Figure BDA0003322102480000122
Figure BDA0003322102480000122

其中,Xmin为按照预先设定重叠度裁剪后的影像数据中图片的左上角点的横坐标。Wherein, X min is the abscissa of the upper left corner of the picture in the image data cropped according to the preset overlap degree.

Ymin为按照预先设定重叠度裁剪后的影像数据中图片的左上角点的纵坐标。Y min is the ordinate of the upper left corner of the picture in the image data cropped according to the preset overlap degree.

Ymax为按照预先设定重叠度裁剪后的影像数据中图片的右下角点的横坐标。Y max is the abscissa of the lower right corner of the picture in the image data cropped according to the preset overlap degree.

Xmax为按照预先设定重叠度裁剪后的影像数据中图片的右下角点的纵坐标。X max is the ordinate of the lower right corner of the picture in the image data cropped according to the preset overlap degree.

W为按照预先设定重叠度裁剪后的影像数据中每张图片的宽度。W is the width of each picture in the image data cropped according to the preset overlap degree.

H为按照预先设定重叠度裁剪后的影像数据中每张图片的高度。H is the height of each picture in the cropped image data according to the preset overlap degree.

x为预测框的归一化中心横坐标。x is the normalized center abscissa of the prediction box.

y为预测框的归一化中心纵坐标。y is the normalized center ordinate of the prediction frame.

w为预测框的归一化宽度。w is the normalized width of the prediction box.

h为预测框的归一化高度。h is the normalized height of the prediction box.

采用公式(2)进行第二坐标转换处理获取待预测的研究区卫星遥感影像中的坐标。Use formula (2) to perform the second coordinate transformation process to obtain the coordinates in the satellite remote sensing image of the study area to be predicted.

其中,公式(2)为:Among them, formula (2) is:

Figure BDA0003322102480000131
Figure BDA0003322102480000131

Figure BDA0003322102480000132
Figure BDA0003322102480000132

其中,x1为在待预测的研究区卫星遥感影像中的左上角点横坐标。Among them, x 1 is the abscissa of the upper left corner in the satellite remote sensing image of the study area to be predicted.

y1为在待预测的研究区卫星遥感影像中的左上角点纵坐标。y 1 is the ordinate of the upper left corner in the satellite remote sensing image of the study area to be predicted.

x2为在待预测的研究区卫星遥感影像中的右下角点横坐标。x 2 is the abscissa of the lower right corner point in the satellite remote sensing image of the study area to be predicted.

y2为在待预测的研究区卫星遥感影像中的右下角点纵坐标。y 2 is the ordinate of the lower right corner point in the satellite remote sensing image of the study area to be predicted.

i为图片在待预测的研究区卫星遥感影像中的位置的行号。i is the line number of the position of the picture in the satellite remote sensing image of the study area to be predicted.

j为图片在待预测的研究区卫星遥感影像中的位置的列号。j is the column number of the position of the picture in the satellite remote sensing image of the study area to be predicted.

q为预先设定的重叠度。q is a preset overlap degree.

参见图2,在本实施例的实际应用中,在获取按照预先设定重叠度裁剪后的影像数据之前,所述方法还包括:Referring to FIG. 2, in the practical application of this embodiment, before acquiring the image data cropped according to the preset overlap degree, the method further includes:

针对研究区域卫星遥感影像数据进行预处理,获取预处理后的研究区域卫星遥感影像数据。The satellite remote sensing image data of the study area is preprocessed, and the preprocessed satellite remote sensing image data of the study area is obtained.

所述预处理为将所述研究区域卫星遥感影像数据中整个研究区内含有输电线路杆塔的区域进行初次裁剪,舍弃不含有输电线路杆塔的区域。The preprocessing is to initially trim the area containing the transmission line tower in the satellite remote sensing image data of the study area, and discard the area that does not contain the transmission line tower.

本实施例中下载研究区内遥感影像,为减少制作数据集时的不必要工作,将整个研究区内含有输电线路杆塔的典型区域进行裁剪,舍弃部分不含有输电线路杆塔的海洋等区域。In this example, the remote sensing images in the study area are downloaded. In order to reduce unnecessary work when creating data sets, the typical area containing transmission line towers is cut out in the entire study area, and some areas such as oceans that do not contain transmission line towers are discarded.

针对预处理后的研究区域卫星遥感影像数据,按照预先设定的格式进行裁剪,获取第一图片集合。The preprocessed satellite remote sensing image data of the study area is cropped according to a preset format to obtain a first set of images.

所述第一图片集合包括多张满足预先设定的格式的研究区域卫星遥感影像图片。The first picture set includes a plurality of satellite remote sensing image pictures of the research area that meet a preset format.

针对所述第一图片集合中的每一张满足预先设定的格式的研究区域卫星遥感影像图片进行图像处理获取第二图片集合。Perform image processing on each satellite remote sensing image picture of the study area that meets a preset format in the first picture set to obtain a second picture set.

所述图像处理为采用灰度世界方式或采用自动白平衡方式或采用直方图均衡化方式处理第一图片集合中的每一张满足预先设定的格式的研究区域卫星遥感影像图片。The image processing is to process each satellite remote sensing image picture of the research area in the first set of images that meets a preset format by using a grayscale world method, an automatic white balance method, or a histogram equalization method.

在本实施例的具体应用中针对所述第一图片集合中的每一张满足预先设定的格式的研究区域卫星遥感影像图片随机进行灰度世界算法,自动白平衡算法和直方图均衡化处理。In the specific application of this embodiment, the gray-scale world algorithm, the automatic white balance algorithm and the histogram equalization process are randomly performed for each satellite remote sensing image picture of the research area that meets the preset format in the first picture set. .

将所述第二图片集合的60%的图片作为训练集、20%的图片作为验证集、20%的图片为测试集。60% of the pictures in the second picture set are used as the training set, 20% of the pictures are used as the validation set, and 20% of the pictures are used as the test set.

采用所述训练集、测试集以及验证集对yolov5目标检测模型进行训练和测试和验证获取训练后的yolov5目标检测模型。The training set, the test set and the verification set are used to train, test and verify the yolov5 target detection model to obtain the trained yolov5 target detection model.

所述训练后的yolov5目标检测模型为所述yolov5目标检测模型在借助于所述训练集训练后yolov5目标检测模型的损失函数收敛时的模型。The trained yolov5 target detection model is the model of the yolov5 target detection model when the loss function of the yolov5 target detection model converges after training with the aid of the training set.

在本实施例的实际应用中,所述灰度世界方式实现方法具体包括:In the practical application of this embodiment, the method for realizing the grayscale world mode specifically includes:

采用公式(A)调整遥感影像通道Bn波段分量C(Bn′)。Use formula (A) to adjust the B n -band component C(B n ') of the remote sensing image channel.

公式(A)为:Formula (A) is:

Figure BDA0003322102480000141
Figure BDA0003322102480000141

其中,

Figure BDA0003322102480000142
in,
Figure BDA0003322102480000142

其中,

Figure BDA0003322102480000143
in,
Figure BDA0003322102480000143

Figure BDA0003322102480000144
为波段n所有像元灰度值的平均值。
Figure BDA0003322102480000144
is the average value of the grayscale values of all pixels in band n.

C(Bn)为波段n的每个像元的灰度值。C(B n ) is the gray value of each pixel of band n.

在具体应用中,灰度世界算法实现流程为:计算遥感影像各通道像元平均值,以B1,B2,B3三通道为例,

Figure BDA0003322102480000151
再计算B1,B2,B3三通道的增益系数
Figure BDA0003322102480000152
根据Von Kries对角模型,根据遥感影像中像元灰度值C调整其B1,B2,B3波段分量:
Figure BDA0003322102480000153
Figure BDA0003322102480000154
In the specific application, the realization process of the gray - scale world algorithm is as follows: calculate the average value of each channel pixel of the remote sensing image.
Figure BDA0003322102480000151
Then calculate the gain coefficients of the three channels B 1 , B 2 , and B 3
Figure BDA0003322102480000152
According to the Von Kries diagonal model, adjust its B 1 , B 2 , B 3 band components according to the pixel gray value C in the remote sensing image:
Figure BDA0003322102480000153
Figure BDA0003322102480000154

在本实施例的实际应用中,所述自动白平衡算法的实现方法具体包括:In the practical application of this embodiment, the implementation method of the automatic white balance algorithm specifically includes:

将遥感影像转到Lab色彩空间,对影像进行偏色检测,计算偏色值,进行颜色校正后转到RGB色彩空间。The remote sensing image is transferred to the Lab color space, the color cast is detected on the image, the color cast value is calculated, and the color is corrected and then transferred to the RGB color space.

在本实施例的实际应用中,所述yolov5目标检测模型的损失函数中的边框损失函数为CIoU。In the practical application of this embodiment, the frame loss function in the loss function of the yolov5 target detection model is CIoU.

所述CIoU为:The CIoU is:

Figure BDA0003322102480000155
Figure BDA0003322102480000155

Figure BDA0003322102480000156
Figure BDA0003322102480000156

其中IoU为真实框和预测框的交并比。where IoU is the intersection ratio of the ground-truth box and the predicted box.

C为预测框对角线长度。C is the diagonal length of the prediction box.

p2(b,bgt)为用来衡量预测框与真实框中心点之间的欧式距离。p 2 (b,b gt ) is used to measure the Euclidean distance between the predicted frame and the center point of the true frame.

α为权重系数。α is the weight coefficient.

v为用来衡量长宽比的相似性。v is the similarity used to measure the aspect ratio.

在本实施例的具体应用中,CIoU综合了预测框的长宽比,目标和锚点(anchor)之间的距离,重叠度和尺度等因素,使得目标框的回归更加稳定,有利于加快收敛速度。In the specific application of this embodiment, CIoU integrates factors such as the aspect ratio of the prediction frame, the distance between the target and the anchor, the degree of overlap, and the scale, so that the regression of the target frame is more stable, which is conducive to speeding up the convergence. speed.

深度学习本质上是构建含有多隐层的机器学习架构模型,通过大规模数据进行训练,得到大量更具代表性的特征信息。从而对样本进行分类和预测,提高分类和预测的精度。这个过程是通过深度学习模型的手段达到特征学习的目的。随着深度学习理论的不断完善和检测算法的迭代更新,神经网络具有强大的特征提取能力,基于深度学习的目标检测方法相比于传统目标检测方法具有的明显的优越性。The essence of deep learning is to build a machine learning architecture model with multiple hidden layers, and to obtain a large amount of more representative feature information through training on large-scale data. Thereby, the samples are classified and predicted, and the accuracy of classification and prediction is improved. This process is to achieve the purpose of feature learning by means of deep learning models. With the continuous improvement of deep learning theory and the iterative update of detection algorithms, neural networks have powerful feature extraction capabilities, and target detection methods based on deep learning have obvious advantages over traditional target detection methods.

本实施例中使用深度学习的方法,实现输电线路杆塔的检测和定位,与人工实地测量和目视解译传统方法相比,使得大范围同时检测成为可能,提高了效率,降低了成本。In this embodiment, the deep learning method is used to realize the detection and positioning of transmission line towers. Compared with traditional methods of manual field measurement and visual interpretation, simultaneous detection in a large area is possible, efficiency is improved, and cost is reduced.

本实施例中将灰度世界算法,自动白平衡算法和直方图均衡化算法用于研究区卫星遥感影像的处理。与传统的深度学习目标检测算法相比,显著提高了精确率和召回率,增强了模型的泛化能力,具有更高的鲁棒性。In this embodiment, the grayscale world algorithm, the automatic white balance algorithm and the histogram equalization algorithm are used for the processing of satellite remote sensing images in the study area. Compared with the traditional deep learning target detection algorithm, it significantly improves the precision and recall rate, enhances the generalization ability of the model, and has higher robustness.

遥感影像具有更大的尺寸以及含有坐标信息。直接带入模型预测会损失大量的空间细节信息以及坐标信息。经测试本发明提出的方法能有效保留遥感影像的空间细节信息和坐标信息。Remote sensing images have larger size and contain coordinate information. Bringing it directly into the model prediction will lose a lot of spatial detail information and coordinate information. After testing, the method proposed by the present invention can effectively retain the spatial detail information and coordinate information of the remote sensing image.

由于本发明上述实施例所描述的系统,为实施本发明上述实施例的方法所采用的系统,故而基于本发明上述实施例所描述的方法,本领域所属技术人员能够了解该系统/装置的具体结构及变形,因而在此不再赘述。凡是本发明上述实施例的方法所采用的系统都属于本发明所欲保护的范围。Since the system described in the above embodiments of the present invention is the system used to implement the methods in the above embodiments of the present invention, based on the methods described in the above embodiments of the present invention, those skilled in the art can understand the specific details of the system/device. The structure and deformation will not be repeated here. All systems used in the methods of the above embodiments of the present invention belong to the scope of protection of the present invention.

本领域内的技术人员应明白,本发明的实施例可提供为方法、系统或计算机程序产品。因此,本发明可采用完全硬件实施例、完全软件实施例,或结合软件和硬件方面的实施例的形式。而且,本发明可采用在一个或多个其中包含有计算机可用程序代码的计算机可用存储介质(包括但不限于磁盘存储器、CD-ROM、光学存储器等)上实施的计算机程序产品的形式。As will be appreciated by one skilled in the art, embodiments of the present invention may be provided as a method, system or computer program product. Accordingly, the present invention may take the form of an entirely hardware embodiment, an entirely software embodiment, or an embodiment combining software and hardware aspects. Furthermore, the present invention may take the form of a computer program product embodied on one or more computer-usable storage media (including, but not limited to, disk storage, CD-ROM, optical storage, etc.) having computer-usable program code embodied therein.

本发明是参照根据本发明实施例的方法、设备(系统)和计算机程序产品的流程图和/或方框图来描述的。应理解可由计算机程序指令实现流程图和/或方框图中的每一流程和/或方框、以及流程图和/或方框图中的流程和/或方框的结合。The present invention is described with reference to flowchart illustrations and/or block diagrams of methods, apparatus (systems) and computer program products according to embodiments of the invention. It will be understood that each flow and/or block in the flowchart illustrations and/or block diagrams, and combinations of flows and/or blocks in the flowchart illustrations and/or block diagrams, can be implemented by computer program instructions.

应当注意的是,在权利要求中,不应将位于括号之间的任何附图标记理解成对权利要求的限制。词语“包含”不排除存在未列在权利要求中的部件或步骤。位于部件之前的词语“一”或“一个”不排除存在多个这样的部件。本发明可以借助于包括有若干不同部件的硬件以及借助于适当编程的计算机来实现。在列举了若干装置的权利要求中,这些装置中的若干个可以是通过同一个硬件来具体体现。词语第一、第二、第三等的使用,仅是为了表述方便,而不表示任何顺序。可将这些词语理解为部件名称的一部分。It should be noted that, in the claims, any reference signs placed between parentheses shall not be construed as limiting the claim. The word "comprising" does not exclude the presence of elements or steps not listed in a claim. The word "a" or "an" preceding an element does not preclude the presence of a plurality of such elements. The invention can be implemented by means of hardware comprising several different components and by means of a suitably programmed computer. In the claims enumerating several means, several of these means can be embodied by one and the same item of hardware. The words first, second, third, etc. are used for convenience only and do not imply any order. These words can be understood as part of the part name.

此外,需要说明的是,在本说明书的描述中,术语“一个实施例”、“一些实施例”、“实施例”、“示例”、“具体示例”或“一些示例”等的描述,是指结合该实施例或示例描述的具体特征、结构、材料或者特点包含于本发明的至少一个实施例或示例中。在本说明书中,对上述术语的示意性表述不必须针对的是相同的实施例或示例。而且,描述的具体特征、结构、材料或者特点可以在任一个或多个实施例或示例中以合适的方式结合。此外,在不相互矛盾的情况下,本领域的技术人员可以将本说明书中描述的不同实施例或示例以及不同实施例或示例的特征进行结合和组合。In addition, it should be noted that in the description of this specification, the description of the terms "one embodiment", "some embodiments", "embodiments", "examples", "specific examples" or "some examples", etc., are Indicates that a particular feature, structure, material, or characteristic described in connection with the embodiment or example is included in at least one embodiment or example of the present invention. In this specification, schematic representations of the above terms are not necessarily directed to the same embodiment or example. Furthermore, the particular features, structures, materials or characteristics described may be combined in any suitable manner in any one or more embodiments or examples. Furthermore, those skilled in the art may combine and combine the different embodiments or examples described in this specification, as well as the features of the different embodiments or examples, without conflicting each other.

尽管已描述了本发明的优选实施例,但本领域的技术人员在得知了基本创造性概念后,则可对这些实施例作出另外的变更和修改。所以,权利要求应该解释为包括优选实施例以及落入本发明范围的所有变更和修改。Although the preferred embodiments of the present invention have been described, additional changes and modifications to these embodiments will occur to those skilled in the art after learning the basic inventive concepts. Therefore, the claims should be construed to include the preferred embodiment and all changes and modifications that fall within the scope of the present invention.

显然,本领域的技术人员可以对本发明进行各种修改和变型而不脱离本发明的精神和范围。这样,倘若本发明的这些修改和变型属于本发明权利要求及其等同技术的范围之内,则本发明也应该包含这些修改和变型在内。It will be apparent to those skilled in the art that various modifications and variations can be made in the present invention without departing from the spirit and scope of the invention. Thus, provided that these modifications and variations of the present invention fall within the scope of the claims of the present invention and their equivalents, the present invention should also include these modifications and variations.

Claims (10)

1. A detection and positioning method for a power transmission line tower based on a satellite remote sensing image is characterized by comprising the following steps:
cutting the satellite remote sensing images of the research area to be predicted according to a preset overlapping degree, numbering and recording the position information of each cut image in the satellite remote sensing images of the research area to be predicted, and acquiring image data cut according to the preset overlapping degree;
inputting the image data cut according to the preset overlapping degree into a pre-trained target detection model, and acquiring the prediction information of each picture in the image data cut according to the preset overlapping degree;
the prediction information of each picture comprises normalized coordinates and confidence degrees of the center point of the power transmission line tower;
the trained target detection model is a model obtained by training and testing a yolov5 target detection model in advance by adopting a training set and a testing set of satellite remote sensing images.
2. The method of claim 1, further comprising:
analyzing and processing the prediction information of each picture in the image data cut according to the preset overlapping degree, and determining independent complete transmission line towers, the number of the transmission line towers and the coordinates of the transmission line towers in the image data cut according to the certain overlapping degree.
3. The method according to claim 2, wherein the analyzing the prediction information of each picture in the image data cut according to the preset overlapping degree to determine the number of independent complete transmission line towers, the number of transmission line towers and the coordinates of the transmission line towers in the image data cut according to the certain overlapping degree specifically comprises:
the prediction information of each picture comprises normalized coordinates and confidence degrees of the center point of the power transmission line tower;
performing first coordinate conversion processing on the normalized coordinates of the central point of the power transmission line tower in each picture to obtain the coordinates in the corresponding picture;
performing second coordinate conversion processing on the position information of each image in the satellite remote sensing image of the research area to be predicted and the coordinates in each picture to obtain the coordinates in the satellite remote sensing image of the research area to be predicted;
respectively judging whether the confidence of the center point of the power transmission line tower in the prediction information of each picture is lower than a preset threshold value, acquiring a first judgment result, deleting the power transmission line tower which is lower than the preset threshold value and is used as a detection target of the yolov5 target detection model, and keeping the power transmission line tower which is larger than or equal to the preset threshold value and is used as a detection target of the yolov5 target detection model;
judging whether the prediction frames in the yolov5 target detection model are overlapped or not, obtaining a second judgment result, and determining the power transmission line tower serving as the final detection target of the yolov5 target detection model according to the second judgment result;
and converting coordinates in the satellite remote sensing image of the research area to be predicted, which corresponds to the power transmission line pole tower of the final detection target of the yolov5 target detection model, into corresponding geographic coordinates by adopting a gdal six-parameter conversion model, and outputting the number of the power transmission line poles and the geographic coordinates of the power transmission line poles and towers in an image area.
4. The method according to claim 3, wherein determining the transmission line tower as the final detection target of the yolov5 target detection model according to the second determination result specifically comprises:
if the second judgment result is that no overlap exists in the prediction frames in the yolov5 target detection model, taking the power transmission line tower in the prediction frames in the yolov5 target detection model as the power transmission line tower of the final detection target of the yolov5 target detection model;
if the second judgment result is that the prediction frames in the yolov5 target detection model are overlapped, judging whether the prediction frames with the overlapped areas are positioned in the same picture;
if the prediction frames containing the overlapping areas are in the same picture, all the transmission line towers in the prediction frames are used as the transmission line towers of the final detection target of the yolov5 target detection model;
and if the prediction frames containing the overlapping areas are not in the same picture, all the power transmission line towers with the maximum confidence in the prediction frames are used as the power transmission line towers of the final detection target of the yolov5 target detection model.
5. The method of claim 4,
wherein the first coordinate conversion processing is performed by using a formula (1);
the formula (1) is:
Figure FDA0003322102470000031
Figure FDA0003322102470000032
wherein, XminThe horizontal coordinate of the upper left corner point of the picture in the image data cut according to the preset overlapping degree;
Yminthe vertical coordinate of the upper left corner point of the picture in the image data cut according to the preset overlapping degree;
Xmaxthe horizontal coordinate of the lower right corner point of the picture in the image data cut according to the preset overlapping degree;
Ymaxthe vertical coordinate of the lower right corner point of the picture in the image data cut according to the preset overlapping degree;
w is the width of each picture in the image data cut according to the preset overlapping degree;
h is the height of each picture in the image data cut according to the preset overlapping degree;
x is the normalized central abscissa of the prediction box;
y is the normalized central ordinate of the prediction frame;
w is the normalized width of the prediction box;
h is the normalized height of the prediction box;
adopting a formula (2) to perform second coordinate conversion processing to obtain coordinates in the satellite remote sensing image of the research area to be predicted;
wherein, the formula (2) is:
Figure FDA0003322102470000041
Figure FDA0003322102470000042
wherein x is1The horizontal coordinate of the upper left corner point in a satellite remote sensing image of a research area to be predicted;
y1for satellite remote in the research area to be predictedSensing the vertical coordinate of the upper left corner point in the image;
x2the horizontal coordinate of the lower right corner point in the satellite remote sensing image of the research area to be predicted;
y2the vertical coordinate of the lower right corner in the satellite remote sensing image of the research area to be predicted;
i is a row number of the position of the picture in the satellite remote sensing image of the research area to be predicted;
j is the column number of the position of the picture in the satellite remote sensing image of the research area to be predicted;
q is a preset overlap.
6. The method of claim 5, wherein prior to acquiring the image data cropped to the predetermined degree of overlap, the method further comprises:
preprocessing the satellite remote sensing image data of the research area to obtain preprocessed satellite remote sensing image data of the research area;
the preprocessing comprises the steps of carrying out primary cutting on an area containing the transmission line tower in the whole research area in the satellite remote sensing image data of the research area, and abandoning the area containing no transmission line tower;
cutting the preprocessed satellite remote sensing image data of the research area according to a preset format to obtain a first picture set;
the first picture set comprises a plurality of research area satellite remote sensing image pictures meeting a preset format;
performing image processing on each research area satellite remote sensing image picture meeting a preset format in the first picture set to obtain a second picture set;
the image processing is to process each research area satellite remote sensing image picture meeting a preset format in a first picture set by adopting a gray world mode or an automatic white balance mode or a histogram equalization mode;
taking 60% of pictures in the second picture set as a training set, 20% of pictures as a verification set and 20% of pictures as a test set;
training, testing and verifying the yolov5 target detection model by adopting the training set, the testing set and the verifying set to obtain a trained yolov5 target detection model;
the trained yolov5 target inspection model is the model of the yolov5 target inspection model when the loss function of the yolov5 target inspection model after training with the training set converges.
7. The method of claim 6,
the gray world mode implementation method specifically comprises the following steps:
adjusting remote sensing image channel B by formula (A)nBand component C (B)n′);
The formula (A) is:
Figure FDA0003322102470000051
wherein,
Figure FDA0003322102470000052
wherein,
Figure FDA0003322102470000053
Figure FDA0003322102470000054
the average value of all pixel gray values of the wave band n is obtained;
C(Bn) Is the gray value of each pixel of the band n.
8. The method of claim 7,
the implementation method of the automatic white balance algorithm specifically comprises the following steps:
and transferring the remote sensing image to a Lab color space, performing color cast detection on the image, calculating a color cast value, and transferring to an RGB color space after performing color correction.
9. The method of claim 8,
a frame loss function in the loss functions of the yolov5 target detection model is CIoU;
the CIoU is as follows:
Figure FDA0003322102470000061
Figure FDA0003322102470000062
wherein IoU is the intersection ratio of the real box and the predicted box;
c is the diagonal length of the prediction frame;
ρ2(b,bgt) The Euclidean distance between the central points of the prediction frame and the real frame is measured;
alpha is a weight coefficient;
v is a measure of the similarity of aspect ratios.
10. A detection and positioning method device for a power transmission line tower based on a satellite remote sensing image is characterized by comprising the following steps:
at least one processor; and
at least one memory communicatively connected to the processor, wherein the memory stores program instructions executable by the processor, and the processor calls the program instructions to perform the method according to any one of claims 1 to 9.
CN202111249174.8A 2021-10-26 2021-10-26 A kind of satellite remote sensing image transmission line tower detection and positioning method and device Pending CN114022761A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202111249174.8A CN114022761A (en) 2021-10-26 2021-10-26 A kind of satellite remote sensing image transmission line tower detection and positioning method and device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202111249174.8A CN114022761A (en) 2021-10-26 2021-10-26 A kind of satellite remote sensing image transmission line tower detection and positioning method and device

Publications (1)

Publication Number Publication Date
CN114022761A true CN114022761A (en) 2022-02-08

Family

ID=80057667

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202111249174.8A Pending CN114022761A (en) 2021-10-26 2021-10-26 A kind of satellite remote sensing image transmission line tower detection and positioning method and device

Country Status (1)

Country Link
CN (1) CN114022761A (en)

Cited By (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN114419559A (en) * 2022-03-31 2022-04-29 南方电网数字电网研究院有限公司 Attention mechanism-based method for identifying vine climbing hidden danger of distribution network line tower
CN114842326A (en) * 2022-03-21 2022-08-02 华南农业大学 A calibration-free method for locating missing seedlings of sandalwood plants
CN115019209A (en) * 2022-06-20 2022-09-06 福建省海峡智汇科技有限公司 A method and system for state detection of power towers based on deep learning
CN116843909A (en) * 2023-05-12 2023-10-03 国家电网有限公司华东分部 Power line extraction method and device, storage medium, computer equipment
CN117268344A (en) * 2023-11-17 2023-12-22 航天宏图信息技术股份有限公司 Method, device, equipment and medium for predicting high-risk source of electric tower line tree

Cited By (9)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN114842326A (en) * 2022-03-21 2022-08-02 华南农业大学 A calibration-free method for locating missing seedlings of sandalwood plants
CN114842326B (en) * 2022-03-21 2024-04-02 华南农业大学 A method for locating missing seedlings of sandalwood trees without calibration
CN114419559A (en) * 2022-03-31 2022-04-29 南方电网数字电网研究院有限公司 Attention mechanism-based method for identifying vine climbing hidden danger of distribution network line tower
CN114419559B (en) * 2022-03-31 2022-07-29 南方电网数字电网研究院有限公司 Attention mechanism-based method for identifying climbing hidden danger of vines of towers of distribution network line
CN115019209A (en) * 2022-06-20 2022-09-06 福建省海峡智汇科技有限公司 A method and system for state detection of power towers based on deep learning
CN116843909A (en) * 2023-05-12 2023-10-03 国家电网有限公司华东分部 Power line extraction method and device, storage medium, computer equipment
CN116843909B (en) * 2023-05-12 2024-03-08 国家电网有限公司华东分部 Power line extraction method and device, storage medium and computer equipment
CN117268344A (en) * 2023-11-17 2023-12-22 航天宏图信息技术股份有限公司 Method, device, equipment and medium for predicting high-risk source of electric tower line tree
CN117268344B (en) * 2023-11-17 2024-02-13 航天宏图信息技术股份有限公司 Method, device, equipment and medium for predicting high-risk source of electric tower line tree

Similar Documents

Publication Publication Date Title
CN114022761A (en) A kind of satellite remote sensing image transmission line tower detection and positioning method and device
CN109145830B (en) Intelligent water gauge identification method
CN114677644B (en) A method and system for identifying student seating distribution based on classroom surveillance video
CN109902761B (en) A fishing situation prediction method based on fusion of marine environmental factors and deep learning
CN116863274B (en) Semi-supervised learning-based steel plate surface defect detection method and system
CN114973002A (en) Improved YOLOv 5-based ear detection method
KR102346676B1 (en) Method for creating damage figure using the deep learning-based damage image classification of facility
CN109886947A (en) High-voltage wire defect detection method based on region convolutional neural network
CN110390673A (en) An automatic cigarette detection method based on deep learning in surveillance scenarios
CN117557775A (en) Substation power equipment detection method and system based on infrared and visible light fusion
CN115661628A (en) A Fish Detection Method Based on Improved YOLOv5S Model
CN113255590A (en) Defect detection model training method, defect detection method, device and system
CN113487547B (en) Satellite remote sensing image stripe noise positioning method and device
CN114511519A (en) An image processing-based detection method for missing bolts at the bottom of trains
CN116152685B (en) A pedestrian detection method and system based on the field of view of a drone
CN116824347A (en) Road crack detection method based on deep learning
CN116468683A (en) A method and system for bridge crack detection and crack three-dimensional visualization
CN108664886A (en) A kind of fast face recognition method adapting to substation's disengaging monitoring demand
CN104915641B (en) The method that facial image light source orientation is obtained based on Android platform
CN117830826A (en) Concrete dam surface slender crack detection method based on unmanned aerial vehicle
KR102416714B1 (en) System and method for city-scale tree mapping using 3-channel images and multiple deep learning
Aldabbagh et al. Classification of chili plant growth using deep learning
CN109540138A (en) Indoor navigation method, system and the readable memory of view-based access control model neural network
CN115689206A (en) Intelligent monitoring method for transformer substation infrastructure progress based on deep learning
CN114267016A (en) A visual aided proctoring system for offline multi-person exams

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination