1. A gesture recognition system, comprising: an EDOF lens; an image sensor configured to capture an image frame through the EDOF lens; and a processing unit configured to calculate a current sharpness value of at least one object image in the image frame and obtain a current depth of the object image according to the current sharpness value and comparison information.