CN114067106B - Method, device and storage medium for pantograph deformation detection based on inter-frame comparison - Google Patents
Method, device and storage medium for pantograph deformation detection based on inter-frame comparison Download PDFInfo
- Publication number
- CN114067106B CN114067106B CN202210031072.7A CN202210031072A CN114067106B CN 114067106 B CN114067106 B CN 114067106B CN 202210031072 A CN202210031072 A CN 202210031072A CN 114067106 B CN114067106 B CN 114067106B
- Authority
- CN
- China
- Prior art keywords
- image
- roi
- pantograph
- template
- similarity
- 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
Links
- 238000001514 detection method Methods 0.000 title claims abstract description 45
- 238000000034 method Methods 0.000 title claims abstract description 37
- 238000012545 processing Methods 0.000 claims abstract description 8
- 238000004364 calculation method Methods 0.000 claims description 19
- 230000009466 transformation Effects 0.000 claims description 14
- 238000013507 mapping Methods 0.000 claims description 12
- 239000011159 matrix material Substances 0.000 claims description 12
- 238000004590 computer program Methods 0.000 claims description 11
- 239000013598 vector Substances 0.000 claims description 9
- 230000008569 process Effects 0.000 claims description 7
- OKTJSMMVPCPJKN-UHFFFAOYSA-N Carbon Chemical compound [C] OKTJSMMVPCPJKN-UHFFFAOYSA-N 0.000 claims description 6
- 229910052799 carbon Inorganic materials 0.000 claims description 6
- 238000000605 extraction Methods 0.000 claims description 6
- 238000010606 normalization Methods 0.000 claims description 4
- 230000002159 abnormal effect Effects 0.000 claims description 3
- 230000001131 transforming effect Effects 0.000 claims 2
- 238000005286 illumination Methods 0.000 abstract description 5
- PXFBZOLANLWPMH-UHFFFAOYSA-N 16-Epiaffinine Natural products C1C(C2=CC=CC=C2N2)=C2C(=O)CC2C(=CC)CN(C)C1C2CO PXFBZOLANLWPMH-UHFFFAOYSA-N 0.000 description 8
- 238000010586 diagram Methods 0.000 description 6
- 230000003137 locomotive effect Effects 0.000 description 5
- 238000004422 calculation algorithm Methods 0.000 description 4
- 230000006870 function Effects 0.000 description 4
- 230000007547 defect Effects 0.000 description 3
- 230000000694 effects Effects 0.000 description 3
- 238000013135 deep learning Methods 0.000 description 2
- 239000012212 insulator Substances 0.000 description 2
- 238000012423 maintenance Methods 0.000 description 2
- 238000012544 monitoring process Methods 0.000 description 2
- 238000003062 neural network model Methods 0.000 description 2
- 238000006467 substitution reaction Methods 0.000 description 2
- 241000271559 Dromaiidae Species 0.000 description 1
- 238000013473 artificial intelligence Methods 0.000 description 1
- 238000013528 artificial neural network Methods 0.000 description 1
- 230000009286 beneficial effect Effects 0.000 description 1
- 230000005540 biological transmission Effects 0.000 description 1
- 229910003460 diamond Inorganic materials 0.000 description 1
- 239000010432 diamond Substances 0.000 description 1
- 238000005516 engineering process Methods 0.000 description 1
- 238000003706 image smoothing Methods 0.000 description 1
- 230000003993 interaction Effects 0.000 description 1
- 238000010295 mobile communication Methods 0.000 description 1
- 238000012986 modification Methods 0.000 description 1
- 230000004048 modification Effects 0.000 description 1
- 239000007787 solid Substances 0.000 description 1
- 238000012549 training Methods 0.000 description 1
- 230000007704 transition Effects 0.000 description 1
Images
Classifications
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F18/00—Pattern recognition
- G06F18/20—Analysing
- G06F18/22—Matching criteria, e.g. proximity measures
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06T—IMAGE DATA PROCESSING OR GENERATION, IN GENERAL
- G06T7/00—Image analysis
- G06T7/70—Determining position or orientation of objects or cameras
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06T—IMAGE DATA PROCESSING OR GENERATION, IN GENERAL
- G06T7/00—Image analysis
- G06T7/90—Determination of colour characteristics
Landscapes
- Engineering & Computer Science (AREA)
- Theoretical Computer Science (AREA)
- Physics & Mathematics (AREA)
- Computer Vision & Pattern Recognition (AREA)
- General Physics & Mathematics (AREA)
- Data Mining & Analysis (AREA)
- Artificial Intelligence (AREA)
- Bioinformatics & Cheminformatics (AREA)
- Bioinformatics & Computational Biology (AREA)
- Evolutionary Biology (AREA)
- Evolutionary Computation (AREA)
- Life Sciences & Earth Sciences (AREA)
- General Engineering & Computer Science (AREA)
- Image Analysis (AREA)
Abstract
Description
技术领域technical field
本发明涉及图像处理和图像识别技术领域,更具体地说涉及一种基于帧间对比的受电弓形变检测方法、设备及存储介质。The invention relates to the technical field of image processing and image recognition, and more particularly to a method, device and storage medium for pantograph deformation detection based on frame comparison.
背景技术Background technique
受电弓是电力牵引机车从接触网取得电能的电气设备,其安装在机车或动车车顶上。受电弓可分单臂弓和双臂弓两种,均由滑板、上框架、下臂杆(双臂弓用下框架)、底架、升弓弹簧、传动气缸、支持绝缘子等部件组成。菱形受电弓,也称钻石受电弓,以前非常普遍,后由于维护成本较高以及容易在故障时拉断接触网而逐渐被淘汰,近年来多采用单臂弓。负荷电流通过接触线和受电弓滑板接触面的流畅程度,与滑板与接触线间的接触压力、过渡电阻、接触面积有关,并取决于受电弓和接触网之间的相互作用。The pantograph is an electrical device for electric traction locomotives to obtain electrical energy from the catenary, which is installed on the roof of the locomotive or motor vehicle. The pantograph can be divided into two types: single-arm bow and double-arm bow, both of which are composed of skateboard, upper frame, lower arm (lower frame for double-arm bow), bottom frame, bow spring, transmission cylinder, supporting insulator and other components. The diamond-shaped pantograph, also known as the diamond pantograph, was very common in the past, but was gradually eliminated due to the high maintenance cost and the tendency to break the catenary in the event of failure. In recent years, single-arm bows are mostly used. The smoothness of the load current passing through the contact surface of the contact wire and the pantograph sliding plate is related to the contact pressure, transition resistance, and contact area between the sliding plate and the contact wire, and depends on the interaction between the pantograph and the catenary.
机车或动车在运行过程中,若接触网供电线上的硬点以及其他缺陷导致受电弓高速经过时产生撞击,轻则使受电弓剧烈晃动,重则使受电弓变形,甚至脱落。受电弓滑板监测系统用于接触网的特殊断面和区段的视频监视,如:车站咽喉区、重点隧道口、线岔和分相环节,各断面的高清视频图像通过铁路专用数据通道传至供电运行管理部门。在高速铁路的车站安装视频监视系统,监测运营的动车组或电力机车受电弓状态,特别是受电弓滑板的状态。During the operation of the locomotive or motor train, if the hard points and other defects on the catenary power supply line cause the pantograph to collide when it passes at high speed, the pantograph will shake violently at light level, and the pantograph will be deformed or even fall off in severe cases. The pantograph sliding plate monitoring system is used for video monitoring of special sections and sections of the catenary, such as: station throat area, key tunnel entrance, line fork and phase-splitting links. The high-definition video images of each section are transmitted to the Power supply operation management department. Install video surveillance systems at high-speed railway stations to monitor the pantograph status of operating EMUs or electric locomotives, especially the status of pantograph skateboards.
现有技术中,申请号为CN202110401700.1的中国专利,公开了一种电力机车车顶整备检测方法,其利用基于拟人态多层神经网络深度学习算法的图像识别技术,提取出的碳滑板图像特征经过人工智能识别平台的训练成为识别算法库,自动检测识别碳滑板上表面裂纹、缺损。此类深度学习方法训练相应的模型并识别受电弓变形,但是由于变形的状态、大小、位置等未知,神经网络模型的训练样本难以提前获取,导致神经网络模型的识别率和误报率均不理想。In the prior art, the Chinese patent with the application number CN202110401700.1 discloses a method for detecting the roof maintenance of an electric locomotive, which utilizes an image recognition technology based on an anthropomorphic multi-layer neural network deep learning algorithm to extract an image of a carbon skateboard. The features are trained by the artificial intelligence recognition platform to become the recognition algorithm library, which can automatically detect and identify the surface cracks and defects on the carbon skateboard. This kind of deep learning method trains the corresponding model and recognizes the deformation of the pantograph. However, due to the unknown state, size, and location of the deformation, it is difficult to obtain the training samples of the neural network model in advance, resulting in the recognition rate and false alarm rate of the neural network model. not ideal.
发明内容SUMMARY OF THE INVENTION
为了克服上述现有技术中存在的缺陷,本发明的目的是提供一种基于帧间对比的受电弓形变检测方法、设备及存储介质,通过将待检测图像与历史帧模板进行灰度投影特征相似度和模板匹配特征相似度计算,并根据总的相似度计算结果判定受电弓是否变形,该方法不受外界光照变化的干扰,仅和当前图像的灰度投影以及模板匹配特征与历史图像的相似度有关。In order to overcome the above-mentioned defects in the prior art, the purpose of the present invention is to provide a pantograph deformation detection method, device and storage medium based on inter-frame comparison. Similarity and template matching feature similarity calculation, and according to the total similarity calculation result to determine whether the pantograph is deformed, this method is not disturbed by external light changes, only the grayscale projection of the current image and template matching features and historical images related to the similarity.
为了实现以上目的,本发明采用的技术方案:In order to achieve the above purpose, the technical scheme adopted in the present invention:
一种基于帧间对比的受电弓形变检测方法,包括以下步骤:A pantograph deformation detection method based on frame comparison, comprising the following steps:
S1,获取车号信息,根据车号信息从样本图像集中查找当前车号对应车型的正常受电弓的定位模板图像和历史帧ROI样本图像;所述定位模板图像包括中心定位模板以及1个以上ROI定位区域;所述历史帧ROI样本图像与ROI定位区域位置一致。S1, obtain vehicle number information, and search for the positioning template image and historical frame ROI sample image of the normal pantograph of the model corresponding to the current vehicle number from the sample image set according to the vehicle number information; the positioning template image includes a center positioning template and more than one ROI positioning area; the position of the ROI sample image of the historical frame is consistent with the ROI positioning area.
S2,获取待检图像,将所述待检图像与所述中心定位模板进行模板匹配,生成映射矩阵,并根据所述映射矩阵将所述待检图像变换至定位模板图像一致的形状位置。S2: Acquire an image to be inspected, perform template matching between the image to be inspected and the center positioning template, generate a mapping matrix, and transform the image to be inspected into a shape position consistent with the positioning template image according to the mapping matrix.
S3,根据中心定位模板与ROI定位区域的位置关系从变换后待检图像中截取ROI目标图像,计算对应位置的历史帧ROI样本图像和ROI目标图像的灰度投影特征相似度和模板匹配特征相似度。S3, according to the positional relationship between the center positioning template and the ROI positioning area, the ROI target image is intercepted from the transformed image to be inspected, and the grayscale projection feature similarity and template matching feature similarity between the historical frame ROI sample image and the ROI target image at the corresponding position are calculated. Spend.
S4,根据灰度投影特征相似度和模板匹配特征相似度加权计算单个ROI总相似度,若总相似度满足预设阈值,则判定为正常,反之为变形;遍历所有ROI区域,若任一ROI相似度判定结果为异常,则判定当前待检图像发生受电弓形变。S4, calculate the total similarity of a single ROI according to the similarity of the grayscale projection feature and the similarity of the template matching feature. If the total similarity meets the preset threshold, it is judged to be normal, otherwise it is deformed; traverse all ROI areas, if any ROI If the similarity determination result is abnormal, it is determined that the pantograph deformation occurs in the current image to be inspected.
进一步的是,所述历史帧ROI样本图像的获取方式一为:获取历史正常受电弓图像,将所述正常受电弓图像与所述中心定位模板进行模板匹配,生成映射矩阵,并根据所述映射矩阵将所述正常受电弓图像变换至定位模板图像一致的形状位置;根据中心定位模板与ROI定位区域的位置关系从变换后正常受电弓图像中截取历史帧ROI样本图像,并将ROI样本图像按照对应的ROI定位区域保存;Further, the first method of obtaining the ROI sample image of the historical frame is: obtaining a historical normal pantograph image, performing template matching between the normal pantograph image and the center positioning template, generating a mapping matrix, and according to the The mapping matrix transforms the normal pantograph image into a shape position consistent with the positioning template image; according to the positional relationship between the center positioning template and the ROI positioning area, the historical frame ROI sample image is intercepted from the transformed normal pantograph image, and the The ROI sample image is saved according to the corresponding ROI positioning area;
和/或方式二:将先前判定为正常的受电弓图像检测过程的ROI目标图像保存为对应区域的ROI样本图像。And/or Manner 2: Save the ROI target image of the pantograph image detection process previously determined to be normal as the ROI sample image of the corresponding area.
进一步的是,所述灰度投影特征为归一化灰度投影梯度特征,其提取方法包括以下步骤:Further, the grayscale projection feature is a normalized grayscale projection gradient feature, and the extraction method includes the following steps:
计算图像水平方向的每一行的灰度均值,根据所述灰度均值计算得到图像的灰度投影数据;Calculate the grayscale mean value of each line in the horizontal direction of the image, and calculate the grayscale projection data of the image according to the grayscale mean value;
对所述灰度投影数据依次进行归一化处理和梯度变换,得到归一化灰度投影梯度特征。Normalization processing and gradient transformation are sequentially performed on the grayscale projection data to obtain normalized grayscale projection gradient features.
进一步的是,S4中模板匹配采用基于形状的模板匹配,所采用的特征为边缘点的位置和边缘点的梯度方向,边缘点梯度方向特征的提取方法包括以下步骤:Further, the template matching in S4 adopts shape-based template matching, and the adopted features are the position of the edge point and the gradient direction of the edge point, and the method for extracting the gradient direction feature of the edge point includes the following steps:
提取待匹配两图像的边缘,计算图像x方向和y方向梯度,再根据x方向和y方向梯度计算边缘点的总梯度值和梯度方向。Extract the edges of the two images to be matched, calculate the gradients in the x and y directions of the images, and then calculate the total gradient value and gradient direction of the edge points according to the gradients in the x and y directions.
进一步的是,所述模板匹配特征相似度计算流程为:采用滑动窗口方式进行图像 搜索,计算窗口内的匹配分值,所述匹配分值为模板边缘点与对应待匹配区域的对应点的 方向向量的夹角余弦值:, Further, the template matching feature similarity calculation process is: using a sliding window method to perform image search, and calculating a matching score in the window, where the matching score is the direction of the template edge point and the corresponding point corresponding to the area to be matched. The cosine of the angle between the vectors: ,
其中,score为匹配分值,pi为夹角余弦值,n为点的数量;Among them, score is the matching score, p i is the cosine value of the included angle, and n is the number of points;
, ,
其中Aj和Bj为模板与待匹配区域的对应点的方向向量的元素;Wherein A j and B j are the elements of the direction vector of the corresponding point of the template and the area to be matched;
上述方向向量表示为:The above direction vector is expressed as:
, ,
其中为梯度角。 in is the gradient angle.
进一步的是,所述根据总的相似度计算结果判定受电弓是否变形,为待检测受电弓图像上若干个ROI区域任一出现变形,则判定为受电弓发生形变;若待检测受电弓图像上若干个ROI区域均未出现变形,则判定位受电弓未发生形变。Further, the determination of whether the pantograph is deformed according to the total similarity calculation result is that any of several ROI areas on the pantograph image to be detected is deformed, and it is determined that the pantograph is deformed; if the pantograph is deformed; If there is no deformation in several ROI areas on the pantograph image, it is determined that the pantograph is not deformed.
进一步的是,所述样本图像中设置有受电弓碳滑板与平衡杆六个羊角ROI区域,各个ROI区域保存有多个ROI样本图像,在计算相似度时,每个ROI目标图像与多个ROI样本图像计算总相似度,再取多个总相似度均值作为判据。Further, the sample images are provided with six ROI regions of the pantograph carbon slide plate and the balance rod, and each ROI region saves multiple ROI sample images. When calculating the similarity, each ROI target image is associated with multiple Calculate the total similarity of the ROI sample images, and then take multiple averages of the total similarity as the criterion.
一种计算机设备,包括存储器、处理器及存储在存储器上并可在处理器上运行的计算机程序,所述处理器执行所述计算机程序时,执行受电弓形变检测方法中的步骤。A computer device includes a memory, a processor, and a computer program stored in the memory and executable on the processor. When the processor executes the computer program, the processor executes the steps in the pantograph deformation detection method.
一种计算机可读存储介质,其上存储有计算机程序,所述计算机程序被处理器执行时,实现受电弓形变检测方法中的步骤。A computer-readable storage medium on which a computer program is stored, and when the computer program is executed by a processor, implements steps in a pantograph deformation detection method.
本发明的有益效果:Beneficial effects of the present invention:
1、本发明提供的受电弓形变检测方法,通过将待检测图像与历史帧模板进行灰度投影特征相似度和模板匹配特征相似度计算,并根据总加权相似度计算结果判定受电弓是否变形。该方法不受外界光照变化的干扰,仅和当前图像灰度投影、模板匹配特征与历史图像的相似度有关。对于每一帧图像,无需过多关注图像的对比度、图像曝光度等外界信息。本方法剔除了外界干扰信息,无需过多考虑变形信息,无需大量样本支持,检测的前期工作量小,且识别率较高。1. The method for detecting the deformation of the pantograph provided by the present invention calculates the similarity of grayscale projection features and the similarity of template matching features between the image to be detected and the historical frame template, and determines whether the pantograph is not based on the calculation result of the total weighted similarity. deformed. The method is not disturbed by changes in external illumination, and is only related to the grayscale projection of the current image, the similarity between template matching features and historical images. For each frame of image, there is no need to pay too much attention to external information such as image contrast and image exposure. This method eliminates the external interference information, does not need to consider too much deformation information, does not need a large number of samples to support, the early detection workload is small, and the recognition rate is high.
2、样本图像的建立先进行定位模板的创建,其次ROI区域的选取,然后遍历正常受电弓历史图像定位裁剪相应区域的正常图像样本,最后保存相应模板、参数以及样本图像,以便于后续待检测图像进行定位以及对比,将待检测图像与历史帧模板进行灰度投影特征相似度和模板匹配特征相似度计算。2. The establishment of the sample image First, create the positioning template, then select the ROI area, then traverse the normal pantograph historical images to locate and crop the normal image samples in the corresponding area, and finally save the corresponding template, parameters and sample images for the convenience of subsequent waiting. The detection images are positioned and compared, and the grayscale projection feature similarity and template matching feature similarity are calculated between the to-be-detected image and the historical frame template.
3、灰度投影特征为归一化灰度投影梯度特征,提取的灰度特征为计算水平方向的灰度投影,并对投影数据进行归一化处理,消弱了光照影响。3. The grayscale projection feature is the normalized grayscale projection gradient feature, the extracted grayscale feature is the grayscale projection in the horizontal direction, and the projection data is normalized to weaken the influence of illumination.
4、模板匹配采用基于形状的模板匹配,所采用的提取特征为边缘点的位置和边缘点的梯度方向,以便于将待检测图像与历史帧模板进行模板匹配特征相似度计算。4. Template matching adopts shape-based template matching, and the extracted features used are the position of edge points and the gradient direction of edge points, so as to perform template matching feature similarity calculation between the image to be detected and the historical frame template.
附图说明Description of drawings
图1为本发明的总体框图;Fig. 1 is the overall block diagram of the present invention;
图2为图1中的6个ROI示意图;Fig. 2 is a schematic diagram of 6 ROIs in Fig. 1;
图3为本发明定位模板与ROI区域创建的流程图;Fig. 3 is the flow chart of positioning template and ROI area creation of the present invention;
图4为本发明定位模板与ROI区域创建数据流程图中获取的正常受电弓历史图像原图;4 is the original image of the normal pantograph history image obtained in the data flow chart of the positioning template and the ROI area according to the present invention;
图5为本发明定位模板与ROI区域创建数据流程图中选取的目标模板区域;Fig. 5 is the target template region selected in the present invention's positioning template and ROI region creation data flow chart;
图6为本发明定位模板与ROI区域创建数据流程图中裁剪的目标模板区域;Fig. 6 is the target template region cropped in the data flow chart of positioning template and ROI region creation of the present invention;
图7为本发明定位模板与ROI区域创建数据流程图中匹配结果图;Fig. 7 is the matching result diagram in the present invention's positioning template and ROI area creation data flow chart;
图8为本发明定位模板与ROI区域创建数据流程图中选取的6个ROI区域;Fig. 8 is 6 ROI regions selected in the positioning template and ROI region creation data flow chart of the present invention;
图9为本发明样本图像创建的流程图;Fig. 9 is the flow chart of sample image creation of the present invention;
图10为本发明样本图像创建数据流程图中获取的正常受电弓历史图像原图;10 is the original image of the normal pantograph historical image obtained in the data flow chart of the sample image creation of the present invention;
图11为本发明样本图像创建数据流程图中匹配结果图;Fig. 11 is the matching result diagram in the data flow chart of the sample image creation of the present invention;
图12为本发明样本图像创建数据流程图中进行仿射变换后的图像;Fig. 12 is the image after affine transformation in the sample image creation data flow chart of the present invention;
图13为本发明样本图像创建数据流程图中选择仿射变换图像上的ROI区域;Fig. 13 is the ROI area on the affine transformation image selected in the sample image creation data flow chart of the present invention;
图14为本发明样本图像创建数据流程图中裁剪所选择的ROI区域;Fig. 14 is the ROI region selected by cropping in the sample image creation data flow chart of the present invention;
图15为本发明变形检测的流程图;15 is a flowchart of deformation detection of the present invention;
图16为本发明变形检测数据流程图中获取的待检测图像原图;16 is the original image of the image to be detected obtained from the deformation detection data flow chart of the present invention;
图17为本发明变形检测数据流程图中的模板匹配;Fig. 17 is the template matching in the deformation detection data flow chart of the present invention;
图18为本发明变形检测数据流程图中的对图像进行纠偏;18 is the process of correcting the image in the deformation detection data flow chart of the present invention;
图19为本发明变形检测数据流程图中选取的检测ROI区域;Fig. 19 is the detection ROI region selected in the deformation detection data flow chart of the present invention;
图20为本发明变形检测数据流程图中的图像裁剪;Fig. 20 is the image cropping in the deformation detection data flow chart of the present invention;
图21为本发明变形检测数据流程图中对图像进行平滑;Fig. 21 is the image smoothing in the deformation detection data flow chart of the present invention;
图22为本发明变形检测数据流程图中对灰度特征进行提取;Figure 22 is the extraction of grayscale features in the deformation detection data flow chart of the present invention;
图23为本发明变形检测数据流程图中的模板特征相似度;Fig. 23 is the template feature similarity in the deformation detection data flow chart of the present invention;
图24为本发明变形检测数据流程图中另一ROI区域的模板特征相似度;Fig. 24 is the template feature similarity of another ROI region in the deformation detection data flow chart of the present invention;
图25为本发明灰度投影计算水平方向的每一行的灰度均值示意图;25 is a schematic diagram of the grayscale average value of each row in the horizontal direction of grayscale projection calculation according to the present invention;
图26为本发明灰度投影曲线;Figure 26 is the grayscale projection curve of the present invention;
图27为本发明归一化的灰度投影曲线;Figure 27 is the normalized grayscale projection curve of the present invention;
图28为本发明梯度变换后的灰度投影曲线。FIG. 28 is a grayscale projection curve after gradient transformation of the present invention.
具体实施方式Detailed ways
以下将结合实施例和附图对本发明的构思、具体结构及产生的技术效果进行清楚、完整的描述,以充分地理解本发明的目的、特征和效果。The concept, specific structure and technical effects of the present invention will be clearly and completely described below with reference to the embodiments and accompanying drawings, so as to fully understand the purpose, features and effects of the present invention.
实施例1Example 1
一种基于帧间对比的受电弓形变检测方法,如图1和2所示,包括以下步骤:A pantograph deformation detection method based on inter-frame comparison, as shown in Figures 1 and 2, includes the following steps:
S1,获取车号信息,根据车号信息从样本图像集中查找当前车号对应车型的正常受电弓的定位模板图像和历史帧ROI样本图像;所述定位模板图像包括中心定位模板以及1个以上ROI定位区域;所述历史帧ROI样本图像与ROI定位区域位置一致。S1, obtain vehicle number information, and search for the positioning template image and historical frame ROI sample image of the normal pantograph of the model corresponding to the current vehicle number from the sample image set according to the vehicle number information; the positioning template image includes a center positioning template and more than one ROI positioning area; the position of the ROI sample image of the historical frame is consistent with the ROI positioning area.
正常受电弓图像为受电弓的俯视图像,包含了受电弓易变形区域以及不易变形区域。其中,中心定位模板为受电弓俯视图中不易变形且能明显显示的区域,如绝缘子、气囊以及受电弓车顶固定加工件等部件区域,通过选择该区域作为定位模板。ROI为感兴趣区域,具体为受电弓碳滑板与平衡杆羊角上的六个易变形区域。The normal pantograph image is the top view image of the pantograph, including the easily deformable area and the non-deformable area of the pantograph. Among them, the central positioning template is an area that is not easily deformed and can be clearly displayed in the top view of the pantograph, such as insulators, airbags, and parts of the pantograph roof fixing parts, and this area is selected as the positioning template. The ROI is the region of interest, which is the six easily deformable regions on the pantograph carbon sliding plate and the horn of the balance rod.
S2,获取待检图像,将所述待检图像与所述中心定位模板进行模板匹配,生成映射矩阵,并根据所述映射矩阵将所述待检图像变换至定位模板图像一致的形状位置。S2: Acquire an image to be inspected, perform template matching between the image to be inspected and the center positioning template, generate a mapping matrix, and transform the image to be inspected into a shape position consistent with the positioning template image according to the mapping matrix.
S3,根据中心定位模板与ROI定位区域的位置关系从变换后待检图像中截取ROI目标图像,计算对应位置的历史帧ROI样本图像和ROI目标图像的灰度投影特征相似度和模板匹配特征相似度。S3, according to the positional relationship between the center positioning template and the ROI positioning area, the ROI target image is intercepted from the transformed image to be inspected, and the grayscale projection feature similarity and template matching feature similarity between the historical frame ROI sample image and the ROI target image at the corresponding position are calculated. Spend.
S4,根据灰度投影特征相似度和模板匹配特征相似度加权计算单个ROI总相似度,若总相似度满足预设阈值,则判定为正常,反之为变形;遍历所有ROI区域,若任一ROI相似度判定结果为异常,则判定当前待检图像发生受电弓形变。S4, calculate the total similarity of a single ROI according to the similarity of the grayscale projection feature and the similarity of the template matching feature. If the total similarity meets the preset threshold, it is judged to be normal, otherwise it is deformed; traverse all ROI areas, if any ROI If the similarity determination result is abnormal, it is determined that the pantograph deformation occurs in the current image to be inspected.
本实施例中,所述样本图像集中设置有受电弓碳滑板与平衡杆六个羊角ROI区域,各个ROI区域保存有多个ROI样本图像,在计算相似度时,每个ROI目标图像与多个ROI样本图像计算总相似度,再取多个总相似度均值作为判据。所述根据总的相似度计算结果判定受电弓是否变形,为待检测受电弓图像上若干个ROI区域任一出现变形,则受电弓形变,全部正常则受电弓未发生形变。In this embodiment, the sample images are centrally set with six ROI areas of the pantograph carbon slide and the balance bar, and each ROI area stores multiple ROI sample images. When calculating the similarity, each ROI target image is associated with multiple Calculate the total similarity of each ROI sample image, and then take multiple averages of the total similarity as the criterion. The determination of whether the pantograph is deformed according to the total similarity calculation result is that if any of several ROI regions on the pantograph image to be detected is deformed, the pantograph is deformed, and if all are normal, the pantograph is not deformed.
本实施例提供的受电弓形变检测方法,属于5C受电弓形变智能识别方法。获取车号的作用在于,不同车号对应不同车型,对于不同车型选择其对应的受电弓历史帧模板。样本图像的作用在于,获取该类车型的多幅历史正常受电弓历史图像,获取位姿、尺度一致的6个ROI区域的样本模板。The pantograph deformation detection method provided in this embodiment belongs to the intelligent identification method of the 5C pantograph deformation. The function of obtaining the car number is that different car numbers correspond to different models, and the corresponding pantograph history frame template is selected for different models. The function of the sample image is to obtain multiple historical normal pantograph historical images of this type of vehicle, and to obtain the sample templates of 6 ROI regions with the same pose and scale.
在样本图像中,按照车号进行了分类,是因为不同车号对应不同车型,在检测时对于不同车型选择其对应的正常受电弓历史图像进行对比检测。具体的,在样本图像建立步骤中,对于不同车号的车型,建立其相应的样本图像;在变形检测步骤中,根据检测图像的车号,首先在样本图像中选择该车号对应的样本图像,再和样本图像进行比较。In the sample images, they are classified according to the car number, because different car numbers correspond to different models, and during the detection, the corresponding normal pantograph historical images are selected for comparison and detection of different models. Specifically, in the sample image creation step, for models with different car numbers, corresponding sample images are created; in the deformation detection step, according to the car number of the detected image, first select the sample image corresponding to the car number in the sample image , and then compare with the sample image.
通过上述方法,使受电弓形变检测不受外界光照变化的干扰,仅和当前图像ROI区域的灰度投影以及模板匹配特征与历史图像的相似度有关。对于每一帧图像,无需过多关注图像的对比度的变换,也无需关注图像曝光度等外界信息。剔除了外界干扰信息,无需过多考虑变形信息,也无需大量样本支持,检测的前期工作量小,且识别率相对较高。Through the above method, the pantograph deformation detection is not disturbed by changes in external illumination, and is only related to the grayscale projection of the ROI area of the current image and the similarity between the template matching feature and the historical image. For each frame of image, there is no need to pay too much attention to the transformation of the contrast of the image, nor to external information such as image exposure. The external interference information is eliminated, the deformation information does not need to be considered too much, and there is no need for a large number of samples to support, the early detection workload is small, and the recognition rate is relatively high.
实施例2Example 2
本实施例在实施例1的基础上,对S1步骤中的样本图像作进一步的阐述。样本图像建立,包括了定位模板与ROI区域创建步骤和历史帧ROI样本图像创建步骤。In this embodiment, on the basis of
本实施例采用历史帧对比方式,使用历史帧对比的方法的前置条件是对比的两个区域具有形状位置等一致性,因此在设计算法时首先考虑前置条件。样本图像的建立的目的就是为了满足算法的前置条件。样本图像的建立首先进行定位模板的创建,其次6个ROI区域的选取,然后遍历正常受电弓历史图像定位裁剪相应区域的正常图像样本,最后保存相应模板、参数以及样本图像。This embodiment adopts the historical frame comparison method. The precondition of using the historical frame comparison method is that the two regions to be compared are consistent in shape and position. Therefore, the precondition is first considered when designing the algorithm. The purpose of establishing the sample image is to satisfy the preconditions of the algorithm. The establishment of the sample image firstly creates the positioning template, then selects 6 ROI regions, then traverses the normal pantograph historical image to locate and crop the normal image samples in the corresponding area, and finally saves the corresponding template, parameters and sample images.
(1)定位模板与ROI区域创建(1) Positioning template and ROI area creation
定位模板的作用是将所有的检测图像变换到与模板图像相同的位置,保证形状位置一致性。The function of the positioning template is to transform all the detected images to the same position as the template image to ensure the consistency of shape and position.
如图3所示,所述定位模板与ROI区域创建步骤,获取正常受电弓历史图像原图,在图像原图上选择目标模板区域并截取目标模板区域,以截取的目标模板区域创建图像模板作为定位模板;将图像模板与图像原图进行模板匹配,并根据模板结果选取图像原图上的若干个ROI区域,并保存图像模板和ROI区域。As shown in Figure 3, the positioning template and the ROI area creation step are to obtain the original image of the normal pantograph history image, select the target template area on the original image and intercept the target template area, and create an image template with the intercepted target template area As a positioning template; perform template matching between the image template and the original image, select several ROI areas on the original image according to the template results, and save the image template and ROI area.
定位模板与ROI区域创建数据流程图如图4-8所示。在同一车号的若干正常受电弓历史图像原图中,先获取如图4所示的1张正常受电弓历史图像原图,并在图像原图上按照如图5所示选取目标模板区域,并按照如图6所示裁剪目标模板区域创建图像模板。然后将图像模板与正常受电弓历史图像原图进行模板匹配,其匹配结果如图7所示。其次按照如图8所示选取图像原图上的6个ROI区域。最后并保存图像模板信息和ROI区域信息用于变形检测。Figure 4-8 shows the data flow chart of positioning template and ROI area creation. In the original images of several normal pantograph historical images of the same vehicle number, first obtain an original image of the normal pantograph historical image as shown in Figure 4, and select the target template on the original image as shown in Figure 5 area, and create an image template by cropping the target template area as shown in Figure 6. Then, the image template is matched with the original image of the normal pantograph historical image, and the matching result is shown in Figure 7. Next, select 6 ROI regions on the original image as shown in Figure 8. Finally, save the image template information and ROI area information for deformation detection.
(2)历史帧ROI样本图像创建(2) Historical frame ROI sample image creation
如图9所示,所述历史帧ROI样本图像创建步骤,获取历史正常受电弓图像,将所述正常受电弓图像与所述中心定位模板进行模板匹配,生成映射矩阵,并根据所述映射矩阵将所述正常受电弓图像变换至定位模板图像一致的形状位置;根据中心定位模板与ROI定位区域的位置关系从变换后正常受电弓图像中截取历史帧ROI样本图像,并将ROI样本图像按照对应的ROI定位区域保存。As shown in FIG. 9 , the historical frame ROI sample image creation step is to obtain a historical normal pantograph image, perform template matching between the normal pantograph image and the center positioning template, and generate a mapping matrix. The mapping matrix transforms the normal pantograph image into a shape position consistent with the positioning template image; according to the positional relationship between the center positioning template and the ROI positioning area, the historical frame ROI sample image is intercepted from the transformed normal pantograph image, and the ROI is The sample image is saved according to the corresponding ROI positioning area.
样本图像创建数据流程图如图10-15所示。在同一车号的其余若干正常受电弓历史图像原图中,获取如图10所示的正常受电弓历史图像原图,并将图像原图与图像模板进行模板匹配,其匹配结果如图11所示;然后对图像原图进行仿射变换,如图12所示;其次选择仿射变换图像上的ROI区域,如图13所示;接着裁剪所选择的ROI区域,如图14所示;最后保存截取的图像样本到相应的ROI区域位置中。The sample image creation data flow diagram is shown in Figure 10-15. From the other original images of the other normal pantograph historical images of the same vehicle number, obtain the original images of the normal pantograph historical images as shown in Figure 10, and perform template matching between the original image and the image template, and the matching results are shown in the figure 11; then perform affine transformation on the original image, as shown in Figure 12; secondly, select the ROI area on the affine transformed image, as shown in Figure 13; then crop the selected ROI area, as shown in Figure 14 ; Finally, save the intercepted image sample to the corresponding ROI area position.
历史帧ROI样本图像创建也可采用方式二:将先前判定为正常的受电弓图像检测过程的ROI目标图像保存为对应区域的ROI样本图像。The second method may also be used for creating the ROI sample image of the historical frame: saving the ROI target image of the pantograph image detection process previously determined to be normal as the ROI sample image of the corresponding area.
样本图像建立步骤中,创建的图像模板和保存截取的ROI区域,构成了样本图像。对于每一车号的受电弓,可选取其若干张正常受电弓不同历史图像原图,例如,本实施例可选取4张,4张中选择其中1张图像原图创建定位模板与ROI区域,另外3张原图根据创建的定位模板与ROI区域,进行样本图像创建。4张正常受电弓历史图像原图,创建出其历史帧模板,以便后续变形检测步骤中待检测图像进行对比。In the sample image establishment step, the created image template and the saved and intercepted ROI area constitute the sample image. For the pantograph of each vehicle number, several original images of normal pantographs with different history can be selected. For example, in this embodiment, four images can be selected, and one of the four original images can be selected to create a positioning template and ROI The other 3 original images are created according to the created positioning template and ROI area. 4 original images of normal pantograph historical images, and create their historical frame templates for comparison of the images to be detected in the subsequent deformation detection steps.
实施例3Example 3
本实施例在实施例2的基础上作进一步的改进,所述变形检测步骤包括灰度投影特征相似度S1计算步骤、匹配分数的平均值S2计算步骤和判定受电弓是否变形步骤。This embodiment is further improved on the basis of Embodiment 2, and the deformation detection step includes the calculation step of gray-scale projection feature similarity S1, the calculation step of the average value of matching scores S2, and the step of determining whether the pantograph is deformed.
如图15所示,所述灰度投影特征相似度S1计算步骤,获取待检测图像,并将待检测图像与图像模板进行模板匹配;根据匹配结果,对待检测图像进行仿射变换,并截取仿射变换后图像中的一ROI区域图像,计算待检测图像的ROI区域图像的水平灰度投影;获取样本图像,并计算样本图像中对应的ROI区域水平灰度投影;根据待检测图像的ROI区域图像的水平灰度投影和样本图像中对应的ROI区域水平灰度投影,计算灰度投影特征相似度S1。As shown in FIG. 15 , the gray-scale projection feature similarity S1 calculation step is to obtain the image to be detected, and perform template matching between the image to be detected and the image template; according to the matching result, perform affine transformation on the image to be detected, and intercept the shoot a ROI area image in the transformed image, and calculate the horizontal grayscale projection of the ROI area image of the image to be detected; obtain a sample image, and calculate the horizontal grayscale projection of the corresponding ROI area in the sample image; according to the ROI area of the image to be detected The horizontal grayscale projection of the image and the horizontal grayscale projection of the corresponding ROI area in the sample image are used to calculate the grayscale projection feature similarity S1.
如图15所示,所述匹配分数的平均值S2计算步骤,根据灰度投影特征相似度S1步骤中截取的待检测图像仿射变换后的ROI区域图像,创建ROI区域模板,并在样本图像中进行ROI区域模板匹配,计算匹配分数的平均值S2。As shown in FIG. 15 , in the calculation step of the average value of the matching scores S2, according to the ROI area image after the affine transformation of the image to be detected intercepted in the step of grayscale projection feature similarity S1, a ROI area template is created, and the sample image is ROI region template matching is performed in , and the average S2 of the matching scores is calculated.
如图15所示,所述判定受电弓是否变形步骤,根据灰度投影特征相似度S1和匹配分数的平均值S2,计算总相似度S,并判断总相似度S与阈值T的大小;若S小于T,则受电弓变形;若S大于T,则判断是否遍历所有的ROI区域,若是,则受电弓未变形,若否,则返回灰度投影特征相似度S1计算步骤中的截取仿射变换后图像中的ROI区域图像步骤,并截取另一ROI区域进行变形检测。As shown in Figure 15, in the step of determining whether the pantograph is deformed, the total similarity S is calculated according to the gray-scale projection feature similarity S1 and the average value of the matching score S2, and the size of the total similarity S and the threshold T is determined; If S is less than T, the pantograph is deformed; if S is greater than T, it is judged whether to traverse all ROI areas. If so, the pantograph is not deformed. If not, it returns to the calculation step of the gray-scale projection feature similarity S1. The step of intercepting the ROI area image in the affine transformed image, and intercepting another ROI area for deformation detection.
其中,总相似度S的计算公式为:,T1为灰度特征的权 重,T2为模板特征的权重,T1+T2=1。 Among them, the calculation formula of the total similarity S is: , T1 is the weight of the grayscale feature, T2 is the weight of the template feature, T1+T2=1.
本实施例中,由于灰度投影使用的灰度特征,灰度特征会随着光照的影响而波动,因此在计算最终的相似度会将灰度特征的权重设置的低一些,模板特征采用的形状特征对光照影响不敏感,因此权重要相对灰度特征高一些。变形的判断方法为:In this embodiment, due to the grayscale feature used in grayscale projection, the grayscale feature will fluctuate with the influence of illumination, so the weight of the grayscale feature will be set lower in the calculation of the final similarity, and the template feature adopts the Shape features are not sensitive to lighting effects, so the weight is higher than that of gray features. The deformation judgment method is:
, ,
其中T为阈值,一般设置为0.5。Where T is the threshold, generally set to 0.5.
变形检测的数据流程如图16-26所示,其中框中的数据为相似度结果。先获取待检测图像原图,如图16所示;再将待检测图像原图与图像模板进行模板匹配,如图17所示;然后根据匹配结果对图像进行纠偏,如图18所示;接着选取检测的ROI区域,如图19所示;再将选取检测的ROI区域进行图像裁剪,如图20所示,并对图像进行平滑,如图21所示;接着对灰度特征进行提取,如图22所示,并计算灰度特征相似度;再计算模板特征相似度,如图23所示;对于另一ROI区域,按照上述方法,计算其灰度特征相似度和模板特征相似度,如图24所示,依次类推,遍历所有的ROI区域,对受电弓进行变形检测。The data flow of deformation detection is shown in Figure 16-26, where the data in the box is the similarity result. First obtain the original image of the image to be detected, as shown in Figure 16; then perform template matching between the original image of the to-be-detected image and the image template, as shown in Figure 17; then correct the image according to the matching result, as shown in Figure 18; then Select the detected ROI area, as shown in Figure 19; then crop the selected and detected ROI area, as shown in Figure 20, and smooth the image, as shown in Figure 21; then extract the grayscale features, such as As shown in Figure 22, and calculate the grayscale feature similarity; then calculate the template feature similarity, as shown in Figure 23; for another ROI area, according to the above method, calculate its grayscale feature similarity and template feature similarity, as As shown in Figure 24, and so on, traverse all the ROI areas, and perform deformation detection on the pantograph.
本实施例中,仿射变换之前的模板匹配,用于将所有的检测图像变换到与模板图像相同的位置,保证形状位置一致性。计算匹配分数的平均值S2中的模板匹配,用于计算模板形状匹配相似度特征。In this embodiment, the template matching before the affine transformation is used to transform all the detected images to the same positions as the template images, so as to ensure the shape and position consistency. The template matching in the average S2 of the matching scores is calculated, which is used to calculate the template shape matching similarity feature.
实施例4Example 4
本实施例在实施例3的基础上,对灰度特征的提取方法作进一步的阐述。所述灰度投影特征为归一化灰度投影梯度特征,其提取方法为:先计算图像水平方向的每一行的灰度均值,根据所述灰度均值计算得到图像的灰度投影数据;再对所述灰度投影数据依次进行归一化处理和梯度变换,得到归一化灰度投影梯度特征。后续的投影梯度特征相似度计算采用现有方法,如欧式距离或余弦相似度。In this embodiment, on the basis of Embodiment 3, the method for extracting grayscale features is further elaborated. The grayscale projection feature is a normalized grayscale projection gradient feature, and the extraction method is as follows: first calculate the grayscale mean value of each line in the horizontal direction of the image, and calculate the grayscale projection data of the image according to the grayscale mean value; Normalization processing and gradient transformation are sequentially performed on the grayscale projection data to obtain normalized grayscale projection gradient features. Subsequent projected gradient feature similarity computations employ existing methods, such as Euclidean distance or cosine similarity.
具体的,灰度投影的基本是计算水平方向的每一行的灰度均值,如图25中框选的方框所示。Specifically, grayscale projection basically calculates the grayscale mean value of each row in the horizontal direction, as shown by the box selected in Figure 25 .
灰度均值的计算如下:The gray mean value is calculated as follows:
, ,
其中,为图像的宽度,为行,为第列,为灰度均值,为图像,为坐标在处的灰度值。照上述的方法计算得到的图像的灰度投影曲线 如图26所示。 in, is the width of the image, for the line, for the first List, is the gray mean value, for the image, for the coordinates in grayscale value at . The grayscale projection curve of the image calculated according to the above method is shown in FIG. 26 .
灰度投影归一化方法如下:The grayscale projection normalization method is as follows:
, ,
其中,为灰度投影数据,为灰度投影数据的最小值,为灰度投影数据 的最大值。归一化的灰度投影曲线如图27所示。 in, is the grayscale projection data, is the minimum value of the grayscale projection data, is the maximum value of grayscale projection data. The normalized grayscale projection curve is shown in Figure 27.
为了体现灰度特征的波动情况,本实施例对灰度投影进行梯度变换,梯度变换的间隔为step,step根据实际实验环境进行设置,本实施例默认为1,梯度变换后的曲线如图28所示。In order to reflect the fluctuation of grayscale features, this embodiment performs gradient transformation on the grayscale projection. The interval of gradient transformation is step, and step is set according to the actual experimental environment. The default value in this embodiment is 1. The curve after gradient transformation is shown in Figure 28. shown.
根据计算得到归一化灰度投影数据计算灰度梯度和作为灰度特征。According to the normalized grayscale projection data obtained by calculation, the grayscale gradient sum is calculated as the grayscale feature.
实施例5Example 5
本实施例在实施例4的基础上,对模板匹配作进一步的阐述。所述模板匹配采用基于形状的模板匹配,所采用的提取特征为边缘点的位置和边缘点的梯度方向,首先提取模板图像的边缘点,然后以sobel算子计算图像的x方向和y方向梯度,再根据x方向和y方向梯度计算边缘点的总梯度值和梯度方向,最后计算边缘点的位置。边缘点梯度方向特征的提取方法具体如下所示:In this embodiment, on the basis of Embodiment 4, template matching is further described. The template matching adopts shape-based template matching, and the extracted features are the position of the edge point and the gradient direction of the edge point. First, the edge point of the template image is extracted, and then the x-direction and y-direction gradients of the image are calculated with the sobel operator. , and then calculate the total gradient value and gradient direction of the edge point according to the x-direction and y-direction gradients, and finally calculate the position of the edge point. The extraction method of edge point gradient direction features is as follows:
提取模板图像的边缘点。Extract the edge points of the template image.
计算边缘点的梯度方向和梯度值,首先计算模板图像的x方向和y方向梯度,计算方法如下:以sobel算子为例。To calculate the gradient direction and gradient value of the edge point, first calculate the x-direction and y-direction gradients of the template image. The calculation method is as follows: take the sobel operator as an example.
X和Y方向的梯度计算如下:The gradients in the X and Y directions are calculated as follows:
然后计算该点的梯度值如下所示:Then calculate the gradient value at that point as follows:
, ,
其中,为x方向梯度,为y方向梯度; in, is the x-direction gradient, is the gradient in the y direction;
最后计算梯度角如下所示:The final calculated gradient angle is as follows:
, ,
梯度方向即图像灰度增大的方向,对应在图像中寻找某一点的梯度方向即通过计算该点与其8邻域点的梯度角,梯度角最大即为梯度方向。The gradient direction is the direction in which the grayscale of the image increases. The gradient direction corresponding to finding a certain point in the image is calculated by calculating the gradient angle between the point and its 8 neighboring points. The maximum gradient angle is the gradient direction.
匹配流程如下:The matching process is as follows:
采用滑动窗口方式进行图像搜索,计算窗口内的匹配分值,所述匹配分值为模板 边缘点与对应待匹配区域的对应点的方向向量的夹角余弦值:, The image search is performed in a sliding window mode, and the matching score in the window is calculated, and the matching score is the cosine of the angle between the template edge point and the direction vector of the corresponding point corresponding to the area to be matched: ,
其中,score为匹配分值,pi为夹角余弦值,n为点的数量;Among them, score is the matching score, p i is the cosine value of the included angle, and n is the number of points;
, ,
其中Aj和Bj为模板与待匹配区域的对应点的方向向量的元素;Wherein A j and B j are the elements of the direction vector of the corresponding point of the template and the area to be matched;
上述方向向量表示为:The above direction vector is expressed as:
, ,
其中为梯度角。 in is the gradient angle.
实施例6Example 6
一种计算机设备,包括存储器、处理器及存储在存储器上并可在处理器上运行的计算机程序,处理器执行计算机程序时,执行上述实施例1-5任意一项受电弓形变检测方法中的步骤。A computer device includes a memory, a processor, and a computer program stored in the memory and running on the processor. When the processor executes the computer program, it executes any one of the methods for detecting pantograph deformation in the above-mentioned embodiments 1-5. A step of.
在本实施例中处理器可以为中央处理器(Central Processing Unit,CPU)。处理器还可以为其他通用处理器、数字信号处理器(Digital Signal Processor,DSP)、专用集成电路(Application Specific Integrated Circuit,ASIC)、现场可编程门阵列(Field-Programmable Gate Array,FPGA)或者其他可编程逻辑器件、分立门或者晶体管逻辑器件、分立硬件组件等芯片,或者上述各类芯片的组合。In this embodiment, the processor may be a central processing unit (Central Processing Unit, CPU). The processor may also be other general-purpose processors, digital signal processors (Digital Signal Processor, DSP), application specific integrated circuit (Application Specific Integrated Circuit, ASIC), Field-Programmable Gate Array (Field-Programmable Gate Array, FPGA) or other Chips such as programmable logic devices, discrete gate or transistor logic devices, discrete hardware components, or a combination of the above types of chips.
存储器作为一种非暂态计算机可读存储介质,可用于存储非暂态软件程序、非暂态计算机可执行程序以及单元。处理器通过运行存储在存储器中的非暂态软件程序、指令以及模块,从而执行处理器的各种功能应用以及作品数据处理,即实现上述实施例中的方法。As a non-transitory computer-readable storage medium, the memory can be used to store non-transitory software programs, non-transitory computer-executable programs, and units. The processor executes various functional applications of the processor and works data processing by running the non-transitory software programs, instructions and modules stored in the memory, that is, to implement the methods in the above embodiments.
存储器可以包括存储程序区和存储数据区,其中,存储程序区可存储操作系统、至少一个功能所需要的应用程序;存储数据区可存储处理器所创建的数据等。此外,存储器可以包括高速随机存取存储器,还可以包括非暂态存储器,例如至少一个磁盘存储器件、闪存器件、或其他非暂态固态存储器件。在一些实施例中,存储器可选择包括相对于处理器远程设置的存储器,这些远程存储器可以通过网络连接至处理器。上述网络的实例包括但不限于互联网、企业内部网、局域网、移动通信网及其组合。The memory may include a storage program area and a storage data area, wherein the storage program area may store an operating system and an application program required by at least one function; the storage data area may store data created by the processor, and the like. Additionally, the memory may include high-speed random access memory, and may also include non-transitory memory, such as at least one magnetic disk storage device, flash memory device, or other non-transitory solid state storage device. In some embodiments, the memory may optionally include memory located remotely from the processor, which may be connected to the processor through a network. Examples of such networks include, but are not limited to, the Internet, an intranet, a local area network, a mobile communication network, and combinations thereof.
一个或者多个单元存储在所述存储器中,当被所述处理器执行时,执行上述实施例1-5中任意一项的方法。One or more units are stored in the memory, and when executed by the processor, perform the method of any one of the foregoing embodiments 1-5.
实施例7Example 7
一种计算机可读存储介质,其上存储有计算机程序,计算机程序被处理器执行时,实现上述实施例1-5任意一项受电弓形变检测方法中的步骤。A computer-readable storage medium on which a computer program is stored, and when the computer program is executed by a processor, implements the steps in any one of the above-mentioned methods for detecting pantograph deformation in Embodiments 1-5.
以上对本发明的实施方式进行了具体说明,但本发明并不限于所述实施例,熟悉本领域的技术人员在不违背本发明精神的前提下还可作出种种等同变型或替换,这些等同或替换均包含在本发明权利要求所限定的范围内。The embodiments of the present invention have been specifically described above, but the present invention is not limited to the embodiments. Those skilled in the art can also make various equivalent modifications or substitutions without departing from the spirit of the present invention. These equivalents or substitutions All are included within the scope defined by the claims of the present invention.
Claims (9)
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN202210031072.7A CN114067106B (en) | 2022-01-12 | 2022-01-12 | Method, device and storage medium for pantograph deformation detection based on inter-frame comparison |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN202210031072.7A CN114067106B (en) | 2022-01-12 | 2022-01-12 | Method, device and storage medium for pantograph deformation detection based on inter-frame comparison |
Publications (2)
Publication Number | Publication Date |
---|---|
CN114067106A CN114067106A (en) | 2022-02-18 |
CN114067106B true CN114067106B (en) | 2022-04-15 |
Family
ID=80230782
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN202210031072.7A Active CN114067106B (en) | 2022-01-12 | 2022-01-12 | Method, device and storage medium for pantograph deformation detection based on inter-frame comparison |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN114067106B (en) |
Families Citing this family (1)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN117409065B (en) * | 2022-07-08 | 2024-08-20 | 腾讯科技(深圳)有限公司 | Object measuring method, device, computer apparatus, readable storage medium and product |
Citations (13)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
KR20070097014A (en) * | 2007-09-12 | 2007-10-02 | (주)이머젼윤 | Damage Detection System of Pantograph for Electric Vehicle |
CN101719216A (en) * | 2009-12-21 | 2010-06-02 | 西安电子科技大学 | Movement human abnormal behavior identification method based on template matching |
CN104316782A (en) * | 2014-09-26 | 2015-01-28 | 苏州华兴致远电子科技有限公司 | Pantograph monitoring method and system |
CN105571508A (en) * | 2016-01-25 | 2016-05-11 | 成都国铁电气设备有限公司 | Deformation detecting method and deformation detecting system for pantograph of overhead contact system |
JP2017175789A (en) * | 2016-03-24 | 2017-09-28 | 三菱電機株式会社 | Pantograph inspection device, inspection method and inspection system |
CN107743577A (en) * | 2015-06-15 | 2018-02-27 | 韩国铁道技术研究院 | Method and device for detecting vibration information of an electric railway vehicle |
CN108389179A (en) * | 2018-01-15 | 2018-08-10 | 湖南大学 | A kind of cover detection method of surface flaw based on machine vision |
KR20190004173A (en) * | 2017-07-03 | 2019-01-11 | 한국철도기술연구원 | Apparatus and method for monitoring of pantograph in electric railway |
CN110286139A (en) * | 2019-06-04 | 2019-09-27 | 武汉工程大学 | Discrimination method of big data complex features of ancient lacquerware paint film |
CN111666947A (en) * | 2020-05-26 | 2020-09-15 | 成都唐源电气股份有限公司 | Pantograph head offset measurement method and system based on 3D imaging |
CN113077467A (en) * | 2021-06-08 | 2021-07-06 | 深圳市华汉伟业科技有限公司 | Edge defect detection method and device for target object and storage medium |
CN113436157A (en) * | 2021-06-18 | 2021-09-24 | 西南交通大学 | Vehicle-mounted image identification method for pantograph fault |
CN113487561A (en) * | 2021-07-02 | 2021-10-08 | 成都唐源电气股份有限公司 | Pantograph foreign matter detection method and device based on gray gradient abnormal voting |
-
2022
- 2022-01-12 CN CN202210031072.7A patent/CN114067106B/en active Active
Patent Citations (13)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
KR20070097014A (en) * | 2007-09-12 | 2007-10-02 | (주)이머젼윤 | Damage Detection System of Pantograph for Electric Vehicle |
CN101719216A (en) * | 2009-12-21 | 2010-06-02 | 西安电子科技大学 | Movement human abnormal behavior identification method based on template matching |
CN104316782A (en) * | 2014-09-26 | 2015-01-28 | 苏州华兴致远电子科技有限公司 | Pantograph monitoring method and system |
CN107743577A (en) * | 2015-06-15 | 2018-02-27 | 韩国铁道技术研究院 | Method and device for detecting vibration information of an electric railway vehicle |
CN105571508A (en) * | 2016-01-25 | 2016-05-11 | 成都国铁电气设备有限公司 | Deformation detecting method and deformation detecting system for pantograph of overhead contact system |
JP2017175789A (en) * | 2016-03-24 | 2017-09-28 | 三菱電機株式会社 | Pantograph inspection device, inspection method and inspection system |
KR20190004173A (en) * | 2017-07-03 | 2019-01-11 | 한국철도기술연구원 | Apparatus and method for monitoring of pantograph in electric railway |
CN108389179A (en) * | 2018-01-15 | 2018-08-10 | 湖南大学 | A kind of cover detection method of surface flaw based on machine vision |
CN110286139A (en) * | 2019-06-04 | 2019-09-27 | 武汉工程大学 | Discrimination method of big data complex features of ancient lacquerware paint film |
CN111666947A (en) * | 2020-05-26 | 2020-09-15 | 成都唐源电气股份有限公司 | Pantograph head offset measurement method and system based on 3D imaging |
CN113077467A (en) * | 2021-06-08 | 2021-07-06 | 深圳市华汉伟业科技有限公司 | Edge defect detection method and device for target object and storage medium |
CN113436157A (en) * | 2021-06-18 | 2021-09-24 | 西南交通大学 | Vehicle-mounted image identification method for pantograph fault |
CN113487561A (en) * | 2021-07-02 | 2021-10-08 | 成都唐源电气股份有限公司 | Pantograph foreign matter detection method and device based on gray gradient abnormal voting |
Non-Patent Citations (4)
Title |
---|
An Accurate and Efficient Vision Measurement Approach for Railway Catenary Geometry Parameters;Dong Zhan等;《IEEE Transactions on Instrumentation and Measurement》;20181231;第67卷(第12期);第2841-2853页 * |
Detecting Deformation on Pantograph Contact Strip of Railway Vehicle on Image Processing and Deep Learning;Kyung-Min Na等;《Applied Sciences》;20201128;第1-14页 * |
基于图像处理的城轨列车受电弓检测技术研究;姚小文;《中国优秀博硕士学位论文全文数据库(硕士) 工程科技Ⅱ辑》;20170715(第07期);第C033-256页 * |
基于深度学习的高铁受电装置安全状态快速检测方法;冯勇等;《西南交通大学学报》;20191031;第53卷(第10期);第109-114页 * |
Also Published As
Publication number | Publication date |
---|---|
CN114067106A (en) | 2022-02-18 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN111260797B (en) | Automatic matching method for three-dimensional template of pantograph image | |
CN107944412A (en) | Transmission line of electricity automatic recognition system and method based on multilayer convolutional neural networks | |
CN111738342B (en) | Pantograph foreign matter detection method, storage medium and computer equipment | |
CN111310761B (en) | Detection method of catenary insulators based on reconstruction and classification convolutional self-encoding network | |
Aydin | A new approach based on firefly algorithm for vision-based railway overhead inspection system | |
CN112560634B (en) | Power line insulator rapid detection and positioning method and system based on field image | |
CN113436157B (en) | Vehicle-mounted image identification method for pantograph fault | |
CN105571508B (en) | The deformation detecting method and system of OCS and pantograph | |
CN107743577A (en) | Method and device for detecting vibration information of an electric railway vehicle | |
CN110659550A (en) | Traffic sign recognition method, traffic sign recognition device, computer equipment and storage medium | |
CN110197494A (en) | A kind of pantograph contact point real time detection algorithm based on monocular infrared image | |
CN108664997A (en) | High iron catenary equipotential line defective mode detection method based on cascade Faster R-CNN | |
CN114067106B (en) | Method, device and storage medium for pantograph deformation detection based on inter-frame comparison | |
CN114926456A (en) | A semi-automatic labeling and improved deep learning method for foreign object detection on railway tracks | |
CN110751619A (en) | Insulator defect detection method | |
CN103150547A (en) | Vehicle tracking method and device | |
KR102032459B1 (en) | Apparatus and method for monitoring of pantograph in electric railway | |
CN114743084A (en) | A transmission line fault detection method based on super-resolution preprocessing and improved YOLOv5x | |
CN114782410A (en) | Insulator defect detection method and system based on lightweight model | |
CN114494161A (en) | Pantograph foreign matter detection method and device based on image contrast and storage medium | |
CN113657258A (en) | Contact network fault identification system and method based on image processing | |
CN117237911A (en) | Image-based dynamic obstacle rapid detection method and system | |
CN114030395B (en) | Foreign matter detection method and system for contact suspension dropper area | |
CN112507867B (en) | Lane line detection method based on EDLines line characteristics | |
CN110570415B (en) | A method for abnormal detection of unstressed suspension strings of high-speed railway catenary |
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 |