Content of the invention
The present invention provides a kind of identification to forge the method and device of business license, forges business license by reducing identificationTime, realize improving the purpose of the efficiency that business license is forged in identification.
In a first aspect, the embodiment of the present invention provides a kind of method that business license is forged in identification, including:
Determine the cryptographic Hash of the stable region of business license to be identified;
Judge in data base, if there is the coupling business license of described business license to be identified, described coupling business is heldAccording to stable region cryptographic Hash identical with the cryptographic Hash of the stable region of described business license to be identified;
If there is described coupling business license in described data base it is determined that the quantity of described coupling business license;
According to described quantity, identify described business license to be identified.
In a kind of feasible implementation, described described business license to be identified is identified according to described quantity, including:
If described quantity=1, judge the finger image of described business license to be identified and the described business license that matesWhether finger image is identical;
If the finger image of described business license to be identified from described coupling business license finger image different it is determined thatDescribed business license to be identified is to forge business license;Otherwise, it determines described business license to be identified is not to forge business license.
In a kind of feasible implementation, described described business license to be identified is identified according to described quantity, including:
If described quantity >=2 are it is determined that described business license to be identified is to forge business license.
In a kind of feasible implementation, after the described business license to be identified of described determination is forgery business license,Also include:
Judge whether the finger image of described business license to be identified is identical with the finger image of each coupling business license;
If the finger image of described business license to be identified is all differed with each finger image mating business license, willDescribed business license to be identified adds in described data base.
In a kind of feasible implementation, before the cryptographic Hash of stable region of described determination business license to be identified, alsoIncluding:
Detect the connected domain of described business license to be identified;
Described stable region is determined from described connected domain.
In a kind of feasible implementation, described determine described stable region from described connected domain, including:
According to the feature of described stable region, filter out, from described connected domain, the region not meeting described feature, thus reallyMake described stable region.
In a kind of feasible implementation, said method also includes:
If there is not described coupling business license in described data base it is determined that described business license to be identified is not forgeryBusiness license;
Described business license to be identified is added in described data base.
Second aspect, the embodiment of the present invention provides a kind of identification to forge the device of business license, including:
Cryptographic Hash determining module, for determining the cryptographic Hash of the stable region of business license to be identified;
Judge module, for judging in data base, if there is the coupling business license of described business license to be identified, instituteThe cryptographic Hash of stable region stating coupling business license is identical with the cryptographic Hash of the stable region of described business license to be identified;
Quantity determining module, if judging there is described coupling business license in described data base for judge module,Determine the quantity of described coupling business license;
Identification module, for the described quantity determined according to described quantity module, identifies described business license to be identified.
In a kind of feasible implementation, described judge module, if be additionally operable to what described quantity determining module was determinedDescribed quantity=1, then judge that the finger image of described business license to be identified with the described finger image mating business license isNo identical;
Described identification module, if if for described judge module judge the finger image of described business license to be identified withThe finger image of described coupling business license is different it is determined that described business license to be identified is to forge business license;Otherwise, reallyFixed described business license to be identified is not to forge business license.
In a kind of feasible implementation, described identification module, if determine specifically for described quantity determining moduleDescribed quantity >=2 are it is determined that described business license to be identified is to forge business license.
In a kind of feasible implementation, above-mentioned device also includes:Add module;
Described judge module, is additionally operable to determine that described business license to be identified is to forge business license in described identification moduleAfterwards, judge whether the finger image of described business license to be identified is identical with the finger image of each coupling business license;
Described add module, for judge in described judge module the finger image of described business license to be identified with eachThe finger image of coupling business license all differs, then add described business license to be identified in described data base.
In a kind of feasible implementation, above-mentioned device also includes:
Processing module, for determine in described cryptographic Hash determining module business license to be identified stable region cryptographic Hash itBefore, detect the connected domain of described business license to be identified;Described stable region is determined from described connected domain.
In a kind of feasible implementation, described processing module, specifically for the feature according to described stable region, from instituteState and in connected domain, filter out the region not meeting described feature, so that it is determined that going out described stable region.
In a kind of feasible implementation, described identification module, it is additionally operable to judge described number in described judge moduleAccording to do not exist in storehouse described coupling business license it is determined that described business license to be identified be not forge business license;
Described add module, for adding described business license to be identified in described data base.
The method and device of business license is forged in identification provided in an embodiment of the present invention, determines the steady of business license to be identifiedThe cryptographic Hash of localization;Then judge in data base, if there is the coupling business license of business license to be identified, coupling business is heldCryptographic Hash identical business license according to the stable region of cryptographic Hash and business license to be identified for stable region;If existing, continueThe continuous quantity determining coupling business license;And then according to quantity, identify business license to be identified.It is only necessary to determine during being somebody's turn to doThe cryptographic Hash of stable region and the quantity mating business license, need not be to all pixels on business license image to be identified and dataEach business license in storehouse is compared, and reduces the time that business license is forged in identification, realizes raising identification and forges businessThe purpose of the efficiency of license.
Specific embodiment
Purpose, technical scheme and advantage for making the embodiment of the present invention are clearer, below in conjunction with the embodiment of the present inventionIn accompanying drawing, the technical scheme in the embodiment of the present invention is clearly and completely described it is clear that described embodiment isThe a part of embodiment of the present invention, rather than whole embodiments.Based on the embodiment in the present invention, those skilled in the art are not havingThere is the every other embodiment being obtained under the premise of making creative work, broadly fall into the scope of protection of the invention.Herein belowIt is to combine accompanying drawing and preferred embodiment, detailed to the specific embodiment of foundation the present patent application, structure, feature and its effectExplanation.
Fig. 1 identifies the flow chart forging business license embodiment one for the present invention, including:
101st, determine the cryptographic Hash of the stable region of business license to be identified.
In the embodiment of the present invention, Hash (Hash) the value identical business license of stable region adopts same template, stableDomain refers to the position infrequently changed when user transforms according to template, the position that such as national emblem position, " business license " four Chinese characters are locatedPut.The collection of pixels that connected domain is made up of the neighbor with same pixel value.
In this step, for current business license to be identified, all of connection is detected by connected domain calibration algorithmDomain, the then characteristic filter connected domain according to different stable regions, thus filtering out incoherent region, then calculate each stableThe cryptographic Hash in domain.In filter process, tone saturation lightness (Hue Saturability Value, HSV) spatial mode can be adoptedType, RGB (Red Green Blue, RGB) model, blue or green product Huang (Cyan Mageata Yellow, CMY) model setting are stableThe feature in domain.For example, then the feature arranging national emblem in business license to be identified is taking using HSV space model as a example:H(Hue)The ratio of value between 110 to 150 for the passage is more than 0.3.
102nd, judge in data base, if there is the coupling business license of described business license to be identified, described coupling battalionThe cryptographic Hash of the stable region of industry license is identical with the cryptographic Hash of the stable region of described business license to be identified.
After determining the cryptographic Hash of each stable region, compare business license to be identified and hold with each business in data baseWhether the cryptographic Hash according to corresponding stable region is identical, if identical, will have identical Kazakhstan with business license to be identified in data baseThe business license of uncommon value is as coupling business license.
As in a kind of feasible implementation, in data base, all business licenses with identical cryptographic Hash are stored inSame a line, the index of this row is cryptographic Hash.Consequently, it is possible to after determining the cryptographic Hash of business license to be identified, use this Hash, if there is business license in the corresponding row of this cryptographic Hash, there is business to be identified in database of descriptions and holding in value inquiry data baseAccording to coupling business license.
However, it is determined that going out not existing the coupling business license of business license to be identified in data base in this step, then explanation shouldBusiness license to be identified is not to forge business license, is a legal business license.Now, this business license to be identified is depositedStore up in data base, as new a line.
If there is described coupling business license in 103 described data bases it is determined that the quantity of described coupling business license.
If determining the coupling business license that there is business license to be identified in data base in 102, further determineThe quantity of coupling business license.For example, data base being inquired about according to cryptographic Hash, if there is identical cryptographic Hash, further determining thatThe quantity of business license in the corresponding row of this cryptographic Hash.
104th, according to described quantity, identify described business license to be identified.
Mate after the quantity of business license with business license to be identified in determining data base, according to this quantity, treatIdentification business license is identified.
The method that business license is forged in identification provided in an embodiment of the present invention, determines the stable region of business license to be identifiedCryptographic Hash;Then judge in data base, if there is the coupling business license of business license to be identified, coupling business license is steadyThe cryptographic Hash identical business license of the stable region of the cryptographic Hash of localization and business license to be identified;If existing, continue to determineThe quantity of coupling business license;And then according to quantity, identify business license to be identified.It is only necessary to determine stable region during being somebody's turn to doCryptographic Hash and the quantity mating business license, need not be in all pixels on business license image to be identified and data baseEach business license is compared, and reduces the time that business license is forged in identification, realizes raising identification and forges business licenseThe purpose of efficiency.
Below, with a specific flow chart, the method forging business license is described in detail to be identified to the present invention.ToolBody, can be found in Fig. 2, Fig. 2 identifies the flow chart forging business license embodiment two for the present invention, including:
201st, detect all of connected domain on business license to be identified;
202nd, the feature according to stable region, filters out the region not meeting feature from connected domain, so that it is determined that going out stableDomain;
203rd, determine the cryptographic Hash of stable region;
204th, judging in data base, if there is the coupling business license of business license to be identified, if existing, executing205;If not existing, execute 209;
205th, determine the quantity of coupling business license, if quantity=1, execute 206;If quantity >=2, execute 210;
206th, judge whether are the finger image of described business license to be identified and the described finger image mating business licenseIdentical, if it is different, then executing 207;If identical, execute 213;
207th, determine that described business license to be identified is to forge business license;
208th, described business license to be identified is added in described data base;
209th, determine that described business license to be identified is not to forge business license, execute 208 afterwards;
210th, determine that described business license to be identified is to forge business license, execute 211 afterwards;
211st, judge the finger image of described business license to be identified and each finger image mating business license whether phaseSame, if the finger image of described business license to be identified is all differed with each finger image mating business license, execute208;If the finger image of described business license to be identified is identical with one of the finger image of each coupling business license, holdRow 212;
212nd, business license to be identified is not added data base;
213rd, determine that described business license to be identified is not to forge business license, business license to be identified is not added dataStorehouse.
Fig. 3 identifies the structural representation of the device embodiment one forging business license for the present invention, including:
Cryptographic Hash determining module 11, for determining the cryptographic Hash of the stable region of business license to be identified;
Judge module 12, for judging in data base, if there is the coupling business license of described business license to be identified,The cryptographic Hash of stable region of described coupling business license is identical with the cryptographic Hash of the stable region of described business license to be identified;
For judge module 12, quantity determining module 13, if judge that there is described coupling business in described data base holdsAccording to it is determined that described coupling business license quantity;
Identification module 14, for the described quantity determined according to described quantity module, identifies that described business to be identified is heldAccording to.
The device of business license is forged in identification provided in an embodiment of the present invention, determines the stable region of business license to be identifiedCryptographic Hash;Then judge in data base, if there is the coupling business license of business license to be identified, coupling business license is steadyThe cryptographic Hash identical business license of the stable region of the cryptographic Hash of localization and business license to be identified;If existing, continue to determineThe quantity of coupling business license;And then according to quantity, identify business license to be identified.It is only necessary to determine stable region during being somebody's turn to doCryptographic Hash and the quantity mating business license, need not be in all pixels on business license image to be identified and data baseEach business license is compared, and reduces the time that business license is forged in identification, realizes raising identification and forges business licenseThe purpose of efficiency.
Optionally, in an embodiment of the present invention, described judge module 12, if it is true to be additionally operable to described quantity determining module 13Described quantity=1 made, then judge the finger image of described business license to be identified and the described image mating business licenseWhether fingerprint is identical;
Described identification module 14, if if the image judging described business license to be identified for described judge module 12 refers toStricture of vagina is different from the finger image of described coupling business license it is determined that described business license to be identified is to forge business license;NoThen, determine that described business license to be identified is not to forge business license.
Optionally, in an embodiment of the present invention, described identification module 14, if specifically for described quantity determining module 13Determine described quantity >=2 it is determined that described business license to be identified is to forge business license.
Fig. 4 identifies the structural representation of the device embodiment two forging business license for the present invention, shown in the present embodimentThe device of business license is forged in identification, on the basis of above-mentioned Fig. 3, further, also includes:Add module 15;
Described judge module 12, is additionally operable to determine that described business license to be identified is to forge business in described identification module 14After license, judge whether the finger image of described business license to be identified is identical with the finger image of each coupling business license;
Described add module 15, for judging the finger image of described business license to be identified in described judge module 12All differ with each finger image mating business license, then add described business license to be identified in described data base.
Optionally, refer to Fig. 4 again, in an embodiment of the present invention, the device of business license is forged in above-mentioned identificationAlso include:
Processing module 16, for determining the Hash of the stable region of business license to be identified in described cryptographic Hash determining module 11Before value, detect the connected domain of described business license to be identified;Described stable region is determined from described connected domain.
Optionally, in an embodiment of the present invention, described processing module 16, specifically for the spy according to described stable regionLevy, filter out, from described connected domain, the region not meeting described feature, so that it is determined that going out described stable region.
Optionally, in an embodiment of the present invention, described identification module 14, is additionally operable to judge in described judge module 12There is not described coupling business license it is determined that described business license to be identified is not to forge business license in described data base;
Described add module 15, for adding described business license to be identified in described data base.
One of ordinary skill in the art will appreciate that:The all or part of step realizing above-mentioned each method embodiment can be led toCross the related hardware of programmed instruction to complete.Aforesaid program can be stored in a computer read/write memory medium.This journeySequence upon execution, executes the step including above-mentioned each method embodiment;And aforesaid storage medium includes:ROM, RAM, magnetic disc orPerson's CD etc. is various can be with the medium of store program codes.
Finally it should be noted that:Various embodiments above only in order to technical scheme to be described, is not intended to limit;To the greatest extentPipe has been described in detail to the present invention with reference to foregoing embodiments, it will be understood by those within the art that:Its according toSo the technical scheme described in foregoing embodiments can be modified, or wherein some or all of technical characteristic is enteredRow equivalent;And these modifications or replacement, do not make the essence of appropriate technical solution depart from various embodiments of the present invention technologyThe scope of scheme.