The invention provides a two-dimensional-
laser real-time detection method of a workpiece surface profile. Aiming at profile
point data of an environment or a target object, wherein the profile
point data is acquired by a 2D
laser sensor, firstly using an adaptive threshold IEPF
algorithm to carry out over-segmentation on the profile
point data; then, constructing an
undirected graph, taking over-segmentation
point set data as a
undirected graph node, taking an over-segmentation
point set fusion probability as a side of the
undirected graph and calculating a fusion probability value; and then, constructing and segmenting an energy function of the undirected graph, providing an
energy function minimization solution and acquiring a fusion result of the over-segmentation
point set, wherein the fusion result of the over-segmentation point set is a
line segment fitting result of point data; finally, using prior knowledge and a shape template to calculate a
line segment fitting result so as to acquire a shape detection result. By using the method, disadvantages that a traditional
algorithm is sensitive to a threshold and a
data noise and robustness is not high are overcome; the method can be used for detection of a specific-shape workpiece of an
industrial robot arm, autonomous motion
robot scene understanding, unmanned vehicle environment
cognition and other hot spot problems.