An endoscope system includes: an electronic endoscope having an imaging device and a first processing unit which judges whether a first error has occurred that is an error in image data taken by the imaging device and resets the imaging device if a variable for judgment of occurrence of a first error is larger than or equal to a first threshold value; a light source unit which supplies illumination light to the electronic endoscope, and a second processing unit which judges whether a second error has occurred that is an error in image data transmitted from the electronic endoscope and initializes supply of power to the electronic endoscope if a variable for judgment of occurrence of a second error is larger than or equal to a second threshold value that is larger than or equal to the first threshold value; and a processor as defined herein.