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 according to a predetermined frame interval; a comparison unit configured to analyze a plurality of first analysis areas in a first frame to obtain a first analysis result for each first analysis area and a plurality of second analysis areas in a second frame to obtain a second analysis result for each second analysis area, the first frame and second frame being in a frame group among the plurality of frame groups specified by the specification unit, wherein each of the first analysis areas corresponds to a corresponding second analysis area, and further configured to individually compare first analysis results and second analysis results of each corresponding first analysis area and second analysis area; and an extraction unit configured to extract a frame to be output from each of the plurality of frame groups based on a comparison result for each of the plurality of frame groups by the comparison unit.