Text this: Local threshold identification and gray level classification of butt joint welding imperfections using robot vision system