Development of real-time tablet defect detection system using center gradient variation algorithm | Synapse