A method for photographing, performed by a mobile terminal, the method comprising: acquiring ambient brightness of the mobile terminal; responsive to detecting a photographing instruction, continuously acquiring (S11) a target number of frames of images meeting a preset photographing parameter, wherein the target number is N and is determined by the mobile terminal based on a present photographing scenario and N is a positive integer; and determining (S12) a target image according to image quality of the N frames of images and outputting the target image; wherein the image quality is determined by measuring the resolution of an image, wherein the photographing scenario comprises the ambient brightness of the mobile terminal, and characterized by , further comprising: responsive to that the ambient brightness is greater than a first brightness threshold, determining that a determination manner for the image quality is gradient calculation to evaluate the resolution of the image based on a grayscale value difference between adjacent pixels of the image; and responsive to that the ambient brightness is less than or equal to the first brightness threshold, determining that the determination manner for the image quality is a deep learning network, which outputs an image resolution value, wherein the greater the value, the sharper the image is. acquiring ambient brightness of the mobile terminal; responsive to detecting a photographing instruction, continuously acquiring (S11) a target number of frames of images meeting a preset photographing parameter, wherein the target number is N and is determined by the mobile terminal based on a present photographing scenario and N is a positive integer; and determining (S12) a target image according to image quality of the N frames of images and outputting the target image; wherein the image quality is determined by measuring the resolution of an image, wherein the photographing scenario comprises the ambient brightness of the mobile terminal, and characterized by , further comprising: responsive to that the ambient brightness is greater than a first brightness threshold, determining that a determination manner for the image quality is gradient calculation to evaluate the resolution of the image based on a grayscale value difference between adjacent pixels of the image; and responsive to that the ambient brightness is less than or equal to the first brightness threshold, determining that the determination manner for the image quality is a deep learning network, which outputs an image resolution value, wherein the greater the value, the sharper the image is. responsive to that the ambient brightness is greater than a first brightness threshold, determining that a determination manner for the image quality is gradient calculation to evaluate the resolution of the image based on a grayscale value difference between adjacent pixels of the image; and responsive to that the ambient brightness is less than or equal to the first brightness threshold, determining that the determination manner for the image quality is a deep learning network, which outputs an image resolution value, wherein the greater the value, the sharper the image is. <EOS>