From bd60766161d7446aaa162d5fb226d6561dcf4f57 Mon Sep 17 00:00:00 2001 From: grasswolfs Date: Thu, 5 Nov 2020 11:24:48 +0800 Subject: [PATCH] test=develop, test=documents_fix --- thirdparty/README.md | 60 ++++++++++++++++++ .../paddleOcrSpringBoot/mvnw | 0 .../paddleOcrSpringBoot/mvnw.cmd | 0 .../paddleOcrSpringBoot.iml | 0 .../paddleOcrSpringBoot/pom.xml | 0 .../paddleOcrSpringBoot/readme.md | 4 +- .../demo/Controller/OCR.java | 0 .../demo/DemoApplication.java | 0 .../src/main/resources/1.png | Bin .../src/main/resources/application.properties | 0 .../demo/DemoApplicationTests.java | 0 thirdparty/requests.md | 16 +++++ 12 files changed, 78 insertions(+), 2 deletions(-) create mode 100644 thirdparty/README.md rename {deploy => thirdparty}/paddleOcrSpringBoot/mvnw (100%) rename {deploy => thirdparty}/paddleOcrSpringBoot/mvnw.cmd (100%) rename {deploy => thirdparty}/paddleOcrSpringBoot/paddleOcrSpringBoot.iml (100%) rename {deploy => thirdparty}/paddleOcrSpringBoot/pom.xml (100%) rename {deploy => thirdparty}/paddleOcrSpringBoot/readme.md (97%) rename {deploy => thirdparty}/paddleOcrSpringBoot/src/main/java/com/paddelocr_springboot/demo/Controller/OCR.java (100%) rename {deploy => thirdparty}/paddleOcrSpringBoot/src/main/java/com/paddelocr_springboot/demo/DemoApplication.java (100%) rename {deploy => thirdparty}/paddleOcrSpringBoot/src/main/resources/1.png (100%) rename {deploy => thirdparty}/paddleOcrSpringBoot/src/main/resources/application.properties (100%) rename {deploy => thirdparty}/paddleOcrSpringBoot/src/test/java/com/paddelocr_springboot/demo/DemoApplicationTests.java (100%) create mode 100644 thirdparty/requests.md diff --git a/thirdparty/README.md b/thirdparty/README.md new file mode 100644 index 00000000..e1d50464 --- /dev/null +++ b/thirdparty/README.md @@ -0,0 +1,60 @@ +## 第三方贡献说明 + + +- 首先感谢大家对于PaddleOCR的支持,我们也希望大家共同建设,共同分享,形成良好的开源社区氛围:) +- 如果您也有意愿贡献,可以快速查看[贡献说明](#二、贡献说明): + +## 一、近期更新(截至2020.11.5) + + +- 非常感谢 [zhangxin](https://github.com/ZhangXinNan)([Blog](https://blog.csdn.net/sdlypyzq)) 贡献新的可视化方式、添加.gitgnore、处理手动设置PYTHONPATH环境变量的问题([#210](https://github.com/PaddlePaddle/PaddleOCR/pull/210)) +- 非常感谢 [lyl120117](https://github.com/lyl120117) 贡献打印网络结构的代码([#304](https://github.com/PaddlePaddle/PaddleOCR/pull/304)) +- 非常感谢 [BeyondYourself](https://github.com/BeyondYourself) 给PaddleOCR提了很多非常棒的建议,并简化了PaddleOCR的部分代码风格([so many commits)](https://github.com/PaddlePaddle/PaddleOCR/commits?author=BeyondYourself)。 + +### 2、新增需求类 +- 非常感谢 [xiangyubo](https://github.com/xiangyubo) 贡献手写中文OCR数据集([#321](https://github.com/PaddlePaddle/PaddleOCR/pull/321)) +- 非常感谢 [Mejans](https://github.com/Mejans) 给PaddleOCR增加新语言奥克西坦语Occitan的字典和语料([#954](https://github.com/PaddlePaddle/PaddleOCR/pull/954))。 + +### 3、新增功能类 +- 非常感谢 [authorfu](https://github.com/authorfu) 贡献Android([#340](https://github.com/PaddlePaddle/PaddleOCR/pull/340))和[xiadeye](https://github.com/xiadeye) 贡献IOS的demo代码([#325](https://github.com/PaddlePaddle/PaddleOCR/pull/325)) +- 非常感谢 [tangmq](https://gitee.com/tangmq) 给PaddleOCR增加Docker化部署服务,支持快速发布可调用的Restful API服务([#507](https://github.com/PaddlePaddle/PaddleOCR/pull/507))。 +- 非常感谢 [lijinhan](https://github.com/lijinhan) 给PaddleOCR增加java SpringBoot 调用OCR Hubserving接口完成对OCR服务化部署的使用([#1027](https://github.com/PaddlePaddle/PaddleOCR/pull/1027))。 + + + +## 二、贡献说明 +### 1、修复建议类 + - 如果是bug改动和修复,直接提在官方代码对应位置修改,PR提交,review后合入即可。 + + +### 2、新增需求类 + - 如果目前提供的功能不能满足需求,可以在新需求中增加,注明【需求】xxx,可以提到[新需求](./requests.md)里面。 + +### 3、新增功能类 + + - 新增功能也可以在本文件夹中新建文件夹,按照功能命名,文件夹内需包含完整代码和readme文档,在文档中描述清楚具体如何使用(也可以在个人repo中完成,通过新增requirements文件,增加一行 `paddleocr` 可以通过usedby 收录) + - 新增部署方式支持,可以在本文件夹新增 + - 新增多种编程语言支持功能,可以在本文件夹新增 + + +## 三、代码要求 + - **文档、文档、文档**,重要的事情说三遍 + - 简单高效,直观明了,功能完善,没有bug + - 提交之前需要使用 pre-commit 工具来自动检查一些基本事宜(如每个文件只有一个 EOL,Git 中不要添加大文件等)。pre-commit测试是 Travis-CI 中单元测试的一部分,首先安装并在当前目录运行它: + +``` +pip install pre-commit +pre-commit install +``` + + - 目前默认使用 clang-format 来调整 C/C++ 源代码格式,请确保 clang-format 版本在 3.8 以上。注:通过pip install pre-commit和conda install -c conda-forge pre-commit安装的yapf稍有不同的,Paddle 开发人员使用的是pip install pre-commit。 + + + +## 四、联系我们 + - PR之前如果有任何的不确定,欢迎先通过issue或者微信群联系我们,提前沟通pr位置,减少comment和反复修改。 + + +## 五、致谢与后续 + - 合入代码之后,首页README末尾新增感谢贡献,默认链接为github名字及主页,如果有需要更换主页,也可以联系我们 + - 新增重要功能类,会在用户群广而告之,享受开源社区荣誉时刻。 diff --git a/deploy/paddleOcrSpringBoot/mvnw b/thirdparty/paddleOcrSpringBoot/mvnw similarity index 100% rename from deploy/paddleOcrSpringBoot/mvnw rename to thirdparty/paddleOcrSpringBoot/mvnw diff --git a/deploy/paddleOcrSpringBoot/mvnw.cmd b/thirdparty/paddleOcrSpringBoot/mvnw.cmd similarity index 100% rename from deploy/paddleOcrSpringBoot/mvnw.cmd rename to thirdparty/paddleOcrSpringBoot/mvnw.cmd diff --git a/deploy/paddleOcrSpringBoot/paddleOcrSpringBoot.iml b/thirdparty/paddleOcrSpringBoot/paddleOcrSpringBoot.iml similarity index 100% rename from deploy/paddleOcrSpringBoot/paddleOcrSpringBoot.iml rename to thirdparty/paddleOcrSpringBoot/paddleOcrSpringBoot.iml diff --git a/deploy/paddleOcrSpringBoot/pom.xml b/thirdparty/paddleOcrSpringBoot/pom.xml similarity index 100% rename from deploy/paddleOcrSpringBoot/pom.xml rename to thirdparty/paddleOcrSpringBoot/pom.xml diff --git a/deploy/paddleOcrSpringBoot/readme.md b/thirdparty/paddleOcrSpringBoot/readme.md similarity index 97% rename from deploy/paddleOcrSpringBoot/readme.md rename to thirdparty/paddleOcrSpringBoot/readme.md index 3a49bf3c..154a52bd 100644 --- a/deploy/paddleOcrSpringBoot/readme.md +++ b/thirdparty/paddleOcrSpringBoot/readme.md @@ -11,7 +11,7 @@ deploy/paddleOcrSpringBoot/ └─ main 主函数代码 └─ java\com\paddelocr_springboot\demo └─ DemoApplication.java SpringBoot启动代码 - └─ Controller + └─ Controller └─ OCR.java 控制器代码 └─ test 测试代码 ``` @@ -34,4 +34,4 @@ deploy/paddleOcrSpringBoot/ |-|-|-|-| |text||✔|✔| |confidence||✔|✔| -|text_region|✔||✔| \ No newline at end of file +|text_region|✔||✔| diff --git a/deploy/paddleOcrSpringBoot/src/main/java/com/paddelocr_springboot/demo/Controller/OCR.java b/thirdparty/paddleOcrSpringBoot/src/main/java/com/paddelocr_springboot/demo/Controller/OCR.java similarity index 100% rename from deploy/paddleOcrSpringBoot/src/main/java/com/paddelocr_springboot/demo/Controller/OCR.java rename to thirdparty/paddleOcrSpringBoot/src/main/java/com/paddelocr_springboot/demo/Controller/OCR.java diff --git a/deploy/paddleOcrSpringBoot/src/main/java/com/paddelocr_springboot/demo/DemoApplication.java b/thirdparty/paddleOcrSpringBoot/src/main/java/com/paddelocr_springboot/demo/DemoApplication.java similarity index 100% rename from deploy/paddleOcrSpringBoot/src/main/java/com/paddelocr_springboot/demo/DemoApplication.java rename to thirdparty/paddleOcrSpringBoot/src/main/java/com/paddelocr_springboot/demo/DemoApplication.java diff --git a/deploy/paddleOcrSpringBoot/src/main/resources/1.png b/thirdparty/paddleOcrSpringBoot/src/main/resources/1.png similarity index 100% rename from deploy/paddleOcrSpringBoot/src/main/resources/1.png rename to thirdparty/paddleOcrSpringBoot/src/main/resources/1.png diff --git a/deploy/paddleOcrSpringBoot/src/main/resources/application.properties b/thirdparty/paddleOcrSpringBoot/src/main/resources/application.properties similarity index 100% rename from deploy/paddleOcrSpringBoot/src/main/resources/application.properties rename to thirdparty/paddleOcrSpringBoot/src/main/resources/application.properties diff --git a/deploy/paddleOcrSpringBoot/src/test/java/com/paddelocr_springboot/demo/DemoApplicationTests.java b/thirdparty/paddleOcrSpringBoot/src/test/java/com/paddelocr_springboot/demo/DemoApplicationTests.java similarity index 100% rename from deploy/paddleOcrSpringBoot/src/test/java/com/paddelocr_springboot/demo/DemoApplicationTests.java rename to thirdparty/paddleOcrSpringBoot/src/test/java/com/paddelocr_springboot/demo/DemoApplicationTests.java diff --git a/thirdparty/requests.md b/thirdparty/requests.md new file mode 100644 index 00000000..6f78fddc --- /dev/null +++ b/thirdparty/requests.md @@ -0,0 +1,16 @@ +## 第三方新需求 + + +### 1、开发 - 多语言支持需求 + + + +### 2、模型 - 多语言支持需求 + + - 格式:需要提交对应的语言字典dict和语料文件corpus,建议以链接形式提供。 + + +### 3、部署 - 性能提升需求 + + +### 4、其他需求