Digital image processing techniques and algorithms are applied on images in order to remove error. In this paper, we use digital image processing technique to detect the broken tablet. Such tablets are harmful to consume and may have many side effects. The inspection process is effective to detect the defects in tablets. Mathematical manipulation is used to detect the defect. This is done in Matlab10. First Image is taken and is converted into gray and then to binary and then noise is removed. Morphology operation is used to remove the noise. Morphology operation is applied on binary images therefore for this image is first converted into gray. This technique will find the defect in those tablets which are circular in shape.