further executes a second person detection process of setting a person determination detection frame including the first person candidate point or a first person candidate point neighbor pixel and determining whether or not an image in the person determination detection frame is a person on the basis of an image feature quantity in the person determination detection frame.
(20)
A program causing an image processing apparatus to execute image processing,
in which the image processing apparatus includes a data processing unit configured to execute a person detection process from an image, and
the program causes the data processing unit to execute
a first person detection process of setting a divisional small region setting window in a moving body detection frame surrounding a moving body region detected from the image, determining whether or not an image in the window is a person on the basis of the number of moving body pixels of each divisional small region, and setting a first person candidate point in the window in a case in which the image is determined to be a person, and
a second person detection process of setting a person determination detection frame including the first person candidate point or a first person candidate point neighbor pixel and determining whether or not an image in the person determination detection frame is a person on the basis of an image feature quantity in the person determination detection frame.