This invention relates to the field of infrastructure
engineering technology, specifically to a
machine vision-based method and
system for locating spraying areas. The method includes: using a depth camera to capture the original
point cloud of the beam surface, segmenting and selecting target planes on the beam surface using the RANSAC
algorithm; converting the image to two dimensions, extracting line features using
Hough transform and
edge detection, inversely mapping back to three dimensions, and selecting the uppermost point of the line; moving the camera upwards to capture the
point cloud of the upper part of the beam, removing interference to extract two target planes; calculating the normal vectors of the two planes, comparing the
point cloud to obtain the coordinates of the calibration points, constructing a new three-dimensional coordinate
system and generating a
rotation matrix; and planning the
robot spraying path based on the beam surface design parameters. The
system includes: a depth camera,
point cloud segmentation, two-dimensional mapping and
feature extraction, three-dimensional coordinate
recovery and key point selection,
spatial calibration, and path planning modules, which work together to implement the above method, eliminate point cloud blind spots, improve positioning accuracy, and meet the requirements for precise spraying of beam surfaces.