Created
August 14, 2018 18:45
-
-
Save samirfor/5cd01da241d4a4b1f4fec4c41a82d388 to your computer and use it in GitHub Desktop.
PJe Captcha Decoder
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/sh | |
# Dependencies: convert=ImageMagick and Tesseract | |
INPUT=$1 | |
convert $1 -scale 200% -negate -morphology erode octagon:2 -negate -threshold 80% out.png | |
tesseract -psm 8 -c tessedit_char_whitelist=0123456789 out.png - |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment