Abstract:A material positioning algorithm for binocular vision is proposed.,aiming at the problem of three-dimensional spatial positioning in the process of grasping materials by mechanical?arm. Firstly, based on the principle of binocular vision imaging, the hand eye matrix is constructed to complete the transformation from binocular camera coordinate system to robot coordinate system; Secondly, the attention mechanism is embedded into the CSP structure of the backbone network, and a yolov5s + CBAM is used to improve the network structure. On the self-made material data set, the map is 99.1% and the FPS is 71, which can realize the accurate detection of the position of material grab point; Finally, aiming at the problem of depth information acquisition error caused by grab point stereo matching error, an improved sgbm algorithm based on gray value ranging is proposed to obtain depth information. Through experimental detection, the average ranging error is 5.16mm. Combined with target detection, the three-dimensional coordinate positioning of material grab point can be realized.