An imaging method, wherein an image sensor comprises an array of photosensitive units, an array of filter units arranged on the array of photosensitive units, and an array of micro lenses arranged on the array of filter units, the array of photosensitive units comprises focusing photosensitive units and non-focusing photosensitive units , the focusing photosensitive units are configured for focusing control and for generating an image, and the non-focusing photosensitive units are configured for generating an image, each of the focusing photosensitive units and each of the non-focusing photosensitive units both comprise M ∗ M photosensitive pixels , where M is a positive integer, the image sensor has a first output mode and a second output mode, the method comprises: detecting a current ambient luminous intensity with a detection module ; when the current ambient luminous intensity is smaller than a preset intensity, controlling the image sensor to enter the first output mode, wherein in the first output mode output values from the M ∗ M photosensitive pixels in a same focusing photosensitive unit are added to obtain one pixel value of the focusing photosensitive pixel , and output values from the M ∗ M photosensitive pixels in a same non-focusing photosensitive unit are added to obtain one pixel value of the non-focusing photosensitive unit ; under the first output mode, controlling the array of photosensitive units to enter a focusing mode; obtaining output values of a part of photosensitive pixels in each focusing photosensitive unit as first output values; obtaining output values of another part of photosensitive pixels in each focusing photosensitive unit as second output values; performing the focusing control according to the first output values and the second output values; under the first output mode, controlling the array of photosensitive units to enter an imaging mode; and controlling the array of photosensitive units to expose to generate an image under the first output mode; wherein in the second mode, each M ∗ M photosensitive pixels in each focusing photosensitive unit and in each non-focusing photosensitive unit are separately outputted. detecting a current ambient luminous intensity with a detection module ; when the current ambient luminous intensity is smaller than a preset intensity, controlling the image sensor to enter the first output mode, wherein in the first output mode output values from the M ∗ M photosensitive pixels in a same focusing photosensitive unit are added to obtain one pixel value of the focusing photosensitive pixel , and output values from the M ∗ M photosensitive pixels in a same non-focusing photosensitive unit are added to obtain one pixel value of the non-focusing photosensitive unit ; under the first output mode, controlling the array of photosensitive units to enter a focusing mode; obtaining output values of a part of photosensitive pixels in each focusing photosensitive unit as first output values; obtaining output values of another part of photosensitive pixels in each focusing photosensitive unit as second output values; performing the focusing control according to the first output values and the second output values; under the first output mode, controlling the array of photosensitive units to enter an imaging mode; and controlling the array of photosensitive units to expose to generate an image under the first output mode; wherein in the second mode, each M ∗ M photosensitive pixels in each focusing photosensitive unit and in each non-focusing photosensitive unit are separately outputted. <EOS>