Skip to content

tinggh/captcha_recognition

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

5 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

captcha_recognition

This repository uses crnn to recognize capcha and an average pooling is added so that the input height can change to 64.

Dependencies

  • python3
  • opencv-python
  • torch
  • torchvision
  • numpy

Run test

python3 infer.py --model_path crnn_capcha.pth --imgs_dir imgs

Result

Test on python generated 10000 images

elapsed time: 25.085253953933716, accuracy: 0.9523
Ground truth Prediction Image
gPKuG gPKug 1
izyP izyP 2
fM7n fM7n 3
txjA txjA 4
LWCN lWCN 5
fa0Z fa0Z 6
PKqOE PKqOE 7
AkkHB AkkHB 8
owMj owMj 9
rtmXI rtmXI 10
Ox2wG Ox2wG 11
sL82v sl82v 12
ncOy3 nc0y3 13
PLjz PLjz 14
mU0Na mU0Na 15

Analysis

Now the recognize errors are just some characters confuse, like 'x' and 'X', 'p' and 'P', 'o' and 'O'

About

captcha recognition with pytorch implementation.

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages