BACKGROUND

Target matching refers to returning a video or an image, which has the same target as a query video or a query image, in a database. Target matching technology is widely used in security monitoring systems at airports, stations, schools, shopping malls, and the like.

SUMMARY

The present disclosure relates to the field of computer vision technologies, and in particular, to a target matching method and apparatus, an electronic device, and a storage medium.

The present disclosure provides a target matching technical solution.

According to one aspect of the present disclosure, a target matching method is provided, including:

respectively extracting a feature vector of each frame in a query image sequence and a feature vector of each frame in a candidate image sequence, where the query image sequence includes a target to be matched;

determining a self-expression feature vector of the query image sequence based on the feature vector of each frame in the query image sequence, and determining a self-expression feature vector of the candidate image sequence based on the feature vector of each frame in the candidate image sequence;

determining a collaborative expression feature vector of the query image sequence based on the feature vector of each frame in the query image sequence and the self-expression feature vector of the candidate image sequence, and determining a collaborative expression feature vector of the candidate image sequence based on the feature vector of each frame in the candidate image sequence and the self-expression feature vector of the query image sequence;

determining a similarity feature vector between the query image sequence and the candidate image sequence based on the self-expression feature vector of the query image sequence, the collaborative expression feature vector of the query image sequence, the self-expression feature vector of the candidate image sequence, and the collaborative expression feature vector of the candidate image sequence; and

determining a matching result between the query image sequence and the candidate image sequence based on the similarity feature vector.

According to one aspect of the present disclosure, a target matching apparatus is provided, including:

an extraction module, configured to respectively extract a feature vector of each frame in a query image sequence and a feature vector of each frame in a candidate image sequence, where the query image sequence includes a target to be matched;

a first determination module, configured to respectively determine a self-expression feature vector of the query image sequence based on the feature vector of each frame in the query image sequence, and determine a self-expression feature vector of the candidate image sequence based on the feature vector of each frame in the candidate image sequence;

a second determination module, configured to determine a collaborative expression feature vector of the query image sequence based on the feature vector of each frame in the query image sequence and the self-expression feature vector of the candidate image sequence, and determine a collaborative expression feature vector of the candidate image sequence based on the feature vector of each frame in the candidate image sequence and the self-expression feature vector of the query image sequence;

a third determination module, configured to determine a similarity feature vector between the query image sequence and the candidate image sequence based on the self-expression feature vector of the query image sequence, the collaborative expression feature vector of the query image sequence, the self-expression feature vector of the candidate image sequence, and the collaborative expression feature vector of the candidate image sequence; and

a fourth determination module, configured to determine a matching result between the query image sequence and the candidate image sequence based on the similarity feature vector.

According to one aspect of the present disclosure, an electronic device is provided, including:

a processor; and

a memory configured to store processor-executable instructions;

where when the processor-executable instructions are executed by the processor, the processor is configured to execute the foregoing target matching method.

According to one aspect of the present disclosure, a non-transitory computer-readable storage medium is provided, having computer program instructions stored thereon, where the foregoing target matching method is implemented when the computer program instructions are executed by a processor.

Exemplary embodiments are described in detail below according to the following reference accompanying drawings, and other features and aspects of the present disclosure become clear.

