1. An electronic device, comprising: imaging hardware; a storage medium including a set of instructions for generating image data; and a processor in communication with storage medium, wherein when executing the set of instructions, the processor is directed to: drive the imaging hardware to obtain a plurality of frames of images of a scene including at least one object, each of the plurality of frames of images is associated with a character distance of a plurality of character distances of the electronic device; for each frame of the plurality of frames of images, calculate sharpness of the frame of image; and when the sharpness exceeds a preset sharpness threshold, select the frame of image as a target image; and display at least one of the target image to a user of the electronic device.