zoukankan      html  css  js  c++  java
  • 字符型图片验证码,使用tensorflow实现卷积神经网络,进行验证码识别CNN

    本项目使用卷积神经网络识别字符型图片验证码,其基于 TensorFlow 框架。它封装了非常通用的校验、训练、验证、识别和调用 API,极大地减低了识别字符型验证码花费的时间和精力。

     项目地址:

    https://github.com/nickliqian/cnn_captcha

    操作系统:

    Ubuntu 16.04.3 LTS

    环境部署遇到的问题:

    apt install python3-pip

     遇到如下报错:

    Unable to fetch some archives, maybe run apt-get update or try with --fix-missing

    解决:升级apt-get

    apt-get update

    一.pip3升级版本后 无效:

    pip3 install --upgrade pip

    Traceback (most recent call last): File "/usr/bin/pip", line 9, in <module> from pip import main ImportError: cannot import name main

    解决方法:

    1.在终端输入:sudo gedit /usr/bin/pip

    2.将: from pip import main if __name__ == '__main__': sys.exit(main())改为:

    from pip import __main__
    
    if __name__ == '__main__':
    
      sys.exit(__main__._main())

    3.保存文件退出,完成。

    若上述方法无效:将pip修改为pip._internal即可解决

    二.pip3 install tensorflow flask requests PIL matplotlib easydict  PIL无效的版本

    改为:

    pip3 install tensorflow flask requests Pillow matplotlib easydict 

    三.

    Could not install packages due to an EnvironmentError: [Errno 13] Permission denied: '/usr/local/lib/python3.5/dist-packages/astor' Consider using the `--user` option or check the permissions.

    改为:

    pip3 install --user tensorflow flask requests Pillow matplotlib easydict
    

    剩下的识别训练请参考github的说明:

  • 相关阅读:
    13. Docker容器内不能联网的6种解决方案
    12. Docker修改默认存储位置
    11. Docker为容器分配指定物理IP地址
    10.修改sysctl.conf提示没权限
    9. 使用ssh登陆Docker
    8. Docker
    7. Docker
    6. Docker
    Python生成器&迭代器
    Python装饰器
  • 原文地址:https://www.cnblogs.com/boluo007/p/10015470.html
Copyright © 2011-2022 走看看