Automatic welding detection by an intelligent tool pipe inspection