1. A method of detecting an object comprising the steps of: capturing a binary image of the object; determining a projection of the binary image to a first axis; determining a difference between a profile of a target object to the first axis and the projection at a plurality of positions along the first axis; and detecting the object by determining if the difference between the profile and the projection is less than a threshold at one of the plurality of positions.