Summary of the invention
In view of the above drawbacks of the prior art, the technical problem to be solved by the present invention is to how realize secret protection
Recognition of face.
To achieve the above object, the present invention provides a kind of face feature vector secret protection recognition methods.In the present invention,
The service provider for providing recognition of face will cannot directly acquire the face image of references object and identified object, and service mentions
It is not enough to carry out the face image that inverse operation obtains script for the information that quotient obtains.User, that is, references object, which uses, has face special
The camera for levying vector secret protection recognition methods shoots facial photo, locally carries out the place for face image in camera
Reason, processing include calculating the original feature vector that network obtains one group of characterization facial characteristics by face characteristic, are added by the vector
It is upper random generate, obtain a N-dimensional after the adaptive noise of Gaussian distributed plus the feature vector M that makes an uproarRNoiseFace.Then
It is waken up by far call interface and the service provider of recognition of face service is provided, service provider will add feature vector of making an uproar
MRNoiseFaceIt is put into wait in database and is matched identification.Similarly, if there are secret protection needs in identification process, known
Side does not need to dispose the camera with face feature vector secret protection recognition methods, and local detection simultaneously intercepts face image,
Calculate specified identified object adds the feature vector M that makes an uproarINoiseFaceAnd the references object M that will be stored with service providerRNoiseFace
By comparing determining device.Multilevel iudge device utilizes SVM (Support Vector Machine) or Euclidean distance threshold determination, most
The matching result of output face eventually.When parameter setting is reasonable, it still is able to keep the recognition of face precision of script using this method.
Specifically, a kind of face feature vector secret protection recognition methods includes the following steps:
S10, references object facial image secret protection;
S20 is identified the secret protection of object facial image;
S30 identifies the identified object.
Further, the references object facial image secret protection includes:
S101 shoots the references object face using the camera with references object facial image privacy protection function
Photo;
S102 calculates the original feature vector M of references object face described in network query function by face characteristicRFace;
S103, to the original feature vector M of the references object faceRFaceCarry out plus make an uproar processing, calculates the reference pair
Add the feature vector M that makes an uproar as faceRNoiseFace;
The references object face is added the feature vector M that makes an uproar by S104RNoiseFaceIt is saved in database.
Further, the step S104 includes:
S1040 utilizes far call interface call service end;
The references object face is added the feature vector M that makes an uproar by S1041RNoiseFaceIt is transferred to the server-side;
S1042, the server-side add the feature vector M that makes an uproar for the references object faceRNoiseFaceIt is stored in database
In and clustered.
Further, the identified object facial image secret protection includes:
S201 uses the camera shooting identified object with identified object facial image privacy protection function
Facial photo;
S202 calculates the original feature vector M of the identified subject faceIFace;
S203, to the original feature vector M of the identified subject faceIFaceCarry out plus make an uproar processing, calculates identified pair
Add the feature vector M that makes an uproar as faceINoiseFace。
Further, carrying out identification to the identified object includes:
S301, the identified subject face add the feature vector M that makes an uproarINoiseFaceWith the references object face plus make an uproar
Feature vector MRNoiseFaceIt is compared;
S302 exports the face matching result of the identified object.
Further, the step S103 adds device of making an uproar to carry out adding processing of making an uproar using adaptive Gauss, and the Gauss, which adds, to make an uproar
Device includes the noise coefficient matrix M of pre-set N*NRk, default N-dimensional variance vectors MRσ_default, shooting face number
The N-dimensional variance vectors M gone out according to statisticsRσ_statWith the MRkDiagonal line on N number of noise figure kRn;When the face number of shooting is small
When the lower limit Rsmall_num of references object face number, that is, when the face number < Rsmall_num shot, MRσ=0.8*
MRσ_default+0.2*MRσ_stat;When the face number of shooting is greater than the lower limit Rsmall_num of references object face number and claps
When the face number taken the photograph is less than the larger threshold value Rbig_num of references object face number, that is, face number > Rsmall_ for shooting
Num and when < Rbig_num, MRσ=0.5*MRσ_default+0.5*MRσ_stat;When the face number of shooting is greater than references object face
When the larger threshold value Rbig_num of number, that is, M when the face number > Rbig_num shotRσ=0.2*MRσ_default+0.8*
MRσ_stat;The M as the face number of shooting > > Rbig_num (the face number > 10*Rbig_num shot)Rσ=MRσ_stat。
Further, above-mentioned MRkDiagonal line on N number of noise figure kRn, in Gaussian Profile (MRk*MRσ) in can multiply as value
Get up, the specific value of N number of noise figure can be set to different value, respectively according to identification plus the demand made an uproar on diagonal line
(kR1, kR2..., kRn)。
Further, the noise vector M that the Gauss adds the device Gauss that makes an uproar that the every wheel of device of making an uproar is added to generate one group of N-dimensionalRNoise=Gauss
Distribution (0, MRk*MRσ), by the MRFaceValue and the M on often one-dimensionalRNoiseIt is added, generate plus make an uproar feature vector
MRNoiseFace。
Further, the step S203 includes that device of making an uproar is added to carry out adding processing of making an uproar, the Gauss using adaptive Gauss
Adding device of making an uproar includes the noise coefficient matrix M of pre-set N*NIk, default N-dimensional variance vectors MIσ_default, shooting people
The N-dimensional variance vectors M that face data statistics goes outIσ_statWith the MIkDiagonal line on N number of noise figure kIn;When the face number of shooting
When mesh is less than the lower limit Ismall_num of references object face number, that is, when the face number < Ismall_num shot, MIσ=
0.8*MIσ_default+0.2*MIσ_stat;When the face number of shooting is greater than the lower limit Ismall_num of references object face number simultaneously
And the face number of shooting is when being less than the larger threshold value Ibig_num of references object face number, that is, the face number that shoots >
Ismall_num and when < Ibig_num, MIσ=0.5*MIσ_default+0.5*MIσ_stat;When the face number of shooting is greater than reference
When the larger threshold value Ibig_num of subject face number, that is, M when the face number > Ibig_num shotIσ=0.2*MIσ_default+
0.8*MIσ_stat;The M as the face number of shooting > > Ibig_num (the face number > 10*Ibig_num shot)Iσ=
MIσ_stat。
Further, above-mentioned MIkDiagonal line on N number of noise figure kIn, in Gaussian Profile (MIk*MIσ) in can multiply as value
Get up, the specific value of N number of noise figure can be set to different value, respectively according to identification plus the demand made an uproar on diagonal line
(kI1, kI2..., kIn)。
Further, the noise vector M that the Gauss adds the device Gauss that makes an uproar that the every wheel of device of making an uproar is added to generate one group of N-dimensionalINoise=Gauss
Distribution (0, MIk*MIσ), by the MIFaceValue and the M on often one-dimensionalINoiseIt is added, generate plus make an uproar feature vector
MINoiseFace。
Further, the step S301 includes:
The identified subject face is added the feature vector M that makes an uproar by S3010INoiseFaceWith the references object face
Add the feature vector M that makes an uproarRNoiseFaceInput multilevel iudge device;
S3011, multilevel iudge device utilize SVM (Support Vector Machine) or Euclidean distance threshold value, judge institute
That states identified subject face adds the feature vector M that makes an uproarINoiseFaceWith the references object face respectively clustered in the database
Plus make an uproar feature vector MRNoiseFaceSimilarity degree.
The invention has the following beneficial effects:
(1) service provider for providing recognition of face service does not need that references object can not be directly acquired and is identified
The face image of object;
(2) adaptive Gauss is added in local pretreatment and adds device of making an uproar, (i.e. pond is from facial image in pooling
Extract a kind of mathematical method for being taken during face characteristic) on the basis of further reduced inverse behaviour is carried out to feature vector
Make a possibility that obtaining raw facial image;
(3) facial eigenvectors after making the service provider for providing recognition of face service only store plus make an uproar.Even if letting out
Database information is revealed, the face image of service user still can ensure privacy.Simultaneously as the management of camera, people
The reception preservation of face image is locally determined by user, reduces the pressure in service provider data storage and because data are let out
Reveal and bring morals and legal risk.
(4) whole processing that the present invention refers to are all without departing from the local machine where camera, such as video camera, mobile phone, a
People's computer etc., it is entirely avoided face's privacy leakage risk caused by insecurity factor in network transmission.
It is described further below with reference to technical effect of the attached drawing to design of the invention, specific structure and generation, with
It is fully understood from the purpose of the present invention, feature and effect.
Specific embodiment
Multiple preferred embodiments of the invention are introduced below with reference to Figure of description, keep its technology contents more clear and just
In understanding.The present invention can be emerged from by many various forms of embodiments, and protection scope of the present invention not only limits
The embodiment that Yu Wenzhong is mentioned.
In the accompanying drawings, the identical component of structure is indicated with same numbers label, everywhere the similar component of structure or function with
Like numeral label indicates.The size and thickness of each component shown in the drawings are to be arbitrarily shown, and there is no limit by the present invention
The size and thickness of each component.Apparent in order to make to illustrate, some places suitably exaggerate the thickness of component in attached drawing.
A preferred embodiment of the invention, comprising:
S10, references object facial image secret protection;
S20 is identified the secret protection of object facial image;
S30 identifies the identified object.
As shown in Figure 1, before references object uses recognition of face to service for the first time, first carry out the analysis of face image and
Data upload, that is, register.References object facial image secret protection includes:
S101 shoots the references object face using the camera with references object facial image privacy protection function
Photo;
S102 calculates the original feature vector M of references object face described in network query function by face characteristicRFace;
S103, to the original feature vector M of the references object faceRFaceCarry out plus make an uproar processing, calculates the reference pair
Add the feature vector M that makes an uproar as faceRNoiseFace;Device of making an uproar is added to carry out adding processing of making an uproar using adaptive Gauss, the Gauss, which adds, to make an uproar
Device includes the noise coefficient matrix M of pre-set N*NRk, default N-dimensional variance vectors MRσ_default, shooting face number
The N-dimensional variance vectors M gone out according to statisticsRσ_statWith the MRkDiagonal line on N number of noise figure kRn;When shooting face number <
When Rsmall_num, MRσ=0.8*MRσ_default+0.2*MRσ_stat;As the face number>Rsmall_num and<Rbig_ of shooting
When num, MRσ=0.5*MRσ_default+0.5*MRσ_stat;The M as the face of shooting number > Rbig_numRσ=0.2*MRσ_default
+0.8*MRσ_stat;The M as the face number of shooting > > Rbig_num (the face number > 10*Rbig_num shot)Rσ=
MRσ_stat;The noise vector M that the Gauss adds the device Gauss that makes an uproar that the every wheel of device of making an uproar is added to generate one group of N-dimensionalRNoise=Gaussian Profile (0, MRk*
MRσ), by the MRFaceValue and the M on often one-dimensionalRNoiseIt is added, generate plus make an uproar feature vector MRNoiseFace;
The references object face is added the feature vector M that makes an uproar by S104RNoiseFaceIt is saved in database, specifically includes:
S1040 utilizes far call interface call service end;
The references object face is added the feature vector M that makes an uproar by S1041RNoiseFaceIt is transferred to the server-side;
S1042, the server-side add the feature vector M that makes an uproar for the references object faceRNoiseFaceIt is stored in database
In and clustered.
As shown in Fig. 2, after service provider establishes characteristic vector space database, such as enter brush face in practical application scene
In, need to participate in the secret protection identification of face feature vector using the secret protection scheme of identified subject face image.
Being identified the secret protection of object facial image includes:
S201 uses the camera shooting identified object with identified object facial image privacy protection function
Facial photo;
S202 calculates the original feature vector M of the identified subject faceIFace;
S203, to the original feature vector M of the identified subject faceIFaceCarry out plus make an uproar processing, calculates identified pair
Add the feature vector M that makes an uproar as faceInoiseFace;Including using adaptive Gauss that device of making an uproar is added to carry out adding processing of making an uproar, the Gauss
Adding device of making an uproar includes the noise coefficient matrix M of pre-set N*NIk, default N-dimensional variance vectors MIσ_default, shooting people
The N-dimensional variance vectors M that face data statistics goes outIσ_statWith the MIkDiagonal line on N number of noise figure kIn;When the face number of shooting
When mesh < Ismall_num, MIσ=0.8*MIσ_default+0.2*
MIσ_stat;As the face of shooting number>Ismall_num and<Ibig_num, MIσ=0.5*MIσ_default+0.5*
MIσ_stat;The M as the face of shooting number > Ibig_numIσ=0.2*MIσ_default+0.8*MIσ_stat;When the face number of shooting
M when > > Ibig_num (the face number > 10*Ibig_num shot)Iσ=MIσ_stat;The Gauss adds the device Gauss that makes an uproar to add device of making an uproar
Every wheel generates the noise vector M of one group of N-dimensionalINoise=Gaussian Profile (0, MIk*MIσ), by the MIFaceValue and institute on often one-dimensional
State MINoiseIt is added, generate plus make an uproar feature vector MINoiseFace。
Carrying out identification to the identified object in the step S30 includes:
S301, the identified subject face add the feature vector M that makes an uproarINoiseFaceWith the references object face plus make an uproar
Feature vector MRNoiseFaceIt is compared;
S302 exports the face matching result of the identified object.
S301 is specifically included:
The identified subject face is added the feature vector M that makes an uproar by S3010INoiseFaceWith the references object face
Add the feature vector M that makes an uproarRNoiseFaceInput multilevel iudge device;
S3011, multilevel iudge device utilize SVM (Support Vector Machine) or Euclidean distance threshold value, judge institute
That states identified subject face adds the feature vector M that makes an uproarINoiseFaceWith the references object face respectively clustered in the database
Plus make an uproar feature vector MRNoiseFaceSimilarity degree.
As shown in figure 3, far call interface is disposed in the equipment in office for how having camera and having certain computing capability, such as
Intelligent monitoring camera, smart phone, PC etc..The far call interface is based on HTTP service or RPC service.For quilt
It identifies the interception of face in object video frame, is based on MTCNN or Mask RCNN framework.Multilevel iudge device application SVM supporting vector
Machine is directly compared using Euclidean distance.Adaptive Gauss adds the Rsmall_num used in device of making an uproar, Ismall_num with
Rbig_num, Ibig_num take 100,100 and 1000,1000 respectively.
The preferred embodiment of the present invention has been described in detail above.It should be appreciated that the ordinary skill of this field is without wound
The property made labour, which according to the present invention can conceive, makes many modifications and variations.Therefore, all technician in the art
Pass through the available technology of logical analysis, reasoning, or a limited experiment on the basis of existing technology under this invention's idea
Scheme, all should be within the scope of protection determined by the claims.