Catenary insulator defect detection based on contour features and gray similarity matching | Synapse