A new method of packaging checking based on machine vision is proposed. This paper describes the process of image processing in detail. A simple quick and efficient algorithm is used to process real time image, and the ideal resultis got, which totally meet the requirement of real time image processing.