The invention discloses a hand-eye calibration and coordinate
conversion method. The method comprises the steps that a target is arranged at the
tail end of a mechanical arm; the
tail end of the mechanical arm is controlled to move from the initial coordinate point to the
terminal point coordinate point, in the process that the
tail end of the mechanical arm moves from the initial coordinate pointto the end point coordinate point, the n-time targets of the three-dimensional coordinates in a camera coordinate
system and the three-dimensional coordinates of a
machine arm coordinate
system are recorded, coordinates of the n groups of targets under the camera coordinate
system and coordinates of the
machine arm coordinate system are obtained, the coordinates of the target under the camera coordinate system and the dimensional coordinates of the
machine arm coordinate system are substituted into a mapping matrix between the camera coordinate system and the machine arm coordinate system tosolve the mapping matrix, and n groups of fitting points are obtained; a residual graph is drawn according to the n groups of initial fitting points, the m groups of
outlier points in the n groups ofinitial fitting points are removed, and the n-m groups of target fitting points are substituted into a mapping matrix between the camera coordinate system and the machine arm coordinate system, so that a matrix transformation relation between the camera coordinate system and the mechanical arm coordinate system can be obtained.