An indoor unit (100, 200, 300) of an air-conditioning apparatus comprising: a main body having an air inlet and an air outlet and disposed on a wall of a room; a fan configured to form an air passage that suctions air from the air inlet and extends to the air outlet; a heat exchanger disposed in the air passage and configured to execute a part of a refrigeration cycle; a wind direction regulating device disposed in the air outlet and configured to regulate a blowing direction of air conditioned by the heat exchanger; an imaging device configured to image an inside of the room; and a controller configured to control the wind direction regulating device on the basis of information regarding a user imaged by the imaging device; characterized in that the controller is configured to execute: a face recognition step of recognizing a face of the user if the face of the user has been within a face recognition range in a view range of the imaging device for a face recognition time having a predetermined time length, the face recognition range being bounded by two distances L1 and L2 from the imaging device, where L1<L2; an air-blowing start step of starting the refrigeration cycle and controlling, if the face of the user is recognized in the face recognition step, the wind direction regulating device to blow the conditioned air toward the user whose face is recognized or toward a close-in location where the user was when the face was recognized, the refrigeration cycle being not started otherwise; and an air-blowing stop step of stopping the refrigeration cycle in any of cases where the user whose face has been recognized moves out of the close-in location before a continuous determining time having a predetermined time length from start of the air-blowing start step elapses, where a stop determining time having a predetermined time length elapses after start of the air-blowing start step, and where the user whose face has been recognized moves out of the close-in location before the stop determining time elapses. a main body having an air inlet and an air outlet and disposed on a wall of a room; a fan configured to form an air passage that suctions air from the air inlet and extends to the air outlet; a heat exchanger disposed in the air passage and configured to execute a part of a refrigeration cycle; a wind direction regulating device disposed in the air outlet and configured to regulate a blowing direction of air conditioned by the heat exchanger; an imaging device configured to image an inside of the room; and a controller configured to control the wind direction regulating device on the basis of information regarding a user imaged by the imaging device; characterized in that the controller is configured to execute: a face recognition step of recognizing a face of the user if the face of the user has been within a face recognition range in a view range of the imaging device for a face recognition time having a predetermined time length, the face recognition range being bounded by two distances L1 and L2 from the imaging device, where L1<L2; an air-blowing start step of starting the refrigeration cycle and controlling, if the face of the user is recognized in the face recognition step, the wind direction regulating device to blow the conditioned air toward the user whose face is recognized or toward a close-in location where the user was when the face was recognized, the refrigeration cycle being not started otherwise; and an air-blowing stop step of stopping the refrigeration cycle in any of cases where the user whose face has been recognized moves out of the close-in location before a continuous determining time having a predetermined time length from start of the air-blowing start step elapses, where a stop determining time having a predetermined time length elapses after start of the air-blowing start step, and where the user whose face has been recognized moves out of the close-in location before the stop determining time elapses. a face recognition step of recognizing a face of the user if the face of the user has been within a face recognition range in a view range of the imaging device for a face recognition time having a predetermined time length, the face recognition range being bounded by two distances L1 and L2 from the imaging device, where L1<L2; an air-blowing start step of starting the refrigeration cycle and controlling, if the face of the user is recognized in the face recognition step, the wind direction regulating device to blow the conditioned air toward the user whose face is recognized or toward a close-in location where the user was when the face was recognized, the refrigeration cycle being not started otherwise; and an air-blowing stop step of stopping the refrigeration cycle in any of cases where the user whose face has been recognized moves out of the close-in location before a continuous determining time having a predetermined time length from start of the air-blowing start step elapses, where a stop determining time having a predetermined time length elapses after start of the air-blowing start step, and where the user whose face has been recognized moves out of the close-in location before the stop determining time elapses.