1. A shadow detection method, comprising: detecting a moving object in a plurality of continuous images; calculating a histogram of a color variation of the moving object in each of the images; accumulating the histograms of the color variation in the images to obtain a cumulative histogram; estimating a distribution of the color variation in the cumulative histogram to obtain a shadow distribution function; and determining whether each pixel in a received image belongs to a shadow by using the shadow distribution function.