1. A method for detecting glare pixels of an image comprising an object, adapted for an electronic device, comprising: processing the image to remove overexposed pixels from the image to generate a first image; processing the first image to remove non-object pixels from the first image to generate an object pixel image; and detecting the glare pixels from the object pixel image according to a saturation distribution threshold and an intensity distribution threshold, wherein the saturation distribution threshold and the intensity distribution threshold are dynamically adjustable non-zero integers.