[go: up one dir, main page]
More Web Proxy on the site http://driver.im/

CN103034861B - The recognition methods of a kind of truck brake shoe breakdown and device - Google Patents

The recognition methods of a kind of truck brake shoe breakdown and device Download PDF

Info

Publication number
CN103034861B
CN103034861B CN201210543988.7A CN201210543988A CN103034861B CN 103034861 B CN103034861 B CN 103034861B CN 201210543988 A CN201210543988 A CN 201210543988A CN 103034861 B CN103034861 B CN 103034861B
Authority
CN
China
Prior art keywords
brake shoe
truck
feature
value
area
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.)
Expired - Fee Related
Application number
CN201210543988.7A
Other languages
Chinese (zh)
Other versions
CN103034861A (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 CN201210543988.7A priority Critical patent/CN103034861B/en
Publication of CN103034861A publication Critical patent/CN103034861A/en
Application granted granted Critical
Publication of CN103034861B publication Critical patent/CN103034861B/en
Expired - Fee Related legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Landscapes

  • Image Analysis (AREA)

Abstract

The invention discloses the recognition methods of a kind of truck brake shoe breakdown, including: from present image, extract the segmentation feature of three angles;Segmentation feature according to described three angles determines the lorry brake shoe characteristic area of present image;The feature of lorry brake shoe is extracted from the lorry brake shoe characteristic area of present image;Use support vector machine (SVM) algorithm that the feature calculation of lorry brake shoe draws the eigenvalue of present image, judge whether lorry brake shoe exists fault according to described eigenvalue and preset Fault Identification value.The invention also discloses the identification device of a kind of truck brake shoe breakdown, use the present invention to be avoided that manually-operated error, it is ensured that the discrimination of fault, Accident prevention occurs timely, thus ensures operation security.

Description

一种货车闸瓦故障的识别方法及装置A method and device for identifying faults of freight train brake shoes

技术领域technical field

本发明涉及图像处理领域,尤其涉及一种货车闸瓦故障的识别方法及装置。The invention relates to the field of image processing, in particular to a method and device for identifying faults of freight train brake shoes.

背景技术Background technique

目前,货车闸瓦制动是国内铁路货车普遍采用的踏面制动方式,货车闸瓦上的闸瓦钎主要用来防止货车闸瓦脱落,一旦闸瓦钎丢失,货车运行过程中货车闸瓦就极有可能脱落,导致制动失灵,更严重的是若货车闸瓦正好脱落在钢轨上,则会造成脱轨事故。近年来,铁道部大力推广货车运行故障图像动态检测系统(TFDS)对运行中的列车各关键部位进行成像,并由人工浏览图像完成故障识别。这种由人工进行故障识别的方式存在低效率,识别率不稳定等问题,已无法满足列车安全运行的发展要求。At present, freight car brake shoe braking is the tread braking method commonly used by domestic railway freight cars. The brake shoe brazing on the freight car brake shoe is mainly used to prevent the freight car brake shoe from falling off. Once the brake shoe brazing is lost, the freight car brake shoe will be damaged during the operation It is very likely to fall off, causing brake failure, and what is more serious is that if the brake shoe of the truck just falls off the rail, it will cause a derailment accident. In recent years, the Ministry of Railways has vigorously promoted the fault image dynamic detection system (TFDS) of freight trains to image the key parts of the running trains, and manually browse the images to complete the fault identification. This method of manual fault identification has problems such as low efficiency and unstable recognition rate, which cannot meet the development requirements of safe train operation.

可见,现有技术中使用TFDS进行闸瓦故障识别,过于依赖人工操作,因此无法保证故障的识别率,进而无法及时的防止事故发生,从而无法保证运营安全。It can be seen that the use of TFDS in the prior art for brake shoe fault identification relies too much on manual operations, so the recognition rate of faults cannot be guaranteed, and accidents cannot be prevented in time, so that operation safety cannot be guaranteed.

发明内容Contents of the invention

有鉴于此,本发明的目的在于提供一种货车闸瓦故障的识别方法及装置,能避免人工操作的失误,保证故障的识别率,及时的防止事故发生,从而保证运营安全。In view of this, the object of the present invention is to provide a method and device for identifying faults of freight train brake shoes, which can avoid manual operation errors, ensure the recognition rate of faults, prevent accidents in time, and ensure operational safety.

为达到上述目的,本发明的技术方案是这样实现的:In order to achieve the above object, technical solution of the present invention is achieved in that way:

本发明提供了一种货车闸瓦故障的识别方法,该方法包括:The invention provides a method for identifying faults of freight train brake shoes, the method comprising:

从当前图像中提取三个角度的分割特征;Extract segmentation features from three angles from the current image;

根据所述三个角度的分割特征确定当前图像的货车闸瓦特征区域;Determine the feature area of the brake shoe of the current image according to the segmentation features of the three angles;

从当前图像的货车闸瓦特征区域中提取货车闸瓦的特征;Extract the features of the truck brake shoe from the feature area of the truck brake shoe in the current image;

使用支持向量机(SVM,Support Vector Machine)算法对货车闸瓦的特征计算得出当前图像的特征值,根据所述特征值以及预置的故障识别值判定货车闸瓦是否存在故障。Using the Support Vector Machine (SVM, Support Vector Machine) algorithm to calculate the characteristics of the truck brake shoe to obtain the feature value of the current image, and determine whether the truck brake shoe has a fault according to the feature value and the preset fault identification value.

上述方案中,所述从当前图像中提取三个角度的分割特征,包括:从TDFS中周期性提取当前图像,对当前图像进行三个角度的灰度投影得到三条投影曲线;对所有投影曲线进行滤波,将滤波后的各个投影曲线中的最大值均作为当前图像三个角度的分割特征。In the above scheme, the extraction of the segmentation features of three angles from the current image includes: periodically extracting the current image from the TDFS, and performing grayscale projection of the current image at three angles to obtain three projection curves; Filtering, using the maximum value of each filtered projection curve as the segmentation feature of the three angles of the current image.

上述方案中,所述根据三个角度的分割特征确定当前图像的货车闸瓦特征区域,包括:使用Canny算子提取当前图像的边缘信息,根据角度为零度的分割特征,确定货车闸瓦特征区域的左边界和右边界的坐标值;根据角度为-25°和25°的分割特征,确定货车闸瓦特征区域的上边界和下边界的坐标值。In the above solution, the determination of the characteristic area of the truck brake shoe of the current image according to the segmentation features of the three angles includes: using the Canny operator to extract the edge information of the current image, and determining the characteristic area of the truck brake shoe according to the segmentation feature with an angle of zero degrees The coordinate values of the left boundary and right boundary of ; according to the segmentation features with angles of -25° and 25°, determine the coordinate values of the upper boundary and lower boundary of the feature area of the brake shoe of the truck.

上述方案中,所述从当前图像的货车闸瓦特征区域中提取货车闸瓦的特征,包括:使用基于背景面积预估的方法,将当前图像的货车闸瓦特征区域中的图像分割得到货车闸瓦区域二进制图像;使用像素标记法,从所述货车闸瓦区域二进制图像中提取最大连通区域;使用Canny算子,从最大连通区域中的二进制图像中提取货车闸瓦边缘轮廓;根据所述货车闸瓦边缘轮廓提取货车闸瓦的特征。In the above solution, the extraction of the features of the truck brake shoe from the feature area of the truck brake shoe of the current image includes: using a method based on background area estimation to segment the image in the feature area of the truck brake shoe of the current image to obtain the truck brake shoe. tile area binary image; use pixel notation method to extract the maximum connected area from the binary image of the truck brake shoe area; use Canny operator to extract the truck brake shoe edge profile from the binary image in the maximum connected area; according to the truck Brake shoe edge profile extraction of freight car brake shoe features.

上述方案中,所述货车闸瓦的特征包括:货车闸瓦边缘轮廓的平滑特征值、货车闸瓦边缘轮廓的凹凸特征值、货车闸瓦边缘轮廓的锯齿度、货车闸瓦边缘轮廓的固靠值、货车闸瓦边缘轮廓的致密性、货车闸瓦边缘轮廓的圆形性、货车闸瓦边缘轮廓的长宽比、货车闸瓦边缘轮廓的面积和货车闸瓦边缘轮廓的周长。In the above solution, the characteristics of the freight car brake shoe include: the smooth characteristic value of the edge profile of the freight car brake shoe, the concave-convex characteristic value of the edge contour of the freight car brake shoe, the sawtooth degree of the edge contour of the freight car brake shoe, and the firmness of the edge contour of the freight car brake shoe. value, the compactness of the wagon brake shoe edge profile, the circularity of the wagon brake shoe edge profile, the aspect ratio of the wagon brake shoe edge profile, the area of the wagon brake shoe edge profile, and the perimeter of the wagon brake shoe edge profile.

上述方案中,所述从当前图像中提取三个角度的分割特征之前,该方法还包括:使用不存在故障的货车闸瓦钎图像和存在故障的货车闸瓦钎图像分别建立正、负样本训练集;分别提取正、负样本训练集中的所有图像的特征,组成正、负样本训练集对应的九维特征向量,使用SVM算法计算得出的正、负样本对应的值,将负样本训练集对应的值作为故障识别值。In the above scheme, before extracting the segmentation features of three angles from the current image, the method further includes: using the image of the brake shoe of a truck without a fault and the image of a brake shoe of a truck with a fault to respectively establish positive and negative sample training set; respectively extract the features of all the images in the positive and negative sample training sets to form the nine-dimensional feature vectors corresponding to the positive and negative sample training sets, use the SVM algorithm to calculate the values corresponding to the positive and negative samples, and convert the negative sample training set The corresponding value is used as the fault identification value.

本发明还提供了一种货车闸瓦故障的识别装置,该装置包括:特征提取模块和识别模块;其中,The present invention also provides an identification device for a brake shoe failure of a freight car, which includes: a feature extraction module and an identification module; wherein,

特征提取模块,用于从当前图像中提取三个角度的分割特征,根据所述三个角度的分割特征确定当前图像的货车闸瓦特征区域,从当前图像的货车闸瓦特征区域中提取货车闸瓦的特征,将所述货车闸瓦的特征发送给识别模块;The feature extraction module is used to extract the segmentation features of three angles from the current image, determine the feature area of the truck brake shoe in the current image according to the segmentation features of the three angles, and extract the truck brake shoe feature area from the current image. The feature of the tile, sending the feature of the truck brake shoe to the recognition module;

识别模块,用于使用SVM算法对特征提取模块发来的所述货车闸瓦的特征计算得出当前图像的特征值,根据所述特征值以及预置的故障识别值判定货车闸瓦是否存在故障。The recognition module is used to use the SVM algorithm to calculate the feature value of the current image based on the features of the truck brake shoe sent by the feature extraction module, and determine whether there is a fault in the truck brake shoe according to the feature value and the preset fault identification value .

上述方案中,所述特征提取模块,具体用于从所在的TDFS中周期性提取当前图像,对当前图像进行三个角度的灰度投影得到三条投影曲线;对所有投影曲线进行滤波,将滤波后的各个投影曲线中的最大值均作为当前图像三个角度的分割特征。In the above scheme, the feature extraction module is specifically used to periodically extract the current image from the TDFS where it is located, and perform grayscale projection of the current image at three angles to obtain three projection curves; filter all projection curves, and filter The maximum value of each projection curve of is used as the segmentation feature of the three angles of the current image.

上述方案中,所述特征提取模块,具体用于使用Canny算子提取当前图像的边缘信息,根据角度为零度的分割特征,确定货车闸瓦特征区域的左边界和右边界的坐标值;根据角度为-25°和25°的分割特征,确定货车闸瓦特征区域的上边界和下边界的坐标值。In the above scheme, the feature extraction module is specifically used to extract the edge information of the current image using the Canny operator, and determine the coordinate values of the left boundary and the right boundary of the truck brake shoe feature area according to the segmentation feature with an angle of zero degrees; according to the angle For the segmentation features of -25° and 25°, determine the coordinate values of the upper boundary and lower boundary of the feature area of the brake shoe of the freight car.

上述方案中,所述特征提取模块,具体用于使用基于背景面积预估的方法,将当前图像的货车闸瓦特征区域中的图像分割得到货车闸瓦区域二进制图像;使用像素标记法,从所述货车闸瓦区域二进制图像中提取最大连通区域;使用Canny算子,从最大连通区域中的二进制图像中提取货车闸瓦边缘轮廓;根据所述货车闸瓦边缘轮廓提取货车闸瓦的特征。In the above solution, the feature extraction module is specifically used to use a method based on background area estimation to segment the image in the feature area of the truck brake shoe in the current image to obtain a binary image of the truck brake shoe area; The maximum connected area is extracted from the binary image of the truck brake shoe area; the edge profile of the truck brake shoe is extracted from the binary image in the maximum connected area using the Canny operator; the feature of the truck brake shoe is extracted according to the edge profile of the truck brake shoe.

上述方案中,所述特征提取模块,具体用于提取货车闸瓦边缘轮廓的平滑特征值、货车闸瓦边缘轮廓的凹凸特征值、货车闸瓦边缘轮廓的锯齿度、货车闸瓦边缘轮廓的固靠值、货车闸瓦边缘轮廓的致密性、货车闸瓦边缘轮廓的圆形性、货车闸瓦边缘轮廓的长宽比、货车闸瓦边缘轮廓的面积和货车闸瓦边缘轮廓的周长作为货车闸瓦的特征。In the above solution, the feature extraction module is specifically used to extract the smooth feature value of the edge profile of the brake shoe of the truck, the concave-convex feature value of the edge profile of the brake shoe of the truck, the sawtooth degree of the edge profile of the brake shoe of the truck, and the solidity of the edge profile of the brake shoe of the truck. Reliance, the compactness of the edge profile of the truck shoe edge, the circularity of the edge profile of the brake shoe edge of the truck, the aspect ratio of the edge profile of the brake shoe edge of the truck, the area of the edge profile of the brake shoe edge of the truck and the perimeter of the edge profile of the brake shoe of the truck Brake shoe characteristics.

上述方案中,所述识别模块,还用于使用不存在故障的货车闸瓦钎图像和存在故障的货车闸瓦钎图像分别建立正、负样本训练集;分别提取正、负样本训练集中的所有图像的特征,组成正、负样本训练集对应的九维特征向量,使用SVM算法计算得出的正、负样本对应的值,将负样本训练集对应的值作为故障识别值。In the above solution, the identification module is also used to use the image of the brake shoe of the truck without the fault and the image of the brake shoe of the truck with the fault to respectively establish the positive and negative sample training sets; extract all the positive and negative sample training sets respectively. The features of the image form the nine-dimensional feature vectors corresponding to the positive and negative sample training sets, and use the SVM algorithm to calculate the corresponding values of the positive and negative samples, and use the values corresponding to the negative sample training sets as the fault identification value.

本发明所提供的货车闸瓦故障的识别方法及装置,能自动从当前图像中提取三个角度的分割特征;根据所述三个角度的分割特征确定当前图像的货车闸瓦特征区域;从当前图像的货车闸瓦特征区域中提取货车闸瓦的特征;进而根据所述货车闸瓦的特征,以及故障识别条件确定货车闸瓦是否存在故障。如此,就能够避免人工操作的失误,保证故障的识别率,及时的防止事故发生,从而保证运营安全。The identification method and device of the truck brake shoe failure provided by the present invention can automatically extract the segmentation features of three angles from the current image; determine the feature area of the truck brake shoe of the current image according to the segmentation features of the three angles; Extracting the features of the truck brake shoe from the feature area of the truck brake shoe in the image; and then determining whether there is a fault in the truck brake shoe according to the characteristics of the truck brake shoe and the fault identification conditions. In this way, errors in manual operation can be avoided, the recognition rate of faults can be ensured, and accidents can be prevented in time to ensure operational safety.

附图说明Description of drawings

图1为本发明的货车闸瓦故障的识别方法流程示意图;Fig. 1 is the schematic flow chart of the identification method of the truck brake shoe fault of the present invention;

图2为本发明的货车闸瓦故障的识别装置组成结构示意图;Fig. 2 is a schematic diagram of the composition and structure of the identification device for the failure of the truck brake shoe of the present invention;

图3为测试结果表。Figure 3 is a table of test results.

具体实施方式detailed description

本发明的基本思想是:从当前图像中提取三个角度的分割特征;根据所述三个角度的分割特征确定当前图像的货车闸瓦特征区域;从当前图像的货车闸瓦特征区域中提取货车闸瓦的特征;使用SVM算法对货车闸瓦的特征计算得出当前图像的特征值,根据所述特征值以及预置的故障识别值判定货车闸瓦是否存在故障。The basic idea of the present invention is: extract the segmentation features of three angles from the current image; determine the feature area of the brake shoe of the current image according to the segmentation features of the three angles; extract the feature area of the brake shoe of the truck from the current image The characteristics of the brake shoes: use the SVM algorithm to calculate the characteristics of the brake shoes of the truck to obtain the feature value of the current image, and determine whether there is a fault in the brake shoe of the truck according to the feature value and the preset fault identification value.

下面结合附图及具体实施例对本发明再作进一步详细的说明。The present invention will be further described in detail below in conjunction with the accompanying drawings and specific embodiments.

本发明的货车闸瓦故障的识别方法,如图1所示,包括以下步骤:The identification method of freight car brake shoe fault of the present invention, as shown in Figure 1, comprises the following steps:

步骤101:从当前图像中提取三个角度的分割特征。Step 101: Extract segmentation features from three angles from the current image.

具体的,从TDFS中周期性提取当前图像,对当前图像进行三个角度的灰度投影得到三条投影曲线;对所有投影曲线进行滤波,将滤波后的各个投影曲线中的最大值均作为当前图像三个角度的分割特征;Specifically, the current image is periodically extracted from TDFS, and three projection curves are obtained by gray-scale projection of the current image at three angles; all projection curves are filtered, and the maximum value of each filtered projection curve is used as the current image Segmentation features from three angles;

这里,所述三个角度为设定的-25°0°和25°三个角度;Here, the three angles are the set three angles of -25°0° and 25°;

所述灰度投影包括:将当前图像进行扩展,得到扩展后的图像;将扩展后的图像进行投影计算,对投影计算得到的图像进行离散得到投影曲线。The grayscale projection includes: expanding the current image to obtain an expanded image; performing projection calculation on the expanded image, and discretizing the image obtained by the projection calculation to obtain a projection curve.

所述将当前图像进行扩展为在图像边缘补灰度为零的像素点,避免投影时图像边缘所造成的误差,可以使用以下公式进行计算:The current image is expanded to fill pixels with a grayscale of zero at the edge of the image to avoid errors caused by the edge of the image during projection. The following formula can be used for calculation:

∀ ( i , j ) ∈ R 2 , I ′ ( i , j ) = I ( i , j ) ( i , j ) ∈ Ω 0 ( i , j ) ∉ Ω ; 其中,Ω表示无限大。 ∀ ( i , j ) ∈ R 2 , I ′ ( i , j ) = I ( i , j ) ( i , j ) ∈ Ω 0 ( i , j ) ∉ Ω ; Among them, Ω represents infinity.

其中,所述投影计算可以使用公式:Wherein, the projection calculation can use the formula:

其中, i = r 2 + l 2 cos [ θ + a tan ( l r ) ] , j = r 2 + l 2 sin [ θ + a tan ( l r ) ] , 假设建立坐标系,坐标原点为o,设当前图像I高度为m,宽度为n,为投影方向,二维图像I将被投影到投影线 起点为o,相互垂直。r为投影线上任意一点,p为过r点,且与平行的直线,l为其上任意一点(i,j)离投影线的垂直距离,I(i,j)为图像在点(i,j)处的像素灰度值,设投影线与x轴夹角θ为投影方向角,θ为-25°0°或25°。 in, i = r 2 + l 2 cos [ θ + a the tan ( l r ) ] , j = r 2 + l 2 sin [ θ + a the tan ( l r ) ] , Suppose a coordinate system is established, the origin of the coordinates is o, the height of the current image I is m, and the width is n, is the projection direction, the 2D image I will be projected to the projection line The starting point is o, and perpendicular to each other. r is any point on the projection line, p is a point passing through r, and Parallel straight line, l is any point (i, j) above the projection line The vertical distance of , I(i, j) is the pixel gray value of the image at point (i, j), and the angle θ between the projection line and the x-axis is the projection direction angle, θ is -25°0° or 25° .

所述对投影计算得到的图像进行离散可以使用下述公式计算:The discretization of the image obtained by the projection calculation can be calculated using the following formula:

其中,θ为-25°0°和25°,当前图像I高度为m,宽度为n,δθ(r)表示图像在投影方向角θ上的灰度投影,它能反映图像在投影方向角θ方向的灰度变化。 in, θ is -25° 0° and 25°, The height of the current image I is m, the width is n, δ θ (r) represents the grayscale projection of the image on the projection direction angle θ, and it can reflect the grayscale change of the image in the direction of the projection direction angle θ.

所述对所有投影曲线进行滤波可以使用公式:The formula for filtering all projection curves can be used:

h ( x ) = 1 x 2 &le; x &le; x 1 - 1 x 3 &le; x < x 1 &cup; x 2 < x &le; x 4 ; 其中,x1,x2,x3,x4为常数,满足 | x 1 - x 2 | = H | x 3 - x 4 | = 2 H , H为分割特征宽度预估。 h ( x ) = 1 x 2 &le; x &le; x 1 - 1 x 3 &le; x < x 1 &cup; x 2 < x &le; x 4 ; Among them, x 1 , x 2 , x 3 , x 4 are constants, satisfying | x 1 - x 2 | = h | x 3 - x 4 | = 2 h , H is the estimated width of the segmentation feature.

步骤102:根据所述三个角度的分割特征确定当前图像的货车闸瓦特征区域。Step 102: Determine the feature area of the brake shoe of the current image according to the segmentation features of the three angles.

具体为:使用Canny算子提取当前图像的边缘信息,根据角度为零度的分割特征,确定货车闸瓦特征区域的左边界和右边界的坐标值;根据角度为-25°和25°的分割特征,确定货车闸瓦特征区域的上边界和下边界的坐标值。Specifically: use the Canny operator to extract the edge information of the current image, and determine the coordinate values of the left boundary and right boundary of the feature area of the truck brake shoe according to the segmentation feature with an angle of zero degree; according to the segmentation feature with an angle of -25° and 25° , to determine the coordinate values of the upper boundary and lower boundary of the characteristic area of the freight train brake shoe.

这里,所述根据角度为零度的分割特征,确定货车闸瓦特征区域的左边界和右边界的坐标值包括:使用角度为零度的分割特征将当前图像的边缘信息分割为左右两个子图像,分别计算两个子图像的像素灰度值之和,比较所述两个子图像的像素灰度值之和的大小,若左边子图像的像素灰度值之和较大,则货车闸瓦特征区域的右边界的坐标值等于零度的分割特征的横坐标值、减去预置的右边界距离值,货车闸瓦特征区域的左边界的坐标值等于其右边界的坐标值减去预置的宽度值;否则,货车闸瓦特征区域的左边界的坐标值等于零度的分割特征的横坐标值、加预置的左边界距离值,货车闸瓦特征区域的右边界的坐标值等于其左边界的坐标值加上预置的宽度值;Here, according to the segmentation feature with an angle of zero degrees, determining the coordinate values of the left boundary and the right boundary of the truck brake shoe feature area includes: using the segmentation feature with an angle of zero degrees to divide the edge information of the current image into two sub-images, respectively Calculate the sum of the pixel gray values of the two sub-images, compare the sum of the pixel gray values of the two sub-images, if the sum of the pixel gray values of the left sub-image is larger, the right The coordinate value of the boundary is equal to the abscissa value of the segmentation feature of zero degrees, minus the preset right boundary distance value, and the coordinate value of the left boundary of the freight car brake shoe feature area is equal to the coordinate value of its right boundary minus the preset width value; Otherwise, the coordinate value of the left boundary of the characteristic area of the truck brake shoe is equal to the abscissa value of the segmentation feature of zero degrees, plus the preset left boundary distance value, and the coordinate value of the right boundary of the characteristic area of the truck brake shoe is equal to the coordinate value of its left boundary Add the preset width value;

比如,假设当前图像的边缘信息为I,角度为零度的分割特征为图中l2,将当前图像的边缘信息I分割为左右两个子图像分别为I1和I2;分别计算两个子图像I1和I2的像素灰度值之和edge1和edge2;若edge1>edge2,则Brigth=l2-h1,Bleft=Brigth-N;当edge1<edge2时,Bleft=l2+h2,Bright=Bleft+N;其中,l2为零度的分割特征的横坐标值,h1为预置的右边界距离值,h2为预置的左边界距离值,N为预置的宽度值;For example, assuming that the edge information of the current image is I, and the segmentation feature with an angle of zero degree is l 2 in the figure, the edge information I of the current image is divided into two left and right sub-images, which are I 1 and I 2 respectively; the two sub-images I are calculated respectively The sum of pixel gray values of 1 and I 2 edge1 and edge2; if edge1>edge2, then B rigth =l 2 -h 1 , B left =B rigth -N; when edge1<edge2, B left =l 2 + h 2 , B right = B left +N; among them, l 2 is the abscissa value of the zero-degree segmentation feature, h 1 is the preset right border distance value, h 2 is the preset left border distance value, and N is the preset set width value;

其中, edge 1 = &Sigma; j = 0 N 1 &Sigma; i = 0 M 1 I 1 ( i , j ) , edge 2 = &Sigma; j = 0 N 2 &Sigma; i = 0 M 2 I 2 ( i , j ) ; 其中I1(i,j)为子图像I1在点(i,j)处的像素灰度值,M1,N1为I1高度和宽度;I2(i,j)为子图像I2在点(i,j)处的像素灰度值,M2,N2为子图像I2高度和宽度。in, edge 1 = &Sigma; j = 0 N 1 &Sigma; i = 0 m 1 I 1 ( i , j ) , edge 2 = &Sigma; j = 0 N 2 &Sigma; i = 0 m 2 I 2 ( i , j ) ; Where I 1 (i, j) is the pixel gray value of the sub-image I 1 at point (i, j), M 1 , N 1 are the height and width of I 1 ; I 2 (i, j) is the sub-image I 2 is the pixel gray value at point (i, j), M 2 , N 2 is the height and width of the sub-image I 2 .

所述根据角度为-25°和25°的分割特征,确定货车闸瓦特征区域的上边界和下边界的坐标值,包括:设角度为-25°的分割特征所对应的直线l1与图像上边界交点横坐标值为top1,下边界交点横坐标值为bot1;角度为25°的分割特征所对应的直线l3与图像上边界交点横坐标值为top3,下边界交点横坐标值为bot3,计算比率ratio=|(top1-top3)/(bot1-bot3)|;当ratio<1时,货车闸瓦钎区域位于当前图像的顶部位置;当ratio>1时,货车闸瓦钎区域位于当前图像的底部位置;根据货车闸瓦钎区域的机械结构特点,根据松弛原则提取出上边界和下边界的坐标值。其中,所述松弛原则为现有技术,用于保证所选货车闸瓦特征区域能完全表示货车闸瓦,其实现方式这里不做赘述。According to the segmentation features with angles of -25° and 25°, determining the coordinate values of the upper boundary and the lower boundary of the feature area of the truck brake shoe includes: setting the straight line l1 corresponding to the segmentation feature with an angle of -25° and the image The abscissa value of the intersection point of the upper boundary is top1, the abscissa value of the intersection point of the lower boundary is bot1; the abscissa value of the intersection point of the line l 3 corresponding to the segmentation feature with an angle of 25° and the upper boundary of the image is top3, and the abscissa value of the intersection point of the lower boundary is bot3 , calculate the ratio ratio=|(top1-top3)/(bot1-bot3)|; when ratio<1, the brake shoe area of the truck is at the top of the current image; when ratio>1, the brake shoe area of the truck is at the current The bottom position of the image; according to the mechanical structure characteristics of the brake shoe brazing area of the truck, the coordinate values of the upper boundary and the lower boundary are extracted according to the relaxation principle. Wherein, the relaxation principle is an existing technology, which is used to ensure that the selected characteristic area of the brake shoe of the truck can fully represent the brake shoe of the truck, and its implementation method will not be repeated here.

步骤103:从当前图像的货车闸瓦特征区域中提取货车闸瓦的特征。Step 103: Extracting the features of the brake shoes of the freight train from the feature area of the brake shoes of the freight train in the current image.

具体的,使用基于背景面积预估的方法,将当前图像的货车闸瓦特征区域中的图像分割得到货车闸瓦区域二进制图像;使用像素标记法,从所述货车闸瓦区域二进制图像中提取最大连通区域;使用Canny算子,从最大连通区域中的二进制图像中提取货车闸瓦边缘轮廓;根据所述货车闸瓦边缘轮廓提取货车闸瓦的特征。Specifically, use the method based on background area estimation to segment the image in the feature area of the truck brake shoe in the current image to obtain a binary image of the truck brake shoe area; use the pixel labeling method to extract the maximum A connected area; using a Canny operator to extract the edge profile of the truck brake shoe from the binary image in the maximum connected area; extracting the features of the truck brake shoe according to the edge profile of the truck brake shoe.

这里,所述背景面积预估的方法为现有技术,这里不做赘述;像素标记法为现有技术,这里不做赘述;Canny算子为现有技术,这里不做赘述。Here, the method for estimating the background area is a prior art, which is not repeated here; the pixel marking method is a prior art, which is not repeated here; the Canny operator is a prior art, which is not repeated here.

所述货车闸瓦的特征包括:货车闸瓦边缘轮廓的平滑特征值、货车闸瓦边缘轮廓的凹凸特征值、货车闸瓦边缘轮廓的锯齿度、货车闸瓦边缘轮廓的固靠值、货车闸瓦边缘轮廓的致密性、货车闸瓦边缘轮廓的圆形性、货车闸瓦边缘轮廓的长宽比、货车闸瓦边缘轮廓的面积和货车闸瓦边缘轮廓的周长。The characteristics of the truck brake shoe include: the smooth eigenvalue of the edge profile of the truck brake shoe, the concave-convex eigenvalue of the edge profile of the truck brake shoe, the sawtooth degree of the edge profile of the truck brake shoe, the fixed value of the edge profile of the truck brake shoe, the Compactness of shoe edge profile, circularity of freight car brake shoe edge profile, aspect ratio of freight car brake shoe edge profile, area of freight car brake shoe edge profile and perimeter of freight car brake shoe edge profile.

其中,所述货车闸瓦边缘轮廓的平滑特征值的计算包括:计算得出货车闸瓦边缘轮廓的中心点,以所述中心点为中心将货车闸瓦边缘轮廓表示为极坐标;对所述表示为极坐标形式的货车闸瓦边缘轮廓进行离散化计算,得到离散化的货车闸瓦边缘轮廓;对所述离散化的货车闸瓦边缘轮廓进行归一化计算后,根据预置的规则进行排序,再对排序后得到的结果进行小波分解得到小波系数,使用小波系数计算得出平滑特征值;Wherein, the calculation of the smooth eigenvalue of the edge profile of the truck brake shoe includes: calculating the center point of the edge profile of the truck brake shoe, and expressing the edge profile of the truck brake shoe as a polar coordinate with the center point as the center; Discretize the edge profile of the truck brake shoe expressed in polar coordinates to obtain the discretized truck brake shoe edge profile; after performing normalized calculation on the discretized truck brake shoe edge profile, perform Sorting, and then performing wavelet decomposition on the sorted results to obtain wavelet coefficients, and using wavelet coefficients to calculate smooth eigenvalues;

所述计算得出货车闸瓦边缘轮廓的中心点可以包括:假设货车闸瓦边缘轮廓为x,则以相对弧长s为参数,则货车闸瓦边缘轮廓可表示为:其中0≤s≤1,为货车闸瓦边缘轮廓;则货车闸瓦边缘轮廓的中心点计算公式为 x 0 &RightArrow; = &Integral; 0 1 x ( s ) &RightArrow; ds = ( &Integral; 0 1 x ( s ) ds , &Integral; 0 1 y ( s ) ds ) , 其中0≤s≤1。The calculation of the central point of the edge profile of the truck brake shoe may include: assuming that the edge profile of the truck brake shoe is x, then using the relative arc length s as a parameter, the edge profile of the truck brake shoe can be expressed as: where 0≤s≤1, is the edge profile of the truck brake shoe; then the formula for calculating the center point of the edge profile of the truck brake shoe is x 0 &Right Arrow; = &Integral; 0 1 x ( the s ) &Right Arrow; ds = ( &Integral; 0 1 x ( the s ) ds , &Integral; 0 1 the y ( the s ) ds ) , where 0≤s≤1.

所述以中心点为中心将货车闸瓦边缘轮廓表示为极坐标可以表示为:Said expressing the edge profile of the freight car brake shoe as polar coordinates with the central point as the center can be expressed as:

&theta; ( s ) = &angle; ( x &RightArrow; ( s ) - x 0 &RightArrow; ) r ( s ) = | | x &RightArrow; ( s ) - x 0 &RightArrow; | | 2 z &RightArrow; ( t ) = ( &theta; ( s ) , ( r ( s ) ) . , 其中,∠表示极坐标系下向量的极角。 &theta; ( the s ) = &angle; ( x &Right Arrow; ( the s ) - x 0 &Right Arrow; ) r ( the s ) = | | x &Right Arrow; ( the s ) - x 0 &Right Arrow; | | 2 z &Right Arrow; ( t ) = ( &theta; ( the s ) , ( r ( the s ) ) . , Among them, ∠ represents the polar angle of the vector in the polar coordinate system.

所述对所述表示为极坐标形式的货车闸瓦边缘轮廓进行离散化计算可以为得到轮廓上每个离散点的极坐标(r(si),θ(si)),其中i=0,1,...N-1,N为离散点个数。The discretization calculation of the edge profile of the truck brake shoe expressed in polar coordinate form may be to obtain the polar coordinates (r(s i ), θ(s i )) of each discrete point on the profile, where i=0, 1,...N-1, N is the number of discrete points.

所述归一化计算可以使用公式: The normalized calculation can use the formula:

所述根据预置的规则进行排序可以包括:记θ′(si)为θ′(i),r′(si)为r′(i),对r′(i)进行重新排序,得:R(i)=r′(η(i)),使得对有θ(η(i))<θ(η(j));The sorting according to preset rules may include: record θ'(s i ) as θ'(i), r'(s i ) as r'(i), and reorder r'(i), to obtain : R(i)=r′(η(i)), so that for There is θ(η(i))<θ(η(j));

所述对排序后得到的结果进行小波分解得到小波系数可以包括: d ( i ) = r &prime; ( &eta; ( i ) ) &CircleTimes; &psi; ( i ) ; Performing wavelet decomposition on the sorted results to obtain wavelet coefficients may include: d ( i ) = r &prime; ( &eta; ( i ) ) &CircleTimes; &psi; ( i ) ;

所述使用小波系数计算得出平滑特征值可以为:E=||d(i)||2The smooth feature value calculated by using wavelet coefficients may be: E=||d(i)|| 2 .

所述货车闸瓦边缘轮廓的凹凸特征值的计算使用的公式为:其中,c(n),n=1,2····N货车闸瓦边缘轮廓的序列点,c(n)=||c(n)-c0||,n=1,2,…,N, c 0 = 1 N &Sigma; n = 1 N c ( n ) ; The formula used for calculating the concave-convex eigenvalue of the edge profile of the freight car brake shoe is: Among them, c(n), n=1, 2····Sequence points of the edge profile of N truck brake shoes, c(n)=||c(n)-c 0 ||, n=1, 2,... , N, c 0 = 1 N &Sigma; no = 1 N c ( no ) ;

所述货车闸瓦边缘轮廓的矩形度计算公式可以为:其中A0是轮廓的面积,AMER是轮廓的最小外接矩形的面积,获取方法均为现有技术,这里不做赘述。The formula for calculating the rectangularity of the edge profile of the truck brake shoe can be: Wherein A 0 is the area of the contour, and A MER is the area of the smallest circumscribed rectangle of the contour, and the acquisition methods are all prior art, and will not be repeated here.

所述货车闸瓦边缘轮廓的固靠性计算公式可以为:其中,A表示轮廓的面积,CA为其最小凸多边形的面积,获取方法均为现有技术,这里不做赘述。The formula for calculating the reliability of the edge profile of the freight car brake shoe can be: Among them, A represents the area of the contour, and CA represents the area of the smallest convex polygon. The acquisition methods are all existing technologies, and will not be repeated here.

所述货车闸瓦边缘轮廓的致密性计算公式可以为:其中,P表示轮廓的周长,A表示面积,获取方法均为现有技术,这里不做赘述。The compactness calculation formula of the edge profile of the freight car brake shoe can be: Wherein, P represents the perimeter of the contour, and A represents the area, and the acquisition methods are all in the prior art, and will not be repeated here.

所述货车闸瓦边缘轮廓的圆形性计算公式可以为: The formula for calculating the circularity of the edge profile of the freight car brake shoe can be:

其中,μR是从区域重心到边界点的平均距离。δR是从区域重心到边界点的距离均方差。in, μR is the average distance from the center of gravity of the region to the boundary points. δR is the mean square error of the distance from the center of gravity of the region to the boundary point.

所述货车闸瓦边缘轮廓的长宽比为货车闸瓦边缘轮廓的最小外接矩形的宽与长之比值;The aspect ratio of the edge profile of the brake shoe of the truck is the ratio of the width to the length of the smallest circumscribed rectangle of the edge profile of the brake shoe of the truck;

所述货车闸瓦边缘轮廓的面积可以为:货车闸瓦边缘轮廓范围内的像素个数进行统计获得。The area of the edge contour of the brake shoe of the freight train can be obtained by counting the number of pixels within the contour range of the brake shoe edge of the freight train.

所述货车闸瓦边缘轮廓的周长可以为:货车闸瓦边缘轮廓的边界长度。The perimeter of the edge profile of the brake shoe for a freight car may be: the boundary length of the edge profile of the brake shoe for a freight car.

步骤104:使用SVM算法对货车闸瓦的特征计算得出当前图像的特征值,根据所述特征值以及预置的故障识别值判定货车闸瓦是否存在故障。Step 104: Using the SVM algorithm to calculate the feature value of the brake shoe of the truck to obtain the feature value of the current image, and determine whether there is a fault in the brake shoe of the truck according to the feature value and the preset fault identification value.

这里,所述故障识别值的确定方法为:使用不存在故障的货车闸瓦图像和存在故障的货车闸瓦图像分别建立正、负样本训练集;分别提取正、负样本训练集中的所有图像的特征,组成正、负样本训练集对应的九维特征向量,使用SVM算法计算得出的正、负样本对应的值,将负样本训练集对应的值作为故障识别值。其中,所述SVM算法的实现为现有技术,这里不做赘述。Here, the method for determining the fault identification value is: use the image of the brake shoe of the truck without fault and the image of the brake shoe of the truck to establish the positive and negative sample training sets respectively; Features, which form the nine-dimensional feature vector corresponding to the positive and negative sample training set, use the SVM algorithm to calculate the corresponding value of the positive and negative sample, and use the value corresponding to the negative sample training set as the fault identification value. Wherein, the implementation of the SVM algorithm is an existing technology, and details are not described here.

所述根据特征值以及预置的故障识别值判定货车闸瓦是否存在故障包括:若当前图像的特征值等于故障识别值,则确定货车闸瓦出现故障;否则,确定货车闸瓦没有出现故障。The determining whether there is a fault in the truck brake shoe according to the eigenvalue and the preset fault identification value includes: if the eigenvalue of the current image is equal to the fault identification value, then determining that the truck brake shoe is faulty; otherwise, determining that the truck brake shoe is not faulty.

如图2所示,本发明提供了一种货车闸瓦故障的识别装置,该装置包括:特征提取模块21和识别模块22;其中,As shown in Figure 2, the present invention provides an identification device for a truck brake shoe fault, which includes: a feature extraction module 21 and an identification module 22; wherein,

特征提取模块21,用于从当前图像中提取三个角度的分割特征,根据所述三个角度的分割特征确定当前图像的货车闸瓦特征区域,从当前图像的货车闸瓦特征区域中提取货车闸瓦的特征,将所述货车闸瓦的特征发送给识别模块22;The feature extraction module 21 is used to extract the segmentation features of three angles from the current image, determine the feature area of the brake shoe of the current image according to the segmentation features of the three angles, and extract the feature area of the brake shoe of the truck from the current image. The characteristics of the brake shoe, sending the characteristics of the brake shoe of the freight car to the identification module 22;

识别模块22,用于使用SVM算法对特征提取模块21发来的所述货车闸瓦的特征计算得出当前图像的特征值,根据所述特征值以及预置的故障识别值判定货车闸瓦是否存在故障。The recognition module 22 is used to use the SVM algorithm to calculate the feature value of the current image on the features of the truck brake shoe sent by the feature extraction module 21, and determine whether the truck brake shoe is based on the feature value and the preset fault identification value. There is a glitch.

所述特征提取模块21,具体用于从所在的TDFS中周期性提取当前图像,对当前图像进行三个角度的灰度投影得到三条投影曲线,对所有投影曲线进行滤波,将滤波后的各个投影曲线中的最大值均作为当前图像三个角度的分割特征。其中,所述三个角度为设定的-25°0°和25°三个角度。The feature extraction module 21 is specifically used to periodically extract the current image from the TDFS where it is located, perform three-angle grayscale projections on the current image to obtain three projection curves, filter all projection curves, and filter each projection curve The maximum value in the curve is used as the segmentation feature of the three angles of the current image. Wherein, the three angles are the set three angles of -25°, 0° and 25°.

所述特征提取模块21,具体用于将当前图像进行扩展,得到扩展后的图像;将扩展后的图像进行投影计算,对投影计算得到的图像进行离散得到投影曲线。The feature extraction module 21 is specifically used to expand the current image to obtain an expanded image; perform projection calculation on the expanded image, and discretize the image obtained by projection calculation to obtain a projection curve.

所述特征提取模块21,具体用于在图像边缘补灰度为零的像素点,避免投影时图像边缘所造成的误差,将当前图像进行扩展,可以使用以下公式进行计算:The feature extraction module 21 is specifically used to fill pixels with a grayscale of zero at the edge of the image to avoid errors caused by the edge of the image during projection, and to expand the current image, which can be calculated using the following formula:

&ForAll; ( i , j ) &Element; R 2 , I &prime; ( i , j ) = I ( i , j ) ( i , j ) &Element; &Omega; 0 ( i , j ) &NotElement; &Omega; ; 其中,Ω表示无限大。 &ForAll; ( i , j ) &Element; R 2 , I &prime; ( i , j ) = I ( i , j ) ( i , j ) &Element; &Omega; 0 ( i , j ) &NotElement; &Omega; ; Among them, Ω represents infinity.

所述特征提取模块21,具体用于使用以下公式进行投影计算:The feature extraction module 21 is specifically used to perform projection calculation using the following formula:

其中, i = r 2 + l 2 cos [ &theta; + a tan ( l r ) ] , j = r 2 + l 2 sin [ &theta; + a tan ( l r ) ] , 假设建立坐标系,坐标原点为o,设当前图像I高度为m,宽度为n,为投影方向,二维图像I将被投影到投影线 起点为o,相互垂直。r为投影线上任意一点,p为过r点,且与平行的直线,l为其上任意一点(i,j)离投影线的垂直距离,I(i,j)为图像在点(i,j)处的像素灰度值,设投影线与x轴夹角θ为投影方向角,θ为-25°0°或25°。 in, i = r 2 + l 2 cos [ &theta; + a the tan ( l r ) ] , j = r 2 + l 2 sin [ &theta; + a the tan ( l r ) ] , Suppose a coordinate system is established, the origin of the coordinates is o, the height of the current image I is m, and the width is n, is the projection direction, the 2D image I will be projected to the projection line The starting point is o, and perpendicular to each other. r is any point on the projection line, p is a point passing through r, and Parallel straight line, l is any point (i, j) above the projection line The vertical distance of , I(i, j) is the pixel gray value of the image at point (i, j), and the angle θ between the projection line and the x-axis is the projection direction angle, θ is -25°0° or 25° .

所述特征提取模块21,具体用于使用下述公式对投影计算得到的图像进行离散:The feature extraction module 21 is specifically used to discretize the image obtained by projection calculation using the following formula:

其中,θ为-25°0°和25°,当前图像I高度为m,宽度为n,δθ(r)表示图像在投影方向角θ上的灰度投影,它能反映图像在投影方向角θ方向的灰度变化。 in, θ is -25° 0° and 25°, The height of the current image I is m, the width is n, δ θ (r) represents the grayscale projection of the image on the projection direction angle θ, and it can reflect the grayscale change of the image in the direction of the projection direction angle θ.

所述特征提取模块21,具体用于使用以下公式对所有投影曲线进行滤波:The feature extraction module 21 is specifically configured to use the following formula to filter all projection curves:

h ( x ) = 1 x 2 &le; x &le; x 1 - 1 x 3 &le; x < x 1 &cup; x 2 < x &le; x 4 ; 其中,x1,x2,x3,x4为常数,满足 | x 1 - x 2 | = H | x 3 - x 4 | = 2 H , H为分割特征宽度预估。 h ( x ) = 1 x 2 &le; x &le; x 1 - 1 x 3 &le; x < x 1 &cup; x 2 < x &le; x 4 ; Among them, x 1 , x 2 , x 3 , x 4 are constants, satisfying | x 1 - x 2 | = h | x 3 - x 4 | = 2 h , H is the estimated width of the segmentation feature.

所述特征提取模块21,具体用于使用Canny算子提取当前图像的边缘信息,根据角度为零度的分割特征,确定货车闸瓦特征区域的左边界和右边界的坐标值;根据角度为-25°和25°的分割特征,确定货车闸瓦特征区域的上边界和下边界的坐标值。The feature extraction module 21 is specifically used to extract the edge information of the current image using the Canny operator, and determine the coordinate values of the left boundary and the right boundary of the truck brake shoe feature area according to the segmentation feature with an angle of zero degrees; ° and 25° segmentation features, determine the coordinate values of the upper boundary and lower boundary of the feature area of the brake shoe of the freight car.

所述特征提取模块21,具体用于使用角度为零度的分割特征将当前图像的边缘信息分割为左右两个子图像,分别计算两个子图像的像素灰度值之和,比较所述两个子图像的像素灰度值之和的大小,若左边子图像的像素灰度值之和较大,则货车闸瓦特征区域的右边界的坐标值等于零度的分割特征的横坐标值、减去预置的右边界距离值,货车闸瓦特征区域的左边界的坐标值等于其右边界的坐标值减去预置的宽度值;否则,货车闸瓦特征区域的左边界的坐标值等于零度的分割特征的横坐标值、加预置的左边界距离值,货车闸瓦特征区域的右边界的坐标值等于其左边界的坐标值加上预置的宽度值;The feature extraction module 21 is specifically used to divide the edge information of the current image into two left and right sub-images using a segmentation feature with an angle of zero, calculate the sum of the pixel gray values of the two sub-images respectively, and compare the two sub-images. The size of the sum of pixel gray values, if the sum of the pixel gray values of the left sub-image is larger, the coordinate value of the right boundary of the feature area of the truck brake shoe is equal to the abscissa value of the zero-degree segmentation feature, minus the preset The right boundary distance value, the coordinate value of the left boundary of the characteristic area of the truck brake shoe is equal to the coordinate value of the right boundary minus the preset width value; otherwise, the coordinate value of the left boundary of the characteristic area of the truck brake shoe is equal to that of the segmentation feature The abscissa value, plus the preset left boundary distance value, the coordinate value of the right boundary of the freight car brake shoe feature area is equal to the coordinate value of its left boundary plus the preset width value;

比如,假设当前图像的边缘信息为I,角度为零度的分割特征为图中l2,将当前图像的边缘信息I分割为左右两个子图像分别为I1和I2;分别计算两个子图像I1和I2的像素灰度值之和edge1和edge2;若edge1>edge2,则Brigth=l2-h1,Bleft=Brigth-N;当edge1<edge2时,Bleft=l2+h2,Bright=Bleft+N;其中,l2为零度的分割特征的横坐标值,h1为预置的右边界距离值,h2为预置的左边界距离值,N为预置的宽度值;For example, assuming that the edge information of the current image is I, and the segmentation feature with an angle of zero degree is l 2 in the figure, the edge information I of the current image is divided into two left and right sub-images, which are I 1 and I 2 respectively; the two sub-images I are calculated respectively The sum of pixel gray values of 1 and I 2 edge1 and edge2; if edge1>edge2, then B rigth =l 2 -h 1 , B left =B rigth -N; when edge1<edge2, B left =l 2 + h 2 , B right = B left +N; among them, l 2 is the abscissa value of the zero-degree segmentation feature, h 1 is the preset right border distance value, h 2 is the preset left border distance value, and N is the preset set width value;

其中, edge 1 = &Sigma; j = 0 N 1 &Sigma; i = 0 M 1 I 1 ( i , j ) , edge 2 = &Sigma; j = 0 N 2 &Sigma; i = 0 M 2 I 2 ( i , j ) ; 其中I1(i,j)为子图像I1在点(i,j)处的像素灰度值,M1,N1为I1高度和宽度;I2(i,j)为子图像I2在点(i,j)处的像素灰度值,M2,N2为子图像I2高度和宽度。in, edge 1 = &Sigma; j = 0 N 1 &Sigma; i = 0 m 1 I 1 ( i , j ) , edge 2 = &Sigma; j = 0 N 2 &Sigma; i = 0 m 2 I 2 ( i , j ) ; Where I 1 (i, j) is the pixel gray value of the sub-image I 1 at point (i, j), M 1 , N 1 are the height and width of I 1 ; I 2 (i, j) is the sub-image I 2 is the pixel gray value at point (i, j), M 2 , N 2 is the height and width of the sub-image I 2 .

所述特征提取模块21,具体用于设角度为-25°的分割特征所对应的直线l1与图像上边界交点横坐标值为top1,下边界交点横坐标值为bot1;角度为25°的分割特征所对应的直线l3与图像上边界交点横坐标值为top3,下边界交点横坐标值为bot3,计算比率ratio=|(top1-top3)/(bot1-bot3)|;当ratio<1时,货车闸瓦钎区域位于当前图像的顶部位置;当ratio>1时,货车闸瓦钎区域位于当前图像的底部位置;根据货车闸瓦钎区域的机械结构特点,根据松弛原则提取出上边界和下边界的坐标值。The feature extraction module 21 is specifically used to set the angle as the line 11 corresponding to the segmentation feature of -25 ° and the image upper boundary intersection abscissa value is top1, and the lower boundary intersection abscissa value is bot1; the angle is 25 ° The abscissa value of the intersection point of the straight line l 3 corresponding to the segmentation feature and the upper boundary of the image is top3, and the abscissa value of the intersection point of the lower boundary is bot3, and the calculated ratio ratio=|(top1-top3)/(bot1-bot3)|; when ratio<1 When , the truck brake shoe area is located at the top of the current image; when ratio>1, the truck brake shoe area is located at the bottom of the current image; according to the mechanical structure characteristics of the truck brake shoe area, the upper boundary is extracted according to the relaxation principle and the coordinates of the lower boundary.

所述特征提取模块21,具体用于使用基于背景面积预估的方法,将当前图像的货车闸瓦特征区域中的图像分割得到货车闸瓦区域二进制图像;使用像素标记法,从所述货车闸瓦区域二进制图像中提取最大连通区域;使用Canny算子,从最大连通区域中的二进制图像中提取货车闸瓦边缘轮廓;根据所述货车闸瓦边缘轮廓提取货车闸瓦的特征。The feature extraction module 21 is specifically used to use a method based on background area estimation to segment the image in the feature area of the truck brake shoe in the current image to obtain a binary image of the truck brake shoe area; Extract the maximum connected area from the binary image of the tile area; use the Canny operator to extract the edge profile of the truck brake shoe from the binary image in the maximum connected area; extract the features of the truck brake shoe according to the edge profile of the truck brake shoe.

这里,所述背景面积预估的方法为现有技术,这里不做赘述;像素标记法为现有技术,这里不做赘述;Canny算子为现有技术,这里不做赘述。Here, the method for estimating the background area is a prior art, which is not repeated here; the pixel marking method is a prior art, which is not repeated here; the Canny operator is a prior art, which is not repeated here.

所述特征提取模块21,具体用于计算得出货车闸瓦边缘轮廓的中心点,以所述中心点为中心将货车闸瓦边缘轮廓表示为极坐标;对所述表示为极坐标形式的货车闸瓦边缘轮廓进行离散化计算,得到离散化的货车闸瓦边缘轮廓;对所述离散化的货车闸瓦边缘轮廓进行归一化计算后,根据预置的规则进行排序,再对排序后得到的结果进行小波分解得到小波系数,使用小波系数计算得出平滑特征值;The feature extraction module 21 is specifically used to calculate the center point of the edge profile of the brake shoe of the truck, and express the edge profile of the brake shoe of the truck as a polar coordinate with the center point as the center; Perform discretization calculation on the edge profile of the brake shoe to obtain the discretized edge profile of the brake shoe of the truck; after performing normalized calculation on the discretized edge profile of the brake shoe of the truck, sort it according to the preset rules, and then sort it to get The results of wavelet decomposition to obtain wavelet coefficients, using wavelet coefficients to calculate the smooth eigenvalues;

其中,所述计算得出货车闸瓦边缘轮廓的中心点可以包括:假设货车闸瓦边缘轮廓为x,则以相对弧长s为参数,则货车闸瓦边缘轮廓可表示为:其中0≤s≤1,为货车闸瓦边缘轮廓;则货车闸瓦边缘轮廓的中心点计算公式为 x 0 &RightArrow; = &Integral; 0 1 x ( s ) &RightArrow; ds = ( &Integral; 0 1 x ( s ) ds , &Integral; 0 1 y ( s ) ds ) , 其中0≤s≤1。Wherein, the calculation of the central point of the edge profile of the truck brake shoe may include: assuming that the edge profile of the truck brake shoe is x, then using the relative arc length s as a parameter, the edge profile of the truck brake shoe can be expressed as: where 0≤s≤1, is the edge profile of the truck brake shoe; then the formula for calculating the center point of the edge profile of the truck brake shoe is x 0 &Right Arrow; = &Integral; 0 1 x ( the s ) &Right Arrow; ds = ( &Integral; 0 1 x ( the s ) ds , &Integral; 0 1 the y ( the s ) ds ) , where 0≤s≤1.

所述以中心点为中心将货车闸瓦边缘轮廓表示为极坐标可以表示为:Said expressing the edge profile of the freight car brake shoe as polar coordinates with the central point as the center can be expressed as:

&theta; ( s ) = &angle; ( x &RightArrow; ( s ) - x 0 &RightArrow; ) r ( s ) = | | x &RightArrow; ( s ) - x 0 &RightArrow; | | 2 z &RightArrow; ( t ) = ( &theta; ( s ) , ( r ( s ) ) . , 其中,∠表示极坐标系下向量的极角。 &theta; ( the s ) = &angle; ( x &Right Arrow; ( the s ) - x 0 &Right Arrow; ) r ( the s ) = | | x &Right Arrow; ( the s ) - x 0 &Right Arrow; | | 2 z &Right Arrow; ( t ) = ( &theta; ( the s ) , ( r ( the s ) ) . , Among them, ∠ represents the polar angle of the vector in the polar coordinate system.

所述对所述表示为极坐标形式的货车闸瓦边缘轮廓进行离散化计算可以为得到轮廓上每个离散点的极坐标(r(si),θ(si)),其中i=0,1,...N-1,N为离散点个数。The discretization calculation of the edge profile of the truck brake shoe expressed in polar coordinate form may be to obtain the polar coordinates (r(s i ), θ(s i )) of each discrete point on the profile, where i=0, 1,...N-1, N is the number of discrete points.

所述归一化计算可以使用公式: The normalized calculation can use the formula:

所述根据预置的规则进行排序可以包括:记θ′(si)为θ′(i),r′(si)为r′(i),对r′(i)进行重新排序,得:R(i)=r′(η(i)),使得对有θ(η(i))<θ(η(j));The sorting according to preset rules may include: record θ'(s i ) as θ'(i), r'(s i ) as r'(i), and reorder r'(i), to obtain : R(i)=r′(η(i)), so that for There is θ(η(i))<θ(η(j));

所述对排序后得到的结果进行小波分解得到小波系数可以包括: d ( i ) = r &prime; ( &eta; ( i ) ) &CircleTimes; &psi; ( i ) ; Performing wavelet decomposition on the sorted results to obtain wavelet coefficients may include: d ( i ) = r &prime; ( &eta; ( i ) ) &CircleTimes; &psi; ( i ) ;

所述使用小波系数计算得出平滑特征值可以为:E=||d(i)||2The smooth feature value calculated by using wavelet coefficients may be: E=||d(i)|| 2 .

所述货车闸瓦边缘轮廓的凹凸特征值的计算使用的公式为:其中,c(n),n=1,2····N货车闸瓦边缘轮廓的序列点,c′(n)=||c(n)-c0||,n=1,2,···,N, c 0 = 1 N &Sigma; n = 1 N c ( n ) ; The formula used for calculating the concave-convex eigenvalue of the edge profile of the freight car brake shoe is: Among them, c(n), n=1, 2····Sequence points of the edge profile of the N truck brake shoe, c′(n)=||c(n)-c 0 ||, n=1, 2, ···, N, c 0 = 1 N &Sigma; no = 1 N c ( no ) ;

所述货车闸瓦边缘轮廓的矩形度计算公式可以为:其中A0是轮廓的面积,AMER是轮廓的最小外接矩形的面积。The formula for calculating the rectangularity of the edge profile of the truck brake shoe can be: where A 0 is the area of the contour and A MER is the area of the smallest circumscribing rectangle of the contour.

所述货车闸瓦边缘轮廓的固靠性计算公式可以为:其中,A表示轮廓的面积,CA为其最小凸多边形的面积。The formula for calculating the reliability of the edge profile of the freight car brake shoe can be: Among them, A represents the area of the contour, and CA is the area of the smallest convex polygon.

所述货车闸瓦边缘轮廓的致密性计算公式可以为:其中,P表示轮廓的周长,A表示面积。The compactness calculation formula of the edge profile of the freight car brake shoe can be: Among them, P represents the perimeter of the contour, and A represents the area.

所述货车闸瓦边缘轮廓的圆形性计算公式可以为: The formula for calculating the circularity of the edge profile of the freight car brake shoe can be:

其中,μR是从区域重心到边界点的平均距离。in, μR is the average distance from the center of gravity of the region to the boundary points.

δR是从区域重心到边界点的距离均方差。 δR is the mean square error of the distance from the center of gravity of the region to the boundary point.

所述货车闸瓦边缘轮廓的长宽比为货车闸瓦边缘轮廓的最小外接矩形的宽与长之比值;The aspect ratio of the edge profile of the brake shoe of the truck is the ratio of the width to the length of the smallest circumscribed rectangle of the edge profile of the brake shoe of the truck;

所述货车闸瓦边缘轮廓的面积可以为:货车闸瓦边缘轮廓范围内的像素个数进行统计获得。The area of the edge contour of the brake shoe of the freight train can be obtained by counting the number of pixels within the contour range of the brake shoe edge of the freight train.

所述货车闸瓦边缘轮廓的周长可以为:货车闸瓦边缘轮廓的边界长度。The perimeter of the edge profile of the brake shoe for a freight car may be: the boundary length of the edge profile of the brake shoe for a freight car.

所述识别模块22,具体用于保存故障识别值。The identification module 22 is specifically used to save the fault identification value.

所述识别模块22,具体用于若当前图像的特征值等于故障识别值,则确定货车闸瓦出现故障;否则,确定货车闸瓦没有出现故障。The identification module 22 is specifically configured to determine that the brake shoe of the truck is faulty if the feature value of the current image is equal to the fault identification value; otherwise, determine that the brake shoe of the truck is not faulty.

所述识别模块22,还用于使用不存在故障的货车闸瓦图像和存在故障的货车闸瓦图像分别建立正、负样本训练集;分别提取正、负样本训练集中的所有图像的特征,组成正、负样本训练集对应的九维特征向量,使用SVM算法计算得出的正、负样本对应的值,将负样本训练集对应的值作为故障识别值。The identification module 22 is also used to establish positive and negative sample training sets by using images of truck brake shoes without faults and images of faulty truck brake shoes; respectively extracting the features of all images in the positive and negative sample training sets to form The nine-dimensional feature vectors corresponding to the positive and negative sample training sets, the values corresponding to the positive and negative samples calculated using the SVM algorithm, and the values corresponding to the negative sample training sets are used as fault identification values.

上述装置可以作为逻辑模块安装于TDFS的管理设备中。The above device can be installed in the management device of TDFS as a logic module.

通过使用本发明提供的方法及装置,测试选取货车闸瓦故障样本图像75张,非故障样本图像75张建立样本集进行分类器训练,为测试识别算法的适应性,采用交叉验证的思想(交叉验证又叫做交叉对比,首先将训练样本v等分,其中一份用作测试集,另外v-1份用作训练集。依次轮换,直到每份样本都作了一次测试集,即进行了v次训练和预测的过程。因此,交叉验证的准确率是v次的平均值)进行故障识别试验,共作10次实验,取实验结果的平均值为最终识别结果如图3所示。可见,使用本发明提供的货车闸瓦故障的识别方法及装置后,识别时间低于两秒,明显要少于人工通过图像进行辨别,且漏检率、误检率非常低。By using the method and device provided by the present invention, the test selects 75 truck brake shoe fault sample images, and 75 non-fault sample images set up a sample set for classifier training. For the adaptability of the test recognition algorithm, the idea of cross-validation (cross-validation) is adopted. Verification is also called cross-comparison. First, the training sample v is divided into equal parts, one of which is used as a test set, and the other v-1 is used as a training set. Rotate in turn until each sample has a test set, that is, v The process of training and prediction times. Therefore, the accuracy of cross-validation is the average value of v times) to carry out the fault recognition test, a total of 10 experiments are done, and the average value of the experimental results is the final recognition result, as shown in Figure 3. It can be seen that after using the method and device for identifying a truck brake shoe failure provided by the present invention, the identification time is less than two seconds, which is obviously less than manual identification through images, and the missed detection rate and false detection rate are very low.

以上所述,仅为本发明的较佳实施例而已,并非用于限定本发明的保护范围。The above descriptions are only preferred embodiments of the present invention, and are not intended to limit the protection scope of the present invention.

Claims (6)

1.一种货车闸瓦故障的识别方法,其特征在于,该方法包括:1. A method for identifying a truck brake shoe failure, characterized in that the method comprises: 从当前图像中提取三个角度的分割特征;Extract segmentation features from three angles from the current image; 根据所述三个角度的分割特征确定当前图像的货车闸瓦特征区域;Determine the feature area of the brake shoe of the current image according to the segmentation features of the three angles; 从当前图像的货车闸瓦特征区域中提取货车闸瓦的特征;Extract the features of the truck brake shoe from the feature area of the truck brake shoe in the current image; 使用支持向量机SVM算法对货车闸瓦的特征计算得出当前图像的特征值,根据所述特征值以及预置的故障识别值判定货车闸瓦是否存在故障;Using the support vector machine SVM algorithm to calculate the characteristics of the truck brake shoe to obtain the feature value of the current image, and determine whether the truck brake shoe has a fault according to the feature value and the preset fault identification value; 其中,所述从当前图像中提取三个角度的分割特征之前,该方法还包括:使用不存在故障的货车闸瓦图像和存在故障的货车闸瓦图像分别建立正、负样本训练集;分别提取正、负样本训练集中的所有图像的特征,组成正、负样本训练集对应的九维特征向量,使用SVM算法计算得出的正、负样本对应的值,将负样本训练集对应的值作为故障识别值;Wherein, before extracting the segmentation features of three angles from the current image, the method also includes: using the images of the brake shoe of the truck without fault and the image of the brake shoe of the truck to respectively establish positive and negative sample training sets; The features of all the images in the positive and negative sample training sets form the nine-dimensional feature vectors corresponding to the positive and negative sample training sets. The values corresponding to the positive and negative samples calculated using the SVM algorithm are used as the values corresponding to the negative sample training sets. fault identification value; 其中,所述从当前图像中提取三个角度的分割特征,包括:从故障图像动态检测系统TDFS中周期性提取当前图像,对当前图像进行三个角度的灰度投影得到三条投影曲线;对所有投影曲线进行滤波,将滤波后的各个投影曲线中的最大值均作为当前图像三个角度的分割特征;Wherein, extracting the segmentation features of three angles from the current image includes: periodically extracting the current image from the fault image dynamic detection system TDFS, and performing three-angle grayscale projection on the current image to obtain three projection curves; for all The projection curve is filtered, and the maximum value of each filtered projection curve is used as the segmentation feature of the three angles of the current image; 所述灰度投影包括:将当前图像进行扩展,得到扩展后的图像;将扩展后的图像进行投影计算,对投影计算得到的图像进行离散得到投影曲线;The grayscale projection includes: expanding the current image to obtain an expanded image; performing projection calculation on the expanded image, and discretizing the image obtained by the projection calculation to obtain a projection curve; 所述根据三个角度的分割特征确定当前图像的货车闸瓦特征区域,包括:使用Canny算子提取当前图像的边缘信息,根据角度为零度的分割特征,确定货车闸瓦特征区域的左边界和右边界的坐标值;根据角度为-25°和25°的分割特征,确定货车闸瓦特征区域的上边界和下边界的坐标值;The said determination of the freight car brake shoe characteristic region of the current image according to the segmentation features of the three angles includes: using the Canny operator to extract the edge information of the current image, and determining the left boundary and the The coordinate value of the right boundary; according to the segmentation features with angles of -25° and 25°, determine the coordinate values of the upper boundary and lower boundary of the characteristic area of the brake shoe of the truck; 所述根据角度为零度的分割特征,确定货车闸瓦特征区域的左边界和右边界的坐标值包括:使用角度为零度的分割特征将当前图像的边缘信息分割为左右两个子图像,分别计算两个子图像的像素灰度值之和,比较所述两个子图像的像素灰度值之和的大小,若左边子图像的像素灰度值之和较大,则货车闸瓦特征区域的右边界的坐标值等于零度的分割特征的横坐标值、减去预置的右边界距离值,货车闸瓦特征区域的左边界的坐标值等于其右边界的坐标值减去预置的宽度值;否则,货车闸瓦特征区域的左边界的坐标值等于零度的分割特征 的横坐标值、加预置的左边界距离值,货车闸瓦特征区域的右边界的坐标值等于其左边界的坐标值加上预置的宽度值;The determining the coordinate values of the left boundary and the right boundary of the feature area of the truck brake shoe according to the segmentation feature with an angle of zero degrees includes: using the segmentation feature with an angle of zero degrees to divide the edge information of the current image into two left and right sub-images, and calculating the two sub-images respectively. The sum of the pixel gray values of two sub-images, compare the sum of the pixel gray values of the two sub-images, if the sum of the pixel gray values of the left sub-image is larger, the right boundary of the truck brake shoe feature area The coordinate value is equal to the abscissa value of the segmentation feature of zero degrees, minus the preset right boundary distance value, and the coordinate value of the left boundary of the freight car brake shoe feature area is equal to the coordinate value of its right boundary minus the preset width value; otherwise, The coordinate value of the left boundary of the characteristic area of the truck brake shoe is equal to the abscissa value of the segmentation feature of zero degrees plus the preset left boundary distance value, and the coordinate value of the right boundary of the characteristic area of the truck brake shoe is equal to the coordinate value of the left boundary plus preset width value; 所述根据角度为-25°和25°的分割特征,确定货车闸瓦特征区域的上边界和下边界的坐标值,包括:设角度为-25°的分割特征所对应的直线l1与图像上边界交点横坐标值为top1,下边界交点横坐标值为bot1;角度为25°的分割特征所对应的直线l3与图像上边界交点横坐标值为top3,下边界交点横坐标值为bot3,计算比率ratio=|(top1-top3)/(bot1-bot3)|;当ratio<1时,货车闸瓦钎区域位于当前图像的顶部位置;当ratio>1时,货车闸瓦钎区域位于当前图像的底部位置;根据货车闸瓦钎区域的机械结构特点,根据松弛原则提取出上边界和下边界的坐标值。According to the segmentation features with angles of -25° and 25°, determining the coordinate values of the upper boundary and the lower boundary of the feature area of the truck brake shoe includes: setting the straight line l1 corresponding to the segmentation feature with an angle of -25° and the image The abscissa value of the intersection point of the upper boundary is top1, the abscissa value of the intersection point of the lower boundary is bot1; the abscissa value of the intersection point of the line l 3 corresponding to the segmentation feature with an angle of 25° and the upper boundary of the image is top3, and the abscissa value of the intersection point of the lower boundary is bot3 , calculate the ratio ratio=|(top1-top3)/(bot1-bot3)|; when ratio<1, the brake shoe area of the truck is at the top of the current image; when ratio>1, the brake shoe area of the truck is at the current The bottom position of the image; according to the mechanical structure characteristics of the brake shoe brazing area of the truck, the coordinate values of the upper boundary and the lower boundary are extracted according to the relaxation principle. 2.根据权利要求1所述的方法,其特征在于,所述从当前图像的货车闸瓦特征区域中提取货车闸瓦的特征,包括:使用基于背景面积预估的方法,将当前图像的货车闸瓦特征区域中的图像分割得到货车闸瓦区域二进制图像;使用像素标记法,从所述货车闸瓦区域二进制图像中提取最大连通区域;使用Canny算子,从最大连通区域中的二进制图像中提取货车闸瓦边缘轮廓;根据所述货车闸瓦边缘轮廓提取货车闸瓦的特征。2. The method according to claim 1, wherein said extracting the features of the truck brake shoe from the feature area of the truck brake shoe of the current image comprises: using a method based on background area estimation to convert the truck brake shoe of the current image The image segmentation in the brake shoe feature area obtains the binary image of the truck brake shoe area; uses the pixel marking method to extract the maximum connected area from the binary image of the truck brake shoe area; uses the Canny operator to extract the maximum connected area from the binary image in the maximum connected area Extracting the edge contour of the freight car brake shoe; extracting the features of the freight car brake shoe according to the edge contour of the freight car brake shoe. 3.根据权利要求2所述的方法,其特征在于,所述货车闸瓦的特征包括:货车闸瓦边缘轮廓的平滑特征值、货车闸瓦边缘轮廓的凹凸特征值、货车闸瓦边缘轮廓的锯齿度、货车闸瓦边缘轮廓的固靠值、货车闸瓦边缘轮廓的致密性、货车闸瓦边缘轮廓的圆形性、货车闸瓦边缘轮廓的长宽比、货车闸瓦边缘轮廓的面积和货车闸瓦边缘轮廓的周长。3. The method according to claim 2, wherein the characteristics of the freight car brake shoe include: the smooth eigenvalue of the edge profile of the freight car brake shoe, the concave-convex eigenvalue of the edge profile of the freight car brake shoe, the The degree of sawtooth, the fixed value of the edge profile of the truck brake shoe, the compactness of the edge profile of the truck brake shoe, the circularity of the edge profile of the truck brake shoe, the aspect ratio of the edge profile of the truck brake shoe, the area of the edge profile of the truck brake shoe and The perimeter of the profile of the edge of the truck brake shoe. 4.一种货车闸瓦故障的识别装置,其特征在于,该装置包括:特征提取模块和识别模块;其中,4. An identification device for a truck brake shoe fault, characterized in that the device comprises: a feature extraction module and an identification module; wherein, 特征提取模块,用于从当前图像中提取三个角度的分割特征,根据所述三个角度的分割特征确定当前图像的货车闸瓦特征区域,从当前图像的货车闸瓦特征区域中提取货车闸瓦的特征,将所述货车闸瓦的特征发送给识别模块;The feature extraction module is used to extract the segmentation features of three angles from the current image, determine the feature area of the truck brake shoe in the current image according to the segmentation features of the three angles, and extract the truck brake shoe feature area from the current image. The feature of the tile, sending the feature of the truck brake shoe to the recognition module; 识别模块,用于使用SVM算法对特征提取模块发来的所述货车闸瓦的特征计算得出当前图像的特征值,根据所述特征值以及预置的故障识别值判定货车 闸瓦是否存在故障;The recognition module is used to use the SVM algorithm to calculate the feature value of the current image based on the features of the truck brake shoe sent by the feature extraction module, and determine whether there is a fault in the truck brake shoe according to the feature value and the preset fault identification value ; 所述识别模块,还用于使用不存在故障的货车闸瓦图像和存在故障的货车闸瓦图像分别建立正、负样本训练集;分别提取正、负样本训练集中的所有图像的特征,组成正、负样本训练集对应的九维特征向量,使用SVM算法计算得出的正、负样本对应的值,将负样本训练集对应的值作为故障识别值;The recognition module is also used to establish positive and negative sample training sets respectively by using the images of the brake shoe of the truck without fault and the image of the brake shoe of the truck with fault; respectively extract the features of all the images in the training set of positive and negative samples to form a positive , the nine-dimensional feature vector corresponding to the negative sample training set, the values corresponding to the positive and negative samples calculated using the SVM algorithm, and the value corresponding to the negative sample training set as the fault identification value; 所述特征提取模块,具体用于从所在的TDFS中周期性提取当前图像,对当前图像进行三个角度的灰度投影得到三条投影曲线;对所有投影曲线进行滤波,将滤波后的各个投影曲线中的最大值均作为当前图像三个角度的分割特征;所述灰度投影包括:将当前图像进行扩展,得到扩展后的图像;将扩展后的图像进行投影计算,对投影计算得到的图像进行离散得到投影曲线;The feature extraction module is specifically used to periodically extract the current image from the TDFS where it is located, and perform grayscale projection of three angles on the current image to obtain three projection curves; filter all projection curves, and filter each projection curve The maximum values in all are used as the segmentation features of the three angles of the current image; the grayscale projection includes: expanding the current image to obtain an expanded image; performing projection calculation on the expanded image, and performing projection calculation on the image obtained by the projection calculation. Discrete to get the projection curve; 所述特征提取模块,具体还用于使用Canny算子提取当前图像的边缘信息,根据角度为零度的分割特征,确定货车闸瓦特征区域的左边界和右边界的坐标值;根据角度为-25°和25°的分割特征,确定货车闸瓦特征区域的上边界和下边界的坐标值;The feature extraction module is also specifically used to extract the edge information of the current image using the Canny operator, and determine the coordinate values of the left boundary and the right boundary of the truck brake shoe feature area according to the segmentation feature with an angle of zero degrees; ° and 25° segmentation features, determine the coordinate values of the upper boundary and lower boundary of the feature area of the brake shoe of the freight car; 所述根据角度为零度的分割特征,确定货车闸瓦特征区域的左边界和右边界的坐标值包括:使用角度为零度的分割特征将当前图像的边缘信息分割为左右两个子图像,分别计算两个子图像的像素灰度值之和,比较所述两个子图像的像素灰度值之和的大小,若左边子图像的像素灰度值之和较大,则货车闸瓦特征区域的右边界的坐标值等于零度的分割特征的横坐标值、减去预置的右边界距离值,货车闸瓦特征区域的左边界的坐标值等于其右边界的坐标值减去预置的宽度值;否则,货车闸瓦特征区域的左边界的坐标值等于零度的分割特征的横坐标值、加预置的左边界距离值,货车闸瓦特征区域的右边界的坐标值等于其左边界的坐标值加上预置的宽度值;The determining the coordinate values of the left boundary and the right boundary of the feature area of the truck brake shoe according to the segmentation feature with an angle of zero degrees includes: using the segmentation feature with an angle of zero degrees to divide the edge information of the current image into two left and right sub-images, and calculating the two sub-images respectively. The sum of the pixel gray values of two sub-images, compare the sum of the pixel gray values of the two sub-images, if the sum of the pixel gray values of the left sub-image is larger, the right boundary of the truck brake shoe feature area The coordinate value is equal to the abscissa value of the segmentation feature of zero degrees, minus the preset right boundary distance value, and the coordinate value of the left boundary of the freight car brake shoe feature area is equal to the coordinate value of its right boundary minus the preset width value; otherwise, The coordinate value of the left boundary of the characteristic area of the truck brake shoe is equal to the abscissa value of the segmentation feature of zero degrees, plus the preset left boundary distance value, and the coordinate value of the right boundary of the characteristic area of the truck brake shoe is equal to the coordinate value of the left boundary plus preset width value; 所述根据角度为-25°和25°的分割特征,确定货车闸瓦特征区域的上边界和下边界的坐标值,包括:设角度为-25°的分割特征所对应的直线l1与图像上 边界交点横坐标值为top1,下边界交点横坐标值为bot1;角度为25°的分割特征所对应的直线l3与图像上边界交点横坐标值为top3,下边界交点横坐标值为bot3,计算比率ratio=|(top1-top3)/(bot1-bot3)|;当ratio<1时,货车闸瓦钎区域位于当前图像的顶部位置;当ratio>1时,货车闸瓦钎区域位于当前图像的底部位置;根据货车闸瓦钎区域的机械结构特点,根据松弛原则提取出上边界和下边界的坐标值。According to the segmentation features with angles of -25° and 25°, determining the coordinate values of the upper boundary and the lower boundary of the feature area of the truck brake shoe includes: setting the straight line l1 corresponding to the segmentation feature with an angle of -25° and the image The abscissa value of the intersection point of the upper boundary is top1, the abscissa value of the intersection point of the lower boundary is bot1; the abscissa value of the intersection point of the line l 3 corresponding to the segmentation feature with an angle of 25° and the upper boundary of the image is top3, and the abscissa value of the intersection point of the lower boundary is bot3 , calculate the ratio ratio=|(top1-top3)/(bot1-bot3)|; when ratio<1, the brake shoe area of the truck is at the top of the current image; when ratio>1, the brake shoe area of the truck is at the current The bottom position of the image; according to the mechanical structure characteristics of the brake shoe brazing area of the truck, the coordinate values of the upper boundary and the lower boundary are extracted according to the relaxation principle. 5.根据权利要求4所述的装置,其特征在于,所述特征提取模块,具体用于使用基于背景面积预估的方法,将当前图像的货车闸瓦特征区域中的图像分割得到货车闸瓦区域二进制图像;使用像素标记法,从所述货车闸瓦区域二进制图像中提取最大连通区域;使用Canny算子,从最大连通区域中的二进制图像中提取货车闸瓦边缘轮廓;根据所述货车闸瓦边缘轮廓提取货车闸瓦的特征。5. The device according to claim 4, wherein the feature extraction module is specifically configured to use a method based on background area estimation to segment the image in the characteristic region of the truck brake shoe of the current image to obtain the truck brake shoe Region binary image; using pixel notation method, extracting the maximum connected area from the binary image of the truck brake shoe area; using Canny operator, extracting the edge profile of the truck brake shoe from the binary image in the maximum connected area; according to the truck brake Extraction of brake shoe features from the tile edge profile. 6.根据权利要求4所述的装置,其特征在于,所述特征提取模块,具体用于提取货车闸瓦边缘轮廓的平滑特征值、货车闸瓦边缘轮廓的凹凸特征值、货车闸瓦边缘轮廓的锯齿度、货车闸瓦边缘轮廓的固靠值、货车闸瓦边缘轮廓的致密性、货车闸瓦边缘轮廓的圆形性、货车闸瓦边缘轮廓的长宽比、货车闸瓦边缘轮廓的面积和货车闸瓦边缘轮廓的周长作为货车闸瓦的特征。6. The device according to claim 4, wherein the feature extraction module is specifically used to extract the smooth feature value of the edge profile of the brake shoe of the truck, the concave-convex feature value of the edge profile of the brake shoe of the truck, and the edge profile of the brake shoe of the truck. The sawtooth degree, the fixed value of the edge profile of the truck brake shoe, the compactness of the edge profile of the truck brake shoe, the circularity of the edge profile of the truck brake shoe, the aspect ratio of the edge profile of the truck brake shoe, the area of the edge profile of the truck brake shoe and the perimeter of the edge profile of the truck brake shoe as a feature of the truck brake shoe.
CN201210543988.7A 2012-12-14 2012-12-14 The recognition methods of a kind of truck brake shoe breakdown and device Expired - Fee Related CN103034861B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201210543988.7A CN103034861B (en) 2012-12-14 2012-12-14 The recognition methods of a kind of truck brake shoe breakdown and device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201210543988.7A CN103034861B (en) 2012-12-14 2012-12-14 The recognition methods of a kind of truck brake shoe breakdown and device

Publications (2)

Publication Number Publication Date
CN103034861A CN103034861A (en) 2013-04-10
CN103034861B true CN103034861B (en) 2016-12-21

Family

ID=48021740

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201210543988.7A Expired - Fee Related CN103034861B (en) 2012-12-14 2012-12-14 The recognition methods of a kind of truck brake shoe breakdown and device

Country Status (1)

Country Link
CN (1) CN103034861B (en)

Families Citing this family (9)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103499584B (en) * 2013-10-16 2016-02-17 北京航空航天大学 Railway wagon hand brake chain bar loses the automatic testing method of fault
CN104268588B (en) * 2014-06-19 2018-02-27 江苏大学 Railway wagon brake shoe pricker loses the automatic testing method of failure
CN106778740A (en) * 2016-12-06 2017-05-31 北京航空航天大学 A kind of TFDS non-faulting image detecting methods based on deep learning
CN107392313B (en) * 2017-06-12 2020-09-29 五邑大学 Steel rail identification method based on deep learning
CN109377511B (en) * 2018-08-30 2021-09-03 西安电子科技大学 Moving target tracking method based on sample combination and depth detection network
CN109632007B (en) * 2019-01-17 2020-12-04 北京理工大学 An edge point extraction method and a gear high-precision visual measurement system
CN111080605A (en) * 2019-12-12 2020-04-28 哈尔滨市科佳通用机电股份有限公司 Method for identifying railway wagon manual brake shaft chain falling fault image
CN112197715B (en) * 2020-10-27 2022-07-08 上海市特种设备监督检验技术研究院 A method for detecting gap between elevator brake wheel and brake shoe based on image recognition
CN112699794B (en) * 2020-12-29 2021-09-14 哈尔滨市科佳通用机电股份有限公司 Method for identifying dislocation fault images of middle rubber and upper and lower floor plates of wagon axle box rubber pad

Citations (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101339669A (en) * 2008-07-29 2009-01-07 上海师范大学 3D Face Modeling Method Based on Frontal Silhouette Image
CN101699470A (en) * 2009-10-30 2010-04-28 华南理工大学 A method for extracting smiley face recognition from human face pictures

Family Cites Families (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2003036438A (en) * 2001-07-25 2003-02-07 Minolta Co Ltd Program for specifying red-eye in image, recording medium, image processor and method for specifying red- eye
KR100453943B1 (en) * 2001-12-03 2004-10-20 주식회사 세넥스테크놀로지 Iris image processing recognizing method and system for personal identification

Patent Citations (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101339669A (en) * 2008-07-29 2009-01-07 上海师范大学 3D Face Modeling Method Based on Frontal Silhouette Image
CN101699470A (en) * 2009-10-30 2010-04-28 华南理工大学 A method for extracting smiley face recognition from human face pictures

Non-Patent Citations (2)

* Cited by examiner, † Cited by third party
Title
基于计算机视觉的列车闸瓦检测方法;杨雪荣 等;《内燃机车》;20090630;第43页第3段至第44页第4段 *
货车典型故障图像识别算法研究;戴鹏;《中国博士学位论文全文数据库》;20110515;第2.2.1节,2.4节,3.5.1节和3.5.2节 *

Also Published As

Publication number Publication date
CN103034861A (en) 2013-04-10

Similar Documents

Publication Publication Date Title
CN103034861B (en) The recognition methods of a kind of truck brake shoe breakdown and device
CN103745224B (en) Image-based railway contact net bird-nest abnormal condition detection method
CN103324930B (en) A license plate character segmentation method based on gray histogram binarization
CN103839264B (en) A kind of detection method of lane line
CN102737248B (en) Method and device for extracting characteristic points of lane line under complex road condition
CN101984478B (en) Abnormal S-type driving warning method based on binocular vision lane marking detection
CN103198705B (en) Parking place state automatic detection method
CN109948416A (en) A kind of illegal occupancy bus zone automatic auditing method based on deep learning
CN101761038B (en) System and method for recognizing railway temporary speed-limiting sign
CN103500328B (en) Method for automatically detecting deflection fault of railway wagon locking plate
CN111080611A (en) A method for image recognition of railway freight car bolster spring breakage faults
KR101067437B1 (en) Lane detection method and lane departure detection system using the same
CN105424330A (en) Lorry shaft end bolt fault detecting method and lorry shaft end bolt fault detecting device
CN102592114A (en) Method for extracting and recognizing lane line features of complex road conditions
CN103116748A (en) Method and system for identifying illegal driving behavior based on road signs
CN115916622A (en) System and method for detecting a tank in a railway environment
CN103268468A (en) Automatic detection method for whether seat belts are buckled by front seat occupants of motor vehicles
CN104077756A (en) Direction filtering method based on lane line confidence
CN105956568A (en) Abnormal behavior detecting and early warning method based on monitored object identification
CN111080601A (en) Image recognition method for fault image of pull ring grinding shaft of railway freight car derailment braking device
CN102768726A (en) A Pedestrian Detection Method for Pedestrian Collision Prevention
CN102708691A (en) False license plate identification method based on matching between license plate and automobile type
CN103500347A (en) Method for automatically detecting handle loss fault of angle cock of railway wagon
CN106991401A (en) A Lane Line Detection Method Based on K-means Clustering Algorithm
CN108010326A (en) A kind of vehicle identification system and its method

Legal Events

Date Code Title Description
C06 Publication
PB01 Publication
C10 Entry into substantive examination
SE01 Entry into force of request for substantive examination
C14 Grant of patent or utility model
GR01 Patent grant
CF01 Termination of patent right due to non-payment of annual fee

Granted publication date: 20161221

Termination date: 20211214

CF01 Termination of patent right due to non-payment of annual fee