A non-transitory computer-readable storage medium storing a computer-executable program for executing a method of controlling an image pickup apparatus configured to notify predetermined information to an information processing apparatus in a case where an approach of a user to the information processing apparatus is detected,
- wherein the method comprises:
- setting a detection frame extracted from picked-up image data obtained by picking up an image of the information processing apparatus, so as to detect the user's approach to the information processing apparatus;
- determining whether or not the detection frame set by said setting of the detection frame has a size at least larger than a predetermined threshold value;
- enabling a function of detecting whether or not the user has approached the information processing apparatus, using the detection frame, in a case where it is determined by said determining that the size of the detection frame at least is not larger than the predetermined threshold value;
- and
- disabling the function of detecting whether or not the user has approached the information processing apparatus, using the detection frame, in a case where it is determined that the size of the detection frame at least is larger than the predetermined threshold value.