Skip to content

phychaos/captcha_recognition

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

15 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

captcha_recognition

pytorch 验证码识别
算法:

CTC seq2seq + beam search/greedy search transformer + beam search/greedy search

生成验证码

def gen_image():
	get_captcha(num=200000, path=TRAIN_DATA)
	get_captcha(num=1000, path=TEST_DATA)
	get_captcha(num=10, path=IMAGE_DATA)


if __name__ == '__main__':
	gen_image()

num为验证码数量 TRAIN_DATA, TEST_DATA,IMAGE_DATA 为验证码存放路径, 在config.config.py中配置

训练&测试模型

if __name__ == '__main__':
	run() # 训练
	test() # 测试

About

pytorch ctc 验证码识别

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages