A metal cap is a closure that holds a rubber stopper in the vial.
Quality control is on the flip-off cap, the thermoplastic insert on the alu-cap itself.

Flip-off cap : color detection and number reading

Inside seal color and fixing inspection

Different colors same seal

Alu cap : grey, blue, red and purpel seal inspection.