Abstract:With the rapid development of industrial production in China, it is becoming more and more difficult to adapt to the artificial feeding, in order to solve the problem of industrial production line efficiency is not high, labor cost is too large, the problem of intelligent and so on. Based on the research of the existing methods, this method uses machine vision to study the workpiece positioning, industrial cameras capture image information, uploaded to the NI Vision software in the PC for image preprocessing, edge detection, and based on the edge detection results, the centroid points will be extracted, then the coordinate transformation algorithm is used to obtain the coordinates of the world coordinate system, transmitted via the communication unit to the robot control system, to control machine hand movement. The results show that the algorithm is stable and reliable, and is easy to be modified, the results obtained are relatively high accuracy.