nav emailalert searchbtn searchbox tablepage yinyongbenwen piczone journalimg journalInfo journalinfonormal searchdiv searchzone qikanlogo popupnotification paper paperNew
2025, 01, v.41 299-303
基于PyTorch框架的不定长验证码抗干扰识别系统设计
基金项目(Foundation):
邮箱(Email):
DOI:
发布时间: 2025-01-20
出版时间: 2025-01-20
移动端阅读
摘要:

为了降低干扰信息对验证码识别效果的影响,提高不定长验证码的识别准确率,设计基于PyTorch框架的不定长验证码抗干扰识别系统。系统由采集模块、处理模块、识别模块三部分组成。采集模块利用网络爬虫获取验证码图像,并在图像处理模块中完成灰度化处理。调用全局阈值法对处理后的图像实施二值化操作,区分图像背景与字符。将采用滑动窗口法在去除噪声后的验证码图像中输入基于PyTorch框架的验证码识别模块,利用改进的ResNet-18网络提取图像特征后,通过长短期记忆网络模型获取字符序列特征,利用时序分类算法完成标签的对齐,实现对不定长验证码的抗干扰识别。实验结果表明,所设计系统可以有效实现对验证码图像的灰度化及去噪处理,并完成含不同程度干扰信息的不定长验证码的准确识别。

Abstract:

In order to reduce the influence of interference information on verification code recognition and improve the identification accuracy of indefinite length verification code, an anti-interference identification system of indefinite length verification code based on PyTorch framework is designed. The system consists of acquisition module, processing module and recognition module. The acquisition module uses the Web crawler to obtain the verification code image, and completes the gray processing in the image processing module. The global threshold method is used to implement binarization operation on the processed image to distinguish the image background and characters. In the verification code image after noise removal by sliding window method is input into the verification code recognition module based on PyTorch framework. After extracting the image features by the improved ResNet-18, the character sequence features are obtained through the long short-term memory network model, and the label alignment is completed by the sequential classification algorithm. The anti-interference identification of indefinite length verification code is realized. Experimental results show that the designed system can effectively grayscale and denoise verification code images, and complete the accurate recognition of the indefinite length verification code with different degrees of interference information.

参考文献

[1] 舒乐,戴佳筑.基于通用对抗扰动的图像验证码保护方法[J].计算机工程与应用,2021,57(18):135-141.

[2] 朱理奥,曹天杰.抗特征点匹配识别的滑块式拼图验证码[J].合肥工业大学学报(自然科学版),2020,43(11):1463-1468.

[3] 曹廷荣,陆玲,龚燕红,等.基于对抗网络的验证码识别方法[J].计算机工程与应用,2020,56(8):199-204.

[4] 汤战勇,田超雄,叶贵鑫,等.一种基于条件生成式对抗网络的文本类验证码识别方法[J].计算机学报,2020,43(8):1572-1588.

[5] 唐胜贵,胡运红,王宝丽.基于深度学习的验证码识别技术研究[J].数学的实践与认识,2020,50(7):161-170.

[6] 栗维勋,马斌,马骁,等.基于通用性对抗扰动的图像验证码系统研究[J].中国电子科学研究院学报,2021,16(10):1020-1028.

[7] 顾梅花,王苗苗,李立瑶,等.彩色图像多尺度融合灰度化算法[J].计算机工程与应用,2021,57(4):209-215.

[8] 王文豪,严云洋,姜明新,等.基于噪声检测和动态窗口的图像去噪算法[J].图学学报,2019,40(1):111-116.

[9] 谢旻旻,钟小莉.基于三维直方图的立体图像层次化分割算法[J].计算机仿真,2021,38(2):133-136.

[10] 陈倩,齐林海,王红.基于LSTM网络的谐波多标签分类[J].电力建设,2019,40(7):101-106.

[11] 冯文博,洪征,吴礼发,等.基于卷积神经网络的应用层协议识别方法[J].计算机应用,2019,39(12):3615-3621.

[12] 李渊博,杨媛,张小涛.基于LSTM网络的IGBT参数预测硬件系统设计[J].电子技术应用,2019,45(10):33-36.

基本信息:

中图分类号:TP391.41;TP309

引用信息:

[1]常荣.基于PyTorch框架的不定长验证码抗干扰识别系统设计[J].微型电脑应用,2025,41(01):299-303.

发布时间:

2025-01-20

出版时间:

2025-01-20

检 索 高级检索

引用

GB/T 7714-2015 格式引文
MLA格式引文
APA格式引文