WO2016206558A1 - Method of generating completely automated public turing test to tell computers and humans apart (captcha) and device utilizing same - Google Patents
Method of generating completely automated public turing test to tell computers and humans apart (captcha) and device utilizing same Download PDFInfo
- Publication number
- WO2016206558A1 WO2016206558A1 PCT/CN2016/085936 CN2016085936W WO2016206558A1 WO 2016206558 A1 WO2016206558 A1 WO 2016206558A1 CN 2016085936 W CN2016085936 W CN 2016085936W WO 2016206558 A1 WO2016206558 A1 WO 2016206558A1
- Authority
- WO
- WIPO (PCT)
- Prior art keywords
- preset
- graphic
- graphics
- verification code
- character
- Prior art date
Links
Images
Classifications
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06T—IMAGE DATA PROCESSING OR GENERATION, IN GENERAL
- G06T11/00—2D [Two Dimensional] image generation
- G06T11/60—Editing figures and text; Combining figures or text
Definitions
- the present invention relates to the field of communications technologies, and in particular, to a method and apparatus for verification code generation verification.
- One of the currently more secure verification codes is a combination of text and interference graphics.
- the verification verification process of the above graphic verification code is as follows: randomly selecting text and interference graphics from the preset graphic character library, combining the selected text and the interference graphics to obtain a graphic text verification code; displaying a graphic text verification code; obtaining a native keyboard activation instruction Activate the native keyboard; get the text entered through the native keyboard and verify the input text.
- the existing generated graphic verification code when there are many interference graphics, the interference is very large, the user is not easy to recognize the text in the verification code, and the time is wasted; and when the existing graphic verification code is verified, the native keyboard needs to be activated, and the text is input through the native keyboard.
- the verification process is cumbersome.
- the present invention provides a verification code generation verification method and device, which combines a preset graphic with a preset character graphic to obtain a gestalt verification code, which is convenient for the user to identify the verification code. Graphics can save time; and the user draws input by drawing the recognized graphics without the need to activate the native keyboard, and the verification process is simple and fast.
- the present invention discloses a method for verification code generation verification, the method comprising:
- the user draws the input graphic to verify according to the graphic contained in the gestalt verification code.
- the preset canvas is a maximum boundary area of the set gestalt verification code in the terminal device.
- the preset character graphics are set on an upper layer of the preset graphics, and when the preset graphics are superimposed, the preset character graphics and the preset graphics overlay area The size is less than or equal to the preset overlay threshold.
- the gestalt verification code is displayed, and the graphic that the user draws the input by touch is obtained, including:
- displaying the gestalt verification code, and obtaining a graphic that the user draws the input by touch including:
- verifying according to the graphic included in the gestalt verification code, the graphic drawn by the user, including:
- the verification fails when the user draws the input graphic without including all the graphics contained in the gestalt verification code.
- the present invention also discloses an apparatus for verification code generation verification, the apparatus comprising:
- a processing module configured to select a preset graphic from the preset graphic library, select a preset character graphic from the preset character graphic library, and combine the preset graphic with the preset character graphic to obtain Gestalt verification code;
- An obtaining module configured to display the gestalt verification code, and obtain a graphic that the user draws the input by touch
- a verification module configured to verify, according to the graphic included in the gestalt verification code, the graphic drawn by the user.
- processing module includes:
- a selecting unit configured to randomly select the preset graphics from the preset graphics library, and set each graphics in the preset graphics to a preset color preset size graphic;
- a first setting unit configured to set the preset graphic in the preset canvas according to a rule that the pixels of each graphic do not touch an edge of the preset canvas, and each of the graphics does not overlap each other ;
- a second setting unit configured to select the preset character graphic from the preset character graphic library, and set each character graphic in the preset character graphic to a character graphic with a preset color preset size;
- a superimposing unit configured to set the preset character graphics on an upper layer of the preset graphics, and superimpose the preset graphics to obtain the gestalt verification code.
- the preset canvas is a maximum boundary area of the set gestalt verification code in the terminal device.
- the preset character graphics are set on an upper layer of the preset graphics, and when the preset graphics are superimposed, the preset character graphics and the preset graphics overlay area The size is less than or equal to the preset overlay threshold.
- the obtaining module includes:
- a first display unit configured to display the phantom verification code on a preset display position of the touch screen of the terminal device
- a first acquiring unit configured to acquire a graphic that the user draws an input at a preset input position of the touch screen of the terminal device
- the obtaining module includes:
- a second display unit configured to display the phantom verification code on a preset display position of a screen of the terminal device
- a second acquiring unit configured to acquire, by the user, a graphic input on a preset input position of a screen of the terminal device by using a touch panel or a touch mouse of the terminal device.
- the verification module includes:
- a comparison unit configured to compare the graphic included in the phantom verification code with the graphic drawn by the user
- a first verification unit configured to: when the graphic drawn by the user drawing the graphic includes all the graphics included in the phantom verification code, the verification is successful;
- a second verification unit configured to: when the user draws the input graphic, does not include the phantom verification code When all the graphics are valid, the validation fails.
- the present invention can obtain the following technical effects:
- FIG. 1 is a flowchart of a method for generating verification code of a first verification code according to an embodiment of the present invention
- FIG. 2 is a flowchart of a method for generating verification of a second verification code according to an embodiment of the present invention
- FIG. 3 is a flowchart of a method for generating verification of a third verification code according to an embodiment of the present invention
- FIG. 4 is a schematic diagram of a preset graphics library according to an embodiment of the present invention.
- FIG. 5 is a schematic diagram of a preset character graphics library according to an embodiment of the present invention.
- FIG. 6 is a flowchart of a fourth verification code generation verification method according to an embodiment of the present invention.
- FIG. 7 is a schematic diagram of a first verification code according to an embodiment of the present invention.
- FIG. 8 is a schematic diagram of a second verification code according to an embodiment of the present invention.
- FIG. 9 is a schematic diagram of a third verification code according to an embodiment of the present invention.
- FIG. 10 is a schematic diagram of a fourth verification code according to an embodiment of the present invention.
- FIG. 11 is a schematic diagram of a fifth verification code according to an embodiment of the present invention.
- FIG. 12 is a schematic diagram of a sixth verification code according to an embodiment of the present invention.
- FIG. 13 is a schematic diagram of a seventh verification code according to an embodiment of the present invention.
- FIG. 14 is a flowchart of a method for verification code generation verification in a mobile phone according to an embodiment of the present invention.
- FIG. 15 is a schematic structural diagram of an apparatus for verifying code generation and verification according to an embodiment of the present invention.
- a computing device includes one or more processors (CPUs), input/output interfaces, network interfaces, and memory.
- processors CPUs
- input/output interfaces network interfaces
- memory volatile and non-volatile memory
- the memory may include non-persistent memory, random access memory (RAM), and/or non-volatile memory in a computer readable medium, such as read only memory (ROM) or flash memory.
- RAM random access memory
- ROM read only memory
- Memory is an example of a computer readable medium.
- Computer readable media includes both permanent and non-persistent, removable and non-removable media.
- Information storage can be implemented by any method or technology.
- the information can be computer readable instructions, data structures, modules of programs, or other data.
- Examples of computer storage media include, but are not limited to, phase change memory (PRAM), static random access memory (SRAM), dynamic random access memory (DRAM), other types of random access memory (RAM), read only memory. (ROM), electrically erasable programmable read only memory (EEPROM), flash memory or other memory technology, compact disk read only memory (CD-ROM), digital versatile disk (DVD) or other optical storage, Magnetic tape cartridges, magnetic tape storage or other magnetic storage devices or any other non-transportable media can be used to store information that can be accessed by a computing device.
- computer readable media does not include non-transitory computer readable media, such as modulated data signals and carrier waves.
- first device if a first device is coupled to a second device, the first device can be directly electrically coupled to the second device, or electrically coupled indirectly through other devices or coupling means. Connected to the second device.
- a flowchart of a verification code generation verification method according to an embodiment of the present invention includes:
- S101 Select a preset graphic from the preset graphic library, and select a preset character graphic from the preset character graphic library.
- a graphics library and a character graphics library are preset, and the preset graphics library includes a circle, a square, a triangle, a polygon, a star, and the like.
- the preset character graphic library includes a circle, a square, a triangle, a text, a letter, etc., and the character graphic in the preset character graphic library is preferably a SVG (Scalable Vector Graphics) vector graphic.
- the verification code of the embodiment combines the graphic with the character graphic.
- the user identifies the graphic included in the verification code and draws the input.
- the verification passes.
- the verification code generation verification process of the embodiment is suitable for human identification but is not conducive to computer program (AI) recognition.
- the verification code generation verification process of this embodiment conforms to the theory of completion psychology, and thus the verification code of the embodiment can be used. It is called a gestalt verification code.
- S103 Display a gestalt verification code, and obtain a graphic that the user draws the input by touch.
- the method of the present embodiment can be applied to a mobile terminal having a touch screen, or a terminal device such as a computer.
- a terminal device such as a mobile terminal having a touch screen
- the avatar verification code is displayed on the preset display position of the touch screen of the terminal device, and the user inputs the input graphic at the preset input position of the touch screen of the terminal device.
- the avatar verification code is displayed on the preset display position of the screen of the terminal device; the user inputs the input at the preset input position of the screen of the terminal device through the touch panel of the terminal device or the touch mouse. Graphics.
- the user recognizes the graphics included in the gestalt verification code, and draws all the graphics included in the gestalt verification code one by one. It should be noted that the drawing input may not be set in the drawing input, as long as the final drawing is performed. If all the graphics included in the Gestalt verification code are entered, the verification is successful; if the graphics from the preset graphics library and the preset character graphics library can be distinguished (such as by layering or color), you can also set Draw the order of input, such as inputting the graphics from the preset graphics library first, and then inputting the graphics from the preset character graphics library. Only when the user inputs all the graphics included in the gestalt verification code in order, the verification is successful.
- S104 Verify the graphic drawn by the user according to the graphic contained in the gestalt verification code.
- the verification is successful; if the user does not draw all the graphics contained in the input phenotype verification code (including no input or input but graphic error) Etc.), the verification failed.
- a preset graphic is selected from a preset graphic library, and a preset character graphic is selected from a preset character graphic library;
- Set a character graphic to combine and get the gestalt verification code including:
- S101a randomly select preset graphics from the preset graphics library, and set each graphics in the preset graphics to a preset color preset size graphic.
- the preset number may be one, two, etc., and may be set each time the phantom verification code is generated, the number of preset graphics is fixed, or randomly changed, and may be set according to actual application conditions. This is not specifically limited.
- the preset color may be a full color black color, and the preset size may be set according to the terminal device and the actual application.
- S101b The preset graphics are set in the preset canvas according to the rule that the pixels of each graphic in the preset graphics do not touch the edge of the preset canvas, and each of the preset graphics does not overlap each other.
- the preset canvas is the largest boundary area for generating the gestalt verification code.
- the color of the preset canvas can be set to white, black, etc., and can be set according to the actual application.
- each graphic is not superimposed on each other in order to facilitate the user to recognize the graphic.
- it may also be partially superimposed.
- S101c Select a preset character graphic from the preset character graphic library, and set each character graphic in the preset character graphic to a character graphic with a preset color preset size.
- the preset number may be one, two, etc., and may be set each time the phantom verification code is generated, the number of preset character graphics is fixed, or randomly changed, and may be set according to actual application conditions. This is not specifically limited. Moreover, the number of preset character graphics is generally smaller than the number of preset graphics.
- the preset color may be a color such as white, and the preset size may be set according to the terminal device, the size of the preset graphic, and the like.
- S101d The preset character graphics are set on the upper layer of the preset graphics, and are superimposed with the preset graphics to obtain a gestalt verification code.
- the graphics cannot be recognized, and the preset character graphics are set on the upper layer of the preset graphics, and are superimposed with the preset graphics.
- the size of the superimposed area of the character graphic and the preset graphic does not exceed the preset superimposed threshold.
- the preset superimposed threshold can be set to 50%, 60%, etc., and can be set according to the actual application condition. limited.
- the user draws the input graphics to verify, including:
- the user compares with the graphic contained in the gestalt verification code; and determines whether the similarity between the graphic and the graphic input by the user in the gestalt verification code satisfies the preset similarity threshold. If present, the same type of graphics in the Gestalt verification code that match the user-entered graphics to meet the preset similarity threshold are marked as verified; if not, the rendering input error is prompted.
- the preset similarity threshold may be 70%, 80%, etc., and may be set according to actual application conditions.
- the verification code generation verification method described in this embodiment combines a preset graphic with a preset character graphic to obtain a gestalt verification code, which is convenient for the user to recognize the graphic in the verification code, which can save time; and the user draws The recognized graphics are drawn and input, and the native keyboard does not need to be activated, and the verification process is simple and quick.
- the size of the superimposed area of the preset character graphic and the preset graphic does not exceed the preset superimposed threshold at most, and the part of the preset character graphic overlapping with the preset graphic is prevented from being too much, and the graphic cannot be recognized.
- the preset graphics library includes a circle, a square, and a triangle.
- the preset character graphic library includes SVG vector graphics of a circle, a square, a triangle, and an English alphabet.
- the verification code generation verification method is as follows:
- S201 Select one graphic (circle) from the preset graphic library, and set the circular to a full color (black) of 100px*100px size.
- the circle is as shown in FIG.
- S202 The circular shape is set in the preset canvas according to the rule that the circular pixels do not touch the edge of the preset canvas and the circles do not overlap each other.
- the size of the preset canvas in this embodiment is 800px*800px, the color of the preset canvas is white, and the preset canvas is as shown in FIG. 7.
- the selected graphics may be copied, and the number of graphics is increased to overlap the outer frame of the preset character graphics. As shown in FIG. 7, the circular is copied into multiple.
- S203 Select one character graphic (triangle) from the preset character graphic library, and set the triangle to a full color (white) of 600px*600px size.
- the obtained gestalt verification code is as shown in FIG.
- the preset overlay threshold is set to 50%, that is, the size of the triangle of 600px*600px and the circle of 100px*100px size is at most 50%.
- the gestalt verification code obtained when selecting different graphics and character graphics.
- the character graphic in the actual application may also be a text or a corporate logo, etc., to increase the meaning of the gestalt verification code.
- the number of character graphics is one, and the number of character graphics in actual application may also be multiple, for example, when the number of character graphics is two (triangle and circle)
- the resulting Gestalt verification code is shown in Figure 13.
- S205 Display a gestalt verification code on a preset display position of the touch screen of the terminal device.
- the terminal device is a mobile phone, and the preset display position is on the touch screen portion of the terminal device.
- S206 Acquire a graphic that the user draws the input at a preset input position of the touch screen of the terminal device.
- the terminal device is a mobile phone, and the preset input position is in a lower portion of the touch screen of the terminal device.
- the preset prompt information (such as text, sound, or image, etc.) may be used to prompt the current user to draw the input graphic to pass the verification.
- the user is authenticated. Enter the corresponding function. After the verification fails, the user will be prompted to verify the failure by preset prompt information (such as text, sound or image).
- FIG. 15 is a structural diagram of a device for verifying code generation verification according to an embodiment of the present invention, where the device includes:
- the processing module 301 is configured to select a preset graphic from the preset graphic library, select a preset character graphic from the preset character graphic library, and combine the preset graphic with the preset character graphic to obtain the gestalt verification. code;
- the obtaining module 302 is configured to display a gestalt verification code, and obtain a graphic that the user draws the input by touch;
- the verification module 303 is configured to perform, according to the graphic included in the gestalt verification code, the graphic drawn by the user verification.
- processing module 301 includes:
- the selecting unit is configured to randomly select a preset graphic from the preset graphic library, and set each graphic in the preset graphic to a preset color preset size graphic;
- a first setting unit configured to set a preset graphic in the preset canvas according to a rule that the pixels of each graphic do not touch the edge of the preset canvas, and each graphic does not overlap each other;
- a second setting unit configured to select a preset character graphic from the preset character graphic library, and set each character graphic in the preset character graphic to a character graphic with a preset color preset size;
- the superimposing unit is configured to set a preset character graphic on an upper layer of the preset graphic, and superimpose with the preset graphic to obtain a gestalt verification code.
- the preset canvas is a maximum boundary area of the set gestalt verification code in the terminal device.
- the preset character graphics are set on the upper layer of the preset graphics, and when the preset graphics are superimposed, the size of the overlapping region of the preset character graphics and the preset graphics is less than or equal to the preset overlay threshold.
- the obtaining module 302 includes:
- a first display unit configured to display a gestalt verification code on a preset display position of the touch screen of the terminal device
- a first acquiring unit configured to acquire a graphic that the user draws an input at a preset input position of the touch screen of the terminal device
- the obtaining module 302 includes:
- a second display unit configured to display a gestalt verification code on a preset display position of the screen of the terminal device
- a second acquiring unit configured to acquire, by the user, the input graphic by using a touch panel of the terminal device or a touch mouse, at a preset input position of the screen of the terminal device.
- the verification module 303 includes:
- Aligning unit configured to compare the graphic contained in the gestalt verification code with the graphic drawn by the user
- a first verification unit configured to be successful when the graphic drawn by the user includes all the graphics included in the gestalt verification code
- the second verification unit is configured to: when the graphic drawn by the user does not include all the graphics included in the phantom verification code, the verification fails.
- the device for verifying code generation and verification combines a preset graphic with a preset character graphic to obtain a gestalt verification code, which is convenient for the user to recognize the graphic in the verification code, which can save time; and the user draws The recognized graphics are drawn and input, and the native keyboard does not need to be activated, and the verification process is simple and quick.
- Preset character graphics and The size of the superimposed area of the preset graphics does not exceed the preset superimposition threshold at most, which can avoid that the preset character graphics overlaps with the preset graphics too much, and the graphics cannot be recognized.
- the device corresponds to the foregoing method flow description, and the deficiencies refer to the description of the above method flow, and will not be further described.
Landscapes
- Physics & Mathematics (AREA)
- General Physics & Mathematics (AREA)
- Engineering & Computer Science (AREA)
- Theoretical Computer Science (AREA)
- User Interface Of Digital Computer (AREA)
Abstract
The present invention relates to the technical field of telecommunications, in particular, to a method of generating a completely automated public Turing test to tell computers and humans apart (CAPTCHA) and a device utilizing the same. The method comprises: selecting, from a default image database, a default number of images and selecting, from a default character image database, a default number of character images (101); combining the default number of images with default number of character images to obtain a complete CAPTCHA (102); display the complete CAPTCHA and acquiring an image from a user, drawn and input by means of touching a touch device (103); and validating, according to the images in the complete CAPTCHA, the image drawn and input by the user (104). The device comprises: a processing module (301), an acquisition module (302) and a validation module (303). By combining the default number of images with default number of character images to acquire the complete CAPTCHA, a user can recognize an image of the complete CAPTCHA easily, saving the time for the operation. Furthermore, a user can perform an input operation by hand-drawing the recognized image without activating a native keyboard, resulting in a simple and quick validation procedure.
Description
本申请要求2015年06月23日递交的申请号为201510350205.7、发明名称为“一种验证码生成验证的方法和装置”的中国专利申请的优先权,其全部内容通过引用结合在本申请中。The present application claims priority to Chinese Patent Application Serial No. No. No. No. No. No. No. No. No. No No No No No No No No No No No No No No No No No No No No No No No No No No No No No No No No No No No No No No No No No No No No No No No No No No No No No No No No No No No No No No
本发明涉及通信技术领域,具体涉及一种验证码生成验证的方法和装置。The present invention relates to the field of communications technologies, and in particular, to a method and apparatus for verification code generation verification.
随着网络通信技术的发展,可以通过终端设备链接网络进行聊天、购物、支付、访问论坛等,为了保证终端设备和网络服务的安全,常常会通过验证码对用户进行验证。目前安全性比较高的一种验证码是文字和干扰图形组合成的图形验证码。With the development of network communication technology, it is possible to chat, shop, pay, access forums, etc. through the terminal device link network. In order to ensure the security of the terminal device and the network service, the user is often verified by the verification code. One of the currently more secure verification codes is a combination of text and interference graphics.
上述图形验证码的生成验证过程如下:从预设图形文字库中随机选取文字和干扰图形,将选取的文字和干扰图形进行组合得到图形文字验证码;展示图形文字验证码;获取原生键盘激活指令,激活原生键盘;获取通过原生键盘输入的文字,对输入的文字进行验证。The verification verification process of the above graphic verification code is as follows: randomly selecting text and interference graphics from the preset graphic character library, combining the selected text and the interference graphics to obtain a graphic text verification code; displaying a graphic text verification code; obtaining a native keyboard activation instruction Activate the native keyboard; get the text entered through the native keyboard and verify the input text.
现有生成的图形验证码,当干扰图形很多时,干扰很大,用户不易识别验证码中的文字,浪费时间;且现有的图形验证码验证时,需要激活原生键盘,通过原生键盘输入文字,验证过程繁琐。The existing generated graphic verification code, when there are many interference graphics, the interference is very large, the user is not easy to recognize the text in the verification code, and the time is wasted; and when the existing graphic verification code is verified, the native keyboard needs to be activated, and the text is input through the native keyboard. The verification process is cumbersome.
发明内容Summary of the invention
为了解决现有技术的问题,本发明提供了一种验证码生成验证的方法和装置,将预设个图形与预设个字符图形进行组合,得到完形验证码,方便用户识别验证码中的图形,可以节约时间;且用户通过绘制所识别的图形进行绘制输入,不需要激活原生键盘,验证过程简单快捷。In order to solve the problems of the prior art, the present invention provides a verification code generation verification method and device, which combines a preset graphic with a preset character graphic to obtain a gestalt verification code, which is convenient for the user to identify the verification code. Graphics can save time; and the user draws input by drawing the recognized graphics without the need to activate the native keyboard, and the verification process is simple and fast.
为了解决上述问题,本发明公开了一种验证码生成验证的方法,所述方法包括:In order to solve the above problem, the present invention discloses a method for verification code generation verification, the method comprising:
从预设图形库中选取预设个图形,从预设字符图形库中选取预设个字符图形;Selecting a preset graphic from the preset graphic library, and selecting a preset character graphic from the preset character graphic library;
将所述预设个图形与所述预设个字符图形进行组合,得到完形验证码;Combining the preset graphics with the preset character graphics to obtain a gestalt verification code;
展示所述完形验证码,获取用户通过触摸方式绘制输入的图形;Displaying the gestalt verification code to obtain a graphic that the user draws the input by touch;
根据所述完形验证码中所含有的图形,对所述用户绘制输入的图形进行验证。
The user draws the input graphic to verify according to the graphic contained in the gestalt verification code.
进一步地,从预设图形库中选取预设个图形,从预设字符图形库中选取预设个字符图形;将所述预设个图形与所述预设个字符图形进行组合,得到完形验证码,包括:Further, selecting a preset graphic from the preset graphic library, and selecting a preset character graphic from the preset character graphic library; combining the preset graphic with the preset character graphic to obtain a gestalt Verification code, including:
从所述预设图形库中随机选取所述预设个图形,将所述预设个图形中每个图形设置为预设颜色预设大小的图形;And randomly selecting the preset graphics from the preset graphics library, and setting each graphics in the preset graphics as a preset color preset size graphic;
按照所述每个图形的像素不触碰预设画布的边缘、所述每个图形相互不叠加的规定,将所述预设个图形设置在所述预设画布内;Setting the preset graphics in the preset canvas according to the rule that the pixels of each graphic do not touch the edge of the preset canvas, and the graphics are not superimposed on each other;
从所述预设字符图形库中选取所述预设个字符图形,将所述预设个字符图形中每个字符图形设置为预设颜色预设大小的字符图形;Selecting the preset character graphic from the preset character graphic library, and setting each character graphic in the preset character graphic to a character graphic of a preset color preset size;
将所述预设个字符图形设置在所述预设个图形的上层,与所述预设个图形进行叠加,得到所述完形验证码。And setting the preset character graphic on an upper layer of the preset graphic, and superimposing with the preset graphic to obtain the gestalt verification code.
进一步地,所述预设画布为设置的所述完形验证码在终端设备中的最大边界区域。Further, the preset canvas is a maximum boundary area of the set gestalt verification code in the terminal device.
进一步地,将所述预设个字符图形设置在所述预设个图形的上层,与所述预设个图形进行叠加时,所述预设个字符图形与所述预设个图形的叠加区域的大小小于等于预设叠加阈值。Further, the preset character graphics are set on an upper layer of the preset graphics, and when the preset graphics are superimposed, the preset character graphics and the preset graphics overlay area The size is less than or equal to the preset overlay threshold.
进一步地,展示所述完形验证码,获取用户通过触摸方式绘制输入的图形,包括:Further, the gestalt verification code is displayed, and the graphic that the user draws the input by touch is obtained, including:
在终端设备的触摸屏的预设展示位置展示所述完形验证码;Displaying the gestalt verification code at a preset display position of the touch screen of the terminal device;
获取所述用户在所述终端设备的触摸屏的预设输入位置绘制输入的图形;Obtaining a graphic that the user draws an input at a preset input position of the touch screen of the terminal device;
或,展示所述完形验证码,获取用户通过触摸方式绘制输入的图形,包括:Or, displaying the gestalt verification code, and obtaining a graphic that the user draws the input by touch, including:
在终端设备的屏幕的预设展示位置展示所述完形验证码;Displaying the gestalt verification code at a preset placement of a screen of the terminal device;
获取所述用户通过所述终端设备的触摸板或触摸鼠标,在所述终端设备的屏幕的预设输入位置绘制输入的图形。Acquiring the user to draw an input graphic at a preset input position of a screen of the terminal device through a touch panel or a touch mouse of the terminal device.
进一步地,根据所述完形验证码中所含有的图形,对所述用户绘制输入的图形进行验证,包括:Further, verifying, according to the graphic included in the gestalt verification code, the graphic drawn by the user, including:
将所述完形验证码中所含有的图形与所述用户绘制输入的图形进行比对;Comparing the graphic contained in the gestalt verification code with the graphic drawn by the user;
当所述用户绘制输入的图形包含所述完形验证码中所含有的所有图形时,验证成功;When the graphic drawn by the user draws all the graphics contained in the gestalt verification code, the verification is successful;
当所述用户绘制输入的图形没有包含所述完形验证码中所含有的所有图形时,验证失败。The verification fails when the user draws the input graphic without including all the graphics contained in the gestalt verification code.
为了解决上述问题,本发明还公开了一种验证码生成验证的装置,所述装置包括:In order to solve the above problem, the present invention also discloses an apparatus for verification code generation verification, the apparatus comprising:
处理模块,用于从预设图形库中选取预设个图形,从预设字符图形库中选取预设个字符图形;将所述预设个图形与所述预设个字符图形进行组合,得到完形验证码;
a processing module, configured to select a preset graphic from the preset graphic library, select a preset character graphic from the preset character graphic library, and combine the preset graphic with the preset character graphic to obtain Gestalt verification code;
获取模块,用于展示所述完形验证码,获取用户通过触摸方式绘制输入的图形;An obtaining module, configured to display the gestalt verification code, and obtain a graphic that the user draws the input by touch;
验证模块,用于根据所述完形验证码中所含有的图形,对所述用户绘制输入的图形进行验证。And a verification module, configured to verify, according to the graphic included in the gestalt verification code, the graphic drawn by the user.
进一步地,所述处理模块包括:Further, the processing module includes:
选取单元,用于从所述预设图形库中随机选取所述预设个图形,将所述预设个图形中每个图形设置为预设颜色预设大小的图形;a selecting unit, configured to randomly select the preset graphics from the preset graphics library, and set each graphics in the preset graphics to a preset color preset size graphic;
第一设置单元,用于按照所述每个图形的像素不触碰预设画布的边缘、所述每个图形相互不叠加的规定,将所述预设个图形设置在所述预设画布内;a first setting unit, configured to set the preset graphic in the preset canvas according to a rule that the pixels of each graphic do not touch an edge of the preset canvas, and each of the graphics does not overlap each other ;
第二设置单元,用于从所述预设字符图形库中选取所述预设个字符图形,将所述预设个字符图形中每个字符图形设置为预设颜色预设大小的字符图形;a second setting unit, configured to select the preset character graphic from the preset character graphic library, and set each character graphic in the preset character graphic to a character graphic with a preset color preset size;
叠加单元,用于将所述预设个字符图形设置在所述预设个图形的上层,与所述预设个图形进行叠加,得到所述完形验证码。And a superimposing unit, configured to set the preset character graphics on an upper layer of the preset graphics, and superimpose the preset graphics to obtain the gestalt verification code.
进一步地,所述预设画布为设置的所述完形验证码在终端设备中的最大边界区域。Further, the preset canvas is a maximum boundary area of the set gestalt verification code in the terminal device.
进一步地,将所述预设个字符图形设置在所述预设个图形的上层,与所述预设个图形进行叠加时,所述预设个字符图形与所述预设个图形的叠加区域的大小小于等于预设叠加阈值。Further, the preset character graphics are set on an upper layer of the preset graphics, and when the preset graphics are superimposed, the preset character graphics and the preset graphics overlay area The size is less than or equal to the preset overlay threshold.
进一步地,所述获取模块包括:Further, the obtaining module includes:
第一展示单元,用于在终端设备的触摸屏的预设展示位置展示所述完形验证码;a first display unit, configured to display the phantom verification code on a preset display position of the touch screen of the terminal device;
第一获取单元,用于获取所述用户在所述终端设备的触摸屏的预设输入位置绘制输入的图形;a first acquiring unit, configured to acquire a graphic that the user draws an input at a preset input position of the touch screen of the terminal device;
或,所述获取模块包括:Or the obtaining module includes:
第二展示单元,用于在终端设备的屏幕的预设展示位置展示所述完形验证码;a second display unit, configured to display the phantom verification code on a preset display position of a screen of the terminal device;
第二获取单元,用于获取所述用户通过所述终端设备的触摸板或触摸鼠标,在所述终端设备的屏幕的预设输入位置绘制输入的图形。And a second acquiring unit, configured to acquire, by the user, a graphic input on a preset input position of a screen of the terminal device by using a touch panel or a touch mouse of the terminal device.
进一步地,所述验证模块包括:Further, the verification module includes:
比对单元,用于将所述完形验证码中所含有的图形与所述用户绘制输入的图形进行比对;a comparison unit, configured to compare the graphic included in the phantom verification code with the graphic drawn by the user;
第一验证单元,用于当所述用户绘制输入的图形包含所述完形验证码中所含有的所有图形时,验证成功;a first verification unit, configured to: when the graphic drawn by the user drawing the graphic includes all the graphics included in the phantom verification code, the verification is successful;
第二验证单元,用于当所述用户绘制输入的图形没有包含所述完形验证码中所含有
的所有图形时,验证失败。a second verification unit, configured to: when the user draws the input graphic, does not include the phantom verification code
When all the graphics are valid, the validation fails.
与现有技术相比,本发明可以获得包括以下技术效果:Compared with the prior art, the present invention can obtain the following technical effects:
1)将预设个图形与预设个字符图形进行组合,得到完形验证码,方便用户识别验证码中的图形,可以节约时间;且用户通过绘制所识别的图形进行绘制输入,不需要激活原生键盘,验证过程简单快捷。1) Combine the preset graphics with the preset character graphics to obtain the gestalt verification code, which is convenient for the user to recognize the graphics in the verification code, which can save time; and the user draws the input by drawing the recognized graphics without activation The native keyboard makes the verification process quick and easy.
2)预设个字符图形与预设个图形的叠加区域的大小最多不超过预设叠加阈值,可以避免预设个字符图形与预设个图形重叠的部分太多,无法辨识图形。2) The size of the superimposed area of the preset character graphic and the preset graphic does not exceed the preset superimposed threshold at most, which can avoid that the preset overlapping of the character graphic and the preset graphic is too much, and the graphic cannot be recognized.
当然,实施本发明的任一产品必不一定需要同时达到以上所述的所有技术效果。Of course, implementing any of the products of the present invention necessarily does not necessarily require all of the technical effects described above to be achieved at the same time.
此处所说明的附图用来提供对本发明的进一步理解,构成本发明的一部分,本发明的示意性实施例及其说明用于解释本发明,并不构成对本发明的不当限定。在附图中:The drawings described herein are intended to provide a further understanding of the invention, and are intended to be a part of the invention. In the drawing:
图1是本发明实施例的第一种验证码生成验证的方法流程图;1 is a flowchart of a method for generating verification code of a first verification code according to an embodiment of the present invention;
图2是本发明实施例的第二种验证码生成验证的方法流程图;2 is a flowchart of a method for generating verification of a second verification code according to an embodiment of the present invention;
图3是本发明实施例的第三种验证码生成验证的方法流程图;3 is a flowchart of a method for generating verification of a third verification code according to an embodiment of the present invention;
图4是本发明实施例的一种预设图形库的示意图;4 is a schematic diagram of a preset graphics library according to an embodiment of the present invention;
图5是本发明实施例的一种预设字符图形库的示意图;FIG. 5 is a schematic diagram of a preset character graphics library according to an embodiment of the present invention; FIG.
图6是本发明实施例的第四种验证码生成验证的方法流程图;6 is a flowchart of a fourth verification code generation verification method according to an embodiment of the present invention;
图7是本发明实施例的第一种验证码的示意图;7 is a schematic diagram of a first verification code according to an embodiment of the present invention;
图8是本发明实施例的第二种验证码的示意图;8 is a schematic diagram of a second verification code according to an embodiment of the present invention;
图9是本发明实施例的第三种验证码的示意图;9 is a schematic diagram of a third verification code according to an embodiment of the present invention;
图10是本发明实施例的第四种验证码的示意图;FIG. 10 is a schematic diagram of a fourth verification code according to an embodiment of the present invention; FIG.
图11是本发明实施例的第五种验证码的示意图;11 is a schematic diagram of a fifth verification code according to an embodiment of the present invention;
图12是本发明实施例的第六种验证码的示意图;12 is a schematic diagram of a sixth verification code according to an embodiment of the present invention;
图13是本发明实施例的第七种验证码的示意图;FIG. 13 is a schematic diagram of a seventh verification code according to an embodiment of the present invention; FIG.
图14是本发明实施例的手机中的验证码生成验证的方法流程图;14 is a flowchart of a method for verification code generation verification in a mobile phone according to an embodiment of the present invention;
图15是本发明实施例的一种验证码生成验证的装置结构示意图。FIG. 15 is a schematic structural diagram of an apparatus for verifying code generation and verification according to an embodiment of the present invention.
以下将配合附图及实施例来详细说明本发明的实施方式,藉此对本发明如何应用技
术手段来解决技术问题并达成技术功效的实现过程能充分理解并据以实施。The embodiments of the present invention will be described in detail below with reference to the accompanying drawings and embodiments.
The process of solving technical problems and achieving technical effects can be fully understood and implemented.
在一个典型的配置中,计算设备包括一个或多个处理器(CPU)、输入/输出接口、网络接口和内存。In a typical configuration, a computing device includes one or more processors (CPUs), input/output interfaces, network interfaces, and memory.
内存可能包括计算机可读介质中的非永久性存储器,随机存取存储器(RAM)和/或非易失性内存等形式,如只读存储器(ROM)或闪存(flash RAM)。内存是计算机可读介质的示例。The memory may include non-persistent memory, random access memory (RAM), and/or non-volatile memory in a computer readable medium, such as read only memory (ROM) or flash memory. Memory is an example of a computer readable medium.
计算机可读介质包括永久性和非永久性、可移动和非可移动媒体可以由任何方法或技术来实现信息存储。信息可以是计算机可读指令、数据结构、程序的模块或其他数据。计算机的存储介质的例子包括,但不限于相变内存(PRAM)、静态随机存取存储器(SRAM)、动态随机存取存储器(DRAM)、其他类型的随机存取存储器(RAM)、只读存储器(ROM)、电可擦除可编程只读存储器(EEPROM)、快闪记忆体或其他内存技术、只读光盘只读存储器(CD-ROM)、数字多功能光盘(DVD)或其他光学存储、磁盒式磁带,磁带磁磁盘存储或其他磁性存储设备或任何其他非传输介质,可用于存储可以被计算设备访问的信息。按照本文中的界定,计算机可读介质不包括非暂存电脑可读媒体(transitory media),如调制的数据信号和载波。Computer readable media includes both permanent and non-persistent, removable and non-removable media. Information storage can be implemented by any method or technology. The information can be computer readable instructions, data structures, modules of programs, or other data. Examples of computer storage media include, but are not limited to, phase change memory (PRAM), static random access memory (SRAM), dynamic random access memory (DRAM), other types of random access memory (RAM), read only memory. (ROM), electrically erasable programmable read only memory (EEPROM), flash memory or other memory technology, compact disk read only memory (CD-ROM), digital versatile disk (DVD) or other optical storage, Magnetic tape cartridges, magnetic tape storage or other magnetic storage devices or any other non-transportable media can be used to store information that can be accessed by a computing device. As defined herein, computer readable media does not include non-transitory computer readable media, such as modulated data signals and carrier waves.
如在说明书及权利要求当中使用了某些词汇来指称特定组件。本领域技术人员应可理解,硬件制造商可能会用不同名词来称呼同一个组件。本说明书及权利要求并不以名称的差异来作为区分组件的方式,而是以组件在功能上的差异来作为区分的准则。如在通篇说明书及权利要求当中所提及的“包含”为一开放式用语,故应解释成“包含但不限定于”。“大致”是指在可接收的误差范围内,本领域技术人员能够在一定误差范围内解决所述技术问题,基本达到所述技术效果。此外,“耦接”一词在此包含任何直接及间接的电性耦接手段。因此,若文中描述一第一装置耦接于一第二装置,则代表所述第一装置可直接电性耦接于所述第二装置,或通过其他装置或耦接手段间接地电性耦接至所述第二装置。说明书后续描述为实施本发明的较佳实施方式,然所述描述乃以说明本发明的一般原则为目的,并非用以限定本发明的范围。本发明的保护范围当视所附权利要求所界定者为准。Certain terms are used throughout the description and claims to refer to particular components. Those skilled in the art will appreciate that hardware manufacturers may refer to the same component by different nouns. The present specification and the claims do not use the difference in the name as the means for distinguishing the components, but the difference in function of the components as the criterion for distinguishing. The word "comprising" as used throughout the specification and claims is an open term and should be interpreted as "including but not limited to". "Substantially" means that within the range of acceptable errors, those skilled in the art will be able to solve the technical problems within a certain error range, substantially achieving the technical effects. In addition, the term "coupled" is used herein to include any direct and indirect electrical coupling means. Therefore, if a first device is coupled to a second device, the first device can be directly electrically coupled to the second device, or electrically coupled indirectly through other devices or coupling means. Connected to the second device. The description of the present invention is intended to be illustrative of the preferred embodiments of the invention. The scope of the invention is defined by the appended claims.
还需要说明的是,术语“包括”、“包含”或者其任何其他变体意在涵盖非排他性的包含,从而使得包括一系列要素的商品或者***不仅包括那些要素,而且还包括没有明确列出的其他要素,或者是还包括为这种商品或者***所固有的要素。在没有更多限制的情况下,由语句“包括一个……”限定的要素,并不排除在包括所述要素的商品或
者***中还存在另外的相同要素。It should also be noted that the terms "including", "comprising" or "comprising" or any other variations thereof are intended to encompass a non-exclusive inclusion, such that the item or system comprising a plurality of elements includes not only those elements but also Other elements, or elements that are inherent to such goods or systems. In the absence of more restrictions, elements defined by the phrase "including one..." are not excluded from the goods including the elements or
There are additional identical elements in the system.
实施例描述Description of the embodiment
下面以一实施例对本发明方法的实现作进一步说明。如图1所示,为本发明实施例的一种验证码生成验证的方法流程图,该方法包括:The implementation of the method of the present invention is further illustrated by an embodiment below. As shown in FIG. 1 , a flowchart of a verification code generation verification method according to an embodiment of the present invention includes:
S101:从预设图形库中选取预设个图形,从预设字符图形库中选取预设个字符图形。S101: Select a preset graphic from the preset graphic library, and select a preset character graphic from the preset character graphic library.
具体地,预先设置一个图形库和字符图形库,预设图形库中包括圆形、方形、三角形、多边形、星形等。预设字符图形库中包括圆形、方形、三角形、文字、字母等,预设字符图形库中的字符图形优选为SVG(Scalable Vector Graphics,可伸缩矢量图形)矢量图形。Specifically, a graphics library and a character graphics library are preset, and the preset graphics library includes a circle, a square, a triangle, a polygon, a star, and the like. The preset character graphic library includes a circle, a square, a triangle, a text, a letter, etc., and the character graphic in the preset character graphic library is preferably a SVG (Scalable Vector Graphics) vector graphic.
S102:将预设个图形与预设个字符图形进行组合,得到完形验证码。S102: Combine the preset graphics with the preset character graphics to obtain a gestalt verification code.
具体地,本实施例的验证码将图形与字符图形进行组合得到,在验证时,用户识别验证码中包含的图形,并绘制输入,当用户绘制了验证码中包含的所有图形时,验证通过。本实施例的验证码生成验证过程,适于人类识别却不利于计算机程序(AI)识别,本实施例的验证码生成验证过程符合完行心理学的理论,因此可以将本实施例的验证码称为完形验证码。Specifically, the verification code of the embodiment combines the graphic with the character graphic. When verifying, the user identifies the graphic included in the verification code and draws the input. When the user draws all the graphics included in the verification code, the verification passes. . The verification code generation verification process of the embodiment is suitable for human identification but is not conducive to computer program (AI) recognition. The verification code generation verification process of this embodiment conforms to the theory of completion psychology, and thus the verification code of the embodiment can be used. It is called a gestalt verification code.
S103:展示完形验证码,获取用户通过触摸方式绘制输入的图形。S103: Display a gestalt verification code, and obtain a graphic that the user draws the input by touch.
具体地,本实施例的方法可以用于具有触摸屏的移动终端、或计算机等终端设备。当用于具有触摸屏的移动终端等终端设备时,在终端设备的触摸屏的预设展示位置展示完形验证码,获取用户在终端设备的触摸屏的预设输入位置绘制输入的图形。当用于计算机等终端设备时,在终端设备的屏幕的预设展示位置展示完形验证码;获取用户通过终端设备的触摸板或触摸鼠标,在终端设备的屏幕的预设输入位置绘制输入的图形。Specifically, the method of the present embodiment can be applied to a mobile terminal having a touch screen, or a terminal device such as a computer. When used in a terminal device such as a mobile terminal having a touch screen, the avatar verification code is displayed on the preset display position of the touch screen of the terminal device, and the user inputs the input graphic at the preset input position of the touch screen of the terminal device. When used in a terminal device such as a computer, the avatar verification code is displayed on the preset display position of the screen of the terminal device; the user inputs the input at the preset input position of the screen of the terminal device through the touch panel of the terminal device or the touch mouse. Graphics.
具体地,用户识别完形验证码中包含的图形,将完形验证码中包含的所有图形一一绘制输入,需要说明的是,在绘制输入时可以不设定绘制输入的顺序,只要最终绘制输入了完形验证码中包含的所有图形即验证成功;如果来自预设图形库和预设字符图形库中的图形可以区分开(如通过分层的方式或颜色的方式等)也可以设定绘制输入的顺序,如先输入来自预设图形库的图形,再输入来自预设字符图形库中的图形等,只有用户按照顺序输入了完形验证码中包含的所有图形才验证成功。Specifically, the user recognizes the graphics included in the gestalt verification code, and draws all the graphics included in the gestalt verification code one by one. It should be noted that the drawing input may not be set in the drawing input, as long as the final drawing is performed. If all the graphics included in the Gestalt verification code are entered, the verification is successful; if the graphics from the preset graphics library and the preset character graphics library can be distinguished (such as by layering or color), you can also set Draw the order of input, such as inputting the graphics from the preset graphics library first, and then inputting the graphics from the preset character graphics library. Only when the user inputs all the graphics included in the gestalt verification code in order, the verification is successful.
S104:根据完形验证码中所含有的图形,对用户绘制输入的图形进行验证。S104: Verify the graphic drawn by the user according to the graphic contained in the gestalt verification code.
具体地,如果用户绘制输入了完形验证码中所含有的所有图形,则验证成功;如果用户没有绘制输入完形验证码中所含有的所有图形(包含没有输入或虽输入但图形错误
等),则验证失败。Specifically, if the user draws all the graphics contained in the gestalt verification code, the verification is successful; if the user does not draw all the graphics contained in the input phenotype verification code (including no input or input but graphic error)
Etc.), the verification failed.
其中,在本实施例的一优选实施例中,参见图2,从预设图形库中选取预设个图形,从预设字符图形库中选取预设个字符图形;将预设个图形与预设个字符图形进行组合,得到完形验证码,包括:In a preferred embodiment of the present embodiment, referring to FIG. 2, a preset graphic is selected from a preset graphic library, and a preset character graphic is selected from a preset character graphic library; Set a character graphic to combine and get the gestalt verification code, including:
S101a:从预设图形库中随机选取预设个图形,将预设个图形中每个图形设置为预设颜色预设大小的图形。S101a: randomly select preset graphics from the preset graphics library, and set each graphics in the preset graphics to a preset color preset size graphic.
其中,预设个可以是1个、2个等,并且,可以设置每次生成完形验证码时,预设个图形的数量是固定的,或随机改变的,可以根据实际应用状况进行设置,对此不做具体限定。The preset number may be one, two, etc., and may be set each time the phantom verification code is generated, the number of preset graphics is fixed, or randomly changed, and may be set according to actual application conditions. This is not specifically limited.
其中,预设颜色可以是满色黑色等颜色,预设大小可以根据终端设备和实际应用情况进行设置。The preset color may be a full color black color, and the preset size may be set according to the terminal device and the actual application.
S101b:按照预设个图形中每个图形的像素不触碰预设画布的边缘、预设个图形中每个图形相互不叠加的规定,将预设个图形设置在预设画布内。S101b: The preset graphics are set in the preset canvas according to the rule that the pixels of each graphic in the preset graphics do not touch the edge of the preset canvas, and each of the preset graphics does not overlap each other.
其中,预设画布为生成完形验证码的最大边界区域。预设画布的颜色可以设置为白色、黑色等,可以根据实际应用状况进行设置。The preset canvas is the largest boundary area for generating the gestalt verification code. The color of the preset canvas can be set to white, black, etc., and can be set according to the actual application.
并且,每个图形相互不叠加是为了便于用户识别图形,实际应用中,在用户能够识别出图形的前提下,也可以部分叠加。Moreover, each graphic is not superimposed on each other in order to facilitate the user to recognize the graphic. In actual application, under the premise that the user can recognize the graphic, it may also be partially superimposed.
S101c:从预设字符图形库中选取预设个字符图形,将预设个字符图形中每个字符图形设置为预设颜色预设大小的字符图形。S101c: Select a preset character graphic from the preset character graphic library, and set each character graphic in the preset character graphic to a character graphic with a preset color preset size.
其中,预设个可以是1个、2个等,并且,可以设置每次生成完形验证码时,预设个字符图形的数量是固定的,或随机改变的,可以根据实际应用状况进行设置,对此不做具体限定。并且,预设个字符图形的个数一般小于预设个图形的个数。The preset number may be one, two, etc., and may be set each time the phantom verification code is generated, the number of preset character graphics is fixed, or randomly changed, and may be set according to actual application conditions. This is not specifically limited. Moreover, the number of preset character graphics is generally smaller than the number of preset graphics.
其中,预设颜色可以是白色等颜色,预设大小可以根据终端设备、预设个图形的大小等进行设置。The preset color may be a color such as white, and the preset size may be set according to the terminal device, the size of the preset graphic, and the like.
S101d:将预设个字符图形设置在预设个图形的上层,与预设个图形进行叠加,得到完形验证码。S101d: The preset character graphics are set on the upper layer of the preset graphics, and are superimposed with the preset graphics to obtain a gestalt verification code.
具体地,为了防止预设个字符图形与预设个图形重叠的部分太多,无法辨识图形,将预设个字符图形设置在预设个图形的上层,与预设个图形进行叠加时,预设个字符图形与预设个图形的叠加区域的大小最多不超过预设叠加阈值,其中,预设叠加阈值可以设置为50%、60%等,可以根据实际应用状况进行设置,对此不做限定。
Specifically, in order to prevent the preset character graphics from overlapping with the preset graphics, the graphics cannot be recognized, and the preset character graphics are set on the upper layer of the preset graphics, and are superimposed with the preset graphics. The size of the superimposed area of the character graphic and the preset graphic does not exceed the preset superimposed threshold. The preset superimposed threshold can be set to 50%, 60%, etc., and can be set according to the actual application condition. limited.
其中,在本实施例的一优选实施例中,参见图3,根据完形验证码中所含有的图形,对用户绘制输入的图形进行验证,包括:In a preferred embodiment of the present embodiment, referring to FIG. 3, according to the graphics contained in the gestalt verification code, the user draws the input graphics to verify, including:
S104a:将完形验证码中所含有的图形与用户绘制输入的图形进行比对。S104a: Compare the graphic contained in the gestalt verification code with the graphic drawn by the user.
具体地,用户每绘制输入一个图形,就与完形验证码中所含有的图形进行比对;判断完形验证码中是否存在一图形与用户绘制输入的图形的相似度满足预设相似度阈值;如果存在,则将完形验证码中与用户绘制输入的图形的相似度满足预设相似度阈值的同一类图形标为已验证;如果不存在,则提示绘制输入错误。Specifically, each time the user inputs a graphic, the user compares with the graphic contained in the gestalt verification code; and determines whether the similarity between the graphic and the graphic input by the user in the gestalt verification code satisfies the preset similarity threshold. If present, the same type of graphics in the Gestalt verification code that match the user-entered graphics to meet the preset similarity threshold are marked as verified; if not, the rendering input error is prompted.
其中,预设相似度阈值可以是70%、80%等,可以根据实际应用状况进行设置。The preset similarity threshold may be 70%, 80%, etc., and may be set according to actual application conditions.
S104b:当用户绘制输入的图形包含完形验证码中所含有的所有图形时,验证成功,然后结束。S104b: When the user draws the input graphic to include all the graphics contained in the phantom verification code, the verification is successful, and then ends.
S104c:当用户绘制输入的图形没有包含完形验证码中所含有的所有图形时,验证失败,然后结束。S104c: When the user draws the input graphic without including all the graphics contained in the phantom verification code, the verification fails and then ends.
本实施例所述的验证码生成验证的方法,将预设个图形与预设个字符图形进行组合,得到完形验证码,方便用户识别验证码中的图形,可以节约时间;且用户通过绘制所识别的图形进行绘制输入,不需要激活原生键盘,验证过程简单快捷。预设个字符图形与预设个图形的叠加区域的大小最多不超过预设叠加阈值,可以避免预设个字符图形与预设个图形重叠的部分太多,无法辨识图形。The verification code generation verification method described in this embodiment combines a preset graphic with a preset character graphic to obtain a gestalt verification code, which is convenient for the user to recognize the graphic in the verification code, which can save time; and the user draws The recognized graphics are drawn and input, and the native keyboard does not need to be activated, and the verification process is simple and quick. The size of the superimposed area of the preset character graphic and the preset graphic does not exceed the preset superimposed threshold at most, and the part of the preset character graphic overlapping with the preset graphic is prevented from being too much, and the graphic cannot be recognized.
为了便于理解,下面列举具体的验证码生成验证的例子,参见图4,本实施例中预设图形库中包括圆形、方形和三角形。参见图5,本实施例中预设字符图形库中包括圆形、方形、三角形、英语字母的SVG矢量图形。参见图6,验证码生成验证的方法如下:For ease of understanding, an example of specific verification code generation verification is listed below. Referring to FIG. 4, in the embodiment, the preset graphics library includes a circle, a square, and a triangle. Referring to FIG. 5, in the embodiment, the preset character graphic library includes SVG vector graphics of a circle, a square, a triangle, and an English alphabet. Referring to Figure 6, the verification code generation verification method is as follows:
S201:从预设图形库中选取1个图形(圆形),将圆形设置为100px*100px大小的满色(黑色)。S201: Select one graphic (circle) from the preset graphic library, and set the circular to a full color (black) of 100px*100px size.
具体地,圆形如图7中的所示。Specifically, the circle is as shown in FIG.
S202:按照圆形的像素不触碰预设画布的边缘、圆形相互不叠加的规定,将圆形设置在预设画布内。S202: The circular shape is set in the preset canvas according to the rule that the circular pixels do not touch the edge of the preset canvas and the circles do not overlap each other.
其中,本实施例中预设画布的大小为800px*800px,预设画布的颜色为白色,预设画布如图7中的所示。The size of the preset canvas in this embodiment is 800px*800px, the color of the preset canvas is white, and the preset canvas is as shown in FIG. 7.
需要说明的是,为了美观、增加辨识度,可将选取的图形进行复制,增加图形数量,以叠满预设个字符图形的外框,如图7所示,将圆形复制为多个。
It should be noted that, in order to improve the visibility and the recognition degree, the selected graphics may be copied, and the number of graphics is increased to overlap the outer frame of the preset character graphics. As shown in FIG. 7, the circular is copied into multiple.
S203:从预设字符图形库中选取1个字符图形(三角形),将三角形设置为600px*600px大小的满色(白色)。S203: Select one character graphic (triangle) from the preset character graphic library, and set the triangle to a full color (white) of 600px*600px size.
S204:将600px*600px大小的三角形叠加在100px*100px大小的圆形的上层,得到完形验证码。S204: Superimpose a triangle of 600px*600px size on a top layer of a circle of 100px*100px size to obtain a gestalt verification code.
具体地,得到的完形验证码如图7所示。本实施例中设置预设叠加阈值为50%,即600px*600px大小的三角形与100px*100px大小的圆形的叠加区域的大小最多不超过50%。Specifically, the obtained gestalt verification code is as shown in FIG. In this embodiment, the preset overlay threshold is set to 50%, that is, the size of the triangle of 600px*600px and the circle of 100px*100px size is at most 50%.
具体地,参见图8、9和10,为选择不同图形和字符图形时,得到的完形验证码。并且,参见图11和12,实际应用中字符图形还可以是文字或企业logo等,增加完形验证码的意义,Specifically, referring to Figures 8, 9, and 10, the gestalt verification code obtained when selecting different graphics and character graphics. Moreover, referring to FIG. 11 and FIG. 12, the character graphic in the actual application may also be a text or a corporate logo, etc., to increase the meaning of the gestalt verification code.
需要说明的是,本实施例中字符图形的个数是1个,实际应用中字符图形的个数也可以是多个,例如:当字符图形的个数是2个(三角形和圆形)时,得到的完形验证码如图13。It should be noted that, in this embodiment, the number of character graphics is one, and the number of character graphics in actual application may also be multiple, for example, when the number of character graphics is two (triangle and circle) The resulting Gestalt verification code is shown in Figure 13.
S205:在终端设备的触摸屏的预设展示位置展示完形验证码。S205: Display a gestalt verification code on a preset display position of the touch screen of the terminal device.
具体地,参见图14,终端设备为手机,预设展示位置在终端设备的触摸屏上部分。Specifically, referring to FIG. 14, the terminal device is a mobile phone, and the preset display position is on the touch screen portion of the terminal device.
S206:获取用户在终端设备的触摸屏的预设输入位置绘制输入的图形。S206: Acquire a graphic that the user draws the input at a preset input position of the touch screen of the terminal device.
具体地,参见图14,终端设备为手机,预设输入位置在终端设备的触摸屏下部分。Specifically, referring to FIG. 14, the terminal device is a mobile phone, and the preset input position is in a lower portion of the touch screen of the terminal device.
S207:根据完形验证码中所含有的图形,对用户绘制输入的图形进行验证。S207: Verify the graphic drawn by the user according to the graphic contained in the gestalt verification code.
具体地,当用户输入一个三角形,三角形是完形验证码中所含有的图形,则对完形验证码中的三角形验证完成。用户再次输入一个方形,方形是完形验证码中所没有含有的图形,则错误。用户再次输入一个圆形,圆形是完形验证码中所含有的图形,且完形验证码中包含的所有图形为三角形和圆形,因此验证成功。需要说明的是,实际应用中,可以在验证过程中在预设提示位置通过预设提示信息(如文字、声音或图像等)提示当前用户绘制输入的图形是否验证通过,在验证成功后,用户进入相应的功能,在验证失败后,通过预设提示信息(如文字、声音或图像等)提示用户验证失败。Specifically, when the user inputs a triangle, which is a graphic contained in the Gestalt verification code, the verification of the triangle in the Gestalt verification code is completed. The user enters a square again, and the square is a graphic that is not contained in the gestalt verification code. The user enters a circle again, the circle is the graphic contained in the Gestalt verification code, and all the graphics contained in the Gestalt verification code are triangle and circle, so the verification is successful. It should be noted that, in the actual application, during the verification process, the preset prompt information (such as text, sound, or image, etc.) may be used to prompt the current user to draw the input graphic to pass the verification. After the verification succeeds, the user is authenticated. Enter the corresponding function. After the verification fails, the user will be prompted to verify the failure by preset prompt information (such as text, sound or image).
如图15所示,是本发明实施例的一种验证码生成验证的装置结构图,该装置包括:FIG. 15 is a structural diagram of a device for verifying code generation verification according to an embodiment of the present invention, where the device includes:
处理模块301,用于从预设图形库中选取预设个图形,从预设字符图形库中选取预设个字符图形;将预设个图形与预设个字符图形进行组合,得到完形验证码;The processing module 301 is configured to select a preset graphic from the preset graphic library, select a preset character graphic from the preset character graphic library, and combine the preset graphic with the preset character graphic to obtain the gestalt verification. code;
获取模块302,用于展示完形验证码,获取用户通过触摸方式绘制输入的图形;The obtaining module 302 is configured to display a gestalt verification code, and obtain a graphic that the user draws the input by touch;
验证模块303,用于根据完形验证码中所含有的图形,对用户绘制输入的图形进行
验证。The verification module 303 is configured to perform, according to the graphic included in the gestalt verification code, the graphic drawn by the user
verification.
进一步地,处理模块301包括:Further, the processing module 301 includes:
选取单元,用于从预设图形库中随机选取预设个图形,将预设个图形中每个图形设置为预设颜色预设大小的图形;The selecting unit is configured to randomly select a preset graphic from the preset graphic library, and set each graphic in the preset graphic to a preset color preset size graphic;
第一设置单元,用于按照每个图形的像素不触碰预设画布的边缘、每个图形相互不叠加的规定,将预设个图形设置在预设画布内;a first setting unit, configured to set a preset graphic in the preset canvas according to a rule that the pixels of each graphic do not touch the edge of the preset canvas, and each graphic does not overlap each other;
第二设置单元,用于从预设字符图形库中选取预设个字符图形,将预设个字符图形中每个字符图形设置为预设颜色预设大小的字符图形;a second setting unit, configured to select a preset character graphic from the preset character graphic library, and set each character graphic in the preset character graphic to a character graphic with a preset color preset size;
叠加单元,用于将预设个字符图形设置在预设个图形的上层,与预设个图形进行叠加,得到完形验证码。The superimposing unit is configured to set a preset character graphic on an upper layer of the preset graphic, and superimpose with the preset graphic to obtain a gestalt verification code.
进一步地,预设画布为设置的完形验证码在终端设备中的最大边界区域。Further, the preset canvas is a maximum boundary area of the set gestalt verification code in the terminal device.
进一步地,将预设个字符图形设置在预设个图形的上层,与预设个图形进行叠加时,预设个字符图形与预设个图形的叠加区域的大小小于等于预设叠加阈值。Further, the preset character graphics are set on the upper layer of the preset graphics, and when the preset graphics are superimposed, the size of the overlapping region of the preset character graphics and the preset graphics is less than or equal to the preset overlay threshold.
进一步地,获取模块302包括:Further, the obtaining module 302 includes:
第一展示单元,用于在终端设备的触摸屏的预设展示位置展示完形验证码;a first display unit, configured to display a gestalt verification code on a preset display position of the touch screen of the terminal device;
第一获取单元,用于获取用户在所述终端设备的触摸屏的预设输入位置绘制输入的图形;a first acquiring unit, configured to acquire a graphic that the user draws an input at a preset input position of the touch screen of the terminal device;
或,获取模块302包括:Or, the obtaining module 302 includes:
第二展示单元,用于在终端设备的屏幕的预设展示位置展示完形验证码;a second display unit, configured to display a gestalt verification code on a preset display position of the screen of the terminal device;
第二获取单元,用于获取用户通过所述终端设备的触摸板或触摸鼠标,在所述终端设备的屏幕的预设输入位置绘制输入的图形。And a second acquiring unit, configured to acquire, by the user, the input graphic by using a touch panel of the terminal device or a touch mouse, at a preset input position of the screen of the terminal device.
进一步地,验证模块303包括:Further, the verification module 303 includes:
比对单元,用于将完形验证码中所含有的图形与用户绘制输入的图形进行比对;Aligning unit, configured to compare the graphic contained in the gestalt verification code with the graphic drawn by the user;
第一验证单元,用于当用户绘制输入的图形包含完形验证码中所含有的所有图形时,验证成功;a first verification unit, configured to be successful when the graphic drawn by the user includes all the graphics included in the gestalt verification code;
第二验证单元,用于当用户绘制输入的图形没有包含完形验证码中所含有的所有图形时,验证失败。The second verification unit is configured to: when the graphic drawn by the user does not include all the graphics included in the phantom verification code, the verification fails.
本实施例所述的验证码生成验证的装置,将预设个图形与预设个字符图形进行组合,得到完形验证码,方便用户识别验证码中的图形,可以节约时间;且用户通过绘制所识别的图形进行绘制输入,不需要激活原生键盘,验证过程简单快捷。预设个字符图形与
预设个图形的叠加区域的大小最多不超过预设叠加阈值,可以避免预设个字符图形与预设个图形重叠的部分太多,无法辨识图形。The device for verifying code generation and verification according to the embodiment combines a preset graphic with a preset character graphic to obtain a gestalt verification code, which is convenient for the user to recognize the graphic in the verification code, which can save time; and the user draws The recognized graphics are drawn and input, and the native keyboard does not need to be activated, and the verification process is simple and quick. Preset character graphics and
The size of the superimposed area of the preset graphics does not exceed the preset superimposition threshold at most, which can avoid that the preset character graphics overlaps with the preset graphics too much, and the graphics cannot be recognized.
所述装置与前述的方法流程描述对应,不足之处参考上述方法流程的叙述,不再一一赘述。The device corresponds to the foregoing method flow description, and the deficiencies refer to the description of the above method flow, and will not be further described.
上述说明示出并描述了本发明的若干优选实施例,但如前所述,应当理解本发明并非局限于本文所披露的形式,不应看作是对其他实施例的排除,而可用于各种其他组合、修改和环境,并能够在本文所述发明构想范围内,通过上述教导或相关领域的技术或知识进行改动。而本领域人员所进行的改动和变化不脱离本发明的精神和范围,则都应在本发明所附权利要求的保护范围内。
The above description illustrates and describes several preferred embodiments of the present invention, but as described above, it should be understood that the invention is not limited to the forms disclosed herein, and should not be construed as Other combinations, modifications, and environments are possible and can be modified by the above teachings or related art or knowledge within the scope of the inventive concept described herein. All changes and modifications made by those skilled in the art are intended to be within the scope of the appended claims.
Claims (12)
- 一种验证码生成验证的方法,其特征在于,所述方法包括:A method for verification code generation verification, characterized in that the method comprises:从预设图形库中选取预设个图形,从预设字符图形库中选取预设个字符图形;Selecting a preset graphic from the preset graphic library, and selecting a preset character graphic from the preset character graphic library;将所述预设个图形与所述预设个字符图形进行组合,得到完形验证码;Combining the preset graphics with the preset character graphics to obtain a gestalt verification code;展示所述完形验证码,获取用户通过触摸方式绘制输入的图形;Displaying the gestalt verification code to obtain a graphic that the user draws the input by touch;根据所述完形验证码中所含有的图形,对所述用户绘制输入的图形进行验证。The user draws the input graphic to verify according to the graphic contained in the gestalt verification code.
- 如权利要求1所述的方法,其特征在于,从预设图形库中选取预设个图形,从预设字符图形库中选取预设个字符图形;将所述预设个图形与所述预设个字符图形进行组合,得到完形验证码,包括:The method according to claim 1, wherein the preset graphics are selected from the preset graphics library, and the preset character graphics are selected from the preset character graphics library; and the preset graphics and the preset are Set a character graphic to combine and get the gestalt verification code, including:从所述预设图形库中随机选取所述预设个图形,将所述预设个图形中每个图形设置为预设颜色预设大小的图形;And randomly selecting the preset graphics from the preset graphics library, and setting each graphics in the preset graphics as a preset color preset size graphic;按照所述每个图形的像素不触碰预设画布的边缘、所述每个图形相互不叠加的规定,将所述预设个图形设置在所述预设画布内;Setting the preset graphics in the preset canvas according to the rule that the pixels of each graphic do not touch the edge of the preset canvas, and the graphics are not superimposed on each other;从所述预设字符图形库中选取所述预设个字符图形,将所述预设个字符图形中每个字符图形设置为预设颜色预设大小的字符图形;Selecting the preset character graphic from the preset character graphic library, and setting each character graphic in the preset character graphic to a character graphic of a preset color preset size;将所述预设个字符图形设置在所述预设个图形的上层,与所述预设个图形进行叠加,得到所述完形验证码。And setting the preset character graphic on an upper layer of the preset graphic, and superimposing with the preset graphic to obtain the gestalt verification code.
- 如权利要求2所述的方法,其特征在于,所述预设画布为设置的所述完形验证码在终端设备中的最大边界区域。The method according to claim 2, wherein the preset canvas is a maximum boundary area of the set gestalt verification code in the terminal device.
- 如权利要求2所述的方法,其特征在于,将所述预设个字符图形设置在所述预设个图形的上层,与所述预设个图形进行叠加时,所述预设个字符图形与所述预设个图形的叠加区域的大小小于等于预设叠加阈值。The method according to claim 2, wherein the preset character graphics are set on an upper layer of the preset graphics, and when the preset graphics are superimposed, the preset character graphics The size of the superimposed area with the preset pattern is less than or equal to a preset superimposed threshold.
- 如权利要求1所述的方法,其特征在于,展示所述完形验证码,获取用户通过触摸方式绘制输入的图形,包括:The method according to claim 1, wherein the phenotypic verification code is displayed, and the user inputs the input graphic by touch, including:在终端设备的触摸屏的预设展示位置展示所述完形验证码;Displaying the gestalt verification code at a preset display position of the touch screen of the terminal device;获取所述用户在所述终端设备的触摸屏的预设输入位置绘制输入的图形;Obtaining a graphic that the user draws an input at a preset input position of the touch screen of the terminal device;或,展示所述完形验证码,获取用户通过触摸方式绘制输入的图形,包括:Or, displaying the gestalt verification code, and obtaining a graphic that the user draws the input by touch, including:在终端设备的屏幕的预设展示位置展示所述完形验证码;Displaying the gestalt verification code at a preset placement of a screen of the terminal device;获取所述用户通过所述终端设备的触摸板或触摸鼠标,在所述终端设备的屏幕的预 设输入位置绘制输入的图形。Obtaining, by the user, a touch panel of the terminal device or a touch mouse, a pre-screen of the terminal device Set the input position to draw the input graphic.
- 如权利要求1-5任一权利要求所述的方法,其特征在于,根据所述完形验证码中所含有的图形,对所述用户绘制输入的图形进行验证,包括:The method according to any one of claims 1 to 5, wherein the drawing of the input drawing graphic by the user according to the graphic contained in the gestalt verification code comprises:将所述完形验证码中所含有的图形与所述用户绘制输入的图形进行比对;Comparing the graphic contained in the gestalt verification code with the graphic drawn by the user;当所述用户绘制输入的图形包含所述完形验证码中所含有的所有图形时,验证成功;When the graphic drawn by the user draws all the graphics contained in the gestalt verification code, the verification is successful;当所述用户绘制输入的图形没有包含所述完形验证码中所含有的所有图形时,验证失败。The verification fails when the user draws the input graphic without including all the graphics contained in the gestalt verification code.
- 一种验证码生成验证的装置,其特征在于,所述装置包括:A device for verifying code generation verification, characterized in that the device comprises:处理模块,用于从预设图形库中选取预设个图形,从预设字符图形库中选取预设个字符图形;将所述预设个图形与所述预设个字符图形进行组合,得到完形验证码;a processing module, configured to select a preset graphic from the preset graphic library, select a preset character graphic from the preset character graphic library, and combine the preset graphic with the preset character graphic to obtain Gestalt verification code;获取模块,用于展示所述完形验证码,获取用户通过触摸方式绘制输入的图形;An obtaining module, configured to display the gestalt verification code, and obtain a graphic that the user draws the input by touch;验证模块,用于根据所述完形验证码中所含有的图形,对所述用户绘制输入的图形进行验证。And a verification module, configured to verify, according to the graphic included in the gestalt verification code, the graphic drawn by the user.
- 如权利要求7所述的装置,其特征在于,所述处理模块包括:The device of claim 7, wherein the processing module comprises:选取单元,用于从所述预设图形库中随机选取所述预设个图形,将所述预设个图形中每个图形设置为预设颜色预设大小的图形;a selecting unit, configured to randomly select the preset graphics from the preset graphics library, and set each graphics in the preset graphics to a preset color preset size graphic;第一设置单元,用于按照所述每个图形的像素不触碰预设画布的边缘、所述每个图形相互不叠加的规定,将所述预设个图形设置在所述预设画布内;a first setting unit, configured to set the preset graphic in the preset canvas according to a rule that the pixels of each graphic do not touch an edge of the preset canvas, and each of the graphics does not overlap each other ;第二设置单元,用于从所述预设字符图形库中选取所述预设个字符图形,将所述预设个字符图形中每个字符图形设置为预设颜色预设大小的字符图形;a second setting unit, configured to select the preset character graphic from the preset character graphic library, and set each character graphic in the preset character graphic to a character graphic with a preset color preset size;叠加单元,用于将所述预设个字符图形设置在所述预设个图形的上层,与所述预设个图形进行叠加,得到所述完形验证码。And a superimposing unit, configured to set the preset character graphics on an upper layer of the preset graphics, and superimpose the preset graphics to obtain the gestalt verification code.
- 如权利要求8所述的装置,其特征在于,所述预设画布为设置的所述完形验证码在终端设备中的最大边界区域。The device according to claim 8, wherein the preset canvas is a maximum boundary area of the set gestalt verification code in the terminal device.
- 如权利要求8所述的装置,其特征在于,将所述预设个字符图形设置在所述预设个图形的上层,与所述预设个图形进行叠加时,所述预设个字符图形与所述预设个图形的叠加区域的大小小于等于预设叠加阈值。The device according to claim 8, wherein the preset character graphics are set on an upper layer of the preset graphics, and when the preset graphics are superimposed, the preset character graphics The size of the superimposed area with the preset pattern is less than or equal to a preset superimposed threshold.
- 如权利要求7所述的装置,其特征在于,所述获取模块包括:The device of claim 7, wherein the obtaining module comprises:第一展示单元,用于在终端设备的触摸屏的预设展示位置展示所述完形验证码; a first display unit, configured to display the phantom verification code on a preset display position of the touch screen of the terminal device;第一获取单元,用于获取所述用户在所述终端设备的触摸屏的预设输入位置绘制输入的图形;a first acquiring unit, configured to acquire a graphic that the user draws an input at a preset input position of the touch screen of the terminal device;或,所述获取模块包括:Or the obtaining module includes:第二展示单元,用于在终端设备的屏幕的预设展示位置展示所述完形验证码;a second display unit, configured to display the phantom verification code on a preset display position of a screen of the terminal device;第二获取单元,用于获取所述用户通过所述终端设备的触摸板或触摸鼠标,在所述终端设备的屏幕的预设输入位置绘制输入的图形。And a second acquiring unit, configured to acquire, by the user, a graphic input on a preset input position of a screen of the terminal device by using a touch panel or a touch mouse of the terminal device.
- 如权利要求7-11任一权利要求所述的装置,其特征在于,所述验证模块包括:The device according to any one of claims 7-11, wherein the verification module comprises:比对单元,用于将所述完形验证码中所含有的图形与所述用户绘制输入的图形进行比对;a comparison unit, configured to compare the graphic included in the phantom verification code with the graphic drawn by the user;第一验证单元,用于当所述用户绘制输入的图形包含所述完形验证码中所含有的所有图形时,验证成功;a first verification unit, configured to: when the graphic drawn by the user drawing the graphic includes all the graphics included in the phantom verification code, the verification is successful;第二验证单元,用于当所述用户绘制输入的图形没有包含所述完形验证码中所含有的所有图形时,验证失败。 And a second verification unit, configured to: when the graphic drawn by the user drawing does not include all the graphics included in the phantom verification code, the verification fails.
Applications Claiming Priority (2)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201510350205.7A CN106327547B (en) | 2015-06-23 | 2015-06-23 | A kind of method and apparatus that identifying code generates verifying |
CN201510350205.7 | 2015-06-23 |
Publications (1)
Publication Number | Publication Date |
---|---|
WO2016206558A1 true WO2016206558A1 (en) | 2016-12-29 |
Family
ID=57586599
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
PCT/CN2016/085936 WO2016206558A1 (en) | 2015-06-23 | 2016-06-16 | Method of generating completely automated public turing test to tell computers and humans apart (captcha) and device utilizing same |
Country Status (2)
Country | Link |
---|---|
CN (1) | CN106327547B (en) |
WO (1) | WO2016206558A1 (en) |
Cited By (1)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN111428229A (en) * | 2020-03-05 | 2020-07-17 | 广东睿江云计算股份有限公司 | Method and system for generating jigsaw puzzle and default picture |
Families Citing this family (4)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN108989269B (en) * | 2017-06-02 | 2021-10-15 | 阿里巴巴集团控股有限公司 | Method, device and system for acquiring verification code |
CN109933970B (en) * | 2017-12-15 | 2022-12-27 | 深圳市腾讯计算机***有限公司 | Method and device for detecting graphic verification code and storage medium |
CN108319844A (en) * | 2018-01-30 | 2018-07-24 | 努比亚技术有限公司 | A kind of verification code generation method, terminal and computer readable storage medium |
CN112818319B (en) * | 2021-01-25 | 2023-03-21 | 天津五八到家货运服务有限公司 | Verification method and device of graphic verification code, electronic equipment and storage medium |
Citations (5)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN101183463A (en) * | 2007-12-19 | 2008-05-21 | 腾讯科技(深圳)有限公司 | Picture validation code generating method and device |
CN102360505A (en) * | 2011-08-16 | 2012-02-22 | 北京新媒传信科技有限公司 | Graphical verification code generation method |
CN103188263A (en) * | 2013-03-22 | 2013-07-03 | 百度在线网络技术(北京)有限公司 | Verification method, system and device |
CN103488934A (en) * | 2013-09-24 | 2014-01-01 | 刘雪英 | Method, device and system for inputting verification codes |
CN103870725A (en) * | 2012-12-13 | 2014-06-18 | 华为技术有限公司 | Method and device for generating and verifying verification codes |
Family Cites Families (9)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN102890761B (en) * | 2011-08-24 | 2015-06-10 | 北京文海思创科技有限公司 | Method for verifying through graphical verification code |
CN103179092A (en) * | 2011-12-22 | 2013-06-26 | 阿里巴巴集团控股有限公司 | Method, system and device for providing verification code information |
CN103870740B (en) * | 2012-12-14 | 2017-10-24 | 深圳市腾讯计算机***有限公司 | The method and system of image authentication code |
CN103093138B (en) * | 2013-01-05 | 2015-12-02 | 中国传媒大学 | Authentication method and the system of CAPTCHA turing test is carried out based on static character |
CN103312512B (en) * | 2013-06-07 | 2016-03-02 | 深圳第七大道网络技术有限公司 | A kind of generation method of picture validation code and device, auth method and device |
CN104298912B (en) * | 2013-07-15 | 2018-12-11 | 深圳市腾讯计算机***有限公司 | Anti- identifying code implementation method, generation method and the device cracked |
CN104637077B (en) * | 2015-02-13 | 2017-10-17 | 浙江农林大学 | The method for generating picture verification codes drawn based on character |
CN104700022B (en) * | 2015-03-31 | 2018-08-07 | 北京奇艺世纪科技有限公司 | A kind of dynamic authentication code generating method and device |
CN105574399A (en) * | 2015-12-22 | 2016-05-11 | 安徽一拓通信科技集团股份有限公司 | Graphic verification code generation method |
-
2015
- 2015-06-23 CN CN201510350205.7A patent/CN106327547B/en active Active
-
2016
- 2016-06-16 WO PCT/CN2016/085936 patent/WO2016206558A1/en active Application Filing
Patent Citations (5)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN101183463A (en) * | 2007-12-19 | 2008-05-21 | 腾讯科技(深圳)有限公司 | Picture validation code generating method and device |
CN102360505A (en) * | 2011-08-16 | 2012-02-22 | 北京新媒传信科技有限公司 | Graphical verification code generation method |
CN103870725A (en) * | 2012-12-13 | 2014-06-18 | 华为技术有限公司 | Method and device for generating and verifying verification codes |
CN103188263A (en) * | 2013-03-22 | 2013-07-03 | 百度在线网络技术(北京)有限公司 | Verification method, system and device |
CN103488934A (en) * | 2013-09-24 | 2014-01-01 | 刘雪英 | Method, device and system for inputting verification codes |
Cited By (2)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN111428229A (en) * | 2020-03-05 | 2020-07-17 | 广东睿江云计算股份有限公司 | Method and system for generating jigsaw puzzle and default picture |
CN111428229B (en) * | 2020-03-05 | 2023-06-02 | 广东睿江云计算股份有限公司 | Method and system for generating jigsaw and default picture |
Also Published As
Publication number | Publication date |
---|---|
CN106327547B (en) | 2019-09-27 |
CN106327547A (en) | 2017-01-11 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
WO2016206558A1 (en) | Method of generating completely automated public turing test to tell computers and humans apart (captcha) and device utilizing same | |
EP3554000B1 (en) | Validation code based verification method and device | |
US20200160577A1 (en) | Efficient image synthesis | |
US9514297B2 (en) | Systems and methods for gesture lock obfuscation | |
US10127372B2 (en) | Electronic device, method for authenticating user, and computer readable recording medium | |
US9129100B2 (en) | Verification code generation and verification method and apparatus | |
US8832606B2 (en) | Wallpaper assignment for multi-user mobile device | |
CN111814885B (en) | Method, system, device and medium for managing image frames | |
US10360659B2 (en) | Method and apparatus for controlling image display during image editing | |
US9596087B2 (en) | Token authentication for touch sensitive display devices | |
US9300659B2 (en) | Method and system of providing a picture password for relatively smaller displays | |
CN105094652B (en) | Touch screen unlocking method and device, electronic equipment, display and mobile terminal | |
US10341333B2 (en) | Systems and methods for generating multi-dimensional password and authenticating thereof | |
TWI644231B (en) | Apparatus and method for enhancing lock screen security | |
TWI686717B (en) | Data extraction method, device and terminal equipment | |
US20220172193A1 (en) | Method and apparatus for displaying identification code of application | |
WO2017067459A1 (en) | Desktop data loading method and device | |
US20150067825A1 (en) | Visual authentication to a computing device | |
US10037137B2 (en) | Directing input of handwriting strokes | |
CN109635601B (en) | Password anti-theft method and device | |
CN104951693A (en) | Method and system for password input detection based on mobile terminal | |
CN115048637A (en) | Man-machine verification method and system based on Web-end interactive picture rotation | |
WO2020133201A1 (en) | Automated identification of input elements in graphical user interface | |
US10586037B1 (en) | Disambiguation of an alphanumeric security code to a user | |
US9996185B2 (en) | Preventing the automatic display of an onscreen keyboard |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
121 | Ep: the epo has been informed by wipo that ep was designated in this application |
Ref document number: 16813674 Country of ref document: EP Kind code of ref document: A1 |
|
NENP | Non-entry into the national phase |
Ref country code: DE |
|
122 | Ep: pct application non-entry in european phase |
Ref document number: 16813674 Country of ref document: EP Kind code of ref document: A1 |