diff --git a/.gitignore b/.gitignore new file mode 100644 index 00000000..3db08180 --- /dev/null +++ b/.gitignore @@ -0,0 +1,18 @@ +# Byte-compiled / optimized / DLL files +__pycache__/ +*.py[cod] +*$py.class + +# C extensions +*.so + +inference/ +inference_results/ +output/ + +*.DS_Store +*.vs +*.user +*~ +*.vscode +*.idea diff --git a/README.md b/README.md index 258581b6..8c2094ff 100644 --- a/README.md +++ b/README.md @@ -30,7 +30,7 @@ PaddleOCR旨在打造一套丰富、领先、且实用的OCR工具库,助力 ![](doc/imgs_results/11.jpg) -上图是超轻量级中文OCR模型效果展示,更多效果图请见文末[效果展示](#效果展示)。 +上图是超轻量级中文OCR模型效果展示,更多效果图请见文末[超轻量级中文OCR效果展示](#超轻量级中文OCR效果展示)和[通用中文OCR效果展示](#通用中文OCR效果展示)。 #### 1.环境配置 @@ -142,7 +142,7 @@ PaddleOCR文本识别算法的训练和使用请参考文档教程中[文本识 ## 端到端OCR算法 - [ ] [End2End-PSL](https://arxiv.org/abs/1909.07808)(百度自研, comming soon) - + ## 超轻量级中文OCR效果展示 ![](doc/imgs_results/1.jpg) ![](doc/imgs_results/7.jpg) @@ -153,11 +153,36 @@ PaddleOCR文本识别算法的训练和使用请参考文档教程中[文本识 ![](doc/imgs_results/16.png) ![](doc/imgs_results/22.jpg) + ## 通用中文OCR效果展示 ![](doc/imgs_results/chinese_db_crnn_server/11.jpg) ![](doc/imgs_results/chinese_db_crnn_server/2.jpg) ![](doc/imgs_results/chinese_db_crnn_server/8.jpg) +## FAQ +1. 预测报错:got an unexpected keyword argument 'gradient_clip' + + 安装的paddle版本不对,目前本项目仅支持paddle1.7,近期会适配到1.8。 + +2. 转换attention识别模型时报错:KeyError: 'predict' + + 基于Attention损失的识别模型推理还在调试中。对于中文文本识别,建议优先选择基于CTC损失的识别模型,实践中也发现基于Attention损失的效果不如基于CTC损失的识别模型。 + +3. 关于推理速度 + + 图片中的文字较多时,预测时间会增,可以使用--rec_batch_num设置更小预测batch num,默认值为30,可以改为10或其他数值。 + +4. 服务部署与移动端部署 + + 预计6月中下旬会先后发布基于Serving的服务部署方案和基于Paddle Lite的移动端部署方案,欢迎持续关注。 + +5. 自研算法发布时间 + + 自研算法SAST、SRN、End2End-PSL都将在6-7月陆续发布,敬请期待。 + +## 欢迎加入PaddleOCR技术交流群 +加微信:paddlehelp,备注OCR,小助手拉你进群~ + ## 更新 - 2020.5.30,模型预测、训练支持Windows系统,识别结果的显示进行了优化 - 2020.5.30,开源通用中文OCR模型 diff --git a/doc/WeChat.jpeg b/doc/WeChat.jpeg new file mode 100644 index 00000000..c721b7d9 Binary files /dev/null and b/doc/WeChat.jpeg differ diff --git a/doc/imgs_results/chinese_db_crnn_server/1.jpg b/doc/imgs_results/chinese_db_crnn_server/1.jpg index dfb363bf..04838988 100644 Binary files a/doc/imgs_results/chinese_db_crnn_server/1.jpg and b/doc/imgs_results/chinese_db_crnn_server/1.jpg differ diff --git a/doc/imgs_results/chinese_db_crnn_server/10.jpg b/doc/imgs_results/chinese_db_crnn_server/10.jpg index f17ab6cd..0ca280b8 100644 Binary files a/doc/imgs_results/chinese_db_crnn_server/10.jpg and b/doc/imgs_results/chinese_db_crnn_server/10.jpg differ diff --git a/doc/imgs_results/chinese_db_crnn_server/11.jpg b/doc/imgs_results/chinese_db_crnn_server/11.jpg index 5dda91c1..d34ab756 100644 Binary files a/doc/imgs_results/chinese_db_crnn_server/11.jpg and b/doc/imgs_results/chinese_db_crnn_server/11.jpg differ diff --git a/doc/imgs_results/chinese_db_crnn_server/12.jpg b/doc/imgs_results/chinese_db_crnn_server/12.jpg index 8964b34f..ee33dd66 100644 Binary files a/doc/imgs_results/chinese_db_crnn_server/12.jpg and b/doc/imgs_results/chinese_db_crnn_server/12.jpg differ diff --git a/doc/imgs_results/chinese_db_crnn_server/13.png b/doc/imgs_results/chinese_db_crnn_server/13.png index 71246dc5..fb5b81c2 100644 Binary files a/doc/imgs_results/chinese_db_crnn_server/13.png and b/doc/imgs_results/chinese_db_crnn_server/13.png differ diff --git a/doc/imgs_results/chinese_db_crnn_server/15.jpg b/doc/imgs_results/chinese_db_crnn_server/15.jpg index 17a8a328..fd51309c 100644 Binary files a/doc/imgs_results/chinese_db_crnn_server/15.jpg and b/doc/imgs_results/chinese_db_crnn_server/15.jpg differ diff --git a/doc/imgs_results/chinese_db_crnn_server/16.png b/doc/imgs_results/chinese_db_crnn_server/16.png index 8462ab10..05679e18 100644 Binary files a/doc/imgs_results/chinese_db_crnn_server/16.png and b/doc/imgs_results/chinese_db_crnn_server/16.png differ diff --git a/doc/imgs_results/chinese_db_crnn_server/17.png b/doc/imgs_results/chinese_db_crnn_server/17.png index a3e5989e..d57172bc 100644 Binary files a/doc/imgs_results/chinese_db_crnn_server/17.png and b/doc/imgs_results/chinese_db_crnn_server/17.png differ diff --git a/doc/imgs_results/chinese_db_crnn_server/2.jpg b/doc/imgs_results/chinese_db_crnn_server/2.jpg index fc59e252..08b60409 100644 Binary files a/doc/imgs_results/chinese_db_crnn_server/2.jpg and b/doc/imgs_results/chinese_db_crnn_server/2.jpg differ diff --git a/doc/imgs_results/chinese_db_crnn_server/22.jpg b/doc/imgs_results/chinese_db_crnn_server/22.jpg index 5cb4f513..19cca2ad 100644 Binary files a/doc/imgs_results/chinese_db_crnn_server/22.jpg and b/doc/imgs_results/chinese_db_crnn_server/22.jpg differ diff --git a/doc/imgs_results/chinese_db_crnn_server/3.jpg b/doc/imgs_results/chinese_db_crnn_server/3.jpg index 2c9aedc3..35246cad 100644 Binary files a/doc/imgs_results/chinese_db_crnn_server/3.jpg and b/doc/imgs_results/chinese_db_crnn_server/3.jpg differ diff --git a/doc/imgs_results/chinese_db_crnn_server/4.jpg b/doc/imgs_results/chinese_db_crnn_server/4.jpg index 89a3989a..f3e44f2b 100644 Binary files a/doc/imgs_results/chinese_db_crnn_server/4.jpg and b/doc/imgs_results/chinese_db_crnn_server/4.jpg differ diff --git a/doc/imgs_results/chinese_db_crnn_server/5.jpg b/doc/imgs_results/chinese_db_crnn_server/5.jpg index 095f65c5..e794068d 100644 Binary files a/doc/imgs_results/chinese_db_crnn_server/5.jpg and b/doc/imgs_results/chinese_db_crnn_server/5.jpg differ diff --git a/doc/imgs_results/chinese_db_crnn_server/6.jpg b/doc/imgs_results/chinese_db_crnn_server/6.jpg index 73490899..6d1ea84d 100644 Binary files a/doc/imgs_results/chinese_db_crnn_server/6.jpg and b/doc/imgs_results/chinese_db_crnn_server/6.jpg differ diff --git a/doc/imgs_results/chinese_db_crnn_server/7.jpg b/doc/imgs_results/chinese_db_crnn_server/7.jpg index bc1a76d1..943a5a7f 100644 Binary files a/doc/imgs_results/chinese_db_crnn_server/7.jpg and b/doc/imgs_results/chinese_db_crnn_server/7.jpg differ diff --git a/doc/imgs_results/chinese_db_crnn_server/8.jpg b/doc/imgs_results/chinese_db_crnn_server/8.jpg index 803748ec..b6b0387f 100644 Binary files a/doc/imgs_results/chinese_db_crnn_server/8.jpg and b/doc/imgs_results/chinese_db_crnn_server/8.jpg differ diff --git a/doc/imgs_results/chinese_db_crnn_server/9.jpg b/doc/imgs_results/chinese_db_crnn_server/9.jpg index d9a991a4..cb9d7ff0 100644 Binary files a/doc/imgs_results/chinese_db_crnn_server/9.jpg and b/doc/imgs_results/chinese_db_crnn_server/9.jpg differ