Pipeline defects recognition and quantification