Abstract:Aiming at the problem that the volume of irregular piles is difficult to measure directly, a method for measuring the volume of irregular piles based on binocular vision is proposed. Firstly, a binocular camera is used to collect the top view images of the pile, and the images are preprocessed. Secondly, the disparity map of the pile image is obtained by stereo matching, and the holes of the disparity map are filled by the median filtering and the nearest neighbor interpolation algorithm, and the three-dimensional point cloud coordinates corresponding to the disparity map are calculated. Thirdly, the improved OTSU threshold segmentation algorithm is used to extract the pile area in the disparity map, the average height and area of the pile are calculated. Finally, the volume of the pile is calculated. The experimental results show that the volume measurement error is less than 5%, and the volume of the pile can be measured quickly and effectively based on disparity map, which can meet the needs of the industrial inspection field, and provides a new idea for accurately and quickly measuring the volume of the pile.