tablet defect inspection