Accurate identification of packing defects can be detected online bottled and box medicine, at the same time statistics drug quantity, effectively eliminate the defects, control of quality, especially suitable for high speed production line in the artificial cannot be detected or susceptible to fatigue and failure situations, greatly reduce the labor intensity of operating workers.