Statistics for Real-time automatic machine inspection of plastic bottle closures