1. A method for capturing images and obtaining information of the images, comprising the steps of: providing a camera module, the camera module including an image capture unit, a liquid lens unit, and an image processing unit; capturing a clear image with the camera module; enlarging aperture of the camera module; actuating the liquid lens unit to adjust to different focal lengths; capturing a plurality of images at different focus distances when actuating the liquid lens unit to different focal lengths; analyzing depth information of objects in the clear image by the image process unit; and adding the depth information of the object to the clear image; wherein the camera module under the actuation of the liquid lens unit provides focal-plane scanning from far to near or from near to far; wherein when the focus distance of the camera module is adjusted to a first focal plane, the image capture unit first capturing the images at the first focal plane, the image process unit determines whether a correctly focused first clear portion exists at the first focal plane; if the first clear portion exists, the image process unit analyzes the depth information of the object of the first clear portion in the images of the first focal plane; wherein when the focus distance of the camera module is adjusted to a second focal plane from the first focal plane, the image capture unit first capturing the images at the second focal plane, the image process unit determines whether a correctly focused second clear portion exists at the second focal plane; if the second clear portion exists, the image process unit analyzes the depth information of the object of the second clear portion in the images of the second focal plane.