It is assumed that the moving body in the window is determined to be a person at a position at which the divisional small region setting window 151 is set at the upper end of fourth moving body detection frame 144.
In this case, in step S205, the “first person candidate point” is set in the window, and the coordinate information or the like is recorded in the person candidate point list.
As illustrated in
Further, the first person candidate point 161 is set to the center position of the divisional small region setting window 151, for example, at a position determined to be a person.
(Step S206)
In a case in which the setting of the “first person candidate point” and the list registration process are completed step S205 or in a case in which the moving body in the window is determined not to be a person in step S204, the process proceeds to step S206.
In step S206, it is determined whether or not all the processes for the moving body detection frame in the image frame serving as the processing target are completed.
In a case in which the processes are completed, the process proceeds to step S207.
In a case in which any one of the processes is not completed, the process returns to step S201, and the process for an unprocessed moving body detection frame is executed.
(Steps S207 and S208)