Machine vision is an interdisciplinary subject involving many fields. Compared with traditional manual inspection, visual inspection has the advantages of high detection accuracy, high efficiency, safety, low cost and nondestructive inspection, so machine vision technology has received great attention and attention in the industrial field. Firstly, this paper analyzes from the background of great health, and has a full understanding of the research status of machine vision technology in the field of drug packaging by reading a large number of documents. Then, the paper briefly introduces the function and system structure of the automatic medicine packing machine, and on this basis, expounds the structure and principle of the visual inspection system of the medicine dispensing machine. Finally, the future development trend of machine vision is prospected.