摘要 |
In a method for controlling motion of a mechanical arm, the method moves the mechanical arm horizontally or vertically so that an image capturing device of the mechanism arm focuses on an object. The contours of the object are analyzed, and a central area of the object is established. By making the center of the image area of the image capturing device coincide with the center area of the object at least twice, the method records two positions of the mechanical arm, and calculates a total apparent displacement value of the object and a distance between the object and camera lens of the image capturing device according to the first position, the second position of the mechanical arm and the total apparent displacement value of the object. The method ensures accurate positioning of the mechanical arm. |