CN103065341A - Method for turning figure picture into verification code picture based on black color and white color - Google Patents
Method for turning figure picture into verification code picture based on black color and white color Download PDFInfo
- Publication number
- CN103065341A CN103065341A CN2012105607685A CN201210560768A CN103065341A CN 103065341 A CN103065341 A CN 103065341A CN 2012105607685 A CN2012105607685 A CN 2012105607685A CN 201210560768 A CN201210560768 A CN 201210560768A CN 103065341 A CN103065341 A CN 103065341A
- Authority
- CN
- China
- Prior art keywords
- picture
- character
- black
- white
- double
- Prior art date
- Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
- Pending
Links
Images
Landscapes
- Character Input (AREA)
- Character Discrimination (AREA)
- Facsimile Image Signal Circuits (AREA)
Abstract
The invention provides a method for turning a figure picture into a verification code picture based on black color and white color. According to the method for turning the figure picture into the verification code picture based on the black color and the white color, limitations of insufficient or excessive interference and limited samplings are avoided by the figure gathering picture manually provided, the figure gathering picture is converted to a black and white picture, when communication equipment acquires a verification code, the black and white picture is read in an internal memory, each character in an identification character string is positioned on a corresponding row in the black and white picture, a 32*32 dot matrix character picture of a line on the row is randomly drawn, and the verification code picture is formed by splicing of the character pictures drawn in the internal memory of the communication equipment. Therefore, validation effect of the verification code picture is greatly improved, danger caused by computer reinstallation is avoided, recognition rate of human eyes is improved, and speed for acquiring the verification code of the communication equipment is increased.
Description
Technical field
The present invention relates to the computer communication field, relate in particular to a kind of method that forms the identifying code picture based on the double-colored digital picture of black and white.
Background technology
All be based at random font, increase background noise and prospect noise again for the authentication code (being identifying code) of picture in the existing game products, and twist etc. and to disturb behaviour to generate.Because being communication apparatus, those pictures produce, for computing machine, identify than being easier to, therefore the programming personnel produces the software (being automatic brush machine software) of automatic input validation code easily, thereby form illegal software, destroy the security of game products, and those pictures are that communication apparatus increases background noise and prospect noise, and twist and finish; Its human eye is difficult to identify well; Want to increase the difficulty of Computer Automatic Recognition, then need enough large digital picture set, so just increased the internal memory of communication apparatus, and communication apparatus to read the speed of authentication code also very slow.Therefore the present patent application file is considered the application of game, directly according to a large amount of digital pictures of having made, dynamic random is picked out the character picture of corresponding numeral, combination producing authentication code picture, because picture is pre-designed by fine arts personnel, noise and twisted state can be controlled at human eye well can distinguish state, and such picture but is difficult to identification by the Computer Automatic Recognition technology.
In order to allow those skilled in the art understand better the present patent application file, describe in this pixel formation to 24 chromatic graph sheets.It is the computer data storage cell that each pixel of 24 chromatic graph sheets consists of (being bit): bit by 24, Computer Data is to store with binary mode, such as integer data 13, file layout actual in computing machine is 0000000000001101, arbitrary position wherein is exactly a bit, and 8 bit are exactly a byte; Namely 24 each pixels of chromatic graph sheet are to be made of 3 bytes.3 of each pixel bytes have represented (indigo plant) B successively in internal memory, (green) G, the intensity level (0 ~ 255) of (red) R.For example: pure red R value is that 255, G value is that 0, B value is 0; The R of grey, G, three values of B equate (except 0 and 255); R, G, the B of white are 255; The R of black, G, B are 0.Like this, 24 look BMP pictures are actual can express 16777216 kinds of colors.
Summary of the invention
The technical problem to be solved in the present invention, be to provide a kind of method that forms the identifying code picture based on the double-colored digital picture of black and white, so that identifying code picture verification effect improves greatly, avoided the danger of computing machine brush machine, also improved the speed that communication apparatus is transferred the identifying code picture simultaneously.
The present invention is achieved in that a kind of method based on the double-colored digital picture formation identifying code picture of black and white, comprises the steps:
Step 10, at least one numeral set of making picture, the BMP file that described digital collection picture is 24 looks, this digital collection picture is formed a character picture by per 32 * 32 dot matrix, i.e. a picture being formed by the character picture of multiple lines and multiple rows of this digital collection picture; Described every row is comprised of identical character, but the font style of each character is different; Described every row are comprised of different characters, but the font style of each character is identical;
Step 20, load described digital collection picture in the internal memory of communication apparatus, each pixel in the scanning digital set picture generates the double-colored picture of black and white with the conversion of digital collection picture, and the double-colored picture of this black and white is double-colored picture of arranging by bit stream;
Step 30, according to the needs of communication apparatus, produce at random the content that an authentication string that is comprised of numbers and symbols needs the user to authenticate as communication apparatus, travel through one by one each character in the described authentication string, with the character locating that traverses corresponding row in the double-colored picture of described black and white, and randomly draw the character picture of 32 * 32 dot matrix of certain row at this row, and the character picture that splicing respectively is drawn in the internal memory of communication apparatus, consist of described identifying code picture;
Step 40, communication apparatus call display interface and draw the described identifying code picture of demonstration or the identifying code picture is sent to the Terminal Server Client use.
The present invention has following advantage: the present invention has replaced traditional checking picture system by the interference picture that manually provides; Traditional picture verification system is to disturb to avoid computer automatic analysis to go out its graphical symbol by the computer system font by noise distortion scheduling algorithm, if disturb the transition meeting to cause human eye to be difficult to identification, if and interference is not enough, because system font is limited, is easy to the system of being automatically recognized and cracks.And native system manually provides the interference picture exactly to avoid the limitation of disturbing deficiency or excessively reaching Finite Samples, and this digital collection picture formed the double-colored picture of black and white by conversion, when communication apparatus need to be transferred identifying code, from internal memory, read the double-colored picture of black and white, and with each character in the authentication string, navigate to row corresponding in the double-colored picture of described black and white, and randomly draw the character picture of 32 * 32 dot matrix of certain row at this row, and the character picture that splicing respectively is drawn in the internal memory of communication apparatus, consist of the identifying code picture.The invention enables identifying code picture verification effect greatly to improve, avoided the danger of computing machine brush machine, improved the discrimination of human eye; Simultaneously also improve communication apparatus and transferred the speed of identifying code picture.
Description of drawings
Fig. 1 is the inventive method schematic flow sheet.
Embodiment
See also shown in Figure 1ly, of the present inventionly a kind ofly form the method for identifying code picture based on the double-colored digital picture of black and white, comprise the steps:
Step 10, at least one numeral set of making picture, the BMP file that described digital collection picture is 24 looks, this digital collection picture is formed a character picture by per 32 * 32 dot matrix, i.e. a picture being formed by the character picture of multiple lines and multiple rows of this digital collection picture; Described every row is comprised of identical character, but the font style of each character is different; Described every row are comprised of different characters, but the font style of each character is identical;
Step 20, the described digital collection picture of loading are in the internal memory of communication apparatus, each pixel in the scanning digital set picture, the conversion of digital collection picture is generated the double-colored picture of black and white, the double-colored picture of this black and white is double-colored picture of arranging by bit stream (i.e. pixel of 1 position storage, 0 represents black, and 1 represents white); Wherein, each pixel in the scanning digital set picture, the conversion of digital collection picture is generated the double-colored picture of black and white to be specially: each pixel in the scanning digital set picture, R with each pixel, G, the B component value is added up, and consists of a total component TotalRGB, and namely formula is TotalRGB=R+G+B; If the TotalRGB of a pixel〉150, then convert this pixel to white; If the TotalRGB of a pixel<=150 then convert this pixel to black; Each pixel that travels through in the described digital collection picture forms the double-colored picture of black and white by the pixel that described formula changes into the color that generates correspondence one by one; The internal memory that the double-colored picture of this black takies is smaller, thus communication apparatus to call the velocity ratio of picture very fast;
Step 30, according to the needs of communication apparatus, producing at random an authentication string that is comprised of numbers and symbols (is that numbers and symbols can only be 0,1,2,3,4,5,6,7,8,9,0 ,+,-consist of) as the content (as: " 5+6 " this authentication string) that communication apparatus needs the user to authenticate, travel through one by one each character in the described authentication string, with the character locating that traverses corresponding row in the double-colored picture of described black and white, and randomly draw the character picture of 32 * 32 dot matrix of certain row at this row, namely first selected this character be " 0,1; 2,3,4; 5,6,7; 8,9,0 ;+,-" in which character, the font style of selected this character again; And the character picture that splicing respectively is drawn in the internal memory of communication apparatus, consist of described identifying code picture;
Step 40, communication apparatus call display interface and draw the described identifying code picture of demonstration or the identifying code picture is sent to the Terminal Server Client use.
In the present invention, the BMP file of described 24 looks pre-designed by fine arts personnel, and noise and twisted state can be controlled at the state that human eye can be distinguished well; The pixel of the BMP file of described 24 looks is 320 * 384.Wherein, the character in the described character picture comprise+,-, 0,1,2,3,4,5,6,7,8,9 these symbols; The picture that the digital collection picture of described 320 * 384 pixels is comprised of 12 row, 10 character pictures that are listed as; The character of described 12 row order from top to bottom is followed successively by 0,1,2,3,4,5,6,7,8,9 ,+,-; Be that the first row is that 0, the second row of 10 kinds of different fonts patterns is 1 of 10 kinds of different fonts patterns, by that analogy, 10 kinds of different fonts patterns of the 12nd behavior-; Those font style are backhand, right italic, runic, band underscore etc.
The above only is preferred embodiment of the present invention, and all equalizations of doing according to the present patent application claim change and modify, and all should belong to covering scope of the present invention.
Claims (5)
1. the method based on the double-colored digital picture formation identifying code picture of black and white is characterized in that, comprises the steps:
Step 10, at least one numeral set of making picture, the BMP file that described digital collection picture is 24 looks, this digital collection picture is formed a character picture by per 32 * 32 dot matrix, i.e. a picture being formed by the character picture of multiple lines and multiple rows of this digital collection picture; Described every row is comprised of identical character, but the font style of each character is different; Described every row are comprised of different characters, but the font style of each character is identical;
Step 20, load described digital collection picture in the internal memory of communication apparatus, each pixel in the scanning digital set picture generates the double-colored picture of black and white with the conversion of digital collection picture, and the double-colored picture of this black and white is double-colored picture of arranging by bit stream;
Step 30, according to the needs of communication apparatus, produce at random the content that an authentication string that is comprised of numbers and symbols needs the user to authenticate as communication apparatus, travel through one by one each character in the described authentication string, with the character locating that traverses corresponding row in the double-colored picture of described black and white, and randomly draw the character picture of 32 * 32 dot matrix of certain row at this row, and the character picture that splicing respectively is drawn in the internal memory of communication apparatus, consist of described identifying code picture;
Step 40, communication apparatus call display interface and draw the described identifying code picture of demonstration or the identifying code picture is sent to the Terminal Server Client use.
2. the method that forms the identifying code picture based on the double-colored digital picture of black and white according to claim 1, it is characterized in that: the BMP file of described 24 looks pre-designed by fine arts personnel, and noise and twisted state can be controlled at the state that human eye can be distinguished.
3. according to claim 1ly form the method for identifying code picture based on the double-colored digital picture of black and white, it is characterized in that: the pixel of the BMP file of described 24 looks is 320 * 384.
4. according to claim 3ly form the method for identifying code picture based on the double-colored digital picture of black and white, it is characterized in that: the character in the described character picture comprises+,-, 0,1,2,3,4,5,6,7,8,9 these symbols; The picture that the digital collection picture of described 320 * 384 pixels is comprised of 12 row, 10 character pictures that are listed as; The character of described 12 row order from top to bottom is followed successively by 0,1,2,3,4,5,6,7,8,9 ,+,-; Be that the first row is that 0, the second row of 10 kinds of different fonts patterns is 1 of 10 kinds of different fonts patterns, by that analogy.
5. the method that forms the identifying code picture based on the double-colored digital picture of black and white according to claim 1, it is characterized in that: each pixel in the scanning digital set picture in the described step 20, the conversion of digital collection picture is generated the double-colored picture of black and white to be specially: each pixel in the scanning digital set picture, R with each pixel, G, the B component value is added up, and consists of a total component TotalRGB, and namely formula is TotalRGB=R+G+B; If the TotalRGB of a pixel〉150, then convert this pixel to white; If the TotalRGB of a pixel<=150 then convert this pixel to black; Each pixel that travels through in the described digital collection picture forms the double-colored picture of black and white by the pixel that described formula changes into the color that generates correspondence one by one.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN2012105607685A CN103065341A (en) | 2012-12-19 | 2012-12-19 | Method for turning figure picture into verification code picture based on black color and white color |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN2012105607685A CN103065341A (en) | 2012-12-19 | 2012-12-19 | Method for turning figure picture into verification code picture based on black color and white color |
Publications (1)
Publication Number | Publication Date |
---|---|
CN103065341A true CN103065341A (en) | 2013-04-24 |
Family
ID=48107957
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN2012105607685A Pending CN103065341A (en) | 2012-12-19 | 2012-12-19 | Method for turning figure picture into verification code picture based on black color and white color |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN103065341A (en) |
Cited By (5)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN104951751A (en) * | 2015-05-19 | 2015-09-30 | 武汉捷讯信息技术有限公司 | Method and system for identifying verification codes in automatic data acquisition system |
WO2015158271A1 (en) * | 2014-04-18 | 2015-10-22 | Tencent Technology (Shenzhen) Company Limited | Character string display method and apparatus |
CN109189971A (en) * | 2018-09-04 | 2019-01-11 | 四川长虹电器股份有限公司 | A kind of method of flexible special display effect number |
CN110032401A (en) * | 2018-01-10 | 2019-07-19 | 武汉斗鱼网络科技有限公司 | A kind of method for transformation, storage medium, equipment and the system of special pattern number |
CN111259177A (en) * | 2020-01-10 | 2020-06-09 | 深圳盒子信息科技有限公司 | Black-white binary signature picture storage method and system |
Citations (4)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN101178813A (en) * | 2007-12-19 | 2008-05-14 | 腾讯科技(深圳)有限公司 | Method and apparatus for generating photograph identifying code |
CN101197678A (en) * | 2007-12-27 | 2008-06-11 | 腾讯科技(深圳)有限公司 | Picture identifying code generation method and generation device |
CN101923702A (en) * | 2010-08-25 | 2010-12-22 | 郝红卫 | Image valid code generating method |
CN102254355A (en) * | 2011-07-05 | 2011-11-23 | 周圣云 | Method and device for generating three-dimensional verification code |
-
2012
- 2012-12-19 CN CN2012105607685A patent/CN103065341A/en active Pending
Patent Citations (4)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN101178813A (en) * | 2007-12-19 | 2008-05-14 | 腾讯科技(深圳)有限公司 | Method and apparatus for generating photograph identifying code |
CN101197678A (en) * | 2007-12-27 | 2008-06-11 | 腾讯科技(深圳)有限公司 | Picture identifying code generation method and generation device |
CN101923702A (en) * | 2010-08-25 | 2010-12-22 | 郝红卫 | Image valid code generating method |
CN102254355A (en) * | 2011-07-05 | 2011-11-23 | 周圣云 | Method and device for generating three-dimensional verification code |
Non-Patent Citations (2)
Title |
---|
吉治钢: "基于验证码破解的HTTP攻击原理与防范", 《计算机工程》 * |
张涛: "基于BMP图片汉字验证码的设计与实现", 《电脑开发与应用》 * |
Cited By (10)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
WO2015158271A1 (en) * | 2014-04-18 | 2015-10-22 | Tencent Technology (Shenzhen) Company Limited | Character string display method and apparatus |
CN105095157A (en) * | 2014-04-18 | 2015-11-25 | 腾讯科技(深圳)有限公司 | Method and device for displaying character string |
CN105095157B (en) * | 2014-04-18 | 2018-06-22 | 腾讯科技(深圳)有限公司 | character string display method and device |
US10339899B2 (en) | 2014-04-18 | 2019-07-02 | Tencent Technology (Shenzhen) Company Limited | Character string display method and apparatus |
CN104951751A (en) * | 2015-05-19 | 2015-09-30 | 武汉捷讯信息技术有限公司 | Method and system for identifying verification codes in automatic data acquisition system |
CN104951751B (en) * | 2015-05-19 | 2018-09-25 | 武汉捷讯信息技术有限公司 | Method for recognizing verification code and system in automatic data acquisition system |
CN110032401A (en) * | 2018-01-10 | 2019-07-19 | 武汉斗鱼网络科技有限公司 | A kind of method for transformation, storage medium, equipment and the system of special pattern number |
CN110032401B (en) * | 2018-01-10 | 2022-06-21 | 武汉斗鱼网络科技有限公司 | Special style number conversion method, storage medium, equipment and system |
CN109189971A (en) * | 2018-09-04 | 2019-01-11 | 四川长虹电器股份有限公司 | A kind of method of flexible special display effect number |
CN111259177A (en) * | 2020-01-10 | 2020-06-09 | 深圳盒子信息科技有限公司 | Black-white binary signature picture storage method and system |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN103065341A (en) | Method for turning figure picture into verification code picture based on black color and white color | |
CN104700441B (en) | A kind of method for generating picture verification codes and system | |
CN101739720B (en) | Method and device for generating three-dimensional dynamic verification code | |
CN102768754A (en) | Method and device for implementation of picture verification code | |
CN101295359B (en) | Image processing method and image processing apparatus | |
CN106484396A (en) | Night changing method, device and terminal unit | |
WO2018103756A1 (en) | Combined two-dimensional code anti-counterfeiting system and method, combined two-dimensional code and reading apparatus | |
CN104486481B (en) | A kind of sharing method of operation setting, user equipment and shared system | |
CN104376260B (en) | A kind of malicious code visual analysis method based on shannon entropy | |
CN104426879B (en) | Processing method and the corresponding methods, devices and systems of identifying code generation and verifying | |
CN103985082B (en) | Verification method and device for electronic certificate information | |
CN104268615A (en) | Encoding method and decoding method for color two-dimensional code | |
CN109257168A (en) | A kind of generation method of picture validation code, device, equipment and medium | |
CN106446885A (en) | Paper-based Braille recognition method and system | |
CN105093289A (en) | Seismic horizon identification method based on image processing | |
CN108985201A (en) | Image processing method, medium, device and calculating equipment | |
CN108961361B (en) | Method and system for generating special effect text image and computer equipment | |
CN106484990A (en) | A kind of engine test data three-dimensional Waterfall plot is rebuild, is shown and analysis method | |
CN107229727A (en) | One kind comment method and device | |
CN104182882A (en) | Digital watermark anti-counterfeiting anti-channel conflict system of product and application method thereof | |
CN103020651B (en) | Method for detecting sensitive information of microblog pictures | |
CN110533020A (en) | A kind of recognition methods of text information, device and storage medium | |
CN111030810B (en) | Anti-counterfeiting encryption method based on image local random transformation technology | |
CN109147002A (en) | A kind of image processing method and device | |
CN104376280B (en) | A kind of image code generation method towards Google glass |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
C06 | Publication | ||
PB01 | Publication | ||
C10 | Entry into substantive examination | ||
SE01 | Entry into force of request for substantive examination | ||
C02 | Deemed withdrawal of patent application after publication (patent law 2001) | ||
WD01 | Invention patent application deemed withdrawn after publication |
Application publication date: 20130424 |