In order to prevent production accidents caused by oil pipe defects, it is significant to carry out regular inspection of oil pipes, for oil pipe defect detection this paper designed a Raspberry Pi based oil pipe defect detection crawler, the pipeline on the basis of the crawler, using the Raspberry Pi motherboard equipped with camera module and laser module to survey the tube The pipeline is based on the crawler, using the Raspberry Pi motherboard with camera module and laser module to survey the environmental conditions inside the pipe, and real-time data transmission to the host computer, the host computer side by building a neural network model to discriminate and classify the defects in the pipe, through experimental testing, the pipeline defect detection crawler designed in this paper can quickly and accurately detect the defects in the pipe.