This paper presents a method for detecting defects in circular tablets using digital image processing techniques, specifically through morphological operations to improve image quality and identify broken tablets. By converting images to grayscale and then binary, the approach calculates metrics that indicate whether tablets are whole or defective based on their roundness. This method also helps count tablets in a strip, which can assist pharmaceutical companies in quality control.