Home > Programming > Test and verify of the picture that defeat solution piles up

Test and verify of the picture that defeat solution piles up

2005-12-11 00:00 williamlong Edit Leave a comment Go to comments

Believe everybody has the experience in forum fill water? But if you are successive,the thing that expresses unified content is in forum, before long of forum whole board piece be the information that you publish completely, other information was squeezed to be from the back completely. The information that assumes you are published is quite much, edition advocate when cutout is not over, so this forum discarded as useless basically! Other commercial forum also realized the value that prevents baleful fill water, used a few measure that avoid baleful fill water in succession, have post of address of the limitation of time interval, same IP post several limitation, content cannot repeat etc, but these keys that are not today, what use as a result of forum is public post the table is simple, needing the difficult point with only breakthrough is code of test and verify. (be opposite to prevent a certain hacker certain is specific register an user to defeat solution means to undertake ceaseless disembarkation with specific program force attempt or it is a kind of network that prevents to refer some network news ceaselessly and be used current fashion. Generate character information to be put into the picture randomly, prevent the computer to identify directly. Enrol bank of the individual on the net of merchant bank for instance, the QQ community of Tecent is waited a moment)

Test and verify piles up cent to be a few kinds as follows: Numeric, character, symbol, integrated model.

Code of general test and verify is belonged to numeric, many color and black and white noise point were made in some pictures nevertheless (the stain that points to picture of test and verify to go up) . So how we should identify? Code of traditional test and verify identifies way very simple, because digital position is fixed, the picture that so we need to draw each number only (nod without noise) record the position elephantine element with each special particular number next come down, extract the diagnostic yard that needs broken solution on the network next, dispel noise is nodded, to its the position and record position undertake comparing is opposite, that is can determine corresponding number.

Those who sum up a tradition is:

1. Analyse code of test and verify first, foreground color is errant

2. The width that piles up test and verify next / test and verify piles up a character several, the width after than consistent test and verify the code downloads is 60, have 4 numbers, so with respect to 60/4=15, save every word next, if only the number saves 0-9 number to reach the designated position,pursue file, if English that more troublesome dot, 0-9, a-Z should save bitmap, the foreground color of bitmap is changeless, maintain a kind of color, setting is informal you do not change

3. If foreground wants to change to integrate the character,be akin color, the lattice of every number 0-9 has public site, take this public site color to unite foreground into a kind of color entirely next, for instance white {255, 255, 255} , the structure of bitmap is BGR, is not RGB

4. Undertake comparative next, if test and verify is piled up was white, the bitmap that the 2nd pace saves is bit samer also be white, so frequency increases 1

5. Final frequency is highest is code of test and verify!

What should do next is to make a Post program, this too simple, you yourself write code! Also want to accomplish following detail nevertheless: Program of Cheng of make it multi-line undertakes posting, otherwise the program can be lost answer. Had better be to be able to guide of many acting IP, the content that posts namely next sums on a few random character finally, can filter with preventing those who stick to repeat so! The most important, just do a test, post the quantity is not too much, do not want tousle advertisement to stick!

Actually afore-mentioned methods are not any more just undertake discriminating to code of test and verify, can use completely in real life, wait a moment e.g. handwritten form identifying, plate identifying, but we have more treatment even in real life, detect e.g. the circle, polygon detects etc. Say so from inside network security technology, also have a lot of things can benefit society, still await us to continue to create!

Categories: posite Tags: Test,and,verify,of,the,picture
  1. No comments yet.
  1. No trackbacks yet.