Looking for breakthrough ideas for innovation challenges? Try Patsnap Eureka!

Method of generation of graphic captcha

A graphic verification code and picture technology, which is applied in the direction of editing/combining graphics or text, digital data authentication, etc., can solve problems such as being easy to be learned and cracked by machines, and achieve the effect of enhanced anti-machine learning performance and strong performance

Inactive Publication Date: 2017-08-29
成都优易数据有限公司
View PDF4 Cites 5 Cited by
  • Summary
  • Abstract
  • Description
  • Claims
  • Application Information

AI Technical Summary

Problems solved by technology

[0005] In view of the above-mentioned prior art, the purpose of the present invention is to provide a method for generating a graphic verification code, which solves the problem that the existing technology is easy to be learned and cracked by machines due to the use of regularity generation algorithms and fixed picture size or fixed verification code length. question

Method used

the structure of the environmentally friendly knitted fabric provided by the present invention; figure 2 Flow chart of the yarn wrapping machine for environmentally friendly knitted fabrics and storage devices; image 3 Is the parameter map of the yarn covering machine
View more

Image

Smart Image Click on the blue labels to locate them in the text.
Viewing Examples
Smart Image
  • Method of generation of graphic captcha

Examples

Experimental program
Comparison scheme
Effect test

Embodiment 1

[0028] The invention discloses a method for generating a graphic verification code.

[0029] S1. Prepare N character sets {N1}, and the height and width of characters in each character set are Hn and Wn respectively;

[0030] S2. Prepare M pictures with different pixel sizes as background pictures;

[0031] S3. Prepare O colors, the set of which is {O1};

[0032] S4. Each time a verification code containing F characters is generated, X character sets are selected from {N1} character sets, where X (0

[0033] S5. Select a picture from the M pictures as the verification code background picture. The vertical height of the picture should not be lower than the maximum value MAX(Hxc) in the {C} set, and the width should not be lower than the sum ∑(Wxc). for M1;

[0034] S6. Randomly add lines to the verification code background image M1 to form a background image M2;

[00...

Embodiment 2

[0051] figure 1 It is a flow chart of generating a graphic verification code in a specific embodiment of the invention. Such as figure 1 As shown, the process of generating a graphic verification code includes the following steps:

[0052] Step 101: start, need to generate a graphic verification code that comprises F characters;

[0053]Step 102: prepare multiple character sets, including multiple different fonts, for example: Arial, Tahoma, Song typeface, black body, etc.; select multiple character sets from the character set, wherein 1<X≤F;

[0054] Step 103: randomly select F characters from various character sets;

[0055] Step 104: select the background picture according to the selected character font size and verification code, as the canvas;

[0056] Step 105: Randomly write some curves with irregular thickness in the canvas as picture noise;

[0057] Step 106: the selected characters are randomly rotated by -90° to 90° one by one;

[0058] Step 107: Randomly move...

the structure of the environmentally friendly knitted fabric provided by the present invention; figure 2 Flow chart of the yarn wrapping machine for environmentally friendly knitted fabrics and storage devices; image 3 Is the parameter map of the yarn covering machine
Login to View More

PUM

No PUM Login to View More

Abstract

The invention discloses a method of generation of graphic captcha, relates to the technical field of computer applications, and solves the technical problems that in the prior art because of the use of regularity algorithms and simple photo galleries the results are easily learned and cracked by machine. By the method of generation of graphic captcha, multiple character sets are prepared, each character set in multiple character sets is calculated, so that random sizes and colors are provided, by the stochastic processing algorithm through the rotation of the characters and local pixels by a little horizontal or vertical displacement, a variety of superposition combinations of random conditions are produced, especially when the produced background image and the color of the characters are close, no regularities can be found in the texts and the performance against the picture-recognition software is extremely strong, the machine learning resistance performance is significantly enhanced. By the method of generation of graphic captcha, a variety of background images of different sizes are prepared, the size of the resulting produced image is not constant, i.e. the amount of the verification code is uncertain, the problems are solved when the image borders are difficult to define for machine learning and the formation rules cannot be found.

Description

technical field [0001] The invention relates to the technical field of computer applications, in particular to a method for generating graphic verification codes. Background technique [0002] Graphical verification codes are used in many software, the main purpose is to identify normal users and ensure normal access and browsing operations; the main way to identify whether they are normal and effective accessing and browsing operations is by requiring the input of graphic verification code results. distinguish. [0003] Users need to use the verification code graphics provided by the software, and input and return the results to the software after understanding the meaning in the graphics. [0004] At present, the methods and methods used by many software to generate graphic verification codes mainly have the following defects: the graphic verification codes are generated regularly and are easy to be cracked after being mastered; Contents of the invention [0005] In vi...

Claims

the structure of the environmentally friendly knitted fabric provided by the present invention; figure 2 Flow chart of the yarn wrapping machine for environmentally friendly knitted fabrics and storage devices; image 3 Is the parameter map of the yarn covering machine
Login to View More

Application Information

Patent Timeline
no application Login to View More
IPC IPC(8): G06F21/36G06T11/60
CPCG06F21/36G06T11/60
Inventor 夏珺峥傅玉生
Owner 成都优易数据有限公司
Who we serve
  • R&D Engineer
  • R&D Manager
  • IP Professional
Why Patsnap Eureka
  • Industry Leading Data Capabilities
  • Powerful AI technology
  • Patent DNA Extraction
Social media
Patsnap Eureka Blog
Learn More
PatSnap group products