在实际项目中,验证码图片如何放入接口识别?

作者: mengguiyouziyi创建于 2017年11月29日更新于 2018年10月1日

报错:验证码图像通道:(36, 70, 3)验证码文本最长字符数 42017-11-28 22:35:53.116468: I tensorflow/core/platform/cpu_feature_guard.cc:137] Your CPU supports instructions that this TensorFlow binary was not compiled to use: SSE4.1 SSE4.2 AVX AVX2 FMATraceback (most recent call last):File "/Users/menggui/Desktop/project/zhuanli_spider/cnipr/other_operate/test_2/tensorflow_cnn.py", line 229, in <module>predict_text = crack_captcha(image)File "/Users/menggui/Desktop/project/zhuanli_spider/cnipr/other_operate/test_2/tensorflow_cnn.py", line 209, in crack_captchatext_list = sess.run(predict, feed_dict={X: [captcha_image], keep_prob: 1})File "/Users/menggui/.pyenv/versions/env_comm_Ana3-4.3.0/lib/python3.6/site-packages/tensorflow/Python/client/session.py", line 889, in runrun_metadata_ptr)File "/Users/menggui/.pyenv/versions/env_comm_Ana3-4.3.0/lib/python3.6/site-packages/tensorflow/Python/client/session.py", line 1096, in _runraise ValueError("Cannot feed value of shape (1, 36, 70) for Tensor 'Placeholder:0', which has shape '(?, 9600)'

内容来源: luyishisi/Anti-Anti-Spider