This invention relates to marking and automated path planning for
oil drilling tools, and discloses a method for locating
laser-marked working surfaces and planning identification code trajectories on oil
drill pipes. The method acquires 3D
point cloud data including the curved working surface at the
drill pipe end, and obtains a fine-tuned cross-section set through cross-section fitting, axis extraction, and attitude calibration. Based on changes in cross-sectional geometric features, it automatically locates and extracts a subset of the
point cloud of the target working surface to determine its spatial position and boundaries. It acquires and parses the user-provided identification code
bitmap, and extracts a set of strokes through skeletal modeling. It constructs a family of planes passing through the center of a circle in the working
surface point cloud subset, projects the
stroke set, and intersects it with the curved surface to obtain a 3D
stroke point set conforming to the curved surface. The
point set is discretized into TCP coordinates and attitude sequences, and an
executable path file is output, along with a process parameter
package. This method reduces manual teaching and offline correction, and improves adaptability and forming consistency under different specifications and clamping attitudes.