A major area of imaging is in automated visual inspection of manufactured goods. A typical image processing task with products like this is to inspect them for missing or wrong parts. Detecting some anomalies is a major theme of industrial inspection that includes a large area of products. The proposed paper presents an application for detection of broken aspirin tablets using image processing techniques. The application was implemented in an object oriented image processing software. The processing scheme can be adapted for other practical applications from other domains.