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
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...
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.
© 2024 PatSnap. All rights reserved.Legal|Privacy policy|Modern Slavery Act Transparency Statement|Sitemap