APP下载

基于卷积循环神经网络的不定长验证码识别

2021-10-16黎秋宇

现代信息科技 2021年7期

摘要:验证码是目前大部分网站用来防止批量注册、刷票等恶意操作的图灵测试手段。为了帮助开发者设计出更缜密的安全策略,将生成的5 000张混合英数的不定长验证码作为训练集,基于PyTorch学习框架,使用卷积循环神经网络来训练模型,CTC算法对标签进行对齐,实现对不定长验证码的识别。实验表明,最终该模型对不定长验证码的识别准确率达到了99.2%。

关键词:验证码识别;卷积神经网络;循环神经网络;卷积循环神经网络

中图分类号:TP391.41      文献标识码:A 文章编号:2096-4706(2021)07-0133-03

Undefined Length CAPTCHA Recognition Based on Convolutional

Recurrent Neural Network

LI Qiuyu

(College of Computer and Cyber Security,Fujian Normal University,Fuzhou  350117,China)

Abstract:CAPTCHA is a Turing test method used by most websites to prevent batch registration,ticket brushing and other malicious operations. In order to help developers design more rigorous security strategies,this paper uses generated 5 000 pieces of mixed English and number undefined length CAPTCHAs as the training set,based on PyTorch learning framework,uses convolutional recurrent neural network to train the model,and the CTC algorithm aligns the labels to realize the recognition of undefined length CAPTCHAs. Experiments show that the recognition accuracy of the model for undefined length CAPTCHAs reaches 99.2%.

Keywords:CAPTCHA recognition;convolutional neural network;recurrent neural network;convolutional recurrent neural network

收稿日期:2021-03-13

0  引  言

随着互联网的蓬勃发展,网络安全逐渐进入公众视野,用来区分人类和机器的验证码的重要性也渐渐凸显。与普通的字符不同的是,验证码中的字符都会被进行一定的干扰处理,例如通过旋转、缩放、重叠、加入干扰符、改变颜色等处理,使得验证码不能通过传统的制作字库识别的方法或者使用ORC进行识别。验证码已经演化出多个种类并且还在不断增加,除了传统的验证码外,目前使用量较多的还有滑块、旋转验证码等等。由于验证码应用的普及,目前也出现了对其相关的研究,以帮助开发者设计出更缜密的安全策略,除此之外,验证码识别的研究将使用到包括深度学习、图像处理在内的多种技术,具有重要的研究意义。

近年来,有许多研究学者提出了不同的自动化识别的解决办法。殷光等[1]使用了SVM分类进行了定长验证码的识别。王晓鹏将BP神经网络与遗传算法结合进行了识别[2]。……

登录APP查看全文