When quality directly determines human life, there is no error should occur. The pharmaceutical industry requires more and more on machine vision to inspect the products and to ensure the drug and dose that are delivered with full traceability. Machine vision is mainly used for bottling location detection, the size and dirt detection of capsule, foreign matter detection, tablets in blister pack, packaging appearance and full box detection.