The invention relates to a two-dimensional image and geometric constraint-based cargo stack three-dimensional
pose detection method and device, which are applied to the technical field of
computer vision and
logistics automation, and comprises the following steps of: through an edge straight line screening strategy, combining robust fitting of a random sampling consistency
algorithm, calculating a three-dimensional
pose of a cargo stack; a real physical boundary can be effectively and accurately recognized from complex visual interference such as
adhesive tape, labels and printed patterns on the surface of a container, the accuracy and robustness of
edge detection are remarkably improved, and therefore the high precision of final three-dimensional
pose calculation is guaranteed; and secondly, only a common industrial camera is needed, and an expensive three-dimensional sensor such as a
laser radar or a depth camera is not needed, so that the hardware cost and the maintenance complexity of the
system are greatly reduced, and the
cost benefit is extremely high. And thirdly, an efficient
image processing and geometric
calculation algorithm is mainly adopted, the calculation complexity is low, and the requirement for real-time detection of the goods stack on an industrial automatic
assembly line can be met.