Pupil and iris segmentation based on ellipsis or circle recognition are sensitive to light reflections and reflected images. The method presented here is independent of size and shape and at the same time insensitive to light reflections and reflected mirror images. The pupil detected using the algorithm can be a reference point to further segmentation of the sclera of the eye as well as of the iris. The method is also effective when the pupil and iris are not positioned perpendicularly to the camera eye. The algorithm's average segmentation