Location algorithm for battery core insulating medium based on machine vision
In order to ensure the accuracy and timeliness of insulating medium location of battery core,this pa-per proposes an insulating medium location algorithm based on bilinear interpolation sub-pixel coordinates and improved random sample consensus(RANSAC)algorithm.Firstly,the industrial images are preprocessed by spatial filtering and threshold segmentation,etc.,to segment the target and enhance the features.Secondly,the Canny edge detection operator is used to detect the edge,the locating contour is selected,four edge lines are separated according to the minimum circumscribed rectangle,and the sub-pixel coordinates of the edge lines are accurately located by bilinear interpolation formula.Finally,the high-quality interior points of the four edge lines are extracted by RANSAC algorithm constrained by partial point prior model,and then the four edge lines are fitted by least square method and the corresponding offsets are calculated.The experimen-tal results show that the algorithm can effectively ensure the positioning accuracy of insulating medium and has a certain timeliness,which can better meet the requirements of practical production applications.