1. A non-transitory computer-readable recording medium that stores therein a detection program that causes a computer to execute a process comprising: detecting times at which a timelike change amount temporarily decreases in a plurality of images that are sequentially taken; and extracting, on a basis of the detected times, either a movement of beating time of a person included in the taken images or times at which the person included in the taken images beats time.