A method for controlling an image processing apparatus that operates in a first power state or a second power state, in which power consumption is smaller than in the first power state, and that includes a detection unit which includes a plurality of regions in which an object is detected and an analysis unit which analyzes results of detection obtained in the plurality of regions, the method comprising the steps of:
- causing the analysis unit to recover from a power saving state in a case where an object has been detected in any of the plurality of regions included in the detection unit in the second power state;
- and
- shifting, in a case where the analysis unit determines that an object has approached the image processing apparatus, the image processing apparatus from the second power state to the first power state.