1. A method of detecting an object input via a camera, the method comprising: dividing image data including the object into pre-established areas and creating a detection window for each area; calculating a histogram for each created detection window; determining, for each one of the detection windows, weights for each pixel located within the one of the detection windows according to a determined similarity between a pre-stored histogram corresponding to the object the object and the histogram corresponding to the one of the detection windows; moving each of the detection windows in a direction corresponding to the determined weights according to an average movement, such that the detection windows converge towards the object; and selecting, from among the detection windows, a detection window having a histogram with maximum similarity to the pre-stored histogram corresponding to the object from the detection windows converging to the object to thereby detect and track the location of the object.