Enable Javascript in your browser and then refresh this page, for a much enhanced experience.
First solution in Clear category for Mono Captcha by htamas
FONT = ("-XX---X--XXX-XXX-X-X-XXX--XX-XXX-XXX--XX",
"-X-X-XX----X---X-X-X-X---X-----X-X-X-X-X",
"-X-X--X---XX--X--XXX-XX--XXX--X--XXX-XXX",
"-X-X--X--X-----X---X---X-X-X-X---X-X---X",
"--XX--X--XXX-XXX---X-XX---XX-X---XXX-XX-")
def checkio(image):
digits = len(image[0]) // 4
result = 0
for d in range(digits):
for v in range(10):
if sum(image[j][4*d+i] != (FONT[j][4*v+i] == 'X')
for j in range(5) for i in range(1, 4)) <= 1:
result = result * 10 + v
return result
Jan. 21, 2014
Comments: