1. An image processing apparatus for extracting a frame to be output among a plurality of frames included in a moving image, the image processing apparatus comprising: a specification unit configured to specify, among the plurality of frames, a plurality of frame groups having at least one frame included between the plurality of frame groups in an array of the plurality of frames in the moving image, according to a predetermined frame interval; and an extraction unit configured to analyze each of the plurality of frame groups specified by the specification unit and extract a frame to be output from each of the plurality of frame groups based on a result of the analysis.