1. A computer-implemented method for analyzing image noise using an electronic device, the method comprising: receiving an initial image captured by an image capturing device of an image measuring machine using an image capturing card of the electronic device when a lighting device of the image measuring machine is shut down; magnifying an initial gray value of each pixel in the initial image to obtain an updated image; determining whether image noise in the updated image complies with a preset condition by analyzing an updated gray value of each pixel in the updated image; and displaying the updated image and analysis results on a display device of the electronic device.