Abstract:The traditional way of oil painting stick packing is artificial.In order to solve the problem of low efficiency and high cost, this paper designs the system based on machine vision. The ARM chip is chosen as coreof the image processing system,under the condition of limited resource and time. The system collects the image through the camera, controls the motor to rotate the oil painting stick, carries on the image matching, completes delivers. The system first locates, selectsthe image and filters to denoise the image. Thenthe system uses the improved histogram matching algorithm of adaptive threshold, and combines the correlation coefficient between the template image and the image to be matched, which effectively reduces the computation and improves the recognition rate of the system. Practice shows that the work of the system is stable, can achieve the effective adjustment of the angle of the oil paintingwith a high matching speed.The recognition rate of thesystem is above 95%.The system can complete the automatic assembly of products.