Research on pipe crack detection based on image processing algorithm