In order to meet oil production requirement, the automatic detection and classification system for recycled drill pipe is badly needed. After carefully analyzed the inspection process, a novel NDT method composed of MFLT (magnetic flux leakage testing) and UT (ultrasonic testing) on drill pipe rotating is designed. Afterwards, a geometrical dimensions measurement system for drill pipe by laser is developed. Additionally, drill pipe is automatically classified with the application of database and fieldbus technologies. Finally, the automatic detection and classification system is formed, which works stably and has a good application effect.