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 th

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

Example Embodiment

[0027] Example 1

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

[0029] S1. Prepare N character sets {N1}, the height and width of the 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 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 M pictures as the background image of the verification code, the vertical height of the picture is not less than the maximum value MAX (Hxc) in the {C} set, and the width cannot be less than and ∑ (Wxc), select the picture mark Is M1;

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

[0035] S7. Ran...

Example Embodiment

[0050] Example 2

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

[0052] Step 101: To start, a graphic verification code containing F characters needs to be generated;

[0053] Step 102: Prepare a variety of character sets, including a variety of different fonts, such as: Arial, Tahoma, Times New Roman, HeiTi, etc.; select a variety of character sets from the character sets, including 1

[0054] Step 103: randomly select F characters from a variety of character sets;

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

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

[0057] Step 106: Randomly rotate the selected characters one by one from -90 degrees to 90 degree...

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 Eureka
  • Industry Leading Data Capabilities
  • Powerful AI technology
  • Patent DNA Extraction
Social media
Try Eureka
PatSnap group products