| At present,the subway has become an indispensable public transportation in many cities.The subway contact network is the main source of energy for the subway.Its regular inspection and maintenance are related to the normal operation of the subway.Traditional manual detection is low in efficiency and time-consuming,so it is imperative to use advanced technology to detect the subway contact network.With the tremendous development of machine vision,it can replace manual work in some fields.This article will complete the detection of the subway contact network based on the machine vision combined with target detection and target tracking algorithms.The main research content of this article:(1)Introduced some image preprocessing methods and processed the catenary image,compared and analyzed the preprocessing methods selected in this paper,and then analyzed the advantages and disadvantages of common edge detection operators;(2)The commonly used target detection algorithm optical flow method,inter-frame difference method,background difference method and image segmentation-based target detection algorithm are introduced,and the target detection algorithm based on image segmentation is improved based on the actual situation of the catenary,based on the threshold Segmentation and improved Canny operator edge segmentation accurately detect the catenary;(3)The common tracking algorithms Meanshift and Camshift algorithms are analyzed in principle.According to the actual loss of the contact network,the three-dimensional physical characteristics of the target and the consistency of the target movement trend in the two sides of the image can be obtained through binocular vision Web tracking.It effectively solves the detection problem when the contact net is lost.Finally,the solution of straight line fitting is proposed for the situation where the contact nets in the left and right camera images are lost.The improved algorithm can effectively detect the position of the catenary in the image.When the contact line is lost,the position of the catenary can be well tracked to complete the detection of the catenary. |