计算机工程与应用 ›› 2020, Vol. 56 ›› Issue (8): 199-204.DOI: 10.3778/j.issn.1002-8331.1901-0416

• 图形图像处理 • 上一篇    下一篇

基于对抗网络的验证码识别方法

曹廷荣,陆玲,龚燕红,贾惠珍   

  1. 1.东华理工大学 信息工程学院,南昌 330013
    2.南昌大学 信息工程学院,南昌 330031
  • 出版日期:2020-04-15 发布日期:2020-04-14

Captcha Cracking Method Based on Adversarial Network

CAO Tingrong, LU Ling, GONG Yanhong, JIA Huizhen   

  1. 1.School of Information Engineering, East China University of Technology, Nanchang 330013, China
    2.School of Information Engineering, Nanchang University, Nanchang 330031, China
  • Online:2020-04-15 Published:2020-04-14

摘要:

在人机智能交互中,让机器自动识别验证码是机器模拟人的一项基础技术。基于文本的验证码识别一般先对验证码图片进行预处理,然后切割,最后对字符分类识别。字符切割的准确程度直接影响最终识别结果。提出一种对抗学习方法识别文本型验证码。先训练一个Pix2pix网络对验证码图片进行预处理,然后对抗训练出一对分割和识别网络。分割网络不仅能分割粘贴字符,而且可以筛选出难以分割的验证码结果。识别网络采用上下文相关的多通道卷积网络,能有效解决分割过程中因信息丢失而无法识别的问题。实验结果表明,该方法能提高文本验证码识别的准确率。

关键词: 对抗学习, 验证码识别, 分割, 神经网络

Abstract:

In human-computer intelligent interaction, it is a basic technology for machine to recognize captcha automatically. Text-based captcha recognition usually preprocesses the captcha images, then cuts them, and finally classifies and recognizes the characters. The accuracy of character cutting directly affects the final recognition result. This paper proposes a method based on adversarial network to recognize text captchas. First, a Pix2pix network is trained to preprocess the captcha image, and then a pair of segmentation and recognition networks are obtained by using the method of confrontation training. The segmentation network can not only separate the pasting characters, but also filter out the hard-to-divide verification codes. The identification network adopts a context-dependent multi-channel convolution network, which can effectively solve the problem that the information cannot be identified due to information loss during the segmentation process. Experimental results show that this method can improve the accuracy of text-based captchas recognition.

Key words: adversarial learning, captcha cracking, segmentation, neural network