An in-line metal detection system for detecting ferrous and non-ferrous metal contaminants in tablets and capsules. Equipped with a high-speed pneumatic rejection device, it automatically counts rejected products and uploads data to the quality management system.