Abstract
To realize the automatic loading process of parts, one of the core tasks is to identify the geometric contour of the part’s surface and the angular direction. Since the angular direction of each part is not the same when it arrives at the loading position, for example, there are two same types of parts with the same pattern, when they arrive at the loading position, the pattern on one part may be on the right side of the part surface, and the pattern on the other part may be on the left side of the part surface, the gripper of the mechanical arm needs to rotate above the parts in order to grab the parts during each loading process. If the rotation angle is wrong, there will be an impact between the gripper and the parts. Therefore, in order to solve the problem of different angles, this paper proposes a method of parts deviation correction based on geometric features. In this work, firstly, the acquired image is preprocessed, the image background is separated, and the geometric features of the parts are obtained. Then edge detection is used to obtain the set of edge pixels to obtain the contour in the image. Finally, the image moment and measurement model are used to output angular direction. Through 500 repeated detection experiments, the results show that this method can perform better angular direction correction. The maximum angular direction difference is 0.073°, which is 0.856° and 1.793° higher than the Least square method and Hough transform circle detection accuracy, respectively. The average detection time is 1.89 s and is 0.336 s and 1.39 s less than the Least square method and Hough transform circle detection, which meets the requirements of industrial applications.