The invention provides a global visual coordinate system and mechanical arm coordinate system mapping method and device. The method includes the following steps that: S1, the first ball center coordinate of the ball center of a target ball on the distal end of a mechanical arm under a mechanical arm coordinate system is acquired; S2, image recognition is performed on the target ball, the ball center is extracted from the image through a ball detection algorithm, and conversion is performed, so that the surface point coordinate of the target ball under a visual coordinate system is obtained; S3, the second ball center coordinate of the target ball in the visual coordinate system is calculated according to the surface point coordinate and radius of the target ball; S4, the position of the target ball is adjusted, the step S1 is executed again until a preset number of groups of first ball center coordinates and second ball center coordinates are obtained; and S5, and the preset number ofgroups of first ball center coordinates and second ball center coordinates are calculated through the least squares method, so that a mapping relationship between the two coordinate systems can be obtained. With the method and device of the invention adopted, automatic calculation can be realized efficiently and quickly, and mapping conversion precision is high.