well a friend of mine made a program that generates images like that. And if i make a program to decode those images he'll give me a gift cuz he knows i can't make it so i ask for help. And i'll learn some more c# aswell ^^
well a friend of mine made a program that generates images like that. And if i make a program to decode those images he'll give me a gift cuz he knows i can't make it so i ask for help. And i'll learn some more c# aswell ^^
No you can't do it. And this is not the way to learn C#. use some other examples.
i mean is it possible ... to make a OCR server i dont ask u to give me the code ^^ i just wanna ask is it possible and if it is just a little pointer to what i need to learn to astablish that.
Like Shuja said, this is a bad way to learn a language, and it could be used by other people to avoid CAPTCHA's, so no one will post the code here. If you find a way to make 100% effective OCR software, you should tackle some of the NP Complete problems in CS next
i don't want a way to avoid all captchas just those that look like that. Only to avoid the captchas of my friend's program nothing more i dont wanna brake captchas of sites etc -.-
We never said that you want to do that. We only said that if that code exists and that code is posted here it will be misused.
Anyways, Captcha is a security add-on and it is not always easy to beat the security. So you can forget about this little experiment and try doing something else in order to learn C#. Look at this forum, there are number of problems posted here, take one of the problem and try to solve it and see if you can get some learning out of it.
It's possible it's been on on a game called runescape classic which generated similar images..
what you do is first attempt to create every letter character as accurate to perfect font-type as possible.
This is done by rotating the whole string of words in your case counter-clockwise rotation.
To rotate images look for code on google. (Tons of examples exist I'd look for sprite rotator and rip that code). Now keep testing each rotation to get every letter near 90% or higher maybe even 100% in your case i dont see that much problems in your image its pretty easy to decode.
Now how do get %'s of image words? well you create a pixel array of every letter from A-Z to a-z
and search for these matches using GetPixel API from windows.
Those lines will effect your % but you don't have to worry to much about them but they can be removed as well using the % system.. say you match a Q.. with 100% then erase everything that is extra detected inside it.
It's not that much coding.. the hardest part in my opionion would be getting every letter into a binary array
1's for matches 0's for empty spots..
Now there is another thing which makes this easier each letter has a perfect spacing so you can just use math like x+3 y+5 when you are looping to get the whole word..
without spacing you would have to scan the whole image and find any 99-100% matches and store the locations of x,y start positions into another array then sort that array and lowest y coordinate letter goes first.. etc.. simple
Well you are talking about a game and not a real captcha. Breaking a captcha is very difficult, although your explanation above sounds simple enough, but I am sure it won't be an easy task.
Well you are talking about a game and not a real captcha. Breaking a captcha is very difficult, although your explanation above sounds simple enough, but I am sure it won't be an easy task.
wrong.. the game im talking about is the same as a real captcha.. I'd like to add it doesn't matter which way you rotate the image.. counter-clockwise etc.. so don't worry if each different captcha has different way of rotation.. just do a full 360 rotation and each rotation do a check for accuracy of first letter/middle letter.
here is some of the captchas the game im talking about generated
the OCR written for it.. had a 95-100% accuracy and source code was released but it was maybe 8 years ago.. i dont know if its possible to find it now it was written in C++
well currently i only inverted the colors. Meaning black = white and white = black :P changed the places so to speak. Image attached. Any ideas on how to clean it from the black spots and lines?
Again, you are asking how to break a specific CAPCTHA and no one here is going to publicly help you to do it. It doesn't matter what your intentions are, it can be misused by others.
* The Best Reasons to Target Windows 8
Learn some of the best reasons why you should seriously consider bringing your Android mobile development expertise to bear on the Windows 8 platform.