The invention provides an FPC line detection method based on
feature tracking and skeleton
feature matching. The method comprises a template graph feature point extraction step, a feature point template establishment step, a to-be-measured graph positioning point offset acquisition step, an affine
transformation matrix acquisition step, a feature
point tracking step, a to-be-measured graph featurepoint extraction step, an abnormal feature
point set acquisition step and an open circuit and
short circuit coordinate acquisition step. According to the invention, the problems of accumulative errors and the like caused by FPC deformation are solved; based on the principle that an
abnormal end point is generated during open circuit and an abnormal
branch point is generated during
short circuit,the tracking range of feature points is flexibly set according to the actual deformation degree, then the tracked feature points are compared with feature points extracted from an actual to-be-measured graph, and finally accurate defect information of
short circuit and open circuit of a circuit is obtained. According to the open circuit and short circuit detection method, the open circuit and short circuit detection effect on the FPC with reasonable deformation is good, the accuracy and efficiency of open circuit and short circuit detection are improved, the detection precision is improved, and the robustness is improved.