README.md 1.2 KB
Newer Older
L
lywen 已提交
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31
## 本项目基于[yolo3](https://github.com/pjreddie/darknet.git) 与[crnn](https://github.com/meijieru/crnn.pytorch.git)  实现中文自然场景文字检测及识别

## 环境部署
python=3.6 pytorch=0.2.0
``` Bash
git clone https://github.com/pjreddie/darknet.git
cd darknet
make 
cd ..
git clone https://github.com/chineseocr/chineseocr.git
cd chineseocr
sh setup.sh(cpu sh setpu-cpu.sh)
```

## 下载模型文件   

将近期更新

``` Bash
mv models.zip  chineseocr
unzip models.zip 
```
## web服务启动

``` Bash
cd chineseocr## 进入chineseocr目录
ipython app.py 8080 ##8080端口号,可以设置任意端口
```

## 识别结果展示
<div>
L
lywen 已提交
32 33
<img width="300" height="300" src="https://github.com/chineseocr/chineseocr/blob/master/test/img1.png"/>
<img width="300" height="300" src="https://github.com/chineseocr/chineseocr/blob/master/test/4.png"/>
L
lywen 已提交
34 35 36 37 38
</div>

## 访问服务
http://127.0.0.1:8080/ocr

L
lywen 已提交
39
<img width="300" height="300" src="https://github.com/chineseocr/chineseocr/blob/master/test/demo.png"/>
L
lywen 已提交
40 41 42 43 44 45 46 47


## 参考
1. yolo3 https://github.com/pjreddie/darknet.git   
2. crnn  https://github.com/meijieru/crnn.pytorch.git              
3. ctpn  https://github.com/eragonruan/text-detection-ctpn    
4. CTPN  https://github.com/tianzhi0549/CTPN