Tunnel metal detectors enclose a conveyor belt, while flat metal detectors are attached underneath conveyor belts or chutes. They detect metallic contaminants, regardless of metal type and whether the contaminant is exposed or embedded in the product.