The invention discloses a method for generating a
cutting track of a convex riser on the surface of a
casting based on
machine vision, and the method comprises the steps: carrying out the self-adaptive anisotropic downsampling of an original
point cloud, so as to reduce the data volume while keeping key geometric features; performing
robust principal component analysis plane fitting on a
point cloud downsampling result to obtain a
reference plane parameter of the
casting body under a preset coordinate
system; differential geometry-based riser region segmentation is carried out on the
point cloud downsampling result according to the
reference plane parameters, and convex riser region point clouds are obtained; according to the point cloud of the convex riser region, constructing a triangular mesh curved surface about the surface of the convex riser; performing plane
cutting on the triangular mesh curved surface to obtain a
cutting contour line; based on a beam
projection method, an initial cutting path is obtained according to the cutting
contour line; and constructing a cutting path optimization
energy functional so as to optimize the initial cutting path to generate an optimal cutting track of the convex riser on the surface of the
casting. The problems that a traditional manual cutting mode is low in cutting efficiency, poor in precision, poor in consistency and large in potential safety
hazard are solved.