In a case in which it is determined in step S404 that the moving body in the moving body detection frame in which the second person candidate point is set is a person, the process proceeds to step S406.
On the other hand, in a case in which it is determined in step S404 that the moving body in the moving body detection frame in which the second person candidate point is set is not a person, the process proceeds to step S405.
(Step S405)
In a case in which it is determined in step S402 that there is no second person candidate point in the moving body detection frame or in a case in which it is determined in step S404 that the moving body in the moving body detection frame in which the second person candidate point is set is not a person, the process proceeds to step S405.
In step S405, the moving body of the moving body detection frame in which the second person candidate point is set is determined not to be a person, and it is recorded in the metadata.
In other words, the object type of the object of the moving body detection frame in which the second person candidate point is set is recorded in the metadata described above with reference to
(Steps S406 to S408)
On the other hand, in a case in which it is determined in step S404 that the moving body in the moving body detection frame in which the “second person candidate point” is set is a person, the process proceeds to step S406.
In step S406, it is determined whether or not a process for a current processing frame and a plurality of previous and next frames specified in advance is completed.