A computer implemented method for capturing an image, comprising: acquiring a video frame in a process of capturing an image through a camera; extracting a target histogram feature based on the video frame; inputting the target histogram feature into an image quality recognition model and outputting an image quality recognition result of the video frame, the image quality recognition model being configured to determine whether an image quality is fuzzy based on the target histogram feature; and in response to the image quality recognition result indicating a fuzzy image quality, prompting a user to clean the camera; wherein the extracting the target histogram feature based on the video frame comprises: zooming the video frame to obtain a zoomed image; obtaining a filtered image based on pixel values of each pixel point on three color channels in the zoomed image, the obtaining comprises: obtaining a minimum pixel value from the pixel values of each pixel point on the three color channels; generating a minimum-pixel-value image composed of the minimum pixel values of all the pixel points; using a preset window to slide on the minimum-pixel-value image and obtaining the minimum pixel value within the preset window for each sliding; and generating the filtered image composed of the obtained minimum pixel values within the preset window; and extracting the target histogram feature from the filtered image. acquiring a video frame in a process of capturing an image through a camera; extracting a target histogram feature based on the video frame; inputting the target histogram feature into an image quality recognition model and outputting an image quality recognition result of the video frame, the image quality recognition model being configured to determine whether an image quality is fuzzy based on the target histogram feature; and in response to the image quality recognition result indicating a fuzzy image quality, prompting a user to clean the camera; wherein the extracting the target histogram feature based on the video frame comprises: zooming the video frame to obtain a zoomed image; obtaining a filtered image based on pixel values of each pixel point on three color channels in the zoomed image, the obtaining comprises: obtaining a minimum pixel value from the pixel values of each pixel point on the three color channels; generating a minimum-pixel-value image composed of the minimum pixel values of all the pixel points; using a preset window to slide on the minimum-pixel-value image and obtaining the minimum pixel value within the preset window for each sliding; and generating the filtered image composed of the obtained minimum pixel values within the preset window; and extracting the target histogram feature from the filtered image. zooming the video frame to obtain a zoomed image; obtaining a filtered image based on pixel values of each pixel point on three color channels in the zoomed image, the obtaining comprises: obtaining a minimum pixel value from the pixel values of each pixel point on the three color channels; generating a minimum-pixel-value image composed of the minimum pixel values of all the pixel points; using a preset window to slide on the minimum-pixel-value image and obtaining the minimum pixel value within the preset window for each sliding; and generating the filtered image composed of the obtained minimum pixel values within the preset window; and extracting the target histogram feature from the filtered image.