Geometric properties of pharmaceutical pills such as length,width and height are important features for identification (see Section 6). Invariance to perspective distortion is necessary to allow for correct measurements. With a single 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.