New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
how to solve this captcha? #21
Comments
I'd start by filtering out the horizontal line with a convolution filter that basically smears things vertically.
|
@skotz Thank You!! |
You could try first inverting the image and then running the same filters as before. I just added the invert method, so you'll need to get the latest version of the library for it to work.
|
Actually, since there are always 6 characters that are always in the same place with the same horizontal line, you can just grab the characters out of the same place every time. Again, I added a new method to the library to support this. With this method you can get pretty close to 100% accuracy after training.
|
Thank You!!! for your great help @skotz |
You could write a method to check the pixel at (0, 0) and see whether it's black or white. |
@skotz Thank you |
@skotz Thank You for your support. now i able to achieve 99% accuracy for the above captcha |
Does the library has any method to get the pixel value? It's some what difficult to get the pixel value through CANVAS element. |
That's a good idea. I'll mark this thread as an enhancement and add that when I have time. |
Thank you for your response @skotz |
CLOSED |
By the way, I've added the method. Now you can get a specific pixel and perform some kind of check to see if it's white, and if it is, invert the image.
|
hello, i have a harder challange, how would i use the library to presegment and actually solve thiscaptcha?
img.debugImage("debugPreprocessed");
img.binarize(190);
The text was updated successfully, but these errors were encountered: