Geometric properties of pharmaceutical pills such as length,widthandheightareimportantfeaturesforidentification (see Section 6). Invariance to perspective distortion isnecessarytoallowforcorrectmeasurements. Withasingle input image, measurements can be carried out in two dimensions by using an available homography (see Section 3.1). In the current approach for size estimation, distortions in image acquisition are not considered, since the error caused by segmentation is assumed to be dominant.