1. An imaging device, comprising: an imaging unit configured to image an object and output a captured image; a face recognition unit configured to recognize a face included in the captured image and detect a direction and a position of the recognized face; and a group detection unit configured to detect 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.