A lightweight algorithm for bottle cap sealing defect detection