Image verification method, device, computer equipment and storage medium

By calculating the mean value of the feature vector of the image data set as the reference vector, the similarity between the image and the reference vector is verified, which solves the problem of low efficiency and accuracy of image data set verification in the existing technology, and achieves efficient and accurate image verification.

CN109242018BActive Publication Date: 2024-08-27PING AN TECH (SHENZHEN) CO LTD
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN201811010646.2
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2018-08-31
Publication Date
2024-08-27
Estimated Expiration
2038-08-31

AI Technical Summary

Technical Problem

The verification efficiency and accuracy of image data sets in the existing technology are low, mainly due to the small number of manual spot checks, which leads to an increase in accidental results and low verification efficiency.

Method used

By determining the feature vectors of the image set to be verified, calculating the mean of each feature vector to obtain the center vector as the reference vector, calculating the similarity between the image to be verified and the reference vector, and determining whether the preset conditions are met to verify the credibility of the image.

Benefits of technology

It saves a lot of manual spot checks, improves verification efficiency, reduces accidental results, and significantly improves verification accuracy.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN109242018B
    Figure CN109242018B
Patent Text Reader

Abstract

The present application discloses an image verification method, device, computer equipment and storage medium, which are applied to the field of image recognition and can effectively reduce accidental results caused by too few manual spot checks, thereby improving the accuracy of verification. The method part of the present application includes: determining the feature vector of each image in the image set to be verified to obtain a feature vector set; taking the average of each identical coordinate dimension on all feature vectors in the feature vector set; arranging each identical coordinate dimension after taking the average to obtain a center vector; taking the center vector as a reference vector; calculating the similarity between each image in the image set to be verified and the reference vector; determining whether the similarity between each image in the image set to be verified and the reference vector meets a preset condition; if the similarity between each image in the image set to be verified and the reference vector meets a preset condition, then determining that the image in the image set to be verified has passed the verification.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present application relates to the field of image recognition, and in particular to an image verification method, apparatus, computer equipment and storage medium. Background Art

[0002] Dataset verification refers to the process of verifying the credibility of the data in the data set. A common process is to verify whether the images in the image set meet the requirements. The specific requirements can be whether the images in the image set are a set of images of a certain person, or whether the data of the images of a certain person in the image set meet the requirements. At present, the complexity of various algorithms such as face recognition algorithms has increased, and usually relevant training of the acquired images is required. Therefore, in order to improve the training effect, it is necessary to verify the acquired image set to improve the training effect.

[0003] Traditionally, general image dataset verification only involves manual spot checks on a small number of samples in the image dataset. However, the amount of image data obtained during training is currently huge, and it is difficult to check a large amount of image data manually. In addition, due to the small number of samples, the small number of samples cannot well reflect the actual situation of the images in the image dataset, and the verification efficiency and accuracy are relatively low. Summary of the invention

[0004] Based on this, it is necessary to provide an image verification method, device, computer equipment and storage medium that effectively reduce accidental results caused by too few manual inspections and improve the accuracy of verification in response to the above technical problems.

[0005] An image verification method, comprising:

[0006] Determine the feature vector of each image in the image set to be verified to obtain a feature vector set;

[0007] Take the mean of each common coordinate dimension of all eigenvectors in the eigenvector set;

[0008] Arrange each identical coordinate dimension after taking the mean to obtain the center vector;

[0009] Take the center vector as the reference vector;

[0010] Calculate the similarity between each image in the image set to be verified and the reference vector;

[0011] Determine whether the similarity between each image in the image set to be verified and the reference vector meets the preset conditions;

[0012] If the similarity between each image in the to-be-verified image set and the reference vector meets a preset condition, it is determined that the image in the to-be-verified image set has passed the verification.

[0013] An image verification device, comprising:

[0014] A first determination module is used to determine the feature vector of each image in the image set to be verified to obtain a feature vector set;

[0015] A first calculation module, used for taking the average of each identical coordinate dimension of all feature vectors in the feature vector set determined by the first determination module;

[0016] An arrangement module, used for arranging each identical coordinate dimension after taking the average value by the first calculation module to obtain a central vector;

[0017] A second determination module is used to use the central vector obtained by the arrangement module as a reference vector;

[0018] A second calculation module, used to calculate the similarity between each image in the image set to be verified and the reference vector determined by the second determination module;

[0019] A determination module, used to determine whether the similarity between each image in the image set to be verified calculated by the second calculation module and the reference vector meets a preset condition;

[0020] The third determination module is used to determine that the image in the to-be-verified image set has passed the verification if the determination module determines that the similarity between each image in the to-be-verified image set and the reference vector meets a preset condition.

[0021] A computer device comprises a memory, a processor, and a computer program stored in the memory and executable on the processor, wherein the steps of the above-mentioned image verification method are implemented when the processor executes the computer program. A computer-readable storage medium stores the computer program, wherein the steps of the above-mentioned image verification method are implemented when the processor executes the computer program.

[0022] In the scheme implemented by the above-mentioned image verification method, device, computer equipment and storage medium, it can be seen that since the reference vector is the central vector of all feature vectors in the image to be verified, the credibility of the image in the image set to be verified can be determined by calculating the similarity between each image in the image set to be verified and the reference vector. A large amount of manpower for spot checks is saved, and the verification efficiency is improved. In addition, each image in the image set to be verified is compared, which effectively reduces the accidental results caused by too few manual spot checks and improves the accuracy of verification. BRIEF DESCRIPTION OF THE DRAWINGS

[0023] In order to more clearly illustrate the technical solutions of the embodiments of the present application, the drawings required for use in the description of the embodiments of the present application will be briefly introduced below. Obviously, the drawings described below are only some embodiments of the present application. For ordinary technicians in this field, other drawings can be obtained based on these drawings without paying creative labor.

[0024] Figure 1 is a schematic diagram of an application environment of the image verification method in this application;

[0025] Figure 2 This is a flow chart of an embodiment of the image verification method of the present application;

[0026] Figure 3 yes Figure 2 A schematic diagram of a specific implementation of step S60;

[0027] Figure 4 yes Figure 2 Another specific implementation diagram of step S60;

[0028] Figure 5 It is a schematic diagram of a specific implementation method of obtaining a center vector in the image verification method of the present application;

[0029] Figure 6 yes Figure 2 A schematic diagram of a specific implementation of step S50;

[0030] Figure 7 yes Figure 2 Another specific implementation diagram of step S50;

[0031] Figure 8 It is a schematic diagram of the structure of an embodiment of the image verification device in the present application;

[0032] Fig. 9 It is a schematic diagram of the structure of an embodiment of the computer device of the present application. DETAILED DESCRIPTION

[0033] The following will be combined with the drawings in the embodiments of the present application to clearly and completely describe the technical solutions in the embodiments of the present application. Obviously, the described embodiments are part of the embodiments of the present application, not all of the embodiments. Based on the embodiments in the present application, all other embodiments obtained by ordinary technicians in this field without creative work are within the scope of protection of this application.

[0034] The present application proposes an image verification method and an image verification device corresponding to the image verification method, wherein the image verification method is executed by the image verification device. The image verification method is applied in Figure 1In the application environment shown in the figure, the image set to be verified is verified by an image verification device to obtain a verification result. The image verification device can be implemented by an independent server or a server cluster composed of multiple servers. Please refer to Figure 2 , the image verification method of this application is specifically introduced below:

[0035] S10, determining the feature vector of each image in the image set to be verified to obtain a feature vector set;

[0036] The purpose of the present application is to verify the credibility of an image set, i.e., the image set to be verified, wherein the image set to be verified includes multiple images of the same type, for example, the images in the image set to be verified are face images; for another example, the image set to be verified is a certain animal image set. The credibility refers to the credibility of whether each image in the image set to be verified belongs to the same type of image, for example, whether the image set to be verified is the credibility of a face image set, or whether the image set to be verified is the credibility of a face image set of the same person, or whether the images in the image set to be verified are a certain animal, without specific limitation. Therefore, before verifying the image set to be verified, the image set to be verified needs to be acquired first.

[0037] After obtaining the image set to be verified, the feature vector of each image in the image set to be verified is determined, thereby obtaining a feature vector set composed of the feature vectors of each image in the image set to be verified.

[0038] It should be understood that in the present application, the feature vector of each image in the image set to be verified can be configured. For example, the image features of each image in the image set to be verified can be selected (defined) as Histogram of Oriented Gradient (HOG) features, or Haar features, etc. Correspondingly, based on the above selected image features, the feature vector of each image in the image set to be verified can be determined by a feature extraction model for obtaining the selected image features. The above feature extraction model can be a singular value decomposition (SVD) feature extraction model, a 2D discrete cosine transform (DCT) feature extraction model, etc. It should be noted that the above are only examples. In addition to the above examples, there may be other image feature extraction models. Taking the image set to be verified as a face image set as an example, the feature extraction model may be a face recognition feature extraction model. Specifically, the face recognition feature extraction model may be a local binary patterns (LBP) feature extraction model, a local derivative pattern (LDP) feature extraction model, and a feature extraction model trained based on a deep learning algorithm. It should be noted that the above feature extraction model also refers to a feature extraction model with increasingly higher feature vector recognition accuracy in the future, and there is no specific limitation. In some application scenarios, the above feature extraction model is a face recognition feature extraction model trained using a neural network on existing manually cleaned image data. It is worth mentioning that the face recognition feature extraction model trained using a neural network on existing manually cleaned image data is different from feature extraction models such as SVD, and the extracted feature vectors are more targeted at face recognition scenarios.

[0039] S20, taking the mean of each identical coordinate dimension of all feature vectors in the feature vector set;

[0040] It should be understood that since the above-mentioned feature vector set is obtained using the same feature vector extraction method, each feature vector in the feature vector set has the same arrangement order of coordinate dimensions. In the present application, taking the average of each identical coordinate dimension on all feature vectors in the feature vector set means that for all feature vectors in the feature vector set, the average of a certain coordinate dimension of the same dimension is taken, and the other coordinate dimensions are taken in the same way to obtain the mean of all coordinate dimensions. In short, the average of each coordinate dimension of the same dimension of all feature vectors is taken.

[0041] S30, arranging each identical coordinate dimension after taking the average to obtain a central vector;

[0042] As explained in the above steps, taking the mean of each identical coordinate dimension on all eigenvectors in the eigenvector set means taking the mean of a coordinate dimension of the same dimension for all eigenvectors in the eigenvector set, and taking the mean in the same way for other coordinate dimensions, thereby obtaining the mean of all coordinate dimensions, wherein, after taking the mean of each identical coordinate dimension on all eigenvectors in the eigenvector set, each identical coordinate dimension after taking the mean can be arranged to obtain a central vector, and illustratively, each identical coordinate dimension after taking the mean can be arranged in the order of the coordinate dimensions of the eigenvectors when the eigenvectors are not averaged, thereby obtaining the above-mentioned central vector.

[0043] S40, taking the center vector as a reference vector;

[0044] After taking the mean of each coordinate dimension of the same dimension of all feature vectors, each coordinate dimension after taking the mean is arranged to obtain the central vector, that is, the central vector of all images in the image set to be verified, and the central vector is used as the reference vector.

[0045] S50, calculating the similarity between each image in the image set to be verified and the reference vector;

[0046] Among them, the feature vector of each image in the image set to be verified has been determined in step 10. In this step, the similarity between the feature vector of each image in the image set to be verified and the reference vector is further determined, so as to obtain the similarity between each image in the image set to be verified and the reference vector.

[0047] S60, determining whether the similarity between each image in the image set to be verified and the reference vector meets a preset condition;

[0048] After obtaining the similarity between each image in the image set to be verified and the reference vector, it is determined whether the similarity between each image in the image set to be verified and the reference vector meets a preset condition.

[0049] S70: If the similarity between each image in the to-be-verified image set and the reference vector meets a preset condition, it is determined that the image in the to-be-verified image set has passed the verification.

[0050] It can be obtained from the above technical scheme that the present application provides an image verification method, in which the image verification method first obtains the image set to be verified; determines the feature vector of each image in the image set to be verified to obtain the feature vector set; takes the average of each identical coordinate dimension on all feature vectors in the feature vector set; arranges each identical coordinate dimension after taking the average to obtain the center vector; takes the center vector as the reference vector; calculates the similarity between each image in the image set to be verified and the reference vector; determines whether the similarity between each image in the image set to be verified and the reference vector meets the preset conditions; if the similarity between each image in the image set to be verified and the reference vector meets the preset conditions, it is determined that the image in the image set to be verified has passed the verification. It can be seen that since the reference vector is the center vector of all feature vectors in the image to be verified, by calculating the similarity between each image in the image set to be verified and the reference vector, the credibility of the image in the image set to be verified can be determined. A lot of spot check manpower is saved, and the verification efficiency is improved. In addition, each image in the image set to be verified is compared, which effectively reduces the accidental results caused by too few manual spot checks and improves the accuracy of verification.

[0051] It is worth mentioning that in some application scenarios of the present application, the verification of the above-mentioned image set to be verified is to make it more reliable when using this image set to be verified in the next step to train a new feature extraction model. However, the feature extraction model used by the image set to be verified is generally also a model that has been trained by the neural network. The initial feature extraction model may be part of the image data that is manually cleaned or randomly selected. After obtaining a feature extraction model with acceptable effect, the image data is continuously added, and the image set to be verified is then verified. Then, the new image data set and possibly the new network structure are used to continuously train the new feature extraction model, and finally an increasingly practical feature extraction model is iterated. The verification of the image set to be verified in this application is part of the iterative process of this feature extraction model.

[0052] In one embodiment, if Figure 3 As shown, in step S60, determining whether the similarity between each image in the image set to be verified and the reference vector meets a preset condition includes the following steps:

[0053] S61, determining a first number greater than or equal to a first preset threshold and a second number less than the first preset threshold in the similarity between each image in the image set to be verified and the reference vector;

[0054] After determining the similarity between each image in the image set to be verified and the reference vector, determine a first number greater than or equal to a first preset threshold and a second number less than a second preset threshold among the similarities between each image in all images and the reference vector.

[0055] The first preset threshold value may be configured according to an empirical value, for example, 0.5, 0.6, 0.7, etc., without specific limitation.

[0056] S62, determining the ratio of the first number to the second number;

[0057] After determining a first number higher than a first preset threshold and a second number lower than the first preset threshold in the similarity between each image in the image set to be verified and the reference vector, further determine a ratio of the first number to the second number.

[0058] S63. If the ratio of the first number to the second number is greater than or equal to a second preset threshold, it is determined that the preset condition is met.

[0059] In the present application, if the difference ratio between the first number and the second number is greater than or equal to the second preset threshold, it is determined that the image in the image set to be verified has passed the verification.

[0060] It can be obtained that, in the similarity between each image in all images and the reference vector, the first number greater than or equal to the first preset threshold value and the second number less than the first preset threshold value are determined; if the ratio is greater than the second preset threshold value, it is determined that the image in the image set to be verified has passed the verification. It can be seen that since the reference vector is the central vector of all feature vectors in the image to be verified, the similarity between the image of the same type and the reference vector in the correct image data set should not be less than the first preset threshold value. Therefore, by judging the ratio less than the first preset threshold value, the credibility of the image in the image set to be verified can be judged. A lot of manpower for spot checks is saved and the verification efficiency is improved. In addition, each image in the image set to be verified is compared, which effectively reduces the accidental results caused by too few manual spot checks and improves the accuracy of verification. It should also be noted that the second preset threshold value can be configured according to the empirical value, for example, 0.5, 0.55, 0.6, etc. There is no specific limitation.

[0061] In one embodiment, if Figure 4 As shown, in step S60, the determination of whether the similarity between each image in the image set to be verified and the reference vector meets a preset condition includes the following steps:

[0062] S61`, determining the variance of the similarity between each image in the image set to be verified and the reference vector;

[0063] S62`: If the variance is less than or equal to the third preset threshold, it is determined that the preset condition is met.

[0064] It should be noted that in addition to the preset conditions mentioned above, there may be other preset conditions, which are not specifically limited. For example, the standard deviation of all similarities between each image in all images and the benchmark vector is determined. If the standard deviation is less than or equal to the third preset threshold, it is determined that the above preset conditions are met. It should also be noted that the third preset threshold can be configured according to an empirical value, for example, 0.5, 0.55, 0.6, etc., which is not specifically limited. It should also be noted that the above first, second, and third preset thresholds can be the same threshold, which is not specifically limited here.

[0065] In one embodiment, if Figure 5 As shown, in step S20, that is, taking the average of each identical coordinate dimension on all feature vectors in the feature vector set, specifically includes: S20`, taking the arithmetic mean of each identical coordinate dimension on all feature vectors in the feature vector set; step S30, that is, arranging each identical coordinate dimension after taking the arithmetic mean to obtain the central vector, specifically includes: S30`, arranging each identical coordinate dimension after taking the arithmetic mean according to the original coordinate dimension order of the feature vector in the feature vector set to obtain the central vector.

[0066] It should be noted that, in addition to the above method, there may be other methods of taking the mean of all feature vectors in the feature vector set for each dimension, for example, taking the weighted average of all feature vectors in the feature vector set for each dimension, and there is no specific limitation.

[0067] In one embodiment, if Figure 6 As shown, in step S50, that is, determining the similarity between each image in all images in the image set to be verified and the reference vector, includes:

[0068] S51, calculating the cosine distance between the feature vector and the reference vector of each image in the image set to be verified;

[0069] S52, taking the cosine distance between the feature vector of each image in the image set to be verified and the reference vector as the similarity between each image and the reference vector.

[0070] It should be noted that in the present application, the method of determining the similarity between each image in the image set to be verified and the reference vector is different according to the type of feature extraction model for extracting the feature vector of each image. In specific application scenarios, the appropriate similarity calculation method can be selected based on the feature extraction model type, which depends on the training method used when training the feature extraction model. Generally, the cosine distance is used as the similarity calculation method, and there is no specific limitation. Exemplarily, when the feature extraction model type is the above-mentioned face recognition model trained by using a neural network on existing manually cleaned data, the cosine distance between the feature vector of each image in all images and the reference vector is used as the similarity between each image in the image set to be verified and the reference vector. It should also be noted that the feature extraction model of neural network training itself is a black box feature method. A large number of calculated parameters are determined in the feature extraction model of the neural network. During training, for a certain neural network structure, such as the VGG neural network architecture, etc., training data is input into the neural network structure, and eventually the optimal model parameters based on this neural network structure and training data are obtained, thereby forming a feature extraction model based on neural network training. When determining the similarity between each image in all the images in the image set to be verified and the benchmark vector, the present application uses a calculation method based on the output value used by the model parameter adjustment determined during training. Each training is different, such as the difference in the neural network structure, and the output value calculation method used for different model parameter adjustments is more commonly used. The cosine distance is therefore more commonly used. Therefore, in the present application, the cosine distance is also used to determine the similarity between each image in all the images in the image set to be verified and the benchmark vector, which has higher applicability.

[0071] It should be noted that if other calculation methods or even custom calculation formulas are used when calculating the output values ​​used for model parameter adjustment during training, then other calculation methods or even custom calculation formulas will be used to calculate the similarity between each image in the image set to be verified and the reference vector, which are not limited here and will not be described one by one. Figure 7 As shown, when the method for calculating the output value used by different model parameter adjustments is to use the Euclidean distance, in one embodiment, determining the similarity between each image in all images in the image set to be verified and the reference vector includes:

[0072] S51`, calculating the Euclidean distance between the feature vector and the reference vector of each image in the image set to be verified;

[0073] S52`, taking the Euclidean distance between the feature vector of each image in the image set to be verified and the reference vector as the similarity between each image and the reference vector.

[0074] In one embodiment, the images in the image set to be verified are face images; step S10, i.e. determining the feature vector of each image in the image set to be verified to obtain a feature vector set, includes: extracting the face recognition feature vector of each image in the image set to be verified by a face recognition feature extraction model to obtain a feature vector set.

[0075] That is to say, the image set to be verified is a face image set, and the above-mentioned image verification method is applied to the face image set to verify the credibility of the face image set. Correspondingly, the present application extracts the face recognition feature vector of each image in the image set to be verified through the face recognition feature extraction model to obtain a feature vector set. It can be understood that, depending on the actual face recognition feature extraction model, the face recognition features of the images in the image set to be verified are different, and the face recognition feature vectors of each image obtained will also be different.

[0076] It should be understood that the size of the serial numbers of the steps in the above embodiments does not mean the order of execution. The execution order of each process should be determined by its function and internal logic, and should not constitute any limitation on the implementation process of the embodiments of the present application.

[0077] In one embodiment, an image verification device is provided, which corresponds one-to-one to the image verification method in the above embodiment. Figure 8 As shown, the image verification device 80 includes a first determination module 801, a first calculation module 802, an arrangement module 803, a second determination module 804, a second calculation module 805, a determination module 806 and a third determination module 807. The functional modules are described in detail as follows:

[0078] The first determination module 801 is used to determine the feature vector of each image in the image set to be verified to obtain a feature vector set;

[0079] A first calculation module 802 is used to obtain the average of each identical coordinate dimension of all feature vectors in the feature vector set determined by the first determination module 801;

[0080] An arrangement module 803 is used to arrange each identical coordinate dimension after the first calculation module 802 takes the average value to obtain a central vector;

[0081] A second determination module 804 is used to use the central vector obtained by the arrangement module 803 as a reference vector;

[0082] A second calculation module 805 is used to calculate the similarity between each image in the image set to be verified and the reference vector determined by the second determination module 804;

[0083] The determination module 806 is used to determine whether the similarity between each image in the image set to be verified and the reference vector calculated by the second calculation module 805 meets a preset condition;

[0084] The third determination module 807 is configured to determine that the image in the to-be-verified image set has passed the verification if the determination module 806 determines that the similarity between each image in the to-be-verified image set and the reference vector meets a preset condition.

[0085] In one embodiment, the determination module 806 is specifically configured to:

[0086] Determine a first number greater than or equal to a first preset threshold and a second number less than the first preset threshold in the similarity between each image in the image set to be verified and the reference vector;

[0087] Determine the ratio of the first number to the second number;

[0088] If the ratio of the first number to the second number is greater than or equal to a second preset threshold, it is determined that the preset condition is met.

[0089] In one embodiment, the determination module 806 is specifically configured to:

[0090] Determine the variance of the similarity between each image in the image set to be verified and the reference vector;

[0091] If the variance is less than or equal to the third preset threshold, it is determined that the preset condition is met.

[0092] In one embodiment, the first calculation module 802 is specifically used to: take the arithmetic mean of each identical coordinate dimension on all feature vectors in the feature vector set; the arrangement module 803 is specifically used to: arrange each identical coordinate dimension after taking the arithmetic mean according to the original coordinate dimension order of the feature vector in the feature vector set to obtain the central vector.

[0093] In one embodiment, the second calculation module 805 is specifically used for:

[0094] Calculate the cosine distance between the feature vector of each image in the image set to be verified and the reference vector;

[0095] The cosine distance between the feature vector of each image in the image set to be verified and the reference vector is used as the similarity between each image and the reference vector.

[0096] In one embodiment, the second calculation module 805 is specifically used for:

[0097] Calculate the Euclidean distance between the feature vector and the reference vector of each image in the image set to be verified;

[0098] The Euclidean distance between the feature vector of each image in the image set to be verified and the reference vector is used as the similarity between each image and the reference vector.

[0099] The first determination module 801 is specifically used to extract the face recognition feature vector of each image in the face image set to be verified by using a face recognition feature extraction model to obtain a feature vector set.

[0100] From the above technical solution, the present application provides an image verification device, which first obtains a set of images to be verified; determines the feature vector of each image in the set of images to be verified to obtain a feature vector set; takes the average of each identical coordinate dimension on all feature vectors in the feature vector set; arranges each identical coordinate dimension after taking the average to obtain a center vector; uses the center vector as a reference vector; calculates the similarity between each image in the set of images to be verified and the reference vector; determines whether the similarity between each image in the set of images to be verified and the reference vector meets a preset condition; if the similarity between each image in the set of images to be verified and the reference vector meets a preset condition, it is determined that the image in the set of images to be verified has passed the verification. It can be seen that since the reference vector is the center vector of all feature vectors in the image to be verified, the image verification device can determine the credibility of the image in the set of images to be verified by calculating the similarity between each image in the set of images to be verified and the reference vector. A lot of manpower for spot checks is saved, and the verification efficiency is improved. In addition, each image in the set of images to be verified is compared, which effectively reduces the accidental results caused by too few manual spot checks and improves the accuracy of verification.

[0101] For the specific definition of the image verification device, please refer to the definition of the image verification method above, which will not be repeated here. Each module in the above-mentioned image verification device can be implemented in whole or in part by software, hardware and a combination thereof. The above-mentioned modules can be embedded in or independent of the processor in the computer device in the form of hardware, or can be stored in the memory of the computer device in the form of software, so that the processor can call and execute the operations corresponding to the above modules.

[0102] In one embodiment, a computer device is provided. The computer device may be a server, and its internal structure diagram may be as follows: Fig. 9As shown. The computer device includes a processor, a memory, a network interface and a database connected through a system bus. Among them, the processor of the computer device is used to provide computing and control capabilities. The memory of the computer device includes a non-volatile storage medium and an internal memory. The non-volatile storage medium stores an operating system, a computer program and a database. The internal memory provides an environment for the operation of the operating system and the computer program in the non-volatile storage medium. The database of the computer device is used to store the acquired image set to be verified, store the feature vector corresponding to each image in the verification image set, etc. The network interface of the computer device is used to communicate with an external terminal through a network connection. When the computer program is executed by the processor, an image verification method is implemented.

[0103] In one embodiment, a computer device is provided, including a memory, a processor, and a computer program stored in the memory and executable on the processor, wherein the processor implements the following steps when executing the computer program:

[0104] Determine the feature vector of each image in the image set to be verified to obtain a feature vector set;

[0105] Take the mean of each common coordinate dimension of all eigenvectors in the eigenvector set;

[0106] Arrange each identical coordinate dimension after taking the mean to obtain the center vector;

[0107] Take the center vector as the reference vector;

[0108] Calculate the similarity between each image in the image set to be verified and the reference vector;

[0109] Determine whether the similarity between each image in the image set to be verified and the reference vector meets the preset conditions;

[0110] If the similarity between each image in the to-be-verified image set and the reference vector meets a preset condition, it is determined that the image in the to-be-verified image set has passed the verification.

[0111] It should be noted that, in the computer device provided in the present application, other steps or functions implemented when the processor executes the computer program can be referred to the description in the aforementioned method embodiment, and will not be repeated here one by one.

[0112] In one embodiment, a computer readable storage medium is provided, on which a computer program is stored, and when the computer program is executed by a processor, the following steps are implemented:

[0113] Determine the feature vector of each image in the image set to be verified to obtain a feature vector set;

[0114] Take the mean of each common coordinate dimension of all eigenvectors in the eigenvector set;

[0115] Arrange each identical coordinate dimension after taking the mean to obtain the center vector;

[0116] Take the center vector as the reference vector;

[0117] Calculate the similarity between each image in the image set to be verified and the reference vector;

[0118] Determine whether the similarity between each image in the image set to be verified and the reference vector meets the preset conditions;

[0119] If the similarity between each image in the to-be-verified image set and the reference vector meets a preset condition, it is determined that the image in the to-be-verified image set has passed the verification.

[0120] It should be noted that, in the readable storage medium provided by the present application, other steps or functions implemented when the computer program is executed by the processor can be found in the description of the aforementioned method embodiment, and will not be repeated here one by one.

[0121] Those skilled in the art can understand that all or part of the processes in the above-mentioned embodiment methods can be completed by instructing the relevant hardware through a computer program, and the computer program can be stored in a non-volatile computer-readable storage medium. When the computer program is executed, it can include the processes of the embodiments of the above-mentioned methods. Among them, any reference to memory, storage, database or other media used in the embodiments provided in this application can include non-volatile and / or volatile memory. Non-volatile memory can include read-only memory (ROM), programmable ROM (PROM), electrically programmable ROM (EPROM), electrically erasable programmable ROM (EEPROM) or flash memory. Volatile memory can include random access memory (RAM) or external cache memory. As an illustration and not limitation, RAM is available in many forms, such as static RAM (SRAM), dynamic RAM (DRAM), synchronous DRAM (SDRAM), double data rate SDRAM (DDRSDRAM), enhanced SDRAM (ESDRAM), synchronous link (Synchlink) DRAM (SLDRAM), memory bus (Rambus) direct RAM (RDRAM), direct memory bus dynamic RAM (DRDRAM), and memory bus dynamic RAM (RDRAM).

[0122] Those skilled in the art can clearly understand that for the convenience and simplicity of description, only the division of the above-mentioned functional units and modules is used as an example. In actual applications, the above-mentioned functions can be distributed and completed by different functional units and modules as needed, that is, the internal structure of the device can be divided into different functional units or modules to complete all or part of the functions described above.

[0123] The embodiments described above are only used to illustrate the technical solutions of the present application, rather than to limit them. Although the present application has been described in detail with reference to the aforementioned embodiments, a person skilled in the art should understand that the technical solutions described in the aforementioned embodiments may still be modified, or some of the technical features may be replaced by equivalents. Such modifications or replacements do not deviate the essence of the corresponding technical solutions from the spirit and scope of the technical solutions of the embodiments of the present application, and should all be included in the protection scope of the present application.

Claims

1. An image verification method, characterized in that: include: Determine the feature vector of each image in the image set to be verified to obtain a feature vector set; Taking the mean of each common coordinate dimension on all eigenvectors in the eigenvector set; wherein, for all eigenvectors in the eigenvector set, taking the mean of a certain common coordinate dimension, and taking the mean of the other coordinate dimensions in the same manner, thereby obtaining the mean of all coordinate dimensions; Arrange each of the same coordinate dimensions after taking the mean to obtain a center vector; Taking the central vector as a reference vector; Calculating the similarity between each image in the image set to be verified and the reference vector; Determining whether the similarity between each image in the image set to be verified and the reference vector meets a preset condition; If the similarity between each image in the image set to be verified and the reference vector meets the preset condition, then determining that the image in the image set to be verified has passed the verification; Determining whether the similarity between each image in the image set to be verified and the reference vector meets a preset condition includes: Determine a first number of similarities between each image in the set of images to be verified and the reference vector that is greater than or equal to a first preset threshold, and a second number that is less than the first preset threshold; determining a ratio of the first number to the second number; If the ratio of the first number to the second number is greater than or equal to a second preset threshold, it is determined that the preset condition is met.

2. The image verification method according to claim 1, wherein: Determining whether the similarity between each image in the image set to be verified and the reference vector meets a preset condition includes: Determining the variance of the similarity between each image in the set of images to be verified and the reference vector; If the variance is less than or equal to a third preset threshold, it is determined that the preset condition is met.

3. The image verification method according to claim 2, wherein: Taking the mean of each identical coordinate dimension of all feature vectors in the feature vector set includes: Taking the arithmetic mean of each identical coordinate dimension of all eigenvectors in the eigenvector set; Arrange each of the same coordinate dimensions after taking the mean to obtain a center vector, including: The center vector is obtained by arranging each of the same coordinate dimensions after taking the arithmetic mean according to the original coordinate dimension order of the feature vectors in the feature vector set.

4. The image verification method according to claim 3, wherein: Calculating the similarity between each image in the set of images to be verified and the reference vector includes: Calculating the cosine distance between the feature vector of each image in the image set to be verified and the reference vector; The cosine distance between the feature vector of each image in the image set to be verified and the reference vector is used as the similarity between each image and the reference vector.

5. The image verification method according to claim 4, wherein: Calculating the similarity between each image in the set of images to be verified and the reference vector includes: Calculating the Euclidean distance between the feature vector of each image in the image set to be verified and the reference vector; The Euclidean distance between the feature vector of each image in the image set to be verified and the reference vector is used as the similarity between each image and the reference vector.

6. The image verification method according to claim 1, wherein: The image set to be verified is a set of face images to be verified, and determining the feature vector of each image in the image set to be verified to obtain a feature vector set includes: The face recognition feature extraction model is used to extract the face recognition feature vector of each image in the face image set to be verified to obtain the feature vector set.

7. An image verification device, characterized in that: include: A first determination module is used to determine the feature vector of each image in the image set to be verified to obtain a feature vector set; a first calculation module, configured to calculate a mean value for each identical coordinate dimension of all eigenvectors of the eigenvector set determined by the first determination module; an arrangement module, configured to arrange each of the same coordinate dimensions after the first calculation module takes the average value to obtain a center vector; a second determining module, configured to use the central vector obtained by the arrangement module as a reference vector; a second calculation module, configured to calculate the similarity between each image in the image set to be verified and the reference vector determined by the second determination module; a determination module, configured to determine whether the similarity between each image in the image set to be verified and the reference vector calculated by the second calculation module satisfies a preset condition; a third determining module, configured to determine that an image in the to-be-verified image set has passed verification if the determination module determines that the similarity between each image in the to-be-verified image set and the reference vector satisfies the preset condition; The image verification device is used to implement the image verification method according to claim 1.

8. A computer device comprising a memory, a processor, and a computer program stored in the memory and executable on the processor, wherein: When the processor executes the computer program, the steps of the image verification method according to any one of claims 1 to 6 are implemented.

9. A computer-readable storage medium storing a computer program, characterized in that: When the computer program is executed by a processor, the steps of the image verification method according to any one of claims 1 to 6 are implemented.