Method and apparatus for recognizing client feature, and storage medium
First Claim
Patent Images
1. A method for recognizing a client feature, comprising:
- obtaining a client feature and a pre-stored template image feature;
projecting the obtained client feature and the obtained pre-stored template image feature according to a preset projection matrix, to generate a projection feature pair, the preset projection matrix being formed by training an energy function using first template image features of a same object and second template image features of different objects;
performing similarity calculation on the projection feature pair according to a preset similarity calculation rule, to generate a similarity result; and
prompting the generated similarity result;
wherein the preset similarity calculation rule comprises a similarity probability function, and the similarity probability function is generated according to a preset similarity metric function; and
the energy function comprises the preset projection matrix and the preset projection matrix is obtained by training the energy function until similarity between the first template image features of the same object is the greatest and similarity between the second template image features of the different objects is the smallest;
wherein a formula of the similarity probability function is;
QCS(xi,xj)=(1 exp(dist(xi,xj)−
b))−
1 wherein, (xi, xj) is an image feature pair formed by two different template image features, b is a metric parameter, QCS is the similarity probability function, dist is the preset similarity metric function, and exp is an exponential function with a base being a natural logarithm e.
1 Assignment
0 Petitions
Accused Products
Abstract
In the present disclosure, a client feature and a pre-stored template image feature are obtained; the obtained client feature and template image feature are projected according to a preset projection matrix, to generate a projection feature pair, where the projection matrix is formed by training of a first template image feature of a same object and a second template image feature of a different object; and similarity calculation is performed on the projection feature pair according to a preset similarity calculation rule, to generate a similarity result and prompt the similarity result to a client.
14 Citations
12 Claims
-
1. A method for recognizing a client feature, comprising:
-
obtaining a client feature and a pre-stored template image feature; projecting the obtained client feature and the obtained pre-stored template image feature according to a preset projection matrix, to generate a projection feature pair, the preset projection matrix being formed by training an energy function using first template image features of a same object and second template image features of different objects; performing similarity calculation on the projection feature pair according to a preset similarity calculation rule, to generate a similarity result; and prompting the generated similarity result; wherein the preset similarity calculation rule comprises a similarity probability function, and the similarity probability function is generated according to a preset similarity metric function; and the energy function comprises the preset projection matrix and the preset projection matrix is obtained by training the energy function until similarity between the first template image features of the same object is the greatest and similarity between the second template image features of the different objects is the smallest; wherein a formula of the similarity probability function is;
QCS(xi,xj)=(1 exp(dist(xi,xj)−
b))−
1wherein, (xi, xj) is an image feature pair formed by two different template image features, b is a metric parameter, QCS is the similarity probability function, dist is the preset similarity metric function, and exp is an exponential function with a base being a natural logarithm e. - View Dependent Claims (2, 3, 4)
-
-
5. An apparatus for recognizing a client feature, comprising:
-
memory; one or more processors; and one or more programs stored in the memory and configured for execution by the one or more processors, the one or more programs comprising the following instruction modules; a feature obtaining module, configured to obtain a client feature, and obtain a pre-stored template image feature; a projection module, configured to project the obtained client feature and the obtained pre-stored template image feature according to a preset projection matrix, to generate a projection feature pair, the preset projection matrix being formed by training an energy function using first template image features of a same object and second template image features of different objects; a similarity calculation module, configured to perform similarity calculation on the projection feature pair according to a preset similarity calculation rule, to generate a similarity result; and a prompting module, configured to prompt the generated similarity result; wherein the preset similarity calculation rule comprises a similarity probability function, and the similarity probability function is generated according to a preset similarity metric function; and the energy function comprises the preset projection matrix and the preset projection matrix is obtained by training the energy function until similarity between the first template image features of the same object is the greatest and similarity between the second template image features of the different objects is the smallest; wherein a formula of the similarity probability function is;
QCS(xi,xj)=(1 exp(dist(xi,xj)−
b))−
1wherein, (xi, xj) is an image feature pair formed by two different template image features, b is a metric parameter, QCS is the similarity probability function, dist is the preset similarity metric function, and exp is an exponential function with a base being a natural logarithm e. - View Dependent Claims (6, 7, 8)
-
-
9. A non-transitory storage medium, having a processor executable instruction stored therein, and the processor executable instruction being used to enable a processor to complete the following operations:
-
obtaining a client feature and a pre-stored template image feature; projecting the obtained client feature and the obtained pre-stored template image feature according to a preset projection matrix, to generate a projection feature pair, the preset projection matrix being formed by training an energy function using first template image features of a same object and second template image features of different objects; performing similarity calculation on the projection feature pair according to a preset similarity calculation rule, to generate a similarity result; and prompting the generated similarity result; wherein the preset similarity calculation rule comprises a similarity probability function, and the similarity probability function is generated according to a preset similarity metric function; and the energy function comprises the preset projection matrix and the preset projection matrix is obtained by training the energy function until similarity between the first template image features of the same objet is the greatest and similarity between the second template image features of the different objects is the smallest; wherein a formula of the similarity probability function is;
QCS(xi,xj)=(1 exp(dist(xi,xj)−
b))−
1wherein, (xi, xj) is an image feature pair formed by two different template image features, b is a metric parameter, QCS is the similarity probability function, dist is the preset similarity metric function, and exp is an exponential function with a base being a natural logarithm e. - View Dependent Claims (10, 11, 12)
-
Specification