The rapid development of machine vision technology has made it widely used in various industrial fields. The detection of welding quality can also be achieved through this technology. The core of welding quality inspection is to realize the marking of weld features. To solve the problem of weld feature marking, the GUI weld marking interface is built based on MATLAB. After the process of image acquisition, image preprocessing, edge detection and feature extraction, the weld marking experiment of is finally completed. Based on data analysis of the experiment, it can be concluded that Canny edge detection operator has the best marking effect and the most stable detection for the research object used.