Code Monkey home page Code Monkey logo

zhihu's Introduction

知乎爬虫————实现验证码自动识别

1.
使用keras框架搭建小型VGG卷积神经网络:
网络分为四个卷积层(卷积核3X3),两个采样层。一个全连接层
2.
从www.zhihu.com/captcha.gif爬取验证码图片作为训练样本
3.
分别训练出一个切割器和一个识别器
4.
网络模型和网络权重保存在.h5文件中可直接读取
5.
只需修改zhihu.py文件中的登录邮箱及密码,运行zhihu.py即可 
当然前提是要先安装好keras:)
6.
keras的安装可参考https://keras-cn.readthedocs.io/en/latest/

由于验证码图片较小,VGG的运算量也不会很大,不影响实现
具体结构为(由于图片样本较小,所以卷积核特特征通道数较小):
--------conv 3X3, 4通道---------卷基层
--------conv 3X3, 4通道---------卷基层
--------pool 2X2--------------------采样层
--------conv 3X3, 8通道---------卷基层
--------conv 3X3, 8通道---------卷基层
--------pool 2X2--------------------采样层
--------64神经元-------------------全连接隐藏层
--------16神经元-------------------全连接隐藏层
--------分类--------------------------全连接输出层


zhihu's People

Contributors

moxiegushi avatar

Watchers

james_jjyang avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.