CN104852889A - Picture identifying code generation method and system, and verify method and client side, and server - Google Patents

Picture identifying code generation method and system, and verify method and client side, and server Download PDF

Info

Publication number
CN104852889A
CN104852889A CN201410055504.3A CN201410055504A CN104852889A CN 104852889 A CN104852889 A CN 104852889A CN 201410055504 A CN201410055504 A CN 201410055504A CN 104852889 A CN104852889 A CN 104852889A
Authority
CN
China
Prior art keywords
character
picture
validation code
picture validation
prospect
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Pending
Application number
CN201410055504.3A
Other languages
Chinese (zh)
Inventor
王玉叶
刘金星
张彦玲
孙淑芹
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Tencent Technology Shenzhen Co Ltd
Original Assignee
Tencent Technology Shenzhen Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Tencent Technology Shenzhen Co Ltd filed Critical Tencent Technology Shenzhen Co Ltd
Priority to CN201410055504.3A priority Critical patent/CN104852889A/en
Publication of CN104852889A publication Critical patent/CN104852889A/en
Pending legal-status Critical Current

Links

Landscapes

  • Character Input (AREA)

Abstract

A picture identifying code generation method comprises the following steps: obtaining a background picture; obtaining foreground characters; embedding the foreground characters in the background picture so as to obtain a picture identifying code; generating interference element used for cutting the foreground characters and integrating with background picture color. The method uses the interference element integrating with the background picture color in the picture identifying code to cut the foreground characters, so an automatic machine can only extract foreground character fragments in the picture identifying code without extracting the whole foreground characters, thus increasing automatic machine difficulty of declassifying picture identifying code; the foreground characters are cut, yet a whole layout formed by the foreground character fragments allow the image identifying code to be easily recognized by a user, so the difficulty of the user identifying the picture identifying code is not increased; in addition, the invention also provides a picture identifying code generation system, a verify method based on the picture identifying code, a client side, and a server.

Description

Method for generating picture verification codes and system, verification method and client and server
Technical field
The present invention relates to image processing techniques, particularly relate to a kind of method for generating picture verification codes and system.
Background technology
Verification code technology is turing test (the CompletelyAutomated Public Turing test to tell Computers and Humans Apart of a kind of full-automatic differentiation computer and the mankind, CAPTCHA), the public full auto-programs of to be a kind of user of differentiation be computer or people.Verification code technology is exactly that the numeral of a string random generation or symbol are generated a width picture, some interference elements are added in picture, namely this picture is called picture validation code, and by the character in user's naked eyes identification picture validation code, character is committed to website, verified by website, be proved to be successful rear user and could use a certain function.
In order to prevent computer batch registration, malice cracks, forum pours water, and general website all adopts verification code technology.And automaton is specifically designed to a kind of computer program cracking picture validation code, it, by using various image recognition technology, identifies corresponding character and Output rusults, automatically to realize automatically cracking picture validation code from picture validation code.
The general flow that automaton cracks picture validation code is: the background in segmentation picture validation code and character, be syncopated as single character, and identify single character one by one from the character string of adhesion.Along with OCR(OpticalCharacter Recognition, optical character identification) development of technology, picture validation code more and more cannot resist cracking of automaton.Cracking difficulty to increase automaton, needing in picture validation code, increase more more complicated interference elements, but these interference elements can make again the discrimination power of normal users to picture validation code also decline to a great extent.
Summary of the invention
Based on this, be necessary to provide a kind of method for generating picture verification codes and system, make generated picture validation code can increase automaton crack difficulty and can not adding users identification difficulty.
A kind of method for generating picture verification codes, comprises the following steps:
Background extraction picture;
Acquisition prospect character;
Described prospect character is embedded in described picture prospect, obtains picture validation code;
The described prospect character of segmentation is generated and the interference element melted mutually with described background picture color in described picture validation code.
A kind of picture validation code generation system, comprising:
Prospect acquisition module, for background extraction picture;
Character acquisition module, for obtaining prospect character;
Synthesis module, for being embedded in described background picture by described prospect character, obtains picture validation code;
Interference element generation module, splits described prospect character for generation in described picture validation code and the interference element melted mutually with described background picture color.
In addition, there is a need to provide a kind of increase automaton crack picture validation code difficulty and can not the verification method based on picture validation code of difficulty of adding users identification picture validation code and client and server.
Based on a verification method for picture validation code, comprise the following steps:
Receive and show the picture validation code that server sends, comprising interference element in described picture validation code, described interference element is split the prospect character in described picture validation code and is melted mutually with the background picture color in described picture validation code;
Obtain the character inputted by the identifying code input interface corresponding with described picture validation code;
The character of input is sent to described server, makes described server obtain matching result according to the character of input and described picture validation code;
Receive and show the web page contents corresponding with described matching result that described server returns.
Based on a verification method for picture validation code, comprise the following steps:
Generating pictures identifying code, described picture validation code generates according to above-mentioned method for generating picture verification codes;
Preserve the corresponding relation of picture validation code and the character expressed by picture validation code;
Described picture validation code is handed down to client, makes described client show described picture validation code;
Receive the character inputted by the identifying code input interface corresponding with described picture validation code that described client is submitted to;
Character expressed by the character of described input and described picture validation code is matched, obtains matching result;
Corresponding web page contents is issued to described client according to described matching result.
Based on a checking client for picture validation code, comprising:
Identifying code receiver module, for the picture validation code that reception server sends, comprise interference element in described picture validation code, described interference element is split the prospect character in described picture validation code and is melted mutually with the background picture color in described picture validation code;
Identifying code display module, for showing described picture validation code;
Character acquisition module, for obtaining the character inputted by the identifying code input interface corresponding with described picture validation code;
Character sending module, for the character of input is sent to described server, makes described server obtain matching result according to the character of input and described picture validation code;
Webpage receiver module, for receiving the web page contents corresponding with described matching result that described server returns;
Web page display module, for showing described web page contents.
Based on an authentication server for picture validation code, comprising:
Above-mentioned picture validation code generation system;
Memory module, for preserving the corresponding relation of the character expressed by picture validation code and picture validation code;
Identifying code issues module, for described picture validation code is handed down to client, makes described client show described picture validation code;
Receive character module, for receiving the character inputted by the identifying code input interface corresponding with described picture validation code that described client is submitted to;
Matching module, for being matched by the character expressed by the character of described input and described picture validation code, obtains matching result;
Webpage issues module, for issuing corresponding web page contents according to described matching result to described client.
Above-mentioned method for generating picture verification codes and system, based on the verification method of picture validation code and client and server, prospect character is split with the interference element melted mutually with background picture color in picture validation code, can think that interference element has also become a part for background picture, make automaton can only extract prospect character fragment in picture validation code, and whole prospect character can not be extracted, thus add the difficulty that automaton cracks picture validation code, effectively prevent automaton batch registration, malice cracks, forum pours water, and although prospect character is divided, but the overall profile that prospect character fragment is formed still can make picture validation code be easy to recognized by the user, therefore can not the difficulty of adding users identification picture validation code.
Accompanying drawing explanation
Fig. 1 is the schematic flow sheet of the method for generating picture verification codes in an embodiment;
Fig. 2 A is the schematic diagram of the picture validation code in an embodiment;
Fig. 2 B is the picture validation code schematic diagram that the method for generating picture verification codes in an embodiment generates;
Fig. 2 C is the picture validation code schematic diagram that the method for generating picture verification codes in an embodiment generates;
Fig. 3 is the schematic flow sheet of the verification method based on picture validation code in an embodiment;
Fig. 4 is the schematic flow sheet of the verification method based on picture validation code in an embodiment;
Fig. 5 is the structural representation of the picture validation code generation system in an embodiment;
Fig. 6 is the structural representation of the checking client based on picture validation code in an embodiment;
Fig. 7 is the structural representation of the authentication server based on picture validation code in an embodiment;
Fig. 8 is the module map of a computer system 1000 that can realize the embodiment of the present invention.
Embodiment
In order to make object of the present invention, technical scheme and advantage clearly understand, below in conjunction with drawings and Examples, the present invention is further elaborated.Should be appreciated that specific embodiment described herein only in order to explain the present invention, be not intended to limit the present invention.
Unless context separately has the description of specific distinct, the element in the present invention and assembly, the form that quantity both can be single exists, and form that also can be multiple exists, and the present invention does not limit this.Although the step in the present invention arranges with label, and be not used in and limit the precedence of step, the order of step or the execution of certain step need based on other steps unless expressly stated, otherwise the relative rank of step is adjustable.Be appreciated that term "and/or" used herein relates to and contains the one or more any and all possible combination in the Listed Items be associated.
As shown in Figure 1, in one embodiment, a kind of method for generating picture verification codes, comprises the following steps:
Step S102, background extraction picture.
In one embodiment, can collect background picture in advance and be saved in Background valut, step S102 can randomly draw background picture from Background valut.In another embodiment, step S102 can the color of random selecting background picture, and according to the color generation background picture chosen.
Step S104, obtains prospect character.
In one embodiment, character sample can be collected in advance and be saved in character sample storehouse, step S104 can from character sample storehouse random selecting character sample as the prospect character of picture validation code.In another embodiment, step S104 can character (the capitalization English character in such as A ~ Z) in random selecting preset range and character color and character font, generates prospect character according to the character chosen, character color and character font.
Further, prospect character can be carried out torsional deformation by step S104, such as rigidity distortion or nonlinear deformation etc.
Step S106, embeds prospect character in background picture, obtains picture validation code.
In one embodiment, prospect character can be carried out rotate in rear embedding background picture, the angle of rotation can random selecting, and makes between prospect character inter-adhesive, to improve the difficulty that automaton extracts single character from picture validation code.
Step S108, generates segmentation prospect character and the interference element melted mutually with background picture color in picture validation code.
For the background picture with solid color, interference element and the color of background picture melt that namely to refer to interference element identical with background picture color mutually.For the background picture with complex colors, interference element and background picture color melt the color rule that the color referring to interference element meets pixel in background picture mutually, and after being placed in background picture by interference element, interference element and background picture can combine together.Such as, the background picture 201 in the picture validation code 20a shown in Fig. 2 A is for having the natural picture of complex colors, and prospect character 203 is divided into multiple part by interference element 202 wherein, and interference element 202 melts mutually with background picture 201 color.
In one embodiment, step S108 comprises the following steps: selected pixels point on prospect character, draws the interfering line through the pixel chosen, undertaken painted, interfering line is melted mutually with background picture color by interfering line in picture validation code.
Can on prospect character random selecting pixel, the position of pixel is determined at random, and the quantity of pixel is also determined at random in preset range.Further, in picture validation code, draw the geometrical line through the pixel chosen, the geometrical line of drafting can be one or more.Further, can the pixel color of geometrical line overlay area in background extraction picture, and according to the pixel color of geometrical line overlay area in background picture, the pixel of correspondence position in geometrical line is carried out painted, make geometrical line overlay area recover the color of background picture itself.The present embodiment makes interfering line not only can the background picture color single with color melt mutually, also can melt mutually with the background picture color of color complexity.
Above-mentioned interfering line can be the geometrical line of arbitrary shape.
In one embodiment, the step of drawing through the geometrical line of the pixel chosen comprises: connect pixel successively according to pixel putting in order in picture validation code and form geometrical line; And/or, three in the pixel chosen not pixel on the same line draw circle, camber line, parabola or hyperbola etc.; And/or two pixels in the pixel chosen draw line segment; And/or, draw Bezier through the pixel chosen.
Fig. 2 B is the picture validation code schematic diagram that in an embodiment, above-mentioned method for generating picture verification codes generates.As shown in Figure 2 B, above-mentioned method for generating picture verification codes generates interfering line 204 in picture validation code 20b, interfering line 204 is split prospect character 205 and is melted mutually with background picture 206 color, make automaton can only extract prospect character fragment in picture validation code 20b, and whole prospect character can not be extracted, thus add the difficulty that automaton cracks picture validation code.
In another embodiment, step S108 comprises the following steps: the profile along prospect character generates the cut-off rule of the character stroke of segmentation prospect character, make prospect character form dotted line character, cut-off rule is carried out painted, cut-off rule is melted mutually with background picture color.It is dotted line that so-called dotted line character refers to character stroke.
The cut-off rule of the character stroke of segmentation prospect character can be generated according to the interval of presetting along the profile of prospect character, namely the distance between two cut-off rules is fixed, or generating the cut-off rule of character stroke of segmentation prospect character according to random interval along the profile of prospect character, the distance namely between two cut-off rules is random.Wherein the width of cut-off rule can pre-set, also can random selecting within the specific limits.Further, can the pixel color of cut-off rule overlay area in background extraction picture, and according to the pixel color of cut-off rule overlay area in background picture, the pixel of correspondence position on cut-off rule is carried out painted, make cut-off rule overlay area recover the color of background picture itself.The present embodiment makes cut-off rule not only can the background picture color single with color melt mutually, also can melt mutually with the background picture color of color complexity.
Fig. 2 C is the picture validation code schematic diagram that in an embodiment, above-mentioned method for generating picture verification codes generates.As shown in Figure 2 C, above-mentioned method for generating picture verification codes generates the cut-off rule 208 of the character stroke of segmentation prospect character 207 in picture validation code 20c along the profile of prospect character 207, prospect character 207 is made to form dotted line character, and cut-off rule 208 is carried out painted, cut-off rule 208 is melted mutually with background picture 209 color.
In one embodiment, above-mentioned method for generating picture verification codes is further comprising the steps of: in picture validation code, generate noise.Noise can be the spot etc. of stochastic generation.Noise can comprise background noise and prospect noise.Prospect noise and prospect noise can be identical or different.Wherein the coverage of background noise comprises all regions in picture validation code beyond prospect character, and the coverage of prospect noise is prospect character region.
In the present embodiment, in picture validation code, generate noise, the difficulty that automaton cracks picture validation code can be improved.
In one embodiment, above-mentioned method for generating picture verification codes is further comprising the steps of: in picture validation code, generate the interfering line melted mutually with prospect character color.The implication that the color of interfering line and the implication that prospect character color melts mutually and above-mentioned interfering line and background picture is melted mutually is consistent.In the present embodiment, the interfering line melted mutually with prospect character color can increase the degree of adhesion of prospect character, thus improves the difficulty that automaton extracts single character from picture validation code.
As shown in Figure 3, in one embodiment, a kind of verification method based on picture validation code, comprises the following steps:
Step S302, receives and shows the picture validation code that server sends, comprising interference element in picture validation code, and interference element is split the prospect character in picture validation code and melted mutually with the background picture color in picture validation code.
In one embodiment, before step S302, can obtain the web page access instruction that user triggers, such as, user inputs network address and carries out the web page access instruction that accessing operation triggers in browser address bar; Generating web page access request, is sent to server by web access requests.Further, step S302 can reception server send web page contents, resolve and displayed web page content, comprise picture validation code and the identifying code input interface corresponding with picture validation code in this web page contents.
In another embodiment, before step S302, can obtain the instruction of the new picture validation code of generation that user triggers, such as, user clicks the instruction of the new picture validation code of generation that " do not see, change one " control triggers; Generate the request producing new picture validation code, this request is sent to server.Step S302 can the newly-generated picture validation code of reception server, and original picture validation code is replaced with the new picture validation code received in web page contents.
In one embodiment, above-mentioned interference element is the interfering line of the pixel on prospect character in picture validation code.
Above-mentioned interfering line can be arbitrary geometrical line.In one embodiment, interfering line can comprise: line segment, circle, camber line, parabola, hyperbola and/or Bezier etc.
In another embodiment, above-mentioned interference element is the cut-off rule generated along the profile of the prospect character in picture validation code, and the character stroke of the prospect character in this cut-off rule segmentation picture validation code, makes prospect character form dotted line character.
Step S304, obtains the character by the identifying code input interface corresponding with picture validation code input.
Step S306, is sent to server by the character of input, makes server obtain matching result according to the character of input and picture validation code.
Step S308, receives and shows the web page contents corresponding with matching result that server returns.
The above-mentioned verification method based on picture validation code also comprises step: submit service request to server.Such as submit to server and comprise the logging request of user account information or registration request etc.If the character of input and character expressed by picture validation code match, then the web page contents that matching result is corresponding can be web page contents corresponding to the service request of submission.If the character of input does not mate with the character expressed by picture validation code, then the web page contents that matching result is corresponding can comprise the information for pointing out identifying code input error.
As shown in Figure 4, in one embodiment, a kind of verification method based on picture validation code, comprises the following steps:
Step S402, generating pictures identifying code.
In one embodiment, before step S402, can receive that client (browser) sends to the web access requests of webpage comprising picture validation code, or receive the request of the new picture validation code of generation that client (browser) sends.
Step S402 according to the method for generating picture verification codes generating pictures identifying code in above-mentioned any embodiment, can not repeat them here.
Step S404, preserves the corresponding relation of picture validation code and the character expressed by picture validation code.
The character representated by prospect character picture of the character expressed by picture validation code and picture validation code.
Step S406, is handed down to client by picture validation code, makes client exhibiting pictures identifying code.
Step S408, receives the character by the identifying code input interface corresponding with picture validation code input that client is submitted to.
Step S410, matches the character expressed by the character of input and picture validation code, obtains matching result.
Step S412, issues corresponding web page contents according to matching result to client.
The above-mentioned verification method based on picture validation code also comprises step: receive the service request that client is submitted to.The logging request comprising user account information that such as reception client is submitted to or registration request etc.If the character of input and character expressed by picture validation code match, then the web page contents that matching result is corresponding can be web page contents corresponding to the service request of submission.If the character of input does not mate with the character expressed by picture validation code, then the web page contents that matching result is corresponding can comprise the information for pointing out identifying code input error.
As shown in Figure 5, in one embodiment, a kind of picture validation code generation system, comprises prospect acquisition module 502, character acquisition module 504, synthesis module 506 and interference element generation module 508, wherein:
Prospect acquisition module 502 is for background extraction picture.
In one embodiment, above-mentioned picture validation code generation system also comprises background collection preservation module (not shown), for collecting background picture and being saved in Background valut.Prospect acquisition module 502 can randomly draw background picture from Background valut.In another embodiment, prospect acquisition module 502 can the color of random selecting background picture, and according to the color generation background picture chosen.
Character acquisition module 504 is for obtaining prospect character.
In one embodiment, above-mentioned picture validation code generation system also comprises character Collection and conservation module (not shown), for collecting character sample and being saved in character sample storehouse, character acquisition module 504 can from character sample storehouse random selecting character sample as the prospect character of picture validation code.In another embodiment, character acquisition module 504 can character (the capitalization English character in such as A ~ Z) in random selecting preset range and character color and character font, generates prospect character according to the character chosen, character color and character font.
In one embodiment, character acquisition module 504 also for prospect character is carried out torsional deformation, such as rigidity distortion or nonlinear deformation etc.
Synthesis module 506, for being embedded in background picture by prospect character, obtains picture validation code.
In one embodiment, prospect character can carry out rotating in rear embedding background picture by synthesis module 506, and the angle of rotation can random selecting, and makes between prospect character inter-adhesive, to improve the difficulty that automaton extracts single character from picture validation code.
Interference element generation module 508 for generating segmentation prospect character and the interference element melted mutually with background picture color in picture validation code.
For the background picture with solid color, interference element and the color of background picture melt that namely to refer to interference element identical with background picture color mutually.For the background picture with complex colors, interference element and background picture color melt the color rule that the color referring to interference element meets pixel in background picture mutually, and after being placed in background picture by interference element, interference element and background picture can combine together.
In one embodiment, interference element generation module 508, for selected pixels point on prospect character, is drawn the interfering line through the pixel chosen, is undertaken painted, interfering line is melted mutually with background picture color by interfering line in picture validation code.
Interference element generation module 508 can on prospect character random selecting pixel, the position of pixel is determined at random, and the quantity of pixel is also determined at random in preset range.Further, interference element generation module 508 can draw the geometrical line through the pixel chosen in picture validation code, and the geometrical line of drafting can be one or more.Further, interference element generation module 508 can the pixel color of geometrical line overlay area in background extraction picture, and according to the pixel color of geometrical line overlay area in background picture, the pixel of correspondence position in geometrical line is carried out painted, make geometrical line overlay area recover the color of background picture itself.The present embodiment makes interfering line not only can the background picture color single with color melt mutually, also can melt mutually with the background picture color of color complexity.
Above-mentioned interfering line can be the geometrical line of arbitrary shape.
In one embodiment, the process that interference element generation module 508 is drawn through the geometrical line of the pixel chosen comprises: connect pixel successively according to pixel putting in order in picture validation code and form geometrical line; And/or, three in the pixel chosen not pixel on the same line draw circle, camber line, parabola or hyperbola etc.; And/or two pixels in the pixel chosen draw line segment; And/or, draw Bezier through the pixel chosen.
In another embodiment, interference element generation module 508 is for generating the cut-off rule of the character stroke of segmentation prospect character along the profile of prospect character, make prospect character form dotted line character, cut-off rule is carried out painted, cut-off rule is melted mutually with background picture color.It is dotted line that so-called dotted line character refers to character stroke.
Interference element generation module 508 can generate the cut-off rule of the character stroke of segmentation prospect character according to the interval of presetting along the profile of prospect character, namely the distance between two cut-off rules is fixed, or generating the cut-off rule of character stroke of segmentation prospect character according to random interval along the profile of prospect character, the distance namely between two cut-off rules is random.Wherein the width of cut-off rule can pre-set, also can random selecting within the specific limits.Further, interference element generation module 508 can the pixel color of cut-off rule overlay area in background extraction picture, and according to the pixel color of cut-off rule overlay area in background picture, the pixel of correspondence position on cut-off rule is carried out painted, make cut-off rule overlay area recover the color of background picture itself.The present embodiment makes cut-off rule not only can the background picture color single with color melt mutually, also can melt mutually with the background picture color of color complexity.
In one embodiment, above-mentioned picture validation code generation system also comprises noise generation module (not shown), for generating noise in picture validation code.Noise can be the spot etc. of stochastic generation.Noise can comprise background noise and prospect noise.Prospect noise and prospect noise can be identical or different.Wherein the coverage of background noise comprises all regions in picture validation code beyond prospect character, and the coverage of prospect noise is prospect character region.
In the present embodiment, in picture validation code, generate noise, the difficulty that automaton cracks picture validation code can be improved.
In one embodiment, above-mentioned picture validation code generation system also comprises prospect interfering line generation module (not shown), for generating the interfering line melted mutually with prospect character color in picture validation code.The implication that the color of interfering line and the implication that prospect character color melts mutually and above-mentioned interfering line and background picture is melted mutually is consistent.In the present embodiment, the interfering line melted mutually with prospect character color can increase the degree of adhesion of prospect character, thus improves the difficulty that automaton extracts single character from picture validation code.
As shown in Figure 6, in one embodiment, a kind of checking client based on picture validation code, this checking client can be browser, comprise identifying code receiver module 602, identifying code display module 604, character acquisition module 606, character sending module 608, webpage receiver module 610 and web page display module 612, wherein:
The picture validation code that identifying code receiver module 602 sends for reception server, comprises interference element in picture validation code, and interference element is split the prospect character in picture validation code and melted mutually with the background picture color in picture validation code.
Identifying code display module 604 is for exhibiting pictures identifying code.
In one embodiment, the above-mentioned checking client based on picture validation code also comprises web access requests acquisition module and web access requests sending module (not shown), the web page access instruction that web access requests acquisition module triggers for obtaining user, such as, user inputs network address and carries out the web page access instruction that accessing operation triggers in browser address bar; And generating web page access request; Web access requests sending module is used for web access requests to be sent to server.Identifying code receiver module 602 can reception server send web page contents, comprise picture validation code and the identifying code input interface corresponding with picture validation code in this web page contents.The above-mentioned checking client based on picture validation code also comprises web analysis module (not shown), for resolving the web page contents of reception.Identifying code display module 604 is for showing the web page contents after parsing.
In another embodiment, the above-mentioned checking client based on picture validation code also comprises identifying code acquisition request module and identifying code request sending module (not shown), the instruction of generation new picture validation code of identifying code acquisition request module for obtaining user and triggering, such as, the instruction of the picture validation code that the generation that user's click " do not see, change one " control (or link) triggers is new; And generate the request producing new picture validation code; Identifying code request sending module is used for the request producing new picture validation code to be sent to server.Identifying code receiver module 602 can the newly-generated picture validation code of reception server.Identifying code display module 604 for replacing with the new picture validation code received in web page contents by original picture validation code.
In one embodiment, above-mentioned interference element is the interfering line of the pixel on prospect character in picture validation code.
Above-mentioned interfering line can be the geometrical line of arbitrary shape.In one embodiment, interfering line can comprise: line segment, circle, camber line, parabola, hyperbola are or/and Bezier etc.
In another embodiment, above-mentioned interference element is the cut-off rule generated along the profile of the prospect character in picture validation code, and the character stroke of the prospect character in this cut-off rule segmentation picture validation code, makes prospect character form dotted line character.
Character acquisition module 606 is for obtaining the character by the identifying code input interface corresponding with picture validation code input.
Character sending module 608, for the character of input is sent to server, makes server obtain matching result according to the character of input and picture validation code.
The web page contents corresponding with matching result that webpage receiver module 610 returns for reception server.
Web page display module 612 is for displayed web page content.
The above-mentioned checking client based on picture validation code also comprises service request and submits module (not shown) to, for submitting service request to server, such as, submits the logging request that comprises user account information or registration request etc. to server.If the character of input and character expressed by picture validation code match, then the web page contents that matching result is corresponding can be web page contents corresponding to the service request of submission.If the character of input does not mate with the character expressed by picture validation code, then the web page contents that matching result is corresponding can comprise the information for pointing out identifying code input error.
As shown in Figure 7, in one embodiment, based on an authentication server for picture validation code, comprise picture validation code generation system 702, memory module 704, identifying code issue module 706, receive character module 708, matching module 710 and webpage and issue module 712, wherein:
Picture validation code generation system 702 is for generating pictures identifying code.Picture validation code generation system can be identical with the picture validation code in any embodiment mentioned above, do not repeat them here.
In one embodiment, the above-mentioned authentication server based on picture validation code also comprises request receiving module (not shown), for receive that client (browser) sends to the web access requests of webpage comprising picture validation code, or receive the request of the new picture validation code of client (browser) generation that sends, thus trigger picture validation code generation system generating pictures identifying code.
Memory module 704 is for preserving the corresponding relation of the character expressed by picture validation code and picture validation code.
The character representated by prospect character picture of the character expressed by picture validation code and picture validation code.
Identifying code issues module 706 for picture validation code is handed down to client, makes client exhibiting pictures identifying code.
The character by the identifying code input interface corresponding with picture validation code input that receive character module 708 is submitted to for receiving client.
Matching module 710, for being matched by the character expressed by the character of input and picture validation code, obtains matching result.
Webpage issues module 712 for issuing corresponding web page contents according to matching result to client.
The above-mentioned authentication server based on picture validation code also comprises service request reception module (not shown), for receiving the service request that client is submitted to, and the logging request comprising user account information that such as reception client is submitted to or registration request etc.If the character of input and character expressed by picture validation code match, then the web page contents that matching result is corresponding can be web page contents corresponding to the service request of submission.If the character of input does not mate with the character expressed by picture validation code, then the web page contents that matching result is corresponding can comprise the information for pointing out identifying code input error.
Above-mentioned method for generating picture verification codes and system, based on the verification method of picture validation code and client and server, prospect character is split with the interference element melted mutually with background picture color in picture validation code, can think that interference element has also become a part for background picture, make automaton can only extract prospect character fragment in picture validation code, and whole prospect character can not be extracted, thus add the difficulty that automaton cracks picture validation code, effectively prevent automaton batch registration, malice cracks, forum pours water, and although prospect character is divided, but the overall profile that prospect character fragment is formed still can make picture validation code be easy to recognized by the user, therefore can not the difficulty of adding users identification picture validation code.
Fig. 8 is the module map of a computer system 1000 that can realize the embodiment of the present invention.This computer system 1000 is an example being applicable to computer environment of the present invention, can not think to propose any restriction to the scope of application of the present invention.Computer system 1000 can not be interpreted as the combination needing the one or more parts depending on or have in illustrated exemplary computer system 1000.
Computer system 1000 shown in Fig. 8 is the examples being suitable for computer system of the present invention.Other framework with different sub-systems configuration also can use.The similar devices such as the desktop computer known by masses, notebook, panel computer are such as had to go for some embodiments of the present invention.But be not limited to above cited equipment.
As shown in Figure 8, computer system 1000 comprises processor 1010, memory 1020 and system bus 1022.The various system components comprising memory 1020 and processor 1010 are connected on system bus 1022.Processor 1010 is the hardware being used for being performed by arithmetic sum logical operation basic in computer system computer program instructions.Memory 1020 be one for storing the physical equipment of calculation procedure or data (such as, program state information) temporarily or permanently.System bus 1020 can be any one in the bus structures of following several types, comprises memory bus or storage control, peripheral bus and local bus.Processor 1010 and memory 1020 can carry out data communication by system bus 1022.Wherein memory 1020 comprises read-only memory (ROM) or flash memory (all not shown in figure), and random-access memory (ram), and RAM typically refers to the main storage being loaded with operating system and application program.
Computer system 1000 also comprises display interface 1030(such as, Graphics Processing Unit), display device 1040(such as, liquid crystal display), audio interface 1050(such as, sound card) and audio frequency apparatus 1060(such as, loud speaker).Display device 1040 and audio frequency apparatus 1060 are the media devices for experiencing content of multimedia.
Computer system 1000 generally comprises a memory device 1070.Memory device 1070 can be selected from multiple computer-readable medium, and computer-readable medium refers to any available medium can accessed by computer system 1000, that comprise movement and fixing two media.Such as, computer-readable medium includes but not limited to, flash memory (miniature SD card), CD-ROM, digital versatile disc (DVD) or other optical disc storage, cassette, tape, disk storage or other magnetic storage apparatus, or can be used for storing information needed and other medium any can accessed by computer system 1000.
Computer system 1000 also comprises input unit 1080 and input interface 1090(such as, I/O controller).User can pass through input unit 1080, and as the touch panel equipment in keyboard, mouse, display unit 1040, input instruction and information are in computer system 1000.Input unit 1080 is normally connected on system bus 1022 by input interface 1090, but also can be connected by other interface or bus structures, as USB (USB).
Computer system 1000 can be carried out logic with one or more network equipment in a network environment and is connected.The network equipment can be PC, server, router, smart phone, panel computer or other common network node.Computer system 1000 is connected with the network equipment by Local Area Network interface 1100 or mobile comm unit 1110.Local Area Network refers in finite region, such as family, school, computer laboratory or use the office building of the network media, the computer network of interconnected composition.WiFi and twisted-pair feeder wiring Ethernet are two kinds of technology of the most frequently used structure local area network (LAN).WiFi is a kind of technology that can make computer system 1000 swapping data or be connected to wireless network by radio wave.Mobile comm unit 1110 can be answered by radio communication diagram while movement and call in a wide geographic area.Except call, mobile comm unit 1110 is also supported in the 2G providing mobile data service, carries out internet access in 3G or 4G cellular communication system.
It should be pointed out that other computer system comprising the subsystem more more or less than computer system 1000 also can be applicable to invention.Such as, computer system 1000 can comprise can in short distance the bluetooth unit of swap data, for the imageing sensor of taking a picture, and for the accelerometer of acceleration measurement.
As described in detail, be applicable to the assigned operation that computer system 1000 of the present invention can perform method for generating picture verification codes above.The form of the software instruction that computer system 1000 is operated in computer-readable medium by processor 1010 performs these operations.These software instructions can be read into memory 1020 from memory device 1070 or by lan interfaces 1100 from another equipment.The software instruction be stored in memory 1020 makes processor 1010 perform above-mentioned method for generating picture verification codes.In addition, also the present invention can be realized equally by hardware circuit or hardware circuit in conjunction with software instruction.Therefore, the combination that the present invention is not limited to any specific hardware circuit and software is realized.
The above embodiment only have expressed several execution mode of the present invention, and it describes comparatively concrete and detailed, but therefore can not be interpreted as the restriction to the scope of the claims of the present invention.It should be pointed out that for the person of ordinary skill of the art, without departing from the inventive concept of the premise, can also make some distortion and improvement, these all belong to protection scope of the present invention.Therefore, the protection range of patent of the present invention should be as the criterion with claims.

Claims (14)

1. a method for generating picture verification codes, comprises the following steps:
Background extraction picture;
Acquisition prospect character;
Described prospect character is embedded in described background picture, obtains picture validation code;
The described prospect character of segmentation is generated and the interference element melted mutually with described background picture color in described picture validation code.
2. method for generating picture verification codes according to claim 1, is characterized in that, describedly in described picture validation code, generates the described prospect character of segmentation and the step of the interference element melted mutually with described background picture color comprises:
Selected pixels point on described prospect character, draws the interfering line through described pixel, is undertaken painted by described interfering line in described picture validation code, and described interfering line is melted mutually with described background picture color.
3. method for generating picture verification codes according to claim 1, is characterized in that, describedly in described picture validation code, generates the described prospect character of segmentation and the step of the interference element melted mutually with described background picture color comprises:
Profile along described prospect character generates the cut-off rule of the character stroke of the described prospect character of segmentation, makes described prospect character form dotted line character, is undertaken painted, described cut-off rule is melted mutually with described background picture color by described cut-off rule.
4., based on a verification method for picture validation code, comprise the following steps:
Receive and show the picture validation code that server sends, comprising interference element in described picture validation code, described interference element is split the prospect character in described picture validation code and is melted mutually with the background picture color in described picture validation code;
Obtain the character inputted by the identifying code input interface corresponding with described picture validation code;
The character of input is sent to described server, makes described server obtain matching result according to the character of input and described picture validation code;
Receive and show the web page contents corresponding with described matching result that described server returns.
5. the verification method based on picture validation code according to claim 4, is characterized in that, described interference element is the interfering line of the pixel on described prospect character.
6. the verification method based on picture validation code according to claim 4, described interference element is the cut-off rule generated along the profile of described prospect character, and described cut-off rule splits the character stroke of described prospect character, makes described prospect character form dotted line character.
7., based on a verification method for picture validation code, comprise the following steps:
Generating pictures identifying code, described picture validation code generates according to the arbitrary described method for generating picture verification codes of claims 1 to 3;
Preserve the corresponding relation of picture validation code and the character expressed by picture validation code;
Described picture validation code is handed down to client, makes described client show described picture validation code;
Receive the character inputted by the identifying code input interface corresponding with described picture validation code that described client is submitted to;
Character expressed by the character of described input and described picture validation code is matched, obtains matching result;
Corresponding web page contents is issued to described client according to described matching result.
8. a picture validation code generation system, is characterized in that, comprising:
Prospect acquisition module, for background extraction picture;
Character acquisition module, for obtaining prospect character;
Synthesis module, for being embedded in described background picture by described prospect character, obtains picture validation code;
Interference element generation module, splits described prospect character for generation in described picture validation code and the interference element melted mutually with described background picture color.
9. picture validation code generation system according to claim 8, it is characterized in that, described interference element generation module is for selected pixels point on described prospect character, the interfering line through described pixel is drawn in described picture validation code, described interfering line is carried out painted, described interfering line is melted mutually with described background picture color.
10. picture validation code generation system according to claim 8, it is characterized in that, described interference element generation module is used for the cut-off rule of the character stroke generating the described prospect character of segmentation along the profile of described prospect character, described prospect character is made to form dotted line character, described cut-off rule is carried out painted, described cut-off rule is melted mutually with described background picture color.
11. 1 kinds based on the checking client of picture validation code, is characterized in that, comprising:
Identifying code receiver module, for the picture validation code that reception server sends, comprise interference element in described picture validation code, described interference element is split the prospect character in described picture validation code and is melted mutually with the background picture color in described picture validation code;
Identifying code display module, for showing described picture validation code;
Character acquisition module, for obtaining the character inputted by the identifying code input interface corresponding with described picture validation code;
Character sending module, for the character of input is sent to described server, makes described server obtain matching result according to the character of input and described picture validation code;
Webpage receiver module, for receiving the web page contents corresponding with described matching result that described server returns;
Web page display module, for showing described web page contents.
12. checking clients based on picture validation code according to claim 11, is characterized in that, described interference element is the interfering line of the pixel on described prospect character.
13. checking clients based on picture validation code according to claim 11, described interference element is the cut-off rule generated along the profile of described prospect character, described cut-off rule splits the character stroke of described prospect character, makes described prospect character form dotted line character.
14. 1 kinds based on the authentication server of picture validation code, is characterized in that, comprising:
The arbitrary described picture validation code generation system of claim 8 to 10;
Memory module, for preserving the corresponding relation of the character expressed by picture validation code and picture validation code;
Identifying code issues module, for described picture validation code is handed down to client, makes described client show described picture validation code;
Receive character module, for receiving the character inputted by the identifying code input interface corresponding with described picture validation code that described client is submitted to;
Matching module, for being matched by the character expressed by the character of described input and described picture validation code, obtains matching result;
Webpage issues module, for issuing corresponding web page contents according to described matching result to described client.
CN201410055504.3A 2014-02-18 2014-02-18 Picture identifying code generation method and system, and verify method and client side, and server Pending CN104852889A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201410055504.3A CN104852889A (en) 2014-02-18 2014-02-18 Picture identifying code generation method and system, and verify method and client side, and server

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201410055504.3A CN104852889A (en) 2014-02-18 2014-02-18 Picture identifying code generation method and system, and verify method and client side, and server

Publications (1)

Publication Number Publication Date
CN104852889A true CN104852889A (en) 2015-08-19

Family

ID=53852249

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201410055504.3A Pending CN104852889A (en) 2014-02-18 2014-02-18 Picture identifying code generation method and system, and verify method and client side, and server

Country Status (1)

Country Link
CN (1) CN104852889A (en)

Cited By (18)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2016169437A1 (en) * 2015-04-23 2016-10-27 腾讯科技(深圳)有限公司 Verification picture generation method and device, and server
CN106096963A (en) * 2016-06-29 2016-11-09 深圳信息职业技术学院 The generation method and apparatus of a kind of identifying code and verification method and device
CN106127836A (en) * 2016-06-30 2016-11-16 北京奇艺世纪科技有限公司 Identifying code Picture Generation Method and device
CN106203058A (en) * 2016-06-30 2016-12-07 北京奇艺世纪科技有限公司 Verification code generation method and device
WO2017148315A1 (en) * 2016-03-04 2017-09-08 阿里巴巴集团控股有限公司 Captcha-based authentication processing method and device
CN108200043A (en) * 2017-12-28 2018-06-22 中国联合网络通信集团有限公司 Picture validation code verification method and picture validation code verification device
CN108804713A (en) * 2018-06-29 2018-11-13 上海掌门科技有限公司 Image output method, electronic equipment and computer-readable medium
CN109257168A (en) * 2018-09-21 2019-01-22 深圳市元征科技股份有限公司 A kind of generation method of picture validation code, device, equipment and medium
CN109495275A (en) * 2018-12-27 2019-03-19 北京航天福道高技术股份有限公司 Generate the setting method of random verification code
CN109933969A (en) * 2017-12-15 2019-06-25 腾讯科技(深圳)有限公司 Method for recognizing verification code, device, electronic equipment and readable storage medium storing program for executing
CN109977649A (en) * 2019-02-13 2019-07-05 平安科技(深圳)有限公司 Method for generating picture verification codes, device, storage medium and computer equipment
CN110730152A (en) * 2018-07-16 2020-01-24 杭州海康威视数字技术股份有限公司 Login verification method and device and electronic equipment
WO2020155772A1 (en) * 2019-01-28 2020-08-06 平安科技(深圳)有限公司 Verification image sending method, synthesis method, device, storage medium, and terminal
CN112839026A (en) * 2020-11-30 2021-05-25 中冶华天南京工程技术有限公司 Behavior verification code generation and verification method based on random grid and random watermark outline
CN112966252A (en) * 2021-04-26 2021-06-15 平安国际智慧城市科技股份有限公司 Client authentication method and device based on cryptographic technology, electronic equipment and medium
CN113449281A (en) * 2021-07-14 2021-09-28 上海少侠网络科技有限公司 Captcha technology incapable of being cracked based on human visual illusion
CN114494474A (en) * 2022-01-17 2022-05-13 广东石油化工学院 Generation method, verification method and device of universal verification code of human and legal equipment
CN116383798A (en) * 2023-06-05 2023-07-04 深圳依时货拉拉科技有限公司 Picture verification code generation method and device, computer equipment and storage medium

Citations (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20100046790A1 (en) * 2008-08-22 2010-02-25 Koziol Anthony R Method and system for generating a symbol identification challenge
CN102298763A (en) * 2010-06-28 2011-12-28 腾讯科技(北京)有限公司 Method and system for generating picture identifying code

Patent Citations (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20100046790A1 (en) * 2008-08-22 2010-02-25 Koziol Anthony R Method and system for generating a symbol identification challenge
CN102298763A (en) * 2010-06-28 2011-12-28 腾讯科技(北京)有限公司 Method and system for generating picture identifying code

Cited By (27)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2016169437A1 (en) * 2015-04-23 2016-10-27 腾讯科技(深圳)有限公司 Verification picture generation method and device, and server
US10439818B2 (en) 2015-04-23 2019-10-08 Tencent Technology (Shenzhen) Company Limited Captcha image generation method and apparatus, and server
WO2017148315A1 (en) * 2016-03-04 2017-09-08 阿里巴巴集团控股有限公司 Captcha-based authentication processing method and device
CN106096963A (en) * 2016-06-29 2016-11-09 深圳信息职业技术学院 The generation method and apparatus of a kind of identifying code and verification method and device
CN106203058B (en) * 2016-06-30 2019-07-09 北京奇艺世纪科技有限公司 Verification code generation method and device
CN106127836A (en) * 2016-06-30 2016-11-16 北京奇艺世纪科技有限公司 Identifying code Picture Generation Method and device
CN106203058A (en) * 2016-06-30 2016-12-07 北京奇艺世纪科技有限公司 Verification code generation method and device
CN106127836B (en) * 2016-06-30 2019-11-19 北京奇艺世纪科技有限公司 Identifying code Picture Generation Method and device
CN109933969B (en) * 2017-12-15 2021-05-07 腾讯科技(深圳)有限公司 Verification code identification method and device, electronic equipment and readable storage medium
CN109933969A (en) * 2017-12-15 2019-06-25 腾讯科技(深圳)有限公司 Method for recognizing verification code, device, electronic equipment and readable storage medium storing program for executing
CN108200043A (en) * 2017-12-28 2018-06-22 中国联合网络通信集团有限公司 Picture validation code verification method and picture validation code verification device
CN108804713A (en) * 2018-06-29 2018-11-13 上海掌门科技有限公司 Image output method, electronic equipment and computer-readable medium
CN108804713B (en) * 2018-06-29 2022-03-04 上海掌门科技有限公司 Image output method, electronic device, and computer-readable medium
CN110730152B (en) * 2018-07-16 2021-11-26 杭州海康威视数字技术股份有限公司 Login verification method and device and electronic equipment
CN110730152A (en) * 2018-07-16 2020-01-24 杭州海康威视数字技术股份有限公司 Login verification method and device and electronic equipment
CN109257168A (en) * 2018-09-21 2019-01-22 深圳市元征科技股份有限公司 A kind of generation method of picture validation code, device, equipment and medium
CN109495275A (en) * 2018-12-27 2019-03-19 北京航天福道高技术股份有限公司 Generate the setting method of random verification code
WO2020155772A1 (en) * 2019-01-28 2020-08-06 平安科技(深圳)有限公司 Verification image sending method, synthesis method, device, storage medium, and terminal
CN109977649A (en) * 2019-02-13 2019-07-05 平安科技(深圳)有限公司 Method for generating picture verification codes, device, storage medium and computer equipment
CN112839026A (en) * 2020-11-30 2021-05-25 中冶华天南京工程技术有限公司 Behavior verification code generation and verification method based on random grid and random watermark outline
CN112839026B (en) * 2020-11-30 2022-07-26 中冶华天南京工程技术有限公司 Behavior verification code generation and verification method based on random grid and random watermark outline
CN112966252A (en) * 2021-04-26 2021-06-15 平安国际智慧城市科技股份有限公司 Client authentication method and device based on cryptographic technology, electronic equipment and medium
CN112966252B (en) * 2021-04-26 2023-11-24 平安国际智慧城市科技股份有限公司 Client verification method and device based on password technology, electronic equipment and medium
CN113449281A (en) * 2021-07-14 2021-09-28 上海少侠网络科技有限公司 Captcha technology incapable of being cracked based on human visual illusion
CN114494474A (en) * 2022-01-17 2022-05-13 广东石油化工学院 Generation method, verification method and device of universal verification code of human and legal equipment
CN114494474B (en) * 2022-01-17 2022-09-20 广东石油化工学院 Generation method, verification method and device of universal verification code of human and legal equipment
CN116383798A (en) * 2023-06-05 2023-07-04 深圳依时货拉拉科技有限公司 Picture verification code generation method and device, computer equipment and storage medium

Similar Documents

Publication Publication Date Title
CN104852889A (en) Picture identifying code generation method and system, and verify method and client side, and server
US10305889B2 (en) Identity authentication method and device and storage medium
CN103425736B (en) A kind of web information recognition, Apparatus and system
CN104468531B (en) The authorization method of sensitive data, device and system
US20160241589A1 (en) Method and apparatus for identifying malicious website
US9027837B2 (en) Method of recognizing QR code in image data and apparatus and method for converting QR code in content data into touchable object
US20090285444A1 (en) Web-Based Content Detection in Images, Extraction and Recognition
CN107609122B (en) Advertisement shielding rule updating method, device, server and storage medium
WO2016188029A1 (en) Method and device for parsing two-dimensional code, computer readable storage medium, computer program product and terminal device
CN104036160A (en) Web browsing method, device and browser
WO2014176895A1 (en) Method, terminal, server and system for page jump
CN108574721B (en) Login method, device, server, user terminal and readable storage medium
US11164052B2 (en) Image processing of webpages
CN104683963A (en) Information processing method and electronic equipment
CN106357835B (en) Method and equipment for determining region of target IP address
CN110677506B (en) Network access method, device, computer equipment and storage medium
CN112511459A (en) Traffic identification method and device, electronic equipment and storage medium
CN111651749A (en) Method and device for finding account based on password, computer equipment and storage medium
CN104021124A (en) Method, device and system used for processing webpage data
CN109902269A (en) A kind of document display method, device, electronic equipment and readable storage medium storing program for executing
CN104573486A (en) Vulnerability detection method and device
CN111953647B (en) Security verification method and device, electronic equipment and storage medium
CN103246501A (en) Method and client-side for sharing application
CN105491064A (en) Pushing method and device
EP2813049A1 (en) Dynamic sharing and updating of an electronic form

Legal Events

Date Code Title Description
C06 Publication
PB01 Publication
C10 Entry into substantive examination
SE01 Entry into force of request for substantive examination
RJ01 Rejection of invention patent application after publication
RJ01 Rejection of invention patent application after publication

Application publication date: 20150819