1. A method for detecting an object, comprising: receiving input information relating to a moving object included in a plurality of images and generating a regression tree; in response to receiving a new image, communicating information of a moving object included in the new image into the regression tree; and determining a size of a person included in the new image based at least on a resultant value of the regression tree.