Weam A Al-khaleeli, M. M. H. AL-Khafaji, Mazin Al-wswasi
{"title":"Automatic Machining Setup via Deep Learning and Image Processing","authors":"Weam A Al-khaleeli, M. M. H. AL-Khafaji, Mazin Al-wswasi","doi":"10.56294/sctconf2024859","DOIUrl":null,"url":null,"abstract":"Computer Numerical Control (CNC) machines are widely used in different processes, such as milling, turning, drilling, etc., due to their high accuracy, rapidity, and repeatability. While these machines are fully controlled using G-code, the manual setup between the cutting tools and the initial stock can be time-consuming and requires skilled and experienced operators. This study utilizes artificial intelligence, supported by Deep Learning and image processing techniques, to automatically set up the machine by computing the distance between the tool and the workpiece. Firstly, a You Only Look Once (YOLO V4) algorithm has been developed via MATLAB programming specifically for the recognition of tools and workpieces. This algorithm has been trained using 1700 images, which are captured by a Rapoo C260 Webam, in the machine configuration environment for both the tools and workpieces. After recognizing the tool and workpiece, the algorithm provides information in terms of coordinates to specify where these objects are located within the image by drawing bounding boxes around them. Because the edges of the bounding boxes do not accurately depict the actual edges of the tool or the workpiece, the implementation of image processing techniques is necessary to correct these differences and determine the precise distance between the tool and the workpiece. Finally, an automatic G-code correction is generated to adjust the existing G-code, resulting in an automatic machining setup. The proposed methodology has been implemented and evaluated on a CNC turning machine, and it showed promising results in terms of reducing the required machining setup time.","PeriodicalId":270620,"journal":{"name":"Salud, Ciencia y Tecnología - Serie de Conferencias","volume":"83 20","pages":""},"PeriodicalIF":0.0000,"publicationDate":"2024-06-11","publicationTypes":"Journal Article","fieldsOfStudy":null,"isOpenAccess":false,"openAccessPdf":"","citationCount":"0","resultStr":null,"platform":"Semanticscholar","paperid":null,"PeriodicalName":"Salud, Ciencia y Tecnología - Serie de Conferencias","FirstCategoryId":"1085","ListUrlMain":"https://doi.org/10.56294/sctconf2024859","RegionNum":0,"RegionCategory":null,"ArticlePicture":[],"TitleCN":null,"AbstractTextCN":null,"PMCID":null,"EPubDate":"","PubModel":"","JCR":"","JCRName":"","Score":null,"Total":0}
引用次数: 0
Abstract
Computer Numerical Control (CNC) machines are widely used in different processes, such as milling, turning, drilling, etc., due to their high accuracy, rapidity, and repeatability. While these machines are fully controlled using G-code, the manual setup between the cutting tools and the initial stock can be time-consuming and requires skilled and experienced operators. This study utilizes artificial intelligence, supported by Deep Learning and image processing techniques, to automatically set up the machine by computing the distance between the tool and the workpiece. Firstly, a You Only Look Once (YOLO V4) algorithm has been developed via MATLAB programming specifically for the recognition of tools and workpieces. This algorithm has been trained using 1700 images, which are captured by a Rapoo C260 Webam, in the machine configuration environment for both the tools and workpieces. After recognizing the tool and workpiece, the algorithm provides information in terms of coordinates to specify where these objects are located within the image by drawing bounding boxes around them. Because the edges of the bounding boxes do not accurately depict the actual edges of the tool or the workpiece, the implementation of image processing techniques is necessary to correct these differences and determine the precise distance between the tool and the workpiece. Finally, an automatic G-code correction is generated to adjust the existing G-code, resulting in an automatic machining setup. The proposed methodology has been implemented and evaluated on a CNC turning machine, and it showed promising results in terms of reducing the required machining setup time.