| In recent years,the rapid development of mobile industry has promoted the continuous innovation of battery quality.However,due to the influence of material and processing,the external surface of the battery is easily scratched.Therefore,most manufacturers adopt the method of artificial bonding film to protect it.This method is inefficient and susceptible to subjective factors,and can not meet the needs of modern manufacturing industry.As an advanced automatic detection technology,machine vision has high precision and good stability,which can effectively improve work efficiency and reduce production cost.Therefore,it is very important to introduce this technology into the bonding of battery protective film.This paper has designed and finished a complete visual positioning detection system for battery protective film,which mainly includes the following contents:In order to collect high-quality target images,a stable and reliable visual platform has been built based on the overall process of the equipment and the actual working environment.According to different requirements of positioning system and detection system,the hardware devices such as different cameras,lens and light sources are selected.Aiming at the bonding of protective film,a battery positioning system based on machine vision is designed.Firstly,according to the principle of visual positioning,a battery position correction algorithm based on marker points is proposed.Then,the directional edge extraction and RANSAC line fitting algorithm are used to realize the identification of the location points.Finally,by comparing with the standard template,the deviation value of the battery is calculated,and the robot is guided to complete the correction of the battery position,and finally the bonding of the protective film is achieved.The experimental results show that the visual positioning system studied in this paper has good positioning effect,and the positioning error is less than 0.15 mm.Aiming at the quality inspection after bonding,an online detection method based on machine vision is studied.Firstly,the battery image is corrected by affine transformation.Then,pit lines and film lines are extracted from the image after threshold segmentation.Finally,the quality of the bonding is evaluated by calculating the distance between the pit line and the film line.The experimental results show thatthe correct detection rate of the visual inspection system studied in this paper is 97%.The visual system studied in this paper has been proved to be stable and reliable,with high positioning accuracy,good detection effect and practical requirements. |