The invention provides a device and a method for
visual detection of
welding quality of a
robot. The device and the method are characterized in that a visual gun is connected with a
welding arm, moves along with a
welding gun head, observes welding points and sends scanned picture information to a
visual system. The
visual system compares the received picture information with standard
recipe data and detects and judges weldment splicing errors before welding, welding point quality after welding and a
welding process in real time. The method includes: building splicing error detecting standard
recipe data, building a welding point standard
recipe after welding, building detecting standard recipe data during the
welding process, obtaining tracks of the welding points before welding and weldment splicing error picture information, welding point picture information after welding and picture information during the
welding process, and comparing the information with the standard recipe data. The device and the method have the
advantage of achieving real-time detecting of the welding quality and
closed loop feedback control, the detection device is matched with the
robot directly to be installed, extra
servo follow-up devices are not required to be designed and installed, and investment of a large amount of auxiliary devices is saved.