Summary of the invention
In view of this, this specification one or more embodiment provides a kind of method and device of certificate false proof, calculates
Equipment and storage medium, to solve technological deficiency existing in the prior art.
This specification one or more embodiment discloses a kind of method of certificate false proof, which comprises
Two width or certificate images more than two width for obtaining certificate, the certificate image include the obtained from first distance
One range image and the second distance image obtained from second distance, wherein first distance and second distance difference;
To in the certificate image two width or several, carry out registration verification;
If verification passes through, using one or more reproduction models, the first reproduction probability and the of first distance image is calculated
Second reproduction probability of two range images;
According to the first reproduction probability and the second reproduction probability, judge certificate whether by reproduction.
Optionally, in the certificate image two width or several, carry out registration verification, comprising:
The first registration for obtaining the first distance image and the second distance image, to first registration into
Row verification.
Optionally, the certificate image of two width or two width of certificate or more is obtained, comprising:
Obtain certificate first distance image, intermediate distance image and second distance image, wherein first distance, in
Between distance and second distance be sequentially increased.
Optionally, in the certificate image two width or several, carry out registration verification, comprising:
The first distance image, intermediate distance image and second distance image of certificate are subjected to registration verification.
Optionally, the first distance image of certificate, intermediate distance image and second distance image are subjected to registration school
It tests, comprising:
The first distance image of certificate and the second registration of intermediate distance image are obtained, second registration is carried out
Verification;
The intermediate distance image of certificate and the third registration of second distance image are obtained, the third registration is carried out
Verification;
In the case where the second registration is greater than first threshold and third registration is greater than second threshold, verification passes through;
In the case where the second registration is less than or equal to first threshold or third registration is less than or equal to second threshold, verification
Do not pass through.
Optionally, the first distance image of certificate and the second registration of intermediate distance image are obtained, comprising:
The first distance Image Adjusting is aligned with the intermediate distance image space positions based on preset algorithm
First distance converts image;
Obtain the second registration of first distance the conversion image and second distance image.
Optionally, the intermediate distance image of certificate and the third registration of second distance image are obtained, comprising:
The intermediate distance Image Adjusting is aligned with the second distance image space positions based on preset algorithm
Intermediate distance converts image;
Obtain the third registration of intermediate distance the conversion image and second distance image.
Optionally, using one or more reproduction models, the first reproduction probability and the second reproduction probability are calculated, comprising:
The first distance image that verification is passed through inputs the first reproduction model, obtains the first reproduction probability;
The second distance image that verification is passed through inputs the second reproduction model, obtains the second reproduction probability.
Optionally, according to the first reproduction probability and the second reproduction probability, judge certificate whether by reproduction, comprising:
In the case where the first reproduction probability is less than or equal to third threshold value and the second reproduction probability is less than or equal to four threshold values,
Determine certificate not by reproduction;
In the case where the first reproduction probability is greater than third threshold value or the second reproduction probability is greater than four threshold values, certificate is determined
By reproduction.
Optionally, in the case where determining certificate by reproduction, reproduction prompt information is exported.
Optionally, the first reproduction model is trained by the following method:
It will be marked with the first distance image zooming-out feature vector of reproduction type, described eigenvector includes first distance figure
Spectrum signature, textural characteristics and/or the color characteristic of picture;
It is adopted using the feature vector of first distance image as training sample using the label of reproduction type as training label
It is trained to obtain the first reproduction model with two disaggregated models, wherein the reproduction type includes reproduction and non-reproduction.
Optionally, the second reproduction model is trained by the following method:
It will be marked with the second distance image zooming-out feature vector of reproduction type, described eigenvector includes second distance figure
The spectrum signature and/or contour feature of picture;
It is adopted using the feature vector of second distance image as training sample using the label of reproduction type as training label
It is trained to obtain the second reproduction model with two disaggregated models, wherein the reproduction type includes reproduction and non-reproduction.
This specification one or more embodiment discloses a kind of device of certificate false proof, and described device includes:
Module is obtained, two width for obtaining certificate is configured as or certificate images more than two width, the certificate image includes
The first distance image obtained from first distance and the second distance image obtained from second distance, wherein first distance and the
Two distances are different;
Registration correction verification module, be configured as in the certificate image two width or several, carry out registration verification;
Reproduction probability evaluation entity passes through if being configured as verification, using one or more reproduction models, calculate first away from
Second reproduction probability of the first reproduction probability and second distance image from image;
Reproduction judgment module is configured as judging whether certificate is turned over according to the first reproduction probability and the second reproduction probability
It claps.
Optionally, the registration correction verification module is specifically configured to: obtaining the first distance image and described second
First registration of range image verifies first registration.
Optionally, the acquisition module is specifically configured to:
Obtain first distance image, intermediate distance image and the second distance image of certificate, wherein first distance, mark
Quasi- distance and second distance are sequentially increased.
Optionally, the registration correction verification module is specifically configured to: by the first distance image of certificate, intermediate distance figure
Picture and second distance image carry out registration verification.
Optionally, the registration correction verification module is specifically configured to: obtaining the first distance image and medium spacing of certificate
The second registration from image verifies second registration;
The intermediate distance image of certificate and the third registration of second distance image are obtained, the third registration is carried out
Verification;
In the case where the second registration is greater than first threshold and third registration is greater than second threshold, verification passes through;
In the case where the second registration is less than or equal to first threshold or third registration is less than or equal to second threshold, verification
Do not pass through.
Optionally, the registration correction verification module is specifically configured to: being based on preset algorithm for the first distance image
It is adjusted to the first distance being aligned with intermediate distance image space positions conversion image;
Obtain the second registration of first distance the conversion image and second distance image.
Optionally, the registration correction verification module is specifically configured to: being based on preset algorithm for the intermediate distance image
It is adjusted to the intermediate distance being aligned with second distance image space positions conversion image;
Obtain the third registration of intermediate distance the conversion image and second distance image.
Optionally, the reproduction probability evaluation entity is specifically configured to: the first distance image that verification is passed through inputs
First reproduction model obtains the first reproduction probability;
The second distance image that verification is passed through inputs the second reproduction model, obtains the second reproduction probability.
Optionally, the reproduction judgment module is specifically configured to: the first reproduction probability be less than or equal to third threshold value and
In the case that second reproduction probability is less than or equal to the 4th threshold value, determine certificate not by reproduction;
In the case where the first reproduction probability is greater than third threshold value or the second reproduction probability is greater than four threshold values, certificate is determined
By reproduction.
This specification one or more embodiment discloses a kind of calculating equipment, including memory, processor and is stored in
On memory and the computer instruction that can run on a processor, the processor realize card as described above when executing described instruction
The step of part anti-fake method.
This specification one or more embodiment discloses a kind of computer readable storage medium, is stored with computer and refers to
The step of order, which realizes the method for certificate false proof as described above when being executed by processor.
The method and device for the certificate false proof that this specification one or more embodiment provides, by two width for obtaining certificate
Or two certificate images more than width, then in the certificate image two width or several carry out registration verifications, if verification is logical
Cross, using one or more reproduction models, calculate first distance image the first reproduction probability and second distance image second
Reproduction probability, and according to the first reproduction probability and the second probabilistic determination certificate whether by reproduction, to utilize several figures of certificate
As combining with reproduction model, the prevention and control to certificate image are realized.The certificate false proof of this specification one or more embodiment
Method does not need manually to identify the true and false of image, reduces the time that certificate image identification expends, improve identification effect
Rate.
In addition, comparing the common anti-conversion system of single picture, the method for the application certificate false proof is by obtaining certificate
First distance image, intermediate distance image and second distance image, thus obtain certificate more abundant foreground information and
Background information improves the accuracy identified to screen reproduction, is of great significance to Internet application prevention and control forged certificate.
Specific embodiment
Many details are explained in the following description in order to fully understand the application.But the application can be with
Much it is different from other way described herein to implement, those skilled in the art can be without prejudice to the application intension the case where
Under do similar popularization, therefore the application is not limited by following public specific implementation.
The term used in this specification one or more embodiment be only merely for for the purpose of describing particular embodiments,
It is not intended to be limiting this specification one or more embodiment.In this specification one or more embodiment and appended claims
The "an" of singular used in book, " described " and "the" are also intended to including most forms, unless context is clearly
Indicate other meanings.It is also understood that term "and/or" used in this specification one or more embodiment refers to and includes
One or more associated any or all of project listed may combine.
It will be appreciated that though may be retouched using term first, second etc. in this specification one or more embodiment
Various information are stated, but these information should not necessarily be limited by these terms.These terms are only used to for same type of information being distinguished from each other
It opens.For example, first can also be referred to as second, class in the case where not departing from this specification one or more scope of embodiments
As, second can also be referred to as first.Depending on context, word as used in this " if " can be construed to
" ... when " or " when ... " or " in response to determination ".
Firstly, the vocabulary of terms being related to one or more embodiments of the invention explains.
OCR: optical character identification refers to positioning and identifies the technology of text information in picture.
Core body: the authenticity of user identity is veritified
Certificate false proof: the measure that forged certificate is identified.
Characteristics of image: characteristics of image includes: color characteristic, textural characteristics, shape feature and spatial relation characteristics.Wherein,
Color characteristic is a kind of global characteristics, describes the surface nature of scenery corresponding to image or image-region;Textural characteristics
It is a kind of global characteristics, it also illustrates the surface nature of scenery corresponding to image or image-region;Shape feature has two class tables
Show that method, one kind are contour features, another kind of is provincial characteristics, the contour feature of image mainly for object outer boundary, and
The provincial characteristics of image is then related to entire shape area;Spatial relation characteristics refer to the multiple targets split in image
Between mutual spatial position or relative direction relationship, these relationships can also be divided into connection/syntople, overlapping/overlapping is closed
System and include/containment relationship etc..
In this specification one or more embodiment, provides a kind of method and device of certificate false proof, calculates equipment
And storage medium, it is described in detail one by one in the following embodiments.
Fig. 1 is to show the structural block diagram of the calculating equipment 100 according to one embodiment of this specification.The calculating equipment 100
Component include but is not limited to memory 110 and processor 120.Processor 120 is connected with memory 110 by bus 130,
Database 150 is for saving data.
Calculating equipment 100 further includes access device 140, access device 140 enable calculate equipment 100 via one or
Multiple networks 160 communicate.The example of these networks includes public switched telephone network (PSTN), local area network (LAN), wide area network
(WAN), the combination of the communication network of personal area network (PAN) or such as internet.Access device 140 may include wired or wireless
One or more of any kind of network interface (for example, network interface card (NIC)), such as IEEE802.11 wireless local area
Net (WLAN) wireless interface, worldwide interoperability for microwave accesses (Wi-MAX) interface, Ethernet interface, universal serial bus (USB) connect
Mouth, cellular network interface, blue tooth interface, near-field communication (NFC) interface, etc..
In one embodiment of this specification, other unshowned portions in the above-mentioned component and Fig. 1 of equipment 100 are calculated
Part can also be connected to each other, such as pass through bus.It should be appreciated that calculating device structure block diagram shown in FIG. 1 merely for the sake of
Exemplary purpose, rather than the limitation to this specification range.Those skilled in the art can according to need, and increases or replaces it
His component.
Calculating equipment 100 can be any kind of static or mobile computing device, including mobile computer or mobile meter
Calculate equipment (for example, tablet computer, personal digital assistant, laptop computer, notebook computer, net book etc.), movement
Phone (for example, smart phone), wearable calculating equipment (for example, smartwatch, intelligent glasses etc.) or other kinds of shifting
Dynamic equipment, or the static calculating equipment of such as desktop computer or PC.Calculating equipment 100 can also be mobile or state type
Server.
Wherein, processor 120 can execute the step in method shown in Fig. 2.Fig. 2 is to show according to this specification one in fact
Apply the schematic flow chart of the method for the certificate false proof of example, including step 202 is to step 208.
202, two width or certificate images more than two width for obtaining certificate, the certificate image include obtaining from first distance
First distance image and the second distance image that is obtained from second distance, wherein first distance and second distance are different.
Wherein, the present embodiment can be the two images of acquisition certificate, including first distance image and second distance image;
Or images more than two width of acquisition certificate, including first distance image, intermediate distance image and second distance image,
Wherein, first distance, intermediate distance and second distance are sequentially increased.By obtaining multiple image, and carry out in the next steps
It compares, the accuracy of certificate recognition result can be increased.
Wherein, the acquisition modes of the first distance image of certificate, intermediate distance image and second distance image can have more
Kind, such as in such a way that user clicks and uploads.
During practical application, one can be shot respectively using large and small two target object view-finders of capture apparatus
It is secondary.Big view-finder, which is taken pictures, obtains the close-up images of certificate, so as to obtain more certificate foreground informations (screen when such as reproduction
Moire fringes on curtain);Small view-finder, which is taken pictures, obtains the remote image of certificate, so as to obtain more certificate background informations
(such as screen frame of reproduction equipment), in this way, just having obtained the image of corresponding two distances: first distance image and second away from
From image.Then it also needs primary in normal distance shooting certificate, wherein the certificate image of normal distance shooting only includes certificate
The all images of itself.In this way, just having obtained the intermediate distance image of corresponding certificate.
204, in the certificate image two width or several, carry out registration verification.
The purpose of registration verification is: there is the phenomenon that shooting of stealthily substituting during shooting more figures in user in order to prevent,
Need in the certificate image two width or several verify.
For obtaining the first distance image of certificate and the situation of second distance image, step 204 includes: to obtain described the
First registration of one range image and the second distance image verifies first registration.
For obtaining the first distance image of certificate, the situation of intermediate distance image and second distance image, step 204 packet
It includes: the first distance image, intermediate distance image and second distance image of certificate is subjected to registration verification.
In the present embodiment, a kind of specific registration verification is set forth below in there are many ways to carrying out registration verification
Method schematically illustrates the method for the registration verification of the present embodiment.Specifically, referring to Fig. 3, by the first of certificate
Range image, intermediate distance image and second distance image carry out registration verification, include the following steps 302~308:
302, the first distance image of certificate and the second registration of intermediate distance image are obtained, to second registration
It is verified.
Specifically, step 302 includes:
S3022, it is and the intermediate distance image space positions by the first distance Image Adjusting based on preset algorithm
The first distance of alignment converts image;
S3024, the second registration for obtaining first distance the conversion image and second distance image.
Wherein, the preset algorithm includes but is not limited to image registration algorithm, i.e. Image registration algorithm, figure
As registration Algorithm can make to reach matching between two images in some sense.
It specifically, is to be transformed image with first distance image, i.e., to the in this step based on intermediate distance image
One range image and intermediate distance image carry out feature extraction and obtain characteristic point, find matched spy by carrying out similarity measurement
Sign point pair, then by matched characteristic point to image space coordinate conversion parameter is obtained, is finally carried out by coordinate conversion parameter
Image registration.Wherein, characteristic point is the characteristic informations such as point, line and the edge of image.
Wherein, image registration (Image registration) is exactly by different time, different sensors (imaging device)
Or the mistake that two width or multiple image that (weather, illumination, camera position and angle etc.) obtains under different condition are matched, are superimposed
Journey, it has been widely used in the fields such as remotely-sensed data analysis, computer vision, image procossing.The mode of image registration
Have very much, such as uses Scale invariant features transform (Scale-invariant feature transform, SIFT) algorithm
Deng.
304, the intermediate distance image of certificate and the third registration of second distance image are obtained, to the third registration
It is verified.
Specifically, step 304 includes:
S3042, it is and the second distance image space positions by the intermediate distance Image Adjusting based on preset algorithm
The intermediate distance of alignment converts image;
S3044, the third registration for obtaining intermediate distance the conversion image and second distance image.
It specifically, is to be transformed image, i.e. centering with intermediate distance image in this step based on second distance image
Between range image and second distance image carry out feature extraction and obtain characteristic point, find matched spy by carrying out similarity measurement
Sign point pair, then by matched characteristic point to image space coordinate conversion parameter is obtained, is finally carried out by coordinate conversion parameter
Image registration.Wherein, characteristic point is the characteristic informations such as point, line and the edge of image.
306, in the case where the second registration is greater than first threshold and third registration is greater than second threshold, verification is logical
It crosses.
308, in the case where the second registration is less than or equal to first threshold or third registration is less than or equal to second threshold,
Verification does not pass through.
Wherein, first threshold and second threshold can be arranged according to actual needs, such as setting first threshold and second
Threshold value is 0.8.
It should be noted that three images are divided into two groups of carry out registration verifications in the present embodiment, in two groups of images
In the case that registration is respectively greater than threshold value, verification passes through;For verifying unacceptable situation, in the coincidence of wherein one group of image
In the case that degree is less than or equal to threshold value, verification does not pass through.
In the case where verifying unacceptable situation, interrupts and execute follow-up process, and export prompt information.The output side of prompt information
Formula can there are many, such as in an application program prompt user input image irregularity, need to re-enter.In user
Again the image of three distances of certificate is uploaded after confirmation, and re-execute the steps 202.
If 206, verification passes through, using one or more reproduction models, the first reproduction probability of first distance image is calculated
With the second reproduction probability of second distance image.
In this step, a reproduction model can be used, calculate the first reproduction probability and the second reproduction probability;It can also make
With two reproduction models, the first reproduction probability and the second reproduction probability are calculated separately.
Specifically, step 206 includes:
S2062, the first distance image for passing through verification input the first reproduction model, obtain the first reproduction probability.
S2064, the second distance image for passing through verification input the second reproduction model, obtain the second reproduction probability.
Specifically, then first distance image zooming-out feature vector verification passed through is turned over feature vector input first
Model is clapped, the first reproduction probability is obtained;
Then feature vector is inputted the second reproduction model by the second distance image zooming-out feature vector that verification is passed through,
Obtain the second reproduction probability.
Wherein, the first reproduction model passes through following steps S12~S14 training:
S12, the first distance image zooming-out feature vector that reproduction type will be marked with, described eigenvector include first away from
Spectrum signature, textural characteristics and/or color characteristic from image.
Wherein, spectrum signature can be used for identifying the situation of the screen reflecting occurred in reproduction image.
Textural characteristics can be used for identifying moire fringes or other distortion situations in first distance image, such as resolution ratio
Distortion, crenellated phenomena etc..Moire fringes are one kind in the equipment such as digital camera or scanner, the high frequency that photosensitive element occurs
The striped of interference is a kind of irregular striped of high-frequency that picture can be made colour occur.Moire fringes be difference reproduction image and
The important parameter of non-reproduction image.For reproduction image, moire fringes in a frequency domain can be more obvious, and the color of moire fringes
It also can be with the color different from of the moire fringes of non-reproduction image.
Color characteristic can be used for identifying the situation that local color is distorted in reproduction image.
S14, using the feature vector of first distance image as training sample, marked the label of reproduction type as training
Label, are trained to obtain the first reproduction model using two disaggregated models, wherein the reproduction type includes reproduction and non-turns over
It claps.
Wherein, the second reproduction model passes through following steps S22~S24 training:
S22, the second distance image zooming-out feature vector that reproduction type will be marked with, described eigenvector include second away from
Spectrum signature and/or contour feature from image.
Wherein, spectrum signature can be used for identifying the situation of the screen reflecting occurred in reproduction image.
Contour feature can be used for identifying the frame of the reproduction equipment (mobile phone or display) occurred in reproduction image
Situation.
As can be seen that for the first reproduction model and the second reproduction model, the first distance image of input and second away from
Feature vector from image is different, because first distance image is more concerned with local field of view, available more certificates
Foreground detail (moire fringes when such as reproduction on screen);Second distance image is more concerned with the environment visual field, available more
Background information (mobile phone or indicator screen frame when such as reproduction).
S24, using the feature vector of second distance image as training sample, marked the label of reproduction type as training
Label, are trained to obtain the second reproduction model using two disaggregated models, wherein the reproduction type includes reproduction and non-turns over
It claps.
By above-mentioned steps as it can be seen that the first reproduction model and the second reproduction model pass through two disaggregated model training obtains, no
Same is the sample difference of input.Wherein, two disaggregated models can there are many, such as utilize CNN convolutional neural networks generate
Two disaggregated models.
Generally, convolutional neural networks include thousands of iterative parameters, but only a fraction iterative parameter can be to image
Prediction result have an impact.In the training stage of model, it can first find out a part and shadow is generated to the prediction result of image
Then loud iterative parameter adjusts a part of iterative parameter, so as to so as to trained first reproduction model or second turn over
The prediction result for clapping model is more accurate.
208, according to the first reproduction probability and the second reproduction probability, judge certificate whether by reproduction.
Specifically, step 208 includes:
S2082, it is less than or equal to third threshold value and the second reproduction probability in the first reproduction probability and is less than or equal to the 4th threshold value
In the case of, determine certificate not by reproduction;
S2084, in the case where the first reproduction probability is greater than third threshold value or the second reproduction probability and is greater than four threshold values, really
Certificate is determined by reproduction.
It should be noted that step S2082 and step S2084 are required to judge that the first reproduction probability and the second reproduction are general
Rate, but need to meet the condition of "and" in step S2082, i.e. the first reproduction probability is less than or equal to third threshold value and the second reproduction
Probability is less than or equal to the 4th threshold value;Need to meet the condition of "or" in step S2084, i.e. the first reproduction probability is greater than third threshold value
Or second reproduction probability be greater than the 4th threshold value.
Wherein, third threshold value and the 4th threshold value can be arranged according to actual needs, such as setting third threshold value and the 4th
Threshold value is 0.8.
After determining the non-reproduction of certificate, exports and handle using intermediate distance image as the image of certificate.It is actually using
When, such as in the application program remotely opened an account, can the image using intermediate distance image as certificate export to application program
Certificate text OCR identification module is handled.
After determining certificate reproduction, prompt information is exported.The way of output of prompt information can there are many, such as pop-up
Dialog box, text information of output etc..
The method for the certificate false proof that this specification one or more embodiment provides, by two width or two width that obtain certificate
Above certificate image, then in the certificate image two width or several carry out registration verifications, if verification pass through, use
One or more reproduction models calculate the first reproduction probability and the second reproduction probability, and are turned over according to the first reproduction probability and second
Probabilistic determination certificate is clapped whether by reproduction, so that the multiple image using certificate is combined with reproduction model, is realized to certificate figure
The prevention and control of picture.The method of the certificate false proof of this specification one or more embodiment does not need manually to know the true and false of image
Not, reduce the time that certificate image identification expends, improve recognition efficiency.
In addition, comparing the common anti-conversion system of single picture, the method for the certificate false proof of one embodiment of this specification is logical
First distance image, intermediate distance image and the second distance image for obtaining certificate are crossed, to obtain the more horn of plenty of certificate
Foreground information and background information, improve the accuracy that identifies to screen reproduction, have to Internet application prevention and control forged certificate
Significance.
One embodiment of this specification discloses a kind of method of certificate false proof, referring to fig. 4, include the following steps 402~
420:
402, obtain certificate first distance image, intermediate distance image and second distance image, wherein first away from
It is sequentially increased from, intermediate distance and second distance.
Wherein, the acquisition modes of the first distance image of certificate, intermediate distance image and second distance image can have
It is a variety of, such as in such a way that user clicks and uploads.
404, the first distance image of certificate, intermediate distance image and second distance image are subjected to registration verification,
If verification passes through, step 406 is executed, if verification does not pass through, executes step 408.
406, the first distance image for passing through verification inputs the first reproduction model, and obtain first distance image first turns over
Probability is clapped, the second distance image that verification is passed through inputs the second reproduction model, and the second reproduction for obtaining second distance image is general
Then rate executes step 410.
408, output verification failure prompt information, and return to step 402.
410, judge whether the first reproduction probability is greater than first threshold, if so, step 412 is executed, if it is not, executing step
414。
412, it determines that the first distance image is reproduction image, executes step 420.
414, judge whether the second reproduction probability is greater than second threshold, if so, step 416 is executed, if it is not, executing step
418。
416, it determines that the second distance image is reproduction image, executes step 420.
418, it exports and handles using intermediate distance image as the image of the certificate.
420, in the case where determining the first distance image or second distance image is reproduction image, output reproduction is mentioned
Show information, return step 402.
Reproduction prompt information can be the dialog box popped up in the application, and after user clicks confirmation, return is held
Row step 402.
Then the method for certificate false proof provided in this embodiment, multiple images of the different distance by obtaining certificate will
The first distance image that registration verification passes through inputs the first reproduction model, obtains the first reproduction probability of first distance image,
The second distance image that verification is passed through inputs the second reproduction model, obtains the second reproduction probability of second distance image;?
One reproduction probability is less than or equal to first threshold and in the case that the second reproduction probability is less than or equal to second threshold, by second distance figure
Picture is exported and is handled as the image of certificate, so that more range images using certificate are combined with reproduction model, realizes verification
The prevention and control of part image.The method of the certificate false proof of the present embodiment do not need manually to identify the true and false of image, reduces card
The time that part image recognition expends, improve recognition efficiency.
Above content is the detailed description to the method for the certificate false proof of this specification one or more embodiment, this explanation
Book one or more embodiment also discloses a kind of device of certificate false proof.It should be noted that the device of the certificate false proof
The technical solution of technical solution and the method for above-mentioned certificate false proof belongs to same design, the technical solution of the device of certificate false proof
The detail content being not described in detail may refer to the description of the technical solution of the method for above-mentioned certificate false proof.
Referring to Fig. 5, the device of certificate false proof disclosed in one embodiment of this specification includes:
Module 502 is obtained, two width for obtaining certificate or certificate images more than two width, the certificate image packet are configured as
Include from first distance obtain first distance image and from second distance obtain second distance image, wherein first distance and
Second distance is different;
Registration correction verification module 504, be configured as in the certificate image two width or several, carry out registration school
It tests;
Reproduction probability evaluation entity 506 passes through if being configured as verification, using one or more reproduction models, calculates the
First reproduction probability of one range image and the second reproduction probability of second distance image;
Reproduction judgment module 508, is configured as according to the first reproduction probability and the second reproduction probability, judge certificate whether by
Reproduction.
Optionally, registration correction verification module 504 is specifically configured to: obtain the first distance image and described second away from
The first registration from image verifies first registration.
Optionally, obtain module 502 be specifically configured to: obtain first distance image, the intermediate distance image of certificate with
And second distance image, wherein first distance, gauged distance and second distance are sequentially increased.
Optionally, the registration correction verification module 504 is specifically configured to: by the first distance image of certificate, medium spacing
Registration verification is carried out from image and second distance image.
Optionally, the registration correction verification module 504 is specifically configured to: obtaining first distance image and the centre of certificate
Second registration of range image verifies second registration;
The intermediate distance image of certificate and the third registration of second distance image are obtained, the third registration is carried out
Verification;
In the case where the second registration is greater than first threshold and third registration is greater than second threshold, verification passes through;
In the case where the second registration is less than or equal to first threshold or third registration is less than or equal to second threshold, verification
Do not pass through.
Optionally, the registration correction verification module 504 is specifically configured to: being based on preset algorithm for the first distance figure
As being adjusted to the first distance being aligned with intermediate distance image space positions conversion image;
Obtain the second registration of first distance the conversion image and second distance image.
Optionally, registration correction verification module 504 is specifically configured to: being based on preset algorithm for the intermediate distance image tune
The whole intermediate distance to be aligned with the second distance image space positions converts image;
Obtain the third registration of intermediate distance the conversion image and second distance image.
Optionally, the reproduction probability evaluation entity 506 is specifically configured to: the first distance image that verification is passed through is defeated
Enter the first reproduction model, obtains the first reproduction probability;The second distance image that verification is passed through inputs the second reproduction model, obtains
Second reproduction probability.
Optionally, the reproduction judgment module 508 is specifically configured to: being less than or equal to third threshold value in the first reproduction probability
And second reproduction probability be less than or equal to the 4th threshold value in the case where, determine certificate not by reproduction;It is greater than the in the first reproduction probability
In the case that three threshold values or the second reproduction probability are greater than the 4th threshold value, determine certificate by reproduction.
Two width of the device of certificate false proof provided in this embodiment by obtaining certificate or certificate images more than two width, so
Afterwards in the certificate image two width or several carry out registration verifications, if verification pass through, use one or more reproduction moulds
Type calculates the first reproduction probability and the second reproduction probability, and is according to the first reproduction probability and the second reproduction probabilistic determination certificate
It is no by reproduction, so that the multiple image using certificate is combined with reproduction model, realize the prevention and control to certificate image.This specification
The method of the certificate false proof of one or more embodiments do not need manually to identify the true and false of image, reduces certificate image
It identifies the time expended, improves recognition efficiency.
One embodiment of this specification also provides a kind of calculating equipment, including memory, processor and storage are on a memory
And the computer instruction that can be run on a processor, the processor realize certificate false proof as previously described when executing described instruction
The step of method.
One embodiment of this specification also provides a kind of computer readable storage medium, is stored with computer instruction, this refers to
The step of order realizes the method for certificate false proof as previously described when being executed by processor.
A kind of exemplary scheme of above-mentioned computer readable storage medium for the present embodiment.It should be noted that this is deposited
The technical solution of the technical solution of storage media and the method for above-mentioned certificate false proof belongs to same design, the technical side of storage medium
The detail content that case is not described in detail may refer to the description of the technical solution of the method for above-mentioned certificate false proof.
The computer instruction includes computer program code, the computer program code can for source code form,
Object identification code form, executable file or certain intermediate forms etc..The computer-readable medium may include: that can carry institute
State any entity or device, recording medium, USB flash disk, mobile hard disk, magnetic disk, CD, the computer storage of computer program code
Device, read-only memory (ROM, Read-Only Memory), random access memory (RAM, Random Access Memory),
Electric carrier signal, telecommunication signal and software distribution medium etc..It should be noted that the computer-readable medium include it is interior
Increase and decrease appropriate can be carried out according to the requirement made laws in jurisdiction with patent practice by holding, such as in certain jurisdictions of courts
Area does not include electric carrier signal and telecommunication signal according to legislation and patent practice, computer-readable medium.
It should be noted that for the various method embodiments described above, describing for simplicity, therefore, it is stated as a series of
Combination of actions, but those skilled in the art should understand that, this specification is not limited by the described action sequence, because
For according to this specification, certain steps can use other sequences or carry out simultaneously.Secondly, those skilled in the art also should
Know, the embodiments described in the specification are all preferred embodiments, and related actions and modules might not all be this
Necessary to specification.
In the above-described embodiments, it all emphasizes particularly on different fields to the description of each embodiment, there is no the portion being described in detail in some embodiment
Point, it may refer to the associated description of other embodiments.
This specification preferred embodiment disclosed above is only intended to help to illustrate this specification.Alternative embodiment is not
All details of detailed descriptionthe, do not limit the invention to the specific embodiments described.Obviously, according in this specification
Hold, can make many modifications and variations.These embodiments are chosen and specifically described to this specification, is in order to preferably explain this theory
The principle and practical application of bright book, so that skilled artisan be enable to better understand and utilize this specification.This
Specification is limited only by the claims and their full scope and equivalents.