courao/ocr.pytorch has 610 GitHub stars and 134 forks. GitHot measured 0 stars in 24 hours. Last checked 2026-11-19 06:39 UTC. Last push 2022-03-10.
計測したスター増加
- 24時間
- 0
- 7日間
- 履歴を収集中
- 15日間
- 履歴を収集中
- 1か月
- 履歴を収集中
期間ごとの純増数です。期間は重複しており、日別の値ではありません。未計測の値は空欄です。スター数は注目度の指標であり、品質の保証ではありません。
概要
A pure pytorch implemented ocr project including text detection and recognition
機械学習README.md
オリジナルocr.pytorch
A pure pytorch implemented ocr project.
Text detection is based CTPN and text recognition is based CRNN.
More detection and recognition methods will be supported!
Prerequisite
- python-3.5+
- pytorch-0.4.1+
- torchvision-0.2.1
- opencv-3.4.0.14
- numpy-1.14.3
They could all be installed through pip except pytorch and torchvision. As for pytorch and torchvision, they both depends on your CUDA version, you would prefer to reading pytorch's official site
Detection
Detection is based on CTPN, some codes are borrowed from
pytorch_ctpn, several detection results:

Recognition
Recognition is based on CRNN, some codes are borrowed from crnn.pytorch
Test
Download pretrained models from Baidu Netdisk (extract code: u2ff) or Google Driver and put these files into checkpoints. Then run
python3 demo.py
The image files in ./test_images will be tested for text detection and recognition, the results will be stored in ./test_result.
If you want to test a single image, run
python3 test_one.py [filename]
Train
Training codes are placed into train_code directory.
Train CTPN
Train CRNN