1. An imaging device, comprising: an imaging unit configured to image an object and output a captured image a memory that is configured to store computer executable instructions; and a processor that is configured to execute the computer executable instructions to perform operations, comprising: imaging an object and outputting a captured image; recognizing a face included in the captured image and detecting a direction and a position of the recognized face; detecting a group formed by the faces included in the captured image based on directions and positions of two faces being adjacent to each other among the faces included in the captured image; outputting a control signal indicating a direction of the group; controlling an angle of view for imaging; and controlling an imaging direction of the imaging unit based on the control signal such that the face included in the group is included in the captured image, wherein controlling the angle of view based on the control signal such that the face included in the group is included in the captured image, and controlling the imaging direction based on the control signal to switch among the plurality of the groups one by one in a case where the detecting detects the plurality of the groups in the captured image.