A non-transitory computer-readable storage medium storing a computer-executable program for executing a method of controlling a control apparatus and an electronic apparatus, the control apparatus and the electronic apparatus communicating with each other, wherein the method comprises:
- causing the electronic apparatus to:
- evaluate a luminance of an object based on an exposure level at which image information of the object is acquired;
- and
- detect halation based on the luminance of the object, a first luminance area having a higher luminance than a first luminance threshold value, and a distribution status of another luminance area which is an area having a lower luminance than the first luminance area and is distributed around the first luminance area;
- and
- causing the control apparatus to:
- acquire image information from the electronic apparatus in a case where the electronic apparatus detects halation;
- and
- control an irradiation apparatus to increase the amount of light irradiated by the irradiation apparatus based on luminance information of the acquired image information.