1. A computer-implemented method for validating speed of a fan of an electronic device, the electronic device electronically connected to a camera device, the method comprising: setting a plurality of speeds of the fan for validation; controlling the fan to operate under each of the set speeds in turn, and controlling the camera device to continuously capture multiple images of the fan using a shutter speed of the camera device corresponding to the set speed; reading the images of the fan from the camera device, and transmitting the images to a comparison unit of the electronic device for analysis; determining that the fan works abnormally under the set speed if the images of the fan are not sameness or at least one image is unclear, or determining that the fan works normally under the set speed if all the images of the fan are sameness or clear; and generating a first validation report indicating that the fan is abnormal if the fan works abnormally under one of the set speeds, or generating a second validation report indicating that the fan is normal if the fan works normally under all the set speeds.