CPC G06T 7/248 (2017.01) [G06T 7/62 (2017.01); G06V 20/40 (2022.01); G06T 2207/10016 (2013.01)] | 16 Claims |
1. An apparatus comprising:
at least one processor; and
a memory coupled to the at least one processor, the memory having instructions that, when executed by the at least one processor, perform operations to:
acquire a video image captured by a camera, the video image including a first frame image having a first time stamp and a second frame image having a second time stamp;
detect a subject as a tracking target from each of the first frame image and the second frame image and identify a detection position of the detected subject;
determine whether the tracking targets are in a moving state or in a non-moving state in each combination of the tracking target detected from the first frame image and the tracking target detected from the second frame image based on the identified detection position;
determine the combination is valid based on a past moving amount and a past moving direction of the tracking targets in a frame image previous to the second frame image in a case where the combination of the tracking targets is determined to be a combination of tracking targets in the non-moving state; and
perform matching determination to determine whether the combination is a combination of identical tracking targets in a case where the combination of the tracking targets is determined to be a combination of tracking targets in the non-moving state and in a case where the combination of the tracking targets is determined to be a valid combination of tracking targets in the moving state, and restrict the matching determination in a case where the combination of the tracking targets is determined not to be a valid combination of tracking targets in the moving state by the second determination.
|