JackonYang / captcha-tensorflow

Image Captcha Solving Using TensorFlow and CNN Model. Accuracy 90%+
MIT License
996 stars 272 forks source link

conv_captcha.py里是只对验证码一个字符进行识别? #1

Closed qdk0901 closed 6 years ago

qdk0901 commented 7 years ago
    # forward prop
    predict = tf.argmax(y_conv, axis=1)
    expect = tf.argmax(y_, axis=1)

    # evaluate accuracy
    with tf.name_scope('evaluate_accuracy'):
        correct_prediction = tf.equal(predict, expect)
        accuracy = tf.reduce_mean(tf.cast(correct_prediction, tf.float32))
        variable_summaries(accuracy)

如果要改成识别四个字符的验证码,应该怎么改呢

JackonYang commented 6 years ago

refer to https://github.com/JackonYang/captcha-tensorflow/tree/d0f428524cdc2072d7b192da188a64afc016bbfc#4-char-captcha