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
- Summary
- Abstract
- Description
- Claims
- Application Information
AI Technical Summary
Problems solved by technology
Method used
Image
Examples
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...
PUM
Abstract
Description
Claims
Application Information
- R&D Engineer
- R&D Manager
- IP Professional
- Industry Leading Data Capabilities
- Powerful AI technology
- Patent DNA Extraction
Browse by: Latest US Patents, China's latest patents, Technical Efficacy Thesaurus, Application Domain, Technology Topic, Popular Technical Reports.
© 2024 PatSnap. All rights reserved.Legal|Privacy policy|Modern Slavery Act Transparency Statement|Sitemap|About US| Contact US: help@patsnap.com