[go: up one dir, main page]

CN108389205B - A method and device for monitoring foreign objects on rails based on images of space-based platforms - Google Patents

A method and device for monitoring foreign objects on rails based on images of space-based platforms Download PDF

Info

Publication number
CN108389205B
CN108389205B CN201810225219.XA CN201810225219A CN108389205B CN 108389205 B CN108389205 B CN 108389205B CN 201810225219 A CN201810225219 A CN 201810225219A CN 108389205 B CN108389205 B CN 108389205B
Authority
CN
China
Prior art keywords
feature
picture
processed
rail
gradient information
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
CN201810225219.XA
Other languages
Chinese (zh)
Other versions
CN108389205A (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.)
Beihang University
Original Assignee
Beihang University
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 Beihang University filed Critical Beihang University
Priority to CN201810225219.XA priority Critical patent/CN108389205B/en
Publication of CN108389205A publication Critical patent/CN108389205A/en
Application granted granted Critical
Publication of CN108389205B publication Critical patent/CN108389205B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06TIMAGE DATA PROCESSING OR GENERATION, IN GENERAL
    • G06T7/00Image analysis
    • G06T7/0002Inspection of images, e.g. flaw detection
    • G06T7/0004Industrial image inspection
    • G06T7/0008Industrial image inspection checking presence/absence
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F18/00Pattern recognition
    • G06F18/20Analysing
    • G06F18/25Fusion techniques
    • G06F18/253Fusion techniques of extracted features
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06TIMAGE DATA PROCESSING OR GENERATION, IN GENERAL
    • G06T7/00Image analysis
    • G06T7/90Determination of colour characteristics
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06TIMAGE DATA PROCESSING OR GENERATION, IN GENERAL
    • G06T2207/00Indexing scheme for image analysis or image enhancement
    • G06T2207/10Image acquisition modality
    • G06T2207/10024Color image

Landscapes

  • Engineering & Computer Science (AREA)
  • Theoretical Computer Science (AREA)
  • Computer Vision & Pattern Recognition (AREA)
  • General Physics & Mathematics (AREA)
  • Physics & Mathematics (AREA)
  • Data Mining & Analysis (AREA)
  • Bioinformatics & Cheminformatics (AREA)
  • Evolutionary Biology (AREA)
  • Evolutionary Computation (AREA)
  • Bioinformatics & Computational Biology (AREA)
  • General Engineering & Computer Science (AREA)
  • Artificial Intelligence (AREA)
  • Life Sciences & Earth Sciences (AREA)
  • Quality & Reliability (AREA)
  • Image Processing (AREA)
  • Image Analysis (AREA)

Abstract

The invention provides a rail foreign matter monitoring method and device based on an empty foundation platform image, wherein the method comprises the following steps: acquiring a picture to be processed, wherein the picture to be processed is a rail picture shot by a low-altitude unmanned machine; obtaining effective gradient information of a picture to be processed; coding the effective gradient information according to the type of the effective gradient information to obtain a first characteristic; obtaining a second characteristic according to the hue, saturation and transparency HSV color model of the picture to be processed; and judging whether foreign matters exist in the rail in the picture to be processed or not according to the first characteristic and the second characteristic. According to the rail foreign matter monitoring method and device based on the air-based platform image, whether foreign matters exist on the rail is judged by combining the effective gradient information and the color information of the image, and the monitoring efficiency of the rail foreign matters is improved.

Description

一种基于空基平台图像的铁轨异物监测方法及装置A method and device for monitoring foreign objects on rails based on images of space-based platforms

技术领域technical field

本发明涉及航空监视技术,尤其涉及一种基于空基平台图像的铁轨异物监测方法及装置。The invention relates to aviation monitoring technology, in particular to a method and device for monitoring foreign objects on rails based on an air-based platform image.

背景技术Background technique

轨道交通是国家的客运货运的主要途径,具有很重要的战略意义。其中,铁路运输发挥着尤其重要的作用。由于我国人口众多,大流量的铁路交通需要更加严谨的安保巡检来确保旅客出行安全。Rail transit is the main way for the country's passenger and freight transportation, and has very important strategic significance. Among them, railway transportation plays a particularly important role. Due to the large population in my country, the high-traffic railway traffic requires more rigorous security inspections to ensure the safety of passengers.

现有技术中,随着低空无人机在巡查监视领域的广泛应用,越来越多的使用低空无人机的空基平台被用于铁路沿线巡检以节省人力物力成本。铁轨维护人员通过空基平台的低空无人机传回的铁轨图片对铁路的状况进行监测,当发现铁轨上有异物时及时进行现场维护。In the prior art, with the wide application of low-altitude UAVs in the field of inspection and surveillance, more and more air-based platforms using low-altitude UAVs are used for inspections along railway lines to save manpower and material costs. The rail maintenance personnel monitor the condition of the railway through the rail pictures returned by the low-altitude drone of the air-based platform, and conduct on-site maintenance in time when foreign objects are found on the rail.

采用现有技术,为确保铁路安全运行,空基平台的低空无人机巡检需要更加准确及时的反馈铁路沿线信息,而仅通过铁轨维护人员对低空无人机图片进行观察的监测方式,造成了对铁轨异物的监测效率较低且需要耗费大量的人力物力。Using the existing technology, in order to ensure the safe operation of the railway, the low-altitude drone inspection of the air-based platform needs to feed back the information along the railway more accurately and in a timely manner. Therefore, the monitoring efficiency of foreign objects on the rails is low and requires a lot of manpower and material resources.

发明内容SUMMARY OF THE INVENTION

本发明提供一种基于空基平台图像的铁轨异物监测方法及装置,提高了对铁轨异物的监测效率。The invention provides a method and device for monitoring foreign objects on a rail track based on an image of an air-based platform, which improves the monitoring efficiency of foreign objects on the rail track.

本发明提供一种基于空基平台图像的铁轨异物监测方法,包括:The present invention provides a method for monitoring foreign objects on a railway track based on an image of an air-based platform, comprising:

获取待处理图片,所述待处理图片为低空无人机拍摄的铁轨图片;obtaining a picture to be processed, where the picture to be processed is a picture of a railroad track photographed by a low-altitude drone;

获取所述待处理图片的有效梯度信息;obtaining the effective gradient information of the picture to be processed;

根据所述有效梯度信息的类型对所述有效梯度信息进行编码处理得到第一特征;The first feature is obtained by encoding the effective gradient information according to the type of the effective gradient information;

根据所述待处理图片的色调、饱和度、透明度HSV颜色模型得到第二特征;Obtain the second feature according to the hue, saturation, and transparency HSV color model of the picture to be processed;

根据所述第一特征和所述第二特征融合后得到的第三特征,判断所述待处理图片中铁轨是否存在异物。According to the third feature obtained after the fusion of the first feature and the second feature, it is determined whether there is a foreign object on the rail in the image to be processed.

在本发明一实施例中,如上所述的一种基于空基平台图像的铁轨异物监测方法,所述获取所述待处理图片的有效梯度信息,包括:In an embodiment of the present invention, in the above-mentioned method for monitoring foreign objects on a railway track based on an image of an air-based platform, the obtaining effective gradient information of the image to be processed includes:

建立所述待处理图片的积分图像;establishing an integral image of the picture to be processed;

将所述积分图像通过箱式滤波器建立尺度空间;Passing the integral image through a box filter to establish a scale space;

定位所述尺度空间的特征点;locating feature points in the scale space;

通过构建特征点描述子,得到所述待处理图片的有效梯度信息。By constructing feature point descriptors, the effective gradient information of the picture to be processed is obtained.

在本发明一实施例中,如上所述的一种基于空基平台图像的铁轨异物监测方法,根据所述有效梯度信息的类型对所述有效梯度信息进行编码处理得到第一特征,包括:In an embodiment of the present invention, in the above-mentioned method for monitoring foreign objects on rails based on an image of an air-based platform, the first feature is obtained by encoding the effective gradient information according to the type of the effective gradient information, including:

通过聚类算法对所述有效梯度信息进行聚类,将聚类中心作为基本码字;The effective gradient information is clustered by a clustering algorithm, and the cluster center is used as a basic codeword;

根据所述基本码字采用词袋模型对所述有效梯度信息进行编码处理,得到固定编码格式的所述第一特征。According to the basic codeword, a bag-of-words model is used to encode the effective gradient information to obtain the first feature in a fixed encoding format.

在本发明一实施例中,如上所述的一种基于空基平台图像的铁轨异物监测方法,所述根据所述待处理图片的色调、饱和度、透明度HSV颜色模型特征得到第二特征,包括:In an embodiment of the present invention, in the above-mentioned method for monitoring foreign objects on rails based on an air-based platform image, the second feature is obtained according to the hue, saturation, and transparency HSV color model features of the picture to be processed, including: :

获取所述待处理图片的HSV颜色模型数据;Obtain the HSV color model data of the picture to be processed;

根据颜色直方图对所述HSV颜色模型数据进行统计得到所述HSV颜色模型特征,作为所述第二特征。Statistics of the HSV color model data are performed according to the color histogram to obtain the HSV color model feature, which is used as the second feature.

在本发明一实施例中,如上所述的一种基于空基平台图像的铁轨异物监测方法,所述根据所述第一特征和所述第二特征,判断所述待处理图片中铁轨是否存在异物,包括:In an embodiment of the present invention, in the above-mentioned method for monitoring foreign objects on a railway track based on an image of an air-based platform, it is determined whether there is a railway track in the image to be processed according to the first feature and the second feature Foreign objects, including:

对所述第一特征和所述第二特征进行特征融合得到第三特征;Performing feature fusion on the first feature and the second feature to obtain a third feature;

由分类器通过所述第三特征判断所述待处理图片中的铁轨是否存在异物,所述分类器包括:存在异物的铁轨图片的所述第三特征和不存在异物的铁轨图片的所述第三特征。The classifier judges whether the rails in the picture to be processed have foreign objects through the third feature, and the classifier includes: the third feature of the rail pictures with foreign objects and the first feature of the rail pictures without foreign objects. Three characteristics.

在本发明一实施例中,如上所述的一种基于空基平台图像的铁轨异物监测方法,所述获取待处理图片之前,还包括:In an embodiment of the present invention, in the above-mentioned method for monitoring foreign objects on a railway track based on an image of an air-based platform, before acquiring the image to be processed, the method further includes:

获取N张存在异物的铁轨图片的所述第三特征和M张不存在异物的铁轨图片的所述第三特征,其中,N和M为正整数;Obtaining the third features of N pictures of the rails with foreign objects and the third features of M pictures of the tracks without foreign objects, wherein N and M are positive integers;

将所述N张存在异物的铁轨图片的所述第三特征和M张不存在异物的铁轨图片的所述第三特征存入所述分类器。The third features of the N pictures of the railroad tracks with foreign objects and the third features of the M pictures of the railroad tracks without foreign objects are stored in the classifier.

在本发明一实施例中,如上所述的一种基于空基平台图像的铁轨异物监测方法,所述分类器为支持向量机SVM。In an embodiment of the present invention, in the above-mentioned method for monitoring foreign objects on a railway track based on an image of a space-based platform, the classifier is a support vector machine (SVM).

在本发明一实施例中,如上所述的一种基于空基平台图像的铁轨异物监测方法,所述根据所述第一特征和所述第二特征,判断所述待处理图片中铁轨是否存在异物之后,还包括:In an embodiment of the present invention, in the above-mentioned method for monitoring foreign objects on a railway track based on an image of an air-based platform, it is determined whether there is a railway track in the image to be processed according to the first feature and the second feature After the foreign body, it also includes:

若判断所述待处理图片中的铁轨存在异物,则通过所述第三特征获取所述异物的属性。If it is determined that there is a foreign object on the rail in the picture to be processed, the attribute of the foreign object is acquired through the third feature.

在本发明一实施例中,如上所述的一种基于空基平台图像的铁轨异物监测方法,所述异物的属性包括以下的一项或多项:异物的种类、大小、形状和颜色。In an embodiment of the present invention, in the above-mentioned method for monitoring foreign objects on rails based on an image of an air-based platform, the properties of the foreign objects include one or more of the following: type, size, shape and color of the foreign object.

本发明提供一种基于空基平台图像的铁轨异物监测装置,包括:获取模块,所述获取模块用于获取待处理图片,所述待处理图片为低空无人机拍摄的铁轨图片;The present invention provides a device for monitoring foreign objects on a railway track based on an image of an air-based platform, comprising: an acquisition module, wherein the acquisition module is used to acquire a picture to be processed, and the picture to be processed is a picture of a rail track photographed by a low-altitude drone;

特征提取模块,所述处理模块用于获取所述待处理图片的有效梯度信息;a feature extraction module, the processing module is used to obtain the effective gradient information of the to-be-processed picture;

所述特征提取模块还用于,根据所述有效梯度信息的类型对所述有效梯度信息进行编码处理得到第一特征;The feature extraction module is further configured to perform encoding processing on the effective gradient information according to the type of the effective gradient information to obtain a first feature;

所述特征提取模块还用于,根据所述待处理图片的色调、饱和度、透明度HSV颜色模型得到第二特征;The feature extraction module is further configured to obtain a second feature according to the hue, saturation, and transparency HSV color model of the picture to be processed;

分类模块,所述分类模块用于根据所述第一特征和所述第二特征融合后得到的第三特征,判断所述待处理图片中铁轨是否存在异物。A classification module, the classification module is configured to determine whether there is a foreign object in the rail in the to-be-processed picture according to the third feature obtained after the fusion of the first feature and the second feature.

本发明提供一种基于空基平台图像的铁轨异物监测方法及装置,其中方法包括:获取待处理图片,待处理图片为低空无人机拍摄的铁轨图片;获取待处理图片的有效梯度信息;根据有效梯度信息的类型对有效梯度信息进行编码处理得到第一特征;根据待处理图片的色调、饱和度、透明度HSV颜色模型得到第二特征;通过第一特征和第二特征判断待处理图片中铁轨是否存在异物。本发明提供的一种基于空基平台图像的铁轨异物监测方法及装置,结合图片的有效梯度信息和颜色信息对铁轨是否存在异物进行判断,提高了对铁轨异物的监测效率。The present invention provides a method and device for monitoring foreign objects on a railway track based on an image of an air-based platform, wherein the method includes: obtaining a picture to be processed, and the picture to be processed is a picture of a railway track photographed by a low-altitude drone; obtaining effective gradient information of the picture to be processed; Types of Effective Gradient Information Encoding and processing the effective gradient information to obtain the first feature; obtaining the second feature according to the hue, saturation, and transparency HSV color model of the picture to be processed; judging the rails in the picture to be processed by the first feature and the second feature Is there any foreign body. The invention provides a method and device for monitoring foreign objects on a rail based on an image of an air-based platform, which combines the effective gradient information and color information of the picture to determine whether there is a foreign object on the rail, thereby improving the monitoring efficiency of the foreign object on the rail.

附图说明Description of drawings

为了更清楚地说明本发明实施例或现有技术中的技术方案,下面将对实施例或现有技术描述中所需要使用的附图作简单地介绍,显而易见地,下面描述中的附图仅仅是本发明的一些实施例,对于本领域普通技术人员来讲,在不付出创造性劳动性的前提下,还可以根据这些附图获得其他的附图。In order to explain the embodiments of the present invention or the technical solutions in the prior art more clearly, the following briefly introduces the accompanying drawings that need to be used in the description of the embodiments or the prior art. Obviously, the accompanying drawings in the following description are only These are some embodiments of the present invention, and for those of ordinary skill in the art, other drawings can also be obtained from these drawings without any creative effort.

图1为本发明一种基于空基平台图像的铁轨异物监测方法实施例一的流程示意图;FIG. 1 is a schematic flowchart of Embodiment 1 of a method for monitoring foreign objects on a railway track based on an image of an air-based platform of the present invention;

图2为本发明一种基于空基平台图像的铁轨异物监测装置实施例一的结构示意图。FIG. 2 is a schematic structural diagram of Embodiment 1 of an apparatus for monitoring foreign objects on a railway track based on an image of an air-based platform according to the present invention.

具体实施方式Detailed ways

下面将结合本发明实施例中的附图,对本发明实施例中的技术方案进行清楚、完整地描述,显然,所描述的实施例仅仅是本发明一部分实施例,而不是全部的实施例。基于本发明中的实施例,本领域普通技术人员在没有做出创造性劳动前提下所获得的所有其他实施例,都属于本发明保护的范围。The technical solutions in the embodiments of the present invention will be clearly and completely described below with reference to the accompanying drawings in the embodiments of the present invention. Obviously, the described embodiments are only a part of the embodiments of the present invention, but not all of the embodiments. Based on the embodiments of the present invention, all other embodiments obtained by those of ordinary skill in the art without creative efforts shall fall within the protection scope of the present invention.

本发明的说明书和权利要求书及上述附图中的术语“第一”、“第二”、“第三”、“第四”等(如果存在)是用于区别类似的对象,而不必用于描述特定的顺序或先后次序。应该理解这样使用的数据在适当情况下可以互换,以便这里描述的本发明的实施例例如能够以除了在这里图示或描述的那些以外的顺序实施。此外,术语“包括”和“具有”以及他们的任何变形,意图在于覆盖不排他的包含,例如,包含了一系列步骤或单元的过程、方法、系统、产品或设备不必限于清楚地列出的那些步骤或单元,而是可包括没有清楚地列出的或对于这些过程、方法、产品或设备固有的其它步骤或单元。The terms "first", "second", "third", "fourth", etc. (if present) in the description and claims of the present invention and the above-mentioned drawings are used to distinguish similar objects and are not necessarily used to describe a specific order or sequence. It is to be understood that the data so used are interchangeable under appropriate circumstances such that the embodiments of the invention described herein can, for example, be practiced in sequences other than those illustrated or described herein. Furthermore, the terms "comprising" and "having" and any variations thereof, are intended to cover non-exclusive inclusion, for example, a process, method, system, product or device comprising a series of steps or units is not necessarily limited to those expressly listed Rather, those steps or units may include other steps or units not expressly listed or inherent to these processes, methods, products or devices.

下面以具体地实施例对本发明的技术方案进行详细说明。下面这几个具体的实施例可以相互结合,对于相同或相似的概念或过程可能在某些实施例不再赘述。The technical solutions of the present invention will be described in detail below with specific examples. The following specific embodiments may be combined with each other, and the same or similar concepts or processes may not be repeated in some embodiments.

图1为本发明一种基于空基平台图像的铁轨异物监测方法实施例一的流程示意图。如图1所示,本实施例提供的一种基于空基平台图像的异物检测方法包括:FIG. 1 is a schematic flowchart of Embodiment 1 of a method for monitoring foreign objects on a railway track based on an image of an air-based platform of the present invention. As shown in FIG. 1 , a method for detecting foreign objects based on an image of a space-based platform provided in this embodiment includes:

S101:获取待处理图片,待处理图片为低空无人机拍摄的铁轨图片。S101: Acquire a to-be-processed picture, where the to-be-processed picture is a rail picture photographed by a low-altitude drone.

具体地,本实施例执行主体可以是空基平台的低空无人机,所述空基平台用于通过至少一个无人机对铁轨异物进行监测;本实施例执行主体还可以是能够通过互联网及其他方式获取空基平台拍摄的铁轨图片的终端设备(Terminal)、用户设备(User Equipment)以及服务器设备等等中的任意一种或者多种的组合。其中,终端设备可以是台式计算机(computer),笔记本电脑(notebook),平板电脑(PAD)等等。用户设备可以是智能手机(smart phone),智能手表(smart watch),智能眼镜等等。应理解,上述举例仅是为说明,不应构成具体限定。Specifically, the execution body of this embodiment may be a low-altitude UAV of an air-based platform, and the air-based platform is used to monitor foreign objects on the rails through at least one UAV; the execution body of this embodiment may also be able to use the Internet and In other ways, any one or a combination of any one or more of terminal equipment (Terminal), user equipment (User Equipment), and server equipment, etc., for obtaining the rail pictures taken by the space-based platform. The terminal device may be a desktop computer (computer), a notebook computer (notebook), a tablet computer (PAD), and the like. The user equipment may be a smart phone, a smart watch, smart glasses, and the like. It should be understood that the above examples are only for illustration and should not constitute a specific limitation.

在本步骤中,低空无人机在需要监测的铁轨段进行巡检时,对被监测的铁轨不断进行拍摄,得到连续的铁轨图片。低空无人机拍摄到铁轨图片之后,可以由低空无人机直接将其作为待处理图片;或者,低空无人机将铁轨图片通过互联网上传服务器存储,再由终端、用户设备等图片处理设备获取服务器中存储的铁轨图片作为待处理图片。In this step, when the low-altitude UAV conducts inspections on the railway track section to be monitored, the monitored railway track is continuously photographed to obtain continuous railway track pictures. After the low-altitude drone captures the rail image, the low-altitude drone can directly use it as the image to be processed; alternatively, the low-altitude drone uploads the rail image to the server for storage, and then obtains it from image processing equipment such as terminals and user equipment. The rail image stored in the server is used as the image to be processed.

S102:获取待处理图片的有效梯度信息。S102: Obtain effective gradient information of the picture to be processed.

具体地,求取S101中获取的待处理图片的有效梯度信息,其中可选地,可以通过梯度特征提取器提取待处理图片中的有效梯度信息。Specifically, the effective gradient information of the picture to be processed obtained in S101 is obtained, wherein optionally, the effective gradient information in the picture to be processed may be extracted by a gradient feature extractor.

可选地,S102提取待处理图片有效梯度可以包括以下步骤:Optionally, S102 extracting the effective gradient of the picture to be processed may include the following steps:

S1021:建立待处理图片的积分图像。S1021: Create an integral image of the picture to be processed.

具体地,本步骤中建立的积分图像是对待处理图片进行积分计算得到的图像,积分图像的每一点表示为原图像从原点到该点的矩形区域的像素和,积分图像的建立之所以能够加快计算速度,是因为我们对整幅图像进行积分图像遍历后,原始图像中的任一矩形区域的像素之和就可以通过加减运算来完成,而与矩形的面积无关,矩形越大,节省的计算时间越多。Specifically, the integral image established in this step is an image obtained by integral calculation of the image to be processed, and each point of the integral image is expressed as the pixel sum of the rectangular area from the origin to the point of the original image. The reason why the establishment of the integral image can be accelerated The calculation speed is because after we traverse the integral image of the entire image, the sum of the pixels of any rectangular area in the original image can be completed by addition and subtraction, regardless of the area of the rectangle. The larger the rectangle, the more savings more computation time.

S1022:将积分图像通过箱式滤波器建立尺度空间。S1022: Pass the integral image through a box filter to establish a scale space.

具体地,本步骤中通过箱式滤波器建立尺度空间,采用箱式滤波器来近似代替高斯核函数,使得卷积模板均由简单的矩形构成。积分图像的引入解决了矩形区域快速计算的问题,箱式滤波器的近似极大提升了计算速度。为了保证图像匹配具有尺度不变性,需要对图像进行分层,建立图像的尺度空间,然后在不同尺度的图像上来寻找特征点。本实施例中尺度空间的建立是保持待处理图像大小不变,通过改变箱式滤波器的大小来对待处理图像计算得到的积分图像进行滤波,从而形成图像的尺度空间。Specifically, in this step, the scale space is established by the box filter, and the box filter is used to approximate the Gaussian kernel function, so that the convolution templates are all composed of simple rectangles. The introduction of integral image solves the problem of fast calculation in rectangular area, and the approximation of box filter greatly improves the calculation speed. In order to ensure the scale invariance of image matching, it is necessary to layer the image, establish the scale space of the image, and then search for feature points on images of different scales. The establishment of the scale space in this embodiment is to keep the size of the image to be processed unchanged, and filter the integral image calculated from the image to be processed by changing the size of the box filter, thereby forming the scale space of the image.

S1023:定位尺度空间的特征点。S1023: Locate feature points in the scale space.

具体地,通过S102中建立的尺度空间,在尺度空间的每一层图像上使用快速Hessian矩阵来检测图像的极值点。对于空间的任意一点(x,y),对应尺度空间中的尺度为σ,则Hessian矩阵的定义如下所示:Specifically, through the scale space established in S102, a fast Hessian matrix is used on each image layer of the scale space to detect the extreme point of the image. For any point (x, y) in the space, the scale in the corresponding scale space is σ, then the definition of the Hessian matrix is as follows:

Figure BDA0001601132560000061
Figure BDA0001601132560000061

其中Lxx(xσ)、Lxy(xσ)、Lyy(xσ)是图像上的点分别与高斯二阶偏导数

Figure BDA0001601132560000062
卷积的结果,其中g为高斯函数。where L xx (xσ), L xy (xσ), and L yy (xσ) are the points on the image and the Gaussian second-order partial derivatives respectively
Figure BDA0001601132560000062
The result of the convolution, where g is a Gaussian function.

同时,为了在得到特征点的稳定位置和尺度值,可以对尺度空间进行插值,这样就得到了特征点的位置值和特征点的尺度值。At the same time, in order to obtain the stable position and scale value of the feature point, the scale space can be interpolated, so that the position value of the feature point and the scale value of the feature point are obtained.

S1024:通过构建特征点描述子,得到待处理图片的有效梯度信息。S1024: Obtain effective gradient information of the image to be processed by constructing feature point descriptors.

具体地,本步骤中,首先求取特征点的主方向,这样可以保证算法的旋转不变性,然后将特征点的邻域旋转到主方向,对特征点进行描述。为了使图像的匹配具有旋转不变性,引入了主方向的概念。主方向的计算是以特征点为中心,取特征点周围半径为6s(s为特征点所在的尺度值)的圆形区域,计算邻域内的像素点在x,y方向上的哈尔小波响应值。对计算得到的响应值按距离赋予一定的权值系数,继而对加权后的响应值进行直方图统计。统计从x轴开始,对圆形区域60度范围内的哈尔小波响应值相加计算得到一个新的矢量。每隔5度以同样的方法计算矢量,遍历整个圆形区域,可以得到72个新的矢量。我们选择最长的矢量方向作为该特征点的主方向。Specifically, in this step, the main direction of the feature point is obtained first, which can ensure the rotation invariance of the algorithm, and then the neighborhood of the feature point is rotated to the main direction to describe the feature point. In order to make the matching of images have rotation invariance, the concept of principal direction is introduced. The calculation of the main direction is to take the feature point as the center, take a circular area with a radius of 6s (s is the scale value of the feature point) around the feature point, and calculate the Haar wavelet response of the pixels in the neighborhood in the x and y directions. value. A certain weight coefficient is assigned to the calculated response value according to the distance, and then histogram statistics are performed on the weighted response value. Statistics start from the x-axis, and a new vector is calculated by adding the Haar wavelet response values within 60 degrees of the circular area. Calculate the vector in the same way every 5 degrees, traverse the entire circular area, you can get 72 new vectors. We choose the longest vector direction as the main direction of this feature point.

对于检测到的特征点,以特征点为中心,选取中心点邻域范围内20S*20S大小的区域,然后将区域的主方向旋转到特征点的主方向。为了更好的利用图像的空间信息,将20S*20S的区域分为4*4共16个子区域,这样每个子区域的像素值大小为5S*5S。最后通过统计像素点的哈尔小波响应值来对特征点进行描述,得到待处理图片的有效梯度信息。示例性的,假设一张图片通过检测可以得到P个特征点,每个特征点通过上述方式描述可得到一个128维的特征描述子,那么我们就可以用一个P*128维的一维向量来表示待处理图片的有效梯度信息。For the detected feature points, take the feature point as the center, select a 20S*20S area within the neighborhood of the center point, and then rotate the main direction of the area to the main direction of the feature point. In order to make better use of the spatial information of the image, the 20S*20S area is divided into 4*4 total 16 sub-areas, so that the pixel value of each sub-area is 5S*5S. Finally, the feature points are described by counting the Haar wavelet response values of the pixels, and the effective gradient information of the image to be processed is obtained. Exemplarily, assuming that a picture can obtain P feature points through detection, and each feature point can be described in the above way to obtain a 128-dimensional feature descriptor, then we can use a P*128-dimensional one-dimensional vector to Represents the effective gradient information of the image to be processed.

本示例提供的有效梯度信息计算方法仅为举例,未列出之处参照本领域的计算有效梯度信息的公知方法可知。需要说明的是,本步骤还可以通过其他本领域人员惯用的计算方式对待处理图片的有效梯度信息进行计算,本实施例对此不作具体限定。The method for calculating the effective gradient information provided in this example is only an example, and it can be known by referring to a known method for calculating the effective gradient information in the art for places not listed. It should be noted that, in this step, the effective gradient information of the to-be-processed picture may also be calculated by other calculation methods commonly used by those skilled in the art, which is not specifically limited in this embodiment.

S103:根据有效梯度信息的类型对有效梯度信息进行编码处理得到第一特征。S103: Encoding the effective gradient information according to the type of the effective gradient information to obtain the first feature.

具体地,本步骤中,由于不同的图片计算出的有效梯度信息的维度、长度都不相同,若需要使有效梯度信息能够作为一个图片处理与分类的特征,需要将不同图片计算得到的不同维度、长度的有效梯度信息进行处理,使得所有图片的有效梯度信息的维度、长度相同,能够一起进行比较以及后续的分类。可选地,对有效梯度信息进行处理的方式可以是先对有效梯度信息的类型进行分类,随后根据分类情况对有效梯度信息进行与类型对应的编码处理,得到编码后的有效梯度信息作为第一特征。其中,分类是为了确定有效梯度信息的编码方式。Specifically, in this step, since the dimensions and lengths of the effective gradient information calculated from different pictures are different, if the effective gradient information needs to be used as a feature of image processing and classification, it is necessary to calculate the different dimensions of the different pictures. , the effective gradient information of the length is processed, so that the effective gradient information of all pictures has the same dimension and length, and can be compared and classified together. Optionally, the method of processing the effective gradient information may be to first classify the type of the effective gradient information, and then perform encoding processing corresponding to the type to the effective gradient information according to the classification situation, and obtain the encoded effective gradient information as the first. feature. Among them, classification is to determine how effective gradient information is encoded.

可选地,本步骤S103一种可能的实现方式为,Optionally, a possible implementation manner of this step S103 is:

S1031:通过聚类算法对有效梯度信息进行聚类,将聚类中心作为基本码字;S1031: Cluster the effective gradient information through a clustering algorithm, and use the cluster center as a basic codeword;

S1032:根据基本码字采用词袋模型对有效梯度信息进行编码处理,得到固定编码格式的第一特征。S1032: According to the basic codeword, a bag-of-words model is used to encode the effective gradient information to obtain a first feature of a fixed encoding format.

具体地,可以根据K-means聚类方法,预先设定聚类类别总数为1000,通过衡量特征与特征之间的距离将第一特征进行聚类,得到聚类中心作为基本码字。随后使用词袋模型,根据基本码字对有效梯度信息进行编码。每一张图片得到的有效梯度信息维度不同,通过词袋模型聚类,将每一个特征点归属到相应的聚类中心,然后以聚类中心为基础统计直方图,得到1000维的特征向量,即为我们要提取的第一特征。接下来,我们来介绍一个具体的处理示例。Specifically, according to the K-means clustering method, the total number of clustering categories can be preset as 1000, and the first feature is clustered by measuring the distance between the feature and the feature to obtain the cluster center as the basic codeword. A bag-of-words model is then used to encode the effective gradient information from the base codewords. The effective gradient information obtained from each image has different dimensions. Through the bag-of-words model clustering, each feature point is assigned to the corresponding cluster center, and then the histogram is calculated based on the cluster center to obtain a 1000-dimensional feature vector. That is the first feature we want to extract. Next, let's introduce a specific processing example.

假设样本中含有1w张低空无人机拍摄的图片,其中含有异物的图片有7000张,不含异物的图片有3000张。通过梯度特征提取器可以提取每张图片中的梯度信息,用若干个128维的特征描述子表示。如此以来,我们便可以得到

Figure BDA0001601132560000081
个特征点,其中P是每张图片中特征点的数目。使用K-means聚类方法对上述特征点进行聚类操作,指定类别总数为1000,便可以得到1000个类别,每个类别包含若干个特征点。通过计算每个类别中所有的128维特征描述子的均值,得到每个类别的聚类中心,可以用一个128维的一维向量表示。至此,我们可以得到1000个聚类中心。随后,这些聚类中心作为基本字典,采用词袋模型的思想,对每张图片进行编码。具体的,假设图片中含有P个特征点,统计这P个特征点属于上述1000个类别各自的频率,最后可以得到一个1000维的一维向量作为最终编码后的码字共后续处理使用。Assuming that the sample contains 1w pictures taken by low-altitude drones, there are 7,000 pictures with foreign objects and 3,000 pictures without foreign objects. The gradient information in each image can be extracted by the gradient feature extractor, which is represented by several 128-dimensional feature descriptors. Thus, we can get
Figure BDA0001601132560000081
feature points, where P is the number of feature points in each image. Use the K-means clustering method to cluster the above feature points, and specify the total number of categories to be 1000, then 1000 categories can be obtained, and each category contains several feature points. By calculating the mean of all 128-dimensional feature descriptors in each category, the cluster center of each category can be obtained, which can be represented by a 128-dimensional one-dimensional vector. So far, we can get 1000 cluster centers. These cluster centers are then used as a basic dictionary to encode each image using the idea of the bag-of-words model. Specifically, it is assumed that the picture contains P feature points, and the frequencies of the P feature points belonging to the above 1000 categories are counted. Finally, a 1000-dimensional one-dimensional vector can be obtained as the final encoded codeword for subsequent processing.

本示例提供的聚类算法和词袋模型方法仅为举例,未列出之处参照本领域的公知方法可知。需要说明的是,本步骤还可以通过其他本领域人员惯用的计算方式对有效梯度信息进行统一维度的计算,本实施例并不作具体限定。The clustering algorithm and the bag-of-words model method provided in this example are only examples, and the places not listed can be known by referring to known methods in the art. It should be noted that, in this step, the effective gradient information can also be calculated in a unified dimension through other calculation methods commonly used by those skilled in the art, which is not specifically limited in this embodiment.

S104:根据待处理图片的色调、饱和度、透明度HSV颜色模型得到第二特征。S104: Obtain the second feature according to the hue, saturation, and transparency HSV color model of the picture to be processed.

具体地,在本步骤中,对待处理图片的颜色特征进行处理,其中,可选地,本步骤具体包括:Specifically, in this step, the color features of the picture to be processed are processed, wherein, optionally, this step specifically includes:

S1041:获取待处理图片的HSV颜色模型数据;S1041: Acquire HSV color model data of the image to be processed;

S1042:根据颜色直方图对HSV颜色模型数据进行统计得到HSV颜色模型特征,作为第二特征。S1042: Perform statistics on the HSV color model data according to the color histogram to obtain the HSV color model feature as the second feature.

其中,HSV颜色模型是面向视觉感知的颜色模型,包括3个分量H、S、V分别对应于彩色信号的色调、饱和度和亮度,HSV颜色模型可以用一个倒置的圆锥体来表示。距离长轴的大小表示饱和度,长轴表示亮度,围绕长轴的角度表示色彩。由于可感知的颜色差与欧几里得距离呈正比。因此HSV更适合人的感知。颜色直方图是表示颜色特征的常用方法,但是直方图的数据量过大,因此一般需要量化直方图来简化颜色特征。为此,首先要对颜色阈进行量化,量化方式如下:Among them, the HSV color model is a color model for visual perception, including three components H, S, V corresponding to the hue, saturation and brightness of the color signal, and the HSV color model can be represented by an inverted cone. The magnitude from the long axis represents saturation, the long axis represents brightness, and the angle around the long axis represents color. Since the perceived color difference is proportional to the Euclidean distance. Therefore HSV is more suitable for human perception. Color histogram is a common method to represent color features, but the amount of data in the histogram is too large, so a quantized histogram is generally needed to simplify color features. To this end, the color threshold must be quantized first, and the quantization method is as follows:

Figure BDA0001601132560000091
Figure BDA0001601132560000091

按照G=HQSQV+SQV+V构造一维特征向量,其中QSQV分别等于3,所以G=9H+3S+V。这样颜色特征就量化成一个0-71的整数,方便直方图统计为一维特征向量,记作第二特征。Construct one-dimensional eigenvectors according to G=HQ S Q V +SQ V +V, where Q S Q V are respectively equal to 3, so G=9H+3S+V. In this way, the color feature is quantified into an integer of 0-71, which is convenient for the histogram to be counted as a one-dimensional feature vector, which is recorded as the second feature.

本示例提供的HSV颜色模型的计算方法仅为举例,未列出之处参照本领域的计算HSV颜色模型的公知方法可知。需要说明的是,本步骤还可以通过其他本领域人员惯用的计算方式对待处理图片HSV颜色模型进行计算,本实施例对此不作具体限定。The calculation method of the HSV color model provided in this example is only an example, and the parts not listed can be known by referring to the known method for calculating the HSV color model in the art. It should be noted that, in this step, the HSV color model of the to-be-processed picture may also be calculated by other calculation methods commonly used by those skilled in the art, which is not specifically limited in this embodiment.

S105:根据第一特征和第二特征,判断待处理图片中铁轨是否存在异物。S105: According to the first feature and the second feature, determine whether there is a foreign object on the rail in the image to be processed.

具体地,本实施例一种可能的实现方式中,将S103中得到的待处理图片的第一特征和S104中得到的待处理图片的第二特征进行特征融合得到第三特征。可选地,由于不同图片的第一特征的维数和第二特征的维数都相同,因此可以通过将第一特征的数组与第二特征的数组以合并的方式得到同时包含第一特征的数组和第二特征数组的第三特征的数组。或者,还可以将第一特征与第二特征相加、相减或相乘等方式进行融合,只要能得到能同时表征第一特征和第二特征的第三特征,并且所有图片的第三特征的维度及形式都相同,在此不作限定。Specifically, in a possible implementation manner of this embodiment, the third feature is obtained by feature fusion of the first feature of the to-be-processed picture obtained in S103 and the second feature of the to-be-processed picture obtained in S104. Optionally, since the dimension of the first feature and the dimension of the second feature of different pictures are the same, the array of the first feature and the array of the second feature can be obtained by combining the array of the first feature and the second feature. An array of the third feature of the array and the second feature array. Alternatively, it is also possible to fuse the first feature and the second feature by adding, subtracting, or multiplying, as long as a third feature that can characterize the first feature and the second feature at the same time can be obtained, and the third feature of all pictures can be obtained. The dimensions and forms are the same, and are not limited here.

具体地,本步骤中可以通过分类器根据第三特征判断待处理图片中的铁轨是否存在异物,其中,分类器中存储有:存在异物的铁轨图片的第三特征和不存在异物的铁轨图片的第三特征。Specifically, in this step, a classifier can be used to determine whether there is a foreign object in the rail in the picture to be processed according to the third feature, wherein the classifier stores: third feature.

例如:分类器的集合A中存储有N个正常的不存在异物的铁轨图片的第三特征,集合A中的N个第三特征为N张低空无人机拍摄的正常的铁轨图片根据上述实施例中的S101至S105计算所得的N个第三特征,其中N为正整数。可以选取铁轨均不存在异物N张低空无人机拍摄的铁轨图片,并通过该些图片求出的第三特征放入集合A中,集合A中的N个第三特征由于均不含异物,则都处于同一个范围之内。同时,分类器的集合B中存储有M个存在异物的铁轨图片的第三特征,例如计分类器的集合B中存储有M个存在异物的铁轨图片的第三特征,集合B中的M个第三特征为M张低空无人机拍摄的存在异物的铁轨图片根据上述实施例中S101至S105计算所得的M个第三特征,其中M为正整数,M与N可以相同或不同。可以选取铁轨存在异物的M张低空无人机拍摄的铁轨图片,并通过该些图片求出的第三特征放入集合B中,集合B中的M个第三特征由于均存在异物,则处于与集合A中的第三特征不同的范围,而若异物种类相同,则集合B中的第三特征处于同一个范围之内。For example, the set A of the classifier stores the third features of N normal rail pictures without foreign objects, and the N third features in the set A are N normal rail pictures taken by low-altitude drones. According to the above implementation The N third features calculated in S101 to S105 in the example, where N is a positive integer. It is possible to select N pictures of the rails taken by low-altitude drones without foreign objects on the rails, and put the third features obtained from these pictures into the set A. Since the N third features in the set A do not contain foreign objects, are all within the same range. At the same time, the set B of the classifier stores M third features of the pictures of the rails with foreign objects, for example, the set B of the classifier stores the third features of the pictures of M railway tracks with foreign objects, the M in the set B The third feature is the M third features calculated from S101 to S105 in the above-mentioned embodiment, where M is a positive integer, and M and N may be the same or different. M low-altitude UAV images of the rails with foreign objects can be selected, and the third features obtained from these pictures are put into the set B. Since there are foreign objects in the M third features in the set B, they are in the set B. The range is different from that of the third feature in set A, and if the type of foreign object is the same, the third feature in set B is within the same range.

在S105中,经过上述步骤获取到待处理的图片的第三特征后,分类器将待处理图片的第三特征根据机器学习算法与集合A和集合B中第三特征进行比较,并判断待处理图片的第三特征是属于集合A或集合B,若待处理图片的第三特征在比较中与集合A中的第三特征更类似,则判断待处理图片中的铁轨不存在异物;相应地,若待处理图片的第三特征在比较中与集合B中的第三特征更类似,则判断待处理图片中的铁轨存在异物。In S105, after obtaining the third feature of the picture to be processed through the above steps, the classifier compares the third feature of the picture to be processed with the third feature in the set A and set B according to the machine learning algorithm, and judges the third feature of the set to be processed. The third feature of the picture belongs to set A or set B. If the third feature of the picture to be processed is more similar to the third feature in set A in the comparison, it is judged that there is no foreign matter on the rails in the picture to be processed; accordingly, If the third feature of the to-be-processed picture is more similar to the third feature in the set B in the comparison, it is determined that there is a foreign object on the rail in the to-be-processed picture.

可选地,在上述实施例中,步骤S105所采用的分类器为支持向量机(SupportVector Machine,简称:SVM)线性分类器。Optionally, in the foregoing embodiment, the classifier used in step S105 is a support vector machine (Support Vector Machine, SVM for short) linear classifier.

此外,本发明已实施例还提供一种多特征融合的动态场景分类装置,用以执行如上所述的方法实施例,具有相同的技术特征和技术效果,不再赘述。In addition, an embodiment of the present invention also provides an apparatus for dynamic scene classification with multi-feature fusion, which is used to execute the above method embodiments, and has the same technical features and technical effects, which will not be repeated.

可选地,在上述实施例中,S105之后,还包括:若判断所述待处理图片中的铁轨存在异物,则通过所述第三特征获取所述异物的属性。Optionally, in the above embodiment, after S105, the method further includes: if it is determined that there is a foreign object on the rail in the picture to be processed, acquiring the attribute of the foreign object through the third feature.

具体地,当S105中判断待处理图片中的铁轨存在异物,则可以进一步地通过分类器对异物的种类进行识别。其中,异物的属性可以是异物的种类、大小、形状、颜色、移动速度等参数信息。例如:低空无人机采集的铁轨图片中存在牲畜(如牛、羊)进入的图片,将该些图片通过上述步骤计算得到第三特征并存储在分类器的集合C中;类似的,存在交通工具(如汽车、摩托车)进入的图片,将该些图片计算第三特征后存储在分类器的集合D中。则当分类器接收到待处理图片的第三特征后,根据集合C和集合D中的第三特征对待处理图片的第三特征进行分类,得出待处理图片中铁轨异物的种类是牲畜或交通工具。可选地,本实施例中对异物属性的判断可以与上述实施例中对是否存在异物的判断使用不同的两个分类器或同一个分类器实现,若通过同一分类器实现,则上述集合A至集合D均在该分类器中存储。上述距离为异物属性中种类的示例,其他参数实现方式相同,不再赘述,需说明的是异物的移动速度可以根据不同时间拍摄的图片结合进行获取。Specifically, when it is determined in S105 that there is a foreign object in the rail in the to-be-processed picture, the type of the foreign object can be further identified by the classifier. The attribute of the foreign object may be parameter information such as the type, size, shape, color, and moving speed of the foreign object. For example: there are pictures of livestock (such as cattle and sheep) entering in the rail pictures collected by low-altitude drones, these pictures are calculated through the above steps to obtain the third feature and stored in the set C of the classifier; similarly, there are traffic The pictures entered by tools (such as cars and motorcycles) are stored in the set D of the classifier after calculating the third feature of these pictures. Then when the classifier receives the third feature of the picture to be processed, it classifies the third feature of the picture to be processed according to the third feature in the set C and the set D, and it is concluded that the type of foreign objects on the rails in the picture to be processed is livestock or traffic. tool. Optionally, the judgment on the properties of foreign objects in this embodiment can be implemented by using two different classifiers or the same classifier from the judgment on whether there are foreign objects in the foregoing embodiment. If implemented by the same classifier, the above set A All to set D are stored in this classifier. The above distance is an example of the types of foreign object properties, and other parameters are implemented in the same manner, and will not be repeated here. It should be noted that the moving speed of the foreign object can be obtained by combining pictures taken at different times.

综上,本实施例提供的一种基于空基平台图像的铁轨异物检测方法,通过获取待处理图片,待处理图片为低空无人机拍摄的铁轨图片;获取待处理图片的有效梯度信息;根据有效梯度信息的类型对有效梯度信息进行编码处理得到第一特征;根据待处理图片的色调、饱和度、透明度HSV颜色模型得到第二特征;根据第一特征和第二特征判断待处理图片中铁轨是否存在异物。从而通过结合图片的有效梯度信息和颜色信息对铁轨是否存在异物进行判断,提高了对铁轨异物的监测效率。同时,在本发明一实施例中提供的一种基于空基平台图像的铁轨异物监测方法实施例中,采用梯度特征提取器提取待分类图片的梯度特征,然后使用K-means聚类方法和词袋模型根据梯度特征得到高层次的梯度特征;同时,采用颜色特征提取器提取待分类图片的颜色特征,将两种特征融合后进行铁轨异物的监测分类。当待分类图片被识别为包含异物的图片时,进行预警。不仅考虑了图片中的梯度信息,还考虑了图片中的颜色信息,使得分类更加准确。To sum up, the present embodiment provides a method for detecting foreign objects on rails based on an image of an air-based platform. By acquiring a picture to be processed, the picture to be processed is a rail picture taken by a low-altitude drone; obtaining the effective gradient information of the picture to be processed; Types of Effective Gradient Information Encoding and processing the effective gradient information to obtain the first feature; obtaining the second feature according to the hue, saturation, and transparency HSV color model of the picture to be processed; judging the rails in the picture to be processed according to the first feature and the second feature Is there any foreign body. Therefore, by combining the effective gradient information and color information of the picture, it is judged whether there is a foreign body on the rail, and the monitoring efficiency of the foreign body on the rail is improved. At the same time, in an embodiment of a method for monitoring foreign objects on a railway track based on an air-based platform image provided in an embodiment of the present invention, a gradient feature extractor is used to extract the gradient features of the pictures to be classified, and then the K-means clustering method and the word The bag model obtains high-level gradient features according to the gradient features; at the same time, the color feature extractor is used to extract the color features of the images to be classified, and the two features are fused to monitor and classify the foreign objects on the rails. When the picture to be classified is identified as a picture containing foreign objects, an early warning is issued. Not only the gradient information in the picture, but also the color information in the picture is considered, making the classification more accurate.

图2为本发明一种基于空基平台图像的铁轨异物监测装置实施例一的结构示意图。如图2所示,本实施例提供的一种基于无人机图像的铁轨异物监测装置包括:获取模块201,特征提取模块202和分类模块203。其中,获取模块201用于获取待处理图片,待处理图片为低空无人机拍摄的铁轨图片;特征提取模块202用于获取待处理图片的有效梯度信息;特征提取模块202还用于根据有效梯度信息的类型对有效梯度信息进行编码处理得到第一特征;特征提取模块202还用于根据待处理图片的色调、饱和度、透明度HSV颜色模型得到第二特征;分类模块203用于根据所述第一特征和所述第二特征,判断所述待处理图片中铁轨是否存在异物。FIG. 2 is a schematic structural diagram of Embodiment 1 of an apparatus for monitoring foreign objects on a railway track based on an image of an air-based platform according to the present invention. As shown in FIG. 2 , the apparatus for monitoring foreign objects on rails based on drone images provided in this embodiment includes: an acquisition module 201 , a feature extraction module 202 and a classification module 203 . Among them, the acquisition module 201 is used to acquire the picture to be processed, and the to-be-processed picture is a rail picture taken by a low-altitude drone; the feature extraction module 202 is used to acquire the effective gradient information of the to-be-processed picture; the feature extraction module 202 is also used to obtain the effective gradient information according to the effective gradient The type of information encodes the effective gradient information to obtain the first feature; the feature extraction module 202 is also used to obtain the second feature according to the hue, saturation, and transparency HSV color model of the picture to be processed; the classification module 203 is used to obtain the second feature according to the The first feature and the second feature are used to determine whether there are foreign objects on the rails in the to-be-processed picture.

本实施例提供的装置用于执行图1所示实施例中提供的方法,其实现方式与原理相同,不再赘述。The apparatus provided in this embodiment is used to execute the method provided in the embodiment shown in FIG. 1 , and its implementation manner is the same as the principle, and details are not described again.

可选地,在上述实施例中,特征提取模块具体用于建立待处理图片的积分图像;将积分图像通过箱式滤波器建立尺度空间;定位尺度空间的特征点;通过构建特征点描述子,得到待处理图片的有效梯度信息。Optionally, in the above-mentioned embodiment, the feature extraction module is specifically used to establish an integral image of the picture to be processed; pass the integral image through a box filter to establish a scale space; locate the feature points of the scale space; Get the effective gradient information of the image to be processed.

可选地,在上述实施例中,特征提取模块具体用于通过聚类算法对有效梯度信息进行聚类,将聚类中心作为基本码字;根据基本码字采用词袋模型对有效梯度信息进行编码处理,得到固定编码格式的第一特征。Optionally, in the above embodiment, the feature extraction module is specifically configured to cluster the effective gradient information through a clustering algorithm, and use the cluster center as a basic codeword; use a bag-of-words model to perform the effective gradient information according to the basic codeword. The encoding process is performed to obtain the first feature of the fixed encoding format.

可选地,在上述实施例中,特征提取模块具体用于获取待处理图片的HSV颜色模型数据;根据颜色直方图对HSV颜色模型数据进行统计得到HSV颜色模型特征,作为第二特征。Optionally, in the above-mentioned embodiment, the feature extraction module is specifically configured to obtain HSV color model data of the picture to be processed; the HSV color model data is counted according to the color histogram to obtain HSV color model features as the second feature.

可选地,在上述实施例中,分类模块具体用于对第一特征和第二特征进行特征融合得到第三特征;由分类器通过第三特征判断待处理图片中的铁轨是否存在异物,分类器包括:存在异物的铁轨图片的第三特征和不存在异物的铁轨图片的第三特征。Optionally, in the above-mentioned embodiment, the classification module is specifically configured to perform feature fusion on the first feature and the second feature to obtain a third feature; the classifier judges whether there is a foreign object in the rails in the picture to be processed by using the third feature, and classifies the features. The device includes: a third feature of a picture of a railroad track with foreign objects and a third feature of a picture of a railroad track without foreign objects.

可选地,在上述实施例中,获取模块还用于获取N张存在异物的铁轨图片的第三特征和M张不存在异物的铁轨图片的第三特征,其中,N和M为正整数;将N张存在异物的铁轨图片的第三特征和M张不存在异物的铁轨图片的第三特征存入分类器。Optionally, in the above-mentioned embodiment, the acquisition module is further configured to acquire the third features of N rail pictures with foreign objects and the third features of M rail pictures without foreign objects, wherein N and M are positive integers; The third features of the N pieces of rail pictures with foreign objects and the third features of the M pieces of rail pictures without foreign objects are stored in the classifier.

可选地,在上述实施例中,分类器为支持向量机SVM。Optionally, in the above embodiment, the classifier is a support vector machine (SVM).

可选地,在上述实施例中,分类模块还用于若判断待处理图片中的铁轨存在异物,则通过第三特征获取异物的属性。Optionally, in the above embodiment, the classification module is further configured to obtain the attribute of the foreign object through the third feature if it is determined that there is a foreign object in the rail in the picture to be processed.

可选地,在上述实施例中,分类模块还用于若判断待处理图片中的铁轨存在异物,则获取低空无人机拍摄待处理图片时所处的位置信息,并向告警服务器发送携带位置信息的告警信号。Optionally, in the above-mentioned embodiment, the classification module is further configured to obtain the location information of the low-altitude drone when the image to be processed is photographed by the low-altitude drone if it is determined that there is a foreign object on the rail in the to-be-processed picture, and send the carrying position to the alarm server. Informational warning signal.

本实施例提供的装置用于执行上述实施例中提供的方法,其实现方式与原理相同,不再赘述。The apparatus provided in this embodiment is used to execute the method provided in the foregoing embodiment, and the implementation manner and principle thereof are the same, and are not repeated here.

本发明一实施例还提供一种计算机存储介质,其上存储有计算机程序,计算机程序被处理器执行时执行上述任一项实施例中的一种基于空基平台图像的铁轨异物监测方法。其中,本实施例中的存储介质为计算机可读的存储介质。An embodiment of the present invention further provides a computer storage medium on which a computer program is stored. When the computer program is executed by a processor, the method for monitoring foreign objects on a rail track based on an image of an air-based platform in any of the above embodiments is executed. The storage medium in this embodiment is a computer-readable storage medium.

本发明一实施例还提供一种电子设备,包括:处理器;以及,存储器,用于存储处理器的可执行指令;其中,处理器配置为经由执行可执行指令来执行上述任一项实施例中的一种基于空基平台图像的铁轨异物监测方法。An embodiment of the present invention further provides an electronic device, including: a processor; and a memory for storing executable instructions of the processor; wherein the processor is configured to execute any of the foregoing embodiments by executing the executable instructions A method for monitoring foreign objects on rails based on images of space-based platforms.

本领域普通技术人员可以理解:实现上述各方法实施例的全部或部分步骤可以通过程序指令相关的硬件来完成。前述的程序可以存储于一计算机可读取存储介质中。该程序在执行时,执行包括上述各方法实施例的步骤;而前述的存储介质包括:ROM、RAM、磁碟或者光盘等各种可以存储程序代码的介质。Those of ordinary skill in the art can understand that all or part of the steps of implementing the above method embodiments may be completed by program instructions related to hardware. The aforementioned program can be stored in a computer-readable storage medium. When the program is executed, the steps including the above method embodiments are executed; and the foregoing storage medium includes: ROM, RAM, magnetic disk or optical disk and other media that can store program codes.

最后应说明的是:以上各实施例仅用以说明本发明的技术方案,而非对其限制;尽管参照前述各实施例对本发明进行了详细的说明,本领域的普通技术人员应当理解:其依然可以对前述各实施例所记载的技术方案进行修改,或者对其中部分或者全部技术特征进行等同替换;而这些修改或者替换,并不使相应技术方案的本质脱离本发明各实施例技术方案的范围。Finally, it should be noted that the above embodiments are only used to illustrate the technical solutions of the present invention, but not to limit them; although the present invention has been described in detail with reference to the foregoing embodiments, those of ordinary skill in the art should understand that: The technical solutions described in the foregoing embodiments can still be modified, or some or all of the technical features thereof can be equivalently replaced; and these modifications or replacements do not make the essence of the corresponding technical solutions deviate from the technical solutions of the embodiments of the present invention. scope.

Claims (7)

1. A rail foreign matter monitoring method based on an empty foundation platform image is characterized by comprising the following steps:
acquiring a picture to be processed, wherein the picture to be processed is a rail picture shot by a low-altitude unmanned machine;
obtaining effective gradient information of the picture to be processed;
coding the effective gradient information according to the type of the effective gradient information to obtain a first characteristic;
obtaining a second characteristic according to the hue, saturation and transparency HSV color model of the picture to be processed;
judging whether foreign matters exist in the rail in the picture to be processed or not according to the first characteristic and the second characteristic;
the obtaining effective gradient information of the picture to be processed comprises:
establishing an integral image of the picture to be processed;
establishing a scale space by the integral image through a box filter;
locating feature points of the scale space;
obtaining effective gradient information of the picture to be processed by constructing a feature point descriptor;
the judging whether foreign matters exist in the rail in the picture to be processed according to the first characteristic and the second characteristic comprises the following steps:
performing feature fusion on the first feature and the second feature to obtain a third feature, wherein the feature fusion is performed in a mode of combining, adding, subtracting or multiplying the first feature and the second feature;
judging whether foreign matters exist in the rail in the picture to be processed through the third features by a classifier, wherein the classifier comprises: the third feature of a rail picture with a foreign object present and the third feature of a rail picture without a foreign object present;
the encoding the effective gradient information according to the type of the effective gradient information to obtain a first characteristic includes:
clustering the effective gradient information through a clustering algorithm, and taking a clustering center as a basic code word;
and coding the effective gradient information by adopting a bag-of-words model according to the basic code words to obtain the first characteristic of a fixed coding format.
2. The method as claimed in claim 1, wherein the obtaining a second feature according to the hue, saturation and transparency HSV color model feature of the to-be-processed picture comprises:
acquiring HSV color model data of the picture to be processed;
and counting the HSV color model data according to a color histogram to obtain the HSV color model characteristic as the second characteristic.
3. The method according to claim 1, wherein before the obtaining the picture to be processed, further comprising:
acquiring the third characteristics of N rail pictures with foreign matters and the third characteristics of M rail pictures without foreign matters, wherein N and M are positive integers;
and storing the third characteristics of the N rail pictures with the foreign matters and the third characteristics of the M rail pictures without the foreign matters into the classifier.
4. The method of claim 3, wherein the classifier is a Support Vector Machine (SVM).
5. The method according to any one of claims 1 to 4, wherein after determining whether foreign objects exist on the rail in the to-be-processed picture according to the first feature and the second feature, the method further comprises:
and if the rail in the picture to be processed is judged to have the foreign matter, acquiring the attribute of the foreign matter through the third characteristic.
6. The method of claim 5, wherein the attributes of the foreign object include one or more of: the type, size, shape and color of the foreign matter.
7. A rail foreign matter monitoring device based on air-based platform images, comprising:
the acquisition module is used for acquiring a picture to be processed, and the picture to be processed is a rail picture shot by a low-altitude unmanned machine;
the processing module is used for acquiring effective gradient information of the picture to be processed;
the characteristic extraction module is used for coding the effective gradient information according to the type of the effective gradient information to obtain a first characteristic;
the feature extraction module is further used for obtaining a second feature according to the hue, saturation and transparency HSV color model of the picture to be processed;
the classification module is used for judging whether foreign matters exist in the rail in the picture to be processed according to the first characteristic and the second characteristic;
the processing module is specifically used for establishing an integral image of the picture to be processed; establishing a scale space for the integral image through a box filter; locating feature points of the scale space; obtaining effective gradient information of the picture to be processed by constructing a feature point descriptor;
the classification module is specifically configured to perform feature fusion on the first feature and the second feature to obtain a third feature, where the feature fusion is performed in a manner of combining, adding, subtracting, or multiplying the first feature and the second feature;
judging whether foreign matters exist in the rail in the picture to be processed through the third features by a classifier, wherein the classifier comprises: the third feature of a rail picture with a foreign object present and the third feature of a rail picture without a foreign object present;
the characteristic extraction module is specifically used for clustering the effective gradient information through a clustering algorithm, and taking a clustering center as a basic code word;
and coding the effective gradient information by adopting a bag-of-words model according to the basic code words to obtain the first characteristic of a fixed coding format.
CN201810225219.XA 2018-03-19 2018-03-19 A method and device for monitoring foreign objects on rails based on images of space-based platforms Active CN108389205B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201810225219.XA CN108389205B (en) 2018-03-19 2018-03-19 A method and device for monitoring foreign objects on rails based on images of space-based platforms

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201810225219.XA CN108389205B (en) 2018-03-19 2018-03-19 A method and device for monitoring foreign objects on rails based on images of space-based platforms

Publications (2)

Publication Number Publication Date
CN108389205A CN108389205A (en) 2018-08-10
CN108389205B true CN108389205B (en) 2022-10-25

Family

ID=63067549

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201810225219.XA Active CN108389205B (en) 2018-03-19 2018-03-19 A method and device for monitoring foreign objects on rails based on images of space-based platforms

Country Status (1)

Country Link
CN (1) CN108389205B (en)

Families Citing this family (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN112907534A (en) * 2021-02-18 2021-06-04 哈尔滨市科佳通用机电股份有限公司 Fault detection method and device based on door closing part position image

Family Cites Families (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US8509526B2 (en) * 2010-04-13 2013-08-13 International Business Machines Corporation Detection of objects in digital images
CN102982350B (en) * 2012-11-13 2015-10-28 上海交通大学 A kind of station caption detection method based on color and histogram of gradients
CN105448095B (en) * 2014-06-03 2017-11-17 杭州海康威视数字技术股份有限公司 Method and apparatus are surveyed in a kind of yellow mark car test
CN105989594B (en) * 2015-02-12 2019-02-12 阿里巴巴集团控股有限公司 A kind of image region detection method and device
CN104680189B (en) * 2015-03-15 2018-04-10 西安电子科技大学 Based on the bad image detecting method for improving bag of words

Also Published As

Publication number Publication date
CN108389205A (en) 2018-08-10

Similar Documents

Publication Publication Date Title
Pal et al. Adapting a swin transformer for license plate number and text detection in drone images
CN112200081B (en) Abnormal behavior identification method, device, electronic device and storage medium
KR101942808B1 (en) Apparatus for CCTV Video Analytics Based on Object-Image Recognition DCNN
CN108229321B (en) Face recognition model, and training method, device, apparatus, program, and medium therefor
US9830704B1 (en) Predicting performance metrics for algorithms
EP4035070B1 (en) Method and server for facilitating improved training of a supervised machine learning process
Li et al. Robust vehicle detection in high-resolution aerial images with imbalanced data
CN117095349A (en) Appearance search system, method, and non-transitory computer readable medium
US20150262068A1 (en) Event detection apparatus and event detection method
Velastin et al. People detection and pose classification inside a moving train using computer vision
CN111814755A (en) Multi-frame image pedestrian detection method and device for night motion scene
CN107169401A (en) Object detecting method is invaded based on the track that track visual signature is composed
Szymanowicz et al. Discrete neural representations for explainable anomaly detection
CN104268528A (en) Method and device for detecting crowd gathered region
CN116129330B (en) Video-based image processing, behavior recognition, segmentation and detection methods and equipment
Luo et al. Traffic analytics with low-frame-rate videos
CN108108731A (en) Method for text detection and device based on generated data
CN114638960A (en) Model training method, image description generation method and device, equipment, medium
CN109919223B (en) Target detection method and device based on deep neural network
US20240221426A1 (en) Behavior detection method, electronic device, and computer readable storage medium
CN105809205A (en) Classification method and system for hyperspectral images
CN113705307A (en) Image processing method, device, equipment and storage medium
CN112101114A (en) Video target detection method, device, equipment and storage medium
Sismananda et al. Performance comparison of yolo-lite and yolov3 using raspberry pi and motioneyeos
CN114373162A (en) Dangerous area personnel intrusion detection method and system for transformer substation video monitoring

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
GR01 Patent grant
GR01 Patent grant