Capsules are commonly used as containers for most pharmaceutical products. Thus, the quality of a capsule is closely related to therapeutic effect products and patient health. At present, surface testing an essential task in actual production capsules. In this study, deep learning-based defect detection model, called CapsuleDet, proposed classify localize defects image sensor data from practica...