Detection of loose cap and safety ring for pharmaceutical glass bottles | IEEE Conference Publication | IEEE Xplore